diff mbox series

lantiq: fritz7362sl: add partition subnode for SPI flash

Message ID 20220316172423.2563962-1-jan@3e8.eu
State Accepted, archived
Delegated to: Christian Lamparter
Headers show
Series lantiq: fritz7362sl: add partition subnode for SPI flash | expand

Commit Message

Jan Hoffmann March 16, 2022, 5:24 p.m. UTC
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 partiton 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>
---
 .../boot/dts/lantiq/vr9_avm_fritz7362sl.dts   | 34 +++++++++++--------
 1 file changed, 20 insertions(+), 14 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
index 4d86bf5542d6..68eb2065304e 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
@@ -25,22 +25,28 @@ 
 		reg = <4 0>;
 		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;
+			};
 		};
 	};
 };