1 From ed4728d9fa0b19687caa964cf5c2082b80208167 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 13:25:48 +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>
21 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts | 28 +++++++++++++++++++
22 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 31 ++++++++++++++++++++++
23 arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 28 +++++++++++++++++++
24 arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi | 4 +++
25 arch/arm/boot/dts/bcm5301x.dtsi | 5 +++-
26 5 files changed, 95 insertions(+), 1 deletion(-)
28 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
29 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
36 + compatible = "fixed-partitions";
37 + #address-cells = <1>;
42 + reg = <0x000000 0x040000>;
48 + reg = <0x040000 0x200000>;
49 + compatible = "brcm,trx";
54 + reg = <0x240000 0xc00000>;
59 + reg = <0xff0000 0x010000>;
65 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
66 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
74 + compatible = "fixed-partitions";
75 + #address-cells = <1>;
80 + reg = <0x00000000 0x00080000>;
86 + reg = <0x00080000 0x00180000>;
91 + reg = <0x00200000 0x07cc0000>;
92 + compatible = "brcm,trx";
97 + reg = <0x07ec0000 0x00140000>;
102 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
103 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
110 + compatible = "fixed-partitions";
111 + #address-cells = <1>;
116 + reg = <0x000000 0x040000>;
121 + label = "os-image";
122 + reg = <0x040000 0x200000>;
123 + compatible = "brcm,trx";
128 + reg = <0x240000 0xc00000>;
133 + reg = <0xff0000 0x010000>;
139 --- a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
140 +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
143 #address-cells = <1>;
147 + compatible = "brcm,bcm947xx-cfe-partitions";
152 --- a/arch/arm/boot/dts/bcm5301x.dtsi
153 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
155 compatible = "jedec,spi-nor";
157 spi-max-frequency = <20000000>;
158 - linux,part-probe = "ofpart", "bcm47xxpart";
162 + compatible = "brcm,bcm947xx-cfe-partitions";