lantiq: fritz7362sl: add partition subnode for SPI flash
authorJan Hoffmann <jan@3e8.eu>
Wed, 16 Mar 2022 17:24:23 +0000 (18:24 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Wed, 16 Mar 2022 19:48:01 +0000 (20:48 +0100)
Without a partition subnode ofpart_core still parses direct subnodes as
partitions, but it ignores nodes with a compatible property. Due to
this, the switch to nvmem-cells made the urlader partition inaccessible.
As a result, the wireless network was broken, as the calibration data
is read from that partition by a script.

Fixes: #8983
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts

index 37fee61588dd6c25f180930a8d09700864a80bd7..c75edd933c4451ba16f3519da93e4c1dc182d555 100644 (file)
                reg = <4>;
                spi-max-frequency = <1000000>;
 
-               urlader: partition@0 {
-                       reg = <0x0 0x40000>;
-                       label = "urlader";
-                       read-only;
-               };
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
-               partition@40000 {
-                       reg = <0x40000 0x60000>;
-                       label = "tffs (1)";
-                       read-only;
-               };
+                       urlader: partition@0 {
+                               reg = <0x0 0x40000>;
+                               label = "urlader";
+                               read-only;
+                       };
 
-               partition@A0000 {
-                       reg = <0xA0000 0x60000>;
-                       label = "tffs (2)";
-                       read-only;
+                       partition@40000 {
+                               reg = <0x40000 0x60000>;
+                               label = "tffs (1)";
+                               read-only;
+                       };
+
+                       partition@A0000 {
+                               reg = <0xA0000 0x60000>;
+                               label = "tffs (2)";
+                               read-only;
+                       };
                };
        };
 };