[OpenWrt-Devel] [PATCH] ramips: move partition definitions out of mt7621.dtsi file
Nikolay Martynov
mar.kolya at gmail.com
Fri Dec 11 22:00:48 EST 2015
Partitions defined in parent dtsi cannot be undefined in children.
This moves partitions defined in mt7621.dtsi into board's device tree.
Signed-off-by: Nikolay Martynov <mar.kolya at gmail.com>
---
target/linux/ramips/dts/MT7621.dts | 22 ++++++++++++++++++++++
target/linux/ramips/dts/mt7621.dtsi | 20 --------------------
2 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/target/linux/ramips/dts/MT7621.dts b/target/linux/ramips/dts/MT7621.dts
index fefdb98..341d8f2 100644
--- a/target/linux/ramips/dts/MT7621.dts
+++ b/target/linux/ramips/dts/MT7621.dts
@@ -31,4 +31,26 @@
};
};
};
+
+ nand at 1e003000 {
+ partition at 0 {
+ label = "uboot";
+ reg = <0x00000 0x80000>; /* 64 KB */
+ };
+
+ partition at 80000 {
+ label = "uboot_env";
+ reg = <0x80000 0x80000>; /* 64 KB */
+ };
+
+ partition at 100000 {
+ label = "factory";
+ reg = <0x100000 0x40000>;
+ };
+
+ partition at 140000 {
+ label = "rootfs";
+ reg = <0x140000 0xec0000>;
+ };
+ };
};
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 9c6f45b..facc0a3 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -278,26 +278,6 @@
0x1e003800 0x800>;
#address-cells = <1>;
#size-cells = <1>;
-
- partition at 0 {
- label = "uboot";
- reg = <0x00000 0x80000>; /* 64 KB */
- };
-
- partition at 80000 {
- label = "uboot_env";
- reg = <0x80000 0x80000>; /* 64 KB */
- };
-
- partition at 100000 {
- label = "factory";
- reg = <0x100000 0x40000>;
- };
-
- partition at 140000 {
- label = "rootfs";
- reg = <0x140000 0xec0000>;
- };
};
ethernet at 1e100000 {
--
2.6.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list