[openwrt/openwrt] lantiq: fritz7362sl: add partition subnode for SPI flash
LEDE Commits
lede-commits at lists.infradead.org
Wed Mar 16 12:55:25 PDT 2022
chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a6222738760b9ab796ac0f69d6df8b3f2b9c2f26
commit a6222738760b9ab796ac0f69d6df8b3f2b9c2f26
Author: Jan Hoffmann <jan at 3e8.eu>
AuthorDate: Wed Mar 16 18:24:23 2022 +0100
lantiq: fritz7362sl: add partition subnode for SPI flash
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 at 3e8.eu>
---
.../mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts | 34 +++++++++++++---------
1 file changed, 20 insertions(+), 14 deletions(-)
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 37fee61588..c75edd933c 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>;
spi-max-frequency = <1000000>;
- urlader: partition at 0 {
- reg = <0x0 0x40000>;
- label = "urlader";
- read-only;
- };
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
- partition at 40000 {
- reg = <0x40000 0x60000>;
- label = "tffs (1)";
- read-only;
- };
+ urlader: partition at 0 {
+ reg = <0x0 0x40000>;
+ label = "urlader";
+ read-only;
+ };
- partition at A0000 {
- reg = <0xA0000 0x60000>;
- label = "tffs (2)";
- read-only;
+ partition at 40000 {
+ reg = <0x40000 0x60000>;
+ label = "tffs (1)";
+ read-only;
+ };
+
+ partition at A0000 {
+ reg = <0xA0000 0x60000>;
+ label = "tffs (2)";
+ read-only;
+ };
};
};
};
More information about the lede-commits
mailing list