[openwrt/openwrt] bcm53xx: fix Linksys EA9500 partitions

LEDE Commits lede-commits at lists.infradead.org
Thu Apr 8 11:59:45 BST 2021


rmilecki pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/741164fdac5d5f2cfd9ec3542af8770e982c80cc

commit 741164fdac5d5f2cfd9ec3542af8770e982c80cc
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Mon Mar 29 09:28:47 2021 +0200

    bcm53xx: fix Linksys EA9500 partitions
    
    Use proper DT binding.
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
    (cherry picked from commit f8669c174ee17bbb8d59f901d639f57449dcf751)
---
 ...ts-BCM5301X-Fix-Linksys-EA9500-partitions.patch | 58 ++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/target/linux/bcm53xx/patches-5.4/130-ARM-dts-BCM5301X-Fix-Linksys-EA9500-partitions.patch b/target/linux/bcm53xx/patches-5.4/130-ARM-dts-BCM5301X-Fix-Linksys-EA9500-partitions.patch
new file mode 100644
index 0000000000..964773c377
--- /dev/null
+++ b/target/linux/bcm53xx/patches-5.4/130-ARM-dts-BCM5301X-Fix-Linksys-EA9500-partitions.patch
@@ -0,0 +1,58 @@
+From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal at milecki.pl>
+Date: Mon, 29 Mar 2021 07:32:29 +0200
+Subject: [PATCH] ARM: dts: BCM5301X: Fix Linksys EA9500 partitions
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Partitions are basically fixed indeed but firmware ones don't have
+hardcoded function ("firmware" vs "failsafe"). Actual function depends
+on bootloader configuration. Use a proper binding for that.
+
+While at it fix numbers formatting to avoid:
+arch/arm/boot/dts/bcm47094-linksys-panamera.dt.yaml: partitions: 'partition at 1F00000' does not match any of the regexes: '^partition@[0-9a-f]+$', 'pinctrl-[0-9]+'
+        From schema: Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partitions.yaml
+
+Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
+---
+ arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 16 +++++++---------
+ 1 file changed, 7 insertions(+), 9 deletions(-)
+
+--- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
++++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
+@@ -279,7 +279,7 @@
+ 
+ &nandcs {
+ 	partitions {
+-		compatible = "fixed-partitions";
++		compatible = "linksys,ns-partitions";
+ 		#address-cells = <1>;
+ 		#size-cells = <1>;
+ 
+@@ -300,20 +300,18 @@
+ 		};
+ 
+ 		partition at 200000 {
+-			label = "firmware";
+-			reg = <0x0200000 0x01D00000>;
+-			compatible = "brcm,trx";
++			reg = <0x0200000 0x01d00000>;
++			compatible = "linksys,ns-firmware", "brcm,trx";
+ 		};
+ 
+-		partition at 1F00000 {
+-			label = "failsafe";
+-			reg = <0x01F00000 0x01D00000>;
+-			read-only;
++		partition at 1f00000 {
++			reg = <0x01f00000 0x01d00000>;
++			compatible = "linksys,ns-firmware", "brcm,trx";
+ 		};
+ 
+ 		partition at 5200000 {
+ 			label = "system";
+-			reg = <0x05200000 0x02E00000>;
++			reg = <0x05200000 0x02e00000>;
+ 		};
+ 	};
+ };



More information about the lede-commits mailing list