aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon
diff options
context:
space:
mode:
authorCarsten Spieß <mail@carsten-spiess.de>2023-07-12 10:16:27 +0200
committerChristian Lamparter <chunkeey@gmail.com>2023-07-19 21:57:25 +0200
commit4959dcd698bb06e76560fad65265d7804643e18b (patch)
treec3b09ad6a93b7a994c56fc21d94e676b9231e243 /target/linux/octeon
parent3c895dde79ecd14e2712c5526d6c9f636acad096 (diff)
downloadupstream-4959dcd698bb06e76560fad65265d7804643e18b.tar.gz
upstream-4959dcd698bb06e76560fad65265d7804643e18b.tar.bz2
upstream-4959dcd698bb06e76560fad65265d7804643e18b.zip
octeon: ubnt-edgerouter-e300: fix missing MTD partition
The MAC addresses should be read from 3rd MTD partition, but only two MTD partitions are populated. To fix it, a partitions node has to surround the partition nodes in device tree. Tested with Edgerouter 6P Signed-off-by: Carsten Spieß <mail@carsten-spiess.de> (fixed checkpatch complains) Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit 2b1d7965c7e74e1b31ff29a966eaf6334b0d7057)
Diffstat (limited to 'target/linux/octeon')
-rw-r--r--target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi38
1 files changed, 22 insertions, 16 deletions
diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
index e63598fc97..855736b209 100644
--- a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
+++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi
@@ -99,22 +99,28 @@
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "boot0";
- read-only;
- reg = <0x000000 0x300000>;
- };
-
- partition@300000 {
- label = "dummy";
- read-only;
- reg = <0x300000 0x100000>;
- };
-
- eeprom: partition@400000 {
- label = "eeprom";
- read-only;
- reg = <0x400000 0x10000>;
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "boot0";
+ read-only;
+ reg = <0x000000 0x300000>;
+ };
+
+ partition@300000 {
+ label = "dummy";
+ read-only;
+ reg = <0x300000 0x100000>;
+ };
+
+ eeprom: partition@400000 {
+ label = "eeprom";
+ read-only;
+ reg = <0x400000 0x10000>;
+ };
};
};
};