d52f46f979b6ca363a1581e4d6408790ad28d155
[openwrt/staging/blogic.git] /
1 From 1d3352aeed164ef73f05cf80ca001f11d2f3312d Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 29 Mar 2021 07:54:30 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Fix Linksys EA9500 partitions
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Partitions are basically fixed indeed but firmware ones don't have
10 hardcoded function ("firmware" vs "failsafe"). Actual function depends
11 on bootloader configuration. Use a proper binding for that.
12
13 While at it fix numbers formatting to avoid:
14 arch/arm/boot/dts/bcm47094-linksys-panamera.dt.yaml: partitions: 'partition@1F00000' does not match any of the regexes: '^partition@[0-9a-f]+$', 'pinctrl-[0-9]+'
15 From schema: Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partitions.yaml
16
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
19 ---
20 arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 16 +++++++---------
21 1 file changed, 7 insertions(+), 9 deletions(-)
22
23 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
24 +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
25 @@ -279,7 +279,7 @@
26
27 &nandcs {
28 partitions {
29 - compatible = "fixed-partitions";
30 + compatible = "linksys,ns-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 @@ -300,20 +300,18 @@
35 };
36
37 partition@200000 {
38 - label = "firmware";
39 - reg = <0x0200000 0x01D00000>;
40 - compatible = "brcm,trx";
41 + reg = <0x0200000 0x01d00000>;
42 + compatible = "linksys,ns-firmware", "brcm,trx";
43 };
44
45 - partition@1F00000 {
46 - label = "failsafe";
47 - reg = <0x01F00000 0x01D00000>;
48 - read-only;
49 + partition@1f00000 {
50 + reg = <0x01f00000 0x01d00000>;
51 + compatible = "linksys,ns-firmware", "brcm,trx";
52 };
53
54 partition@5200000 {
55 label = "system";
56 - reg = <0x05200000 0x02E00000>;
57 + reg = <0x05200000 0x02e00000>;
58 };
59 };
60 };