aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-12-20 01:03:36 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-12-27 20:33:45 +0100
commit1fb40a72da115073b55ed1b92b443c1b80794c44 (patch)
tree1e34c5061b7b0c0a287c42ef2c13bbbc0c7225a8 /target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts
parentccf65613daf155c78b38081dc3b8b5ca22a6f9ed (diff)
downloadupstream-1fb40a72da115073b55ed1b92b443c1b80794c44.tar.gz
upstream-1fb40a72da115073b55ed1b92b443c1b80794c44.tar.bz2
upstream-1fb40a72da115073b55ed1b92b443c1b80794c44.zip
treewide: use more descriptive names for concatenated partitions
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>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts12
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts
index 87b103f539..774fb93d9c 100644
--- a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts
+++ b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts
@@ -45,14 +45,14 @@
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>;
};
@@ -102,8 +102,8 @@
read-only;
};
- ubipart1: partition@2240000 {
- label = "ubipart1";
+ ubiconcat1: partition@2240000 {
+ label = "ubiconcat1";
reg = <0x2240000 0x5d40000>;
};
};