diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-12-20 01:03:36 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-12-27 20:33:45 +0100 |
commit | 1fb40a72da115073b55ed1b92b443c1b80794c44 (patch) | |
tree | 1e34c5061b7b0c0a287c42ef2c13bbbc0c7225a8 /target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts | |
parent | ccf65613daf155c78b38081dc3b8b5ca22a6f9ed (diff) | |
download | upstream-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/ath79/dts/ar7240_engenius_enh202-v1.dts')
-rw-r--r-- | target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts b/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts index aeb1e9e424..77b2f3fa1a 100644 --- a/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts +++ b/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts @@ -72,7 +72,7 @@ virtual_flash { compatible = "mtd-concat"; - devices = <&firmware1 &firmware2>; + devices = <&fwconcat0 &fwconcat1>; partitions { compatible = "fixed-partitions"; @@ -128,8 +128,8 @@ read-only; }; - firmware2: partition@b0000 { - label = "firmware2"; + fwconcat1: partition@b0000 { + label = "fwconcat1"; reg = <0xb0000 0xf0000>; }; @@ -138,8 +138,8 @@ reg = <0x1a0000 0x10000>; }; - firmware1: partition@1b0000 { - label = "firmware1"; + fwconcat0: partition@1b0000 { + label = "fwconcat0"; reg = <0x1b0000 0x4c0000>; }; |