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>
This commit is contained in:
Carsten Spieß 2023-07-12 10:16:27 +02:00 committed by Christian Lamparter
parent 9009672930
commit 2b1d7965c7

View File

@ -99,22 +99,28 @@
reg = <0>; reg = <0>;
spi-max-frequency = <25000000>; spi-max-frequency = <25000000>;
partition@0 { partitions {
label = "boot0"; compatible = "fixed-partitions";
read-only; #address-cells = <1>;
reg = <0x000000 0x300000>; #size-cells = <1>;
};
partition@300000 { partition@0 {
label = "dummy"; label = "boot0";
read-only; read-only;
reg = <0x300000 0x100000>; reg = <0x000000 0x300000>;
}; };
eeprom: partition@400000 { partition@300000 {
label = "eeprom"; label = "dummy";
read-only; read-only;
reg = <0x400000 0x10000>; reg = <0x300000 0x100000>;
};
eeprom: partition@400000 {
label = "eeprom";
read-only;
reg = <0x400000 0x10000>;
};
}; };
}; };
}; };