aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/HC5962.dts
diff options
context:
space:
mode:
authorAlex Maclean <monkeh@monkeh.net>2018-08-01 21:32:34 +0100
committerMathias Kresin <dev@kresin.me>2018-08-04 08:39:35 +0200
commit6031ab345df86c285ea55d6523d6888cc596f63d (patch)
tree5e9ed3e9ec873e69efd005500fc70e49aeb03f3e /target/linux/ramips/dts/HC5962.dts
parent6dd94c2781b79ffd20f1a57a48fa2314d67ee190 (diff)
downloadupstream-6031ab345df86c285ea55d6523d6888cc596f63d.tar.gz
upstream-6031ab345df86c285ea55d6523d6888cc596f63d.tar.bz2
upstream-6031ab345df86c285ea55d6523d6888cc596f63d.zip
ramips: move partitions into partition table node
Starting with kernel 4.4, the use of partitions as direct subnodes of the mtd device is discouraged and only supported for backward compatiblity reasons. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
Diffstat (limited to 'target/linux/ramips/dts/HC5962.dts')
-rw-r--r--target/linux/ramips/dts/HC5962.dts112
1 files changed, 59 insertions, 53 deletions
diff --git a/target/linux/ramips/dts/HC5962.dts b/target/linux/ramips/dts/HC5962.dts
index 09058f404d..1bad7e6a1a 100644
--- a/target/linux/ramips/dts/HC5962.dts
+++ b/target/linux/ramips/dts/HC5962.dts
@@ -51,70 +51,76 @@
&nand {
status = "okay";
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x80000>;
- read-only;
- };
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x80000>;
+ read-only;
+ };
- partition@80000 {
- label = "debug";
- reg = <0x80000 0x80000>;
- read-only;
- };
+ partition@80000 {
+ label = "debug";
+ reg = <0x80000 0x80000>;
+ read-only;
+ };
- factory: partition@100000 {
- label = "factory";
- reg = <0x100000 0x40000>;
- read-only;
- };
+ factory: partition@100000 {
+ label = "factory";
+ reg = <0x100000 0x40000>;
+ read-only;
+ };
- partition@140000 {
- label = "kernel";
- reg = <0x140000 0x200000>;
- };
+ partition@140000 {
+ label = "kernel";
+ reg = <0x140000 0x200000>;
+ };
- partition@340000 {
- label = "ubi";
- reg = <0x340000 0x1E00000>;
- };
+ partition@340000 {
+ label = "ubi";
+ reg = <0x340000 0x1E00000>;
+ };
- partition@2140000 {
- label = "hw_panic";
- reg = <0x2140000 0x80000>;
- read-only;
- };
+ partition@2140000 {
+ label = "hw_panic";
+ reg = <0x2140000 0x80000>;
+ read-only;
+ };
- partition@21c0000 {
- label = "bdinfo";
- reg = <0x21c0000 0x80000>;
- read-only;
- };
+ partition@21c0000 {
+ label = "bdinfo";
+ reg = <0x21c0000 0x80000>;
+ read-only;
+ };
- partition@2240000 {
- label = "backup";
- reg = <0x2240000 0x80000>;
- read-only;
- };
+ partition@2240000 {
+ label = "backup";
+ reg = <0x2240000 0x80000>;
+ read-only;
+ };
- partition@22c0000 {
- label = "overly";
- reg = <0x22c0000 0x1000000>;
- };
+ partition@22c0000 {
+ label = "overly";
+ reg = <0x22c0000 0x1000000>;
+ };
- partition@32c0000 {
- label = "firmware_backup";
- reg = <0x32c0000 0x2000000>;
- };
+ partition@32c0000 {
+ label = "firmware_backup";
+ reg = <0x32c0000 0x2000000>;
+ };
- partition@52c0000 {
- label = "oem";
- reg = <0x52c0000 0x200000>;
- };
+ partition@52c0000 {
+ label = "oem";
+ reg = <0x52c0000 0x200000>;
+ };
- partition@54c0000 {
- label = "opt";
- reg = <0x54c0000 0x2ac0000>;
+ partition@54c0000 {
+ label = "opt";
+ reg = <0x54c0000 0x2ac0000>;
+ };
};
};