treewide: use more descriptive names for concatenated partitions
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 20 Dec 2020 00:03:36 +0000 (01:03 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 27 Dec 2020 19:33:45 +0000 (20:33 +0100)
A few devices in ath79 and ramips use mtd-concat to concatenate
individual partitions into a bigger "firmware" or "ubi" partition.

However, the original partitions are still present and visible,
and one can write to them directly although this might break the
actual virtual, concatenated partition.

As we cannot do much about the former, let's at least choose more
descriptive names than just "firmwareX" in order to indicate the
concatenation to the user. He might be less tempted into overwriting
a "fwconcat1" than a "firmware1", which might be perceived as an
alternate firmware for dual boot etc.

This applies the new naming consistently for all relevant devices,
i.e. fwconcatX for virtual "firmware" members and ubiconcatX for
"ubi" members.

While at it, use DT labels and label property consistently, and
also use consistent zero-based indexing.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
13 files changed:
target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts
target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts
target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts
target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts
target/linux/ath79/dts/ar9341_pisen_wmb001n.dts
target/linux/ath79/dts/ar9344_enterasys_ws-ap3705i.dts
target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
target/linux/ath79/dts/qca9550_airtight_c-75.dts
target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts
target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi
target/linux/ramips/dts/mt7620n_sunvalley_filehub.dtsi
target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts

index aeb1e9e42416797073345f5fd9d61ae6938287f4..77b2f3fa1a239a4ffbdf7c527afa351939ca25e7 100644 (file)
@@ -72,7 +72,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0xb0000 0xf0000>;
                        };
 
                                reg = <0x1a0000 0x10000>;
                        };
 
-                       firmware1: partition@1b0000 {
-                               label = "firmware1";
+                       fwconcat0: partition@1b0000 {
+                               label = "fwconcat0";
                                reg = <0x1b0000 0x4c0000>;
                        };
 
index b530f6aa8af589e50f83c49f803a69c341ea06c1..4001897adf4d19b0df169deda0508684430d7a7b 100644 (file)
@@ -51,7 +51,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0xb0000 0xf0000>;
                        };
 
                                read-only;
                        };
 
-                       firmware1: partition@1b0000 {
-                               label = "firmware1";
+                       fwconcat0: partition@1b0000 {
+                               label = "fwconcat0";
                                reg = <0x1b0000 0x4c0000>;
                        };
 
index 8931a206bafe6e5ba2a577b0ec9ae047ded24c05..e73082267c882e2fd69f4eee13b200921263463e 100644 (file)
@@ -51,7 +51,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0xb0000 0xf0000>;
                        };
 
                                read-only;
                        };
 
-                       firmware1: partition@1b0000 {
-                               label = "firmware1";
+                       fwconcat0: partition@1b0000 {
+                               label = "fwconcat0";
                                reg = <0x1b0000 0x4c0000>;
                        };
 
index e299c8529defc5f0fb30b92a51b0f43b618005da..3121ec0e0180c9dfcb7bea0c569dbd19e96a33cc 100644 (file)
@@ -52,7 +52,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0x0b0000 0x170000>;
                        };
 
                                read-only;
                        };
 
-                       firmware1: partition@230000 {
-                               label = "firmware1";
+                       fwconcat0: partition@230000 {
+                               label = "fwconcat0";
                                reg = <0x230000 0xbc0000>;
                        };
 
index 94b079f94d52b0927458611502ad5ce008dc19d3..8b28d581b1cbd9c1e1c2b46d77ffa7a3263a96d1 100644 (file)
@@ -62,7 +62,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0x0b0000 0x170000>;
                        };
 
                                reg = <0x220000 0x010000>;
                        };
 
-                       firmware1: partition@230000 {
-                               label = "firmware1";
+                       fwconcat0: partition@230000 {
+                               label = "fwconcat0";
                                reg = <0x230000 0xbc0000>;
                        };
 
index 3d9c6cb7810142cea6ef8bd03ab547a6d08db933..aaa4d1576bd2fe4565591700d314c26a29609315 100644 (file)
@@ -96,7 +96,7 @@
 
        virtual_flash {
                compatible = "mtd-concat";
-               devices = <&fwpart1 &fwpart2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       fwpart1: partition@20000 {
-                               label = "fwpart1";
+                       fwconcat0: partition@20000 {
+                               label = "fwconcat0";
                                reg = <0x20000 0xdc0000>;
                        };
 
                                reg = <0xde0000 0x10000>;
                        };
 
-                       fwpart2: partition@df0000 {
-                               label = "fwpart2";
+                       fwconcat1: partition@df0000 {
+                               label = "fwconcat1";
                                reg = <0xdf0000 0x1f0000>;
                        };
 
index 7fb794f21c323fc6aef96754898435082c2d6838..a387cebefc9ddd2d98e56b62f351054bb4f6748c 100644 (file)
@@ -23,7 +23,7 @@
 
        mtd-concat {
                compatible = "mtd-concat";
-               devices = <&concat0 &concat1>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       concat0: partition@230000 {
-                               label = "concat0";
+                       fwconcat0: partition@230000 {
+                               label = "fwconcat0";
                                reg = <0x230000 0xdd0000>;
                        };
                };
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       concat1: partition@0 {
-                               label = "concat1";
+                       fwconcat1: partition@0 {
+                               label = "fwconcat1";
                                reg = <0x0 0x1000000>;
                        };
                };
index 92b0beccd7c957be165e3e3da7d1bd7126cdb577..26f9db5924fcd9ebe263a8edc381c59e021f6fec 100644 (file)
@@ -82,7 +82,7 @@
 
        ubi-concat {
                compatible = "mtd-concat";
-               devices = <&ubipart0 &ubipart1>;
+               devices = <&ubiconcat0 &ubiconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                        reg = <0x6c0000 0x400000>;
                };
 
-               ubipart0: partition@ac0000 {
-                       label = "ubipart0";
+               ubiconcat0: partition@ac0000 {
+                       label = "ubiconcat0";
                        reg = <0xac0000 0x1500000>;
                };
 
                        read-only;
                };
 
-               ubipart1: partition@2000000 {
-                       label = "ubipart1";
+               ubiconcat1: partition@2000000 {
+                       label = "ubiconcat1";
                        reg = <0x2000000 0x6000000>;
                };
        };
index 1bdbc86156127b5fb5235bf3d2e297f0527caa57..a76639897166c4376819c71b199d09537292fb9e 100644 (file)
@@ -44,7 +44,7 @@
 
        virtual_flash {
                compatible = "mtd-concat";
-               devices = <&concat0 &concat1>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       concat0: partition@60000 {
-                               label = "reserved1";
+                       fwconcat0: partition@60000 {
+                               label = "fwconcat0";
                                reg = <0x060000 0xf90000>;
                        };
 
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       concat1: partition@0 {
-                               label = "reserved2";
+                       fwconcat1: partition@0 {
+                               label = "fwconcat1";
                                reg = <0x0 0x1000000>;
                        };
                };
index 952747ade0e89e8019673655884141fc22c36048..f9801693c57f7da6a3206ddabc8427fc355b2514 100644 (file)
@@ -62,7 +62,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                read-only;
                        };
 
-                       firmware2: partition@b0000 {
-                               label = "firmware2";
+                       fwconcat1: partition@b0000 {
+                               label = "fwconcat1";
                                reg = <0x0b0000 0x170000>;
                        };
 
                                read-only;
                        };
 
-                       firmware1: partition@230000 {
-                               label = "firmware1";
+                       fwconcat0: partition@230000 {
+                               label = "fwconcat0";
                                reg = <0x230000 0xb40000>;
                        };
 
index c88e2b0ba6c792764d594ad342a6065b1e710ce9..af22f6681ac235d5bf1c04619600e5793ddeee4b 100644 (file)
@@ -77,7 +77,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&fwpart1 &fwpart2>;
+               devices = <&fwconcat0 &fwconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                                reg = <0x040000 0x010000>;
                        };
 
-                       fwpart1: partition@50000 {
-                               label = "fwpart1";
+                       fwconcat0: partition@50000 {
+                               label = "fwconcat0";
                                reg = <0x050000 0xe20000>;
                        };
 
                                read-only;
                        };
 
-                       fwpart2: partition@e80000 {
-                               label = "fwpart2";
+                       fwconcat1: partition@e80000 {
+                               label = "fwconcat1";
                                reg = <0xe80000 0x170000>;
                        };
 
index d94379a41f2fa4d339b704afcf37cfe5d43c326a..beca2954dc8f6ba2154bd3e9ca2a78c61c0845aa 100644 (file)
@@ -23,7 +23,7 @@
        virtual_flash {
                compatible = "mtd-concat";
 
-               devices = <&firmware1 &firmware2 &firmware3>;
+               devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
 
                partitions {
                        compatible = "fixed-partitions";
@@ -89,8 +89,8 @@
                                read-only;
                        };
 
-                       firmware2: partition@60000 {
-                               label = "firmware2";
+                       fwconcat1: partition@60000 {
+                               label = "fwconcat1";
                                reg = <0x60000 0x170000>;
                        };
 
                                reg = <0x1d0000 0x10000>;
                        };
 
-                       firmware3: partition@1e0000 {
-                               label = "firmware3";
+                       fwconcat2: partition@1e0000 {
+                               label = "fwconcat2";
                                reg = <0x1e0000 0x20000>;
                        };
 
-                       firmware1: partition@200000 {
-                               label = "firmware1";
+                       fwconcat0: partition@200000 {
+                               label = "fwconcat0";
                                reg = <0x200000 0x600000>;
                        };
                };
index 87b103f5391ab1710c48c5b054b02886e863a304..774fb93d9cd652134e0d8466859286ed8cebe57b 100644 (file)
 
        ubi-concat {
                compatible = "mtd-concat";
-               devices = <&ubipart0 &ubipart1>;
+               devices = <&ubiconcat0 &ubiconcat1>;
 
                partitions {
                        compatible = "fixed-partitions";
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       ubi@0 {
+                       partition@0 {
                                label = "ubi";
                                reg = <0x0 0x79c0000>;
                        };
@@ -91,8 +91,8 @@
                        reg = <0x140000 0x400000>;
                };
 
-               ubipart0: partition@540000 {
-                       label = "ubipart0";
+               ubiconcat0: partition@540000 {
+                       label = "ubiconcat0";
                        reg = <0x540000 0x1c80000>;
                };
 
                        read-only;
                };
 
-               ubipart1: partition@2240000 {
-                       label = "ubipart1";
+               ubiconcat1: partition@2240000 {
+                       label = "ubiconcat1";
                        reg = <0x2240000 0x5d40000>;
                };
        };