1 From b0465fdfdd7e7c1afe2fae1cb36b94e1ce89732e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Sat, 28 Jul 2018 14:13:57 +0200
4 Subject: [PATCH] ARM: dts: BCM5301X: Specify flash partitions
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Most devices use Broadcom standard partitions which allows them to be
10 described with the "brcm,bcm947xx-cfe-partitions". Exceptions are:
11 1) TP-LINK devices which use "os-image" partition with TRX containing
12 kernel only + separated rootfs partition.
13 2) Asus RT-AC87U with custom "asus" partition.
15 This commit also removes undocumented and unsupported linux,part-probe
16 binding which got accidentally upstreamed while describing SPI
19 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
20 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
22 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 28 +++++++++++++++++++
23 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 31 ++++++++++++++++++++++
24 arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 28 +++++++++++++++++++
25 arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi | 4 +++
26 arch/arm/boot/dts/bcm5301x.dtsi | 5 +++-
27 5 files changed, 95 insertions(+), 1 deletion(-)
29 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
30 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
37 + compatible = "fixed-partitions";
38 + #address-cells = <1>;
43 + reg = <0x000000 0x040000>;
49 + reg = <0x040000 0x200000>;
50 + compatible = "brcm,trx";
55 + reg = <0x240000 0xc00000>;
60 + reg = <0xff0000 0x010000>;
66 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
67 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
75 + compatible = "fixed-partitions";
76 + #address-cells = <1>;
81 + reg = <0x00000000 0x00080000>;
87 + reg = <0x00080000 0x00180000>;
92 + reg = <0x00200000 0x07cc0000>;
93 + compatible = "brcm,trx";
98 + reg = <0x07ec0000 0x00140000>;
103 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
104 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
111 + compatible = "fixed-partitions";
112 + #address-cells = <1>;
117 + reg = <0x000000 0x040000>;
122 + label = "os-image";
123 + reg = <0x040000 0x200000>;
124 + compatible = "brcm,trx";
129 + reg = <0x240000 0xc00000>;
134 + reg = <0xff0000 0x010000>;
140 --- a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
141 +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
144 #address-cells = <1>;
148 + compatible = "brcm,bcm947xx-cfe-partitions";
153 --- a/arch/arm/boot/dts/bcm5301x.dtsi
154 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
156 compatible = "jedec,spi-nor";
158 spi-max-frequency = <20000000>;
159 - linux,part-probe = "ofpart", "bcm47xxpart";
163 + compatible = "brcm,bcm947xx-cfe-partitions";