octeon: ubnt-edgerouter-e300: fix missing MTD partition
authorCarsten Spieß <mail@carsten-spiess.de>
Wed, 12 Jul 2023 08:16:27 +0000 (10:16 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 15 Jul 2023 15:05:58 +0000 (17:05 +0200)
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>
target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi

index e63598fc974ac2915904cb169bf8dd10096e012f..855736b2091a5bfb5aed7bd7cc4bf65456c17774 100644 (file)
                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>;
+                       };
                };
        };
 };