Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: BCM5301X: Specify flash partitions

Most devices use Broadcom standard partitions which allows them to be
described with the "brcm,bcm947xx-cfe-partitions". Exceptions are:
1) TP-LINK devices which use "os-image" partition with TRX containing
kernel only + separated rootfs partition.
2) Asus RT-AC87U with custom "asus" partition.

This commit also removes undocumented and unsupported linux,part-probe
binding which got accidentally upstreamed while describing SPI
controller.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Rafał Miłecki and committed by
Florian Fainelli
b0465fdf 5b394b2d

+95 -1
+31
arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
··· 66 66 &usb3_phy { 67 67 status = "okay"; 68 68 }; 69 + 70 + &nandcs { 71 + partitions { 72 + compatible = "fixed-partitions"; 73 + #address-cells = <1>; 74 + #size-cells = <1>; 75 + 76 + boot@0 { 77 + label = "boot"; 78 + reg = <0x00000000 0x00080000>; 79 + read-only; 80 + }; 81 + 82 + nvram@80000 { 83 + label = "nvram"; 84 + reg = <0x00080000 0x00180000>; 85 + }; 86 + 87 + firmware@200000 { 88 + label = "firmware"; 89 + reg = <0x00200000 0x07cc0000>; 90 + compatible = "brcm,trx"; 91 + }; 92 + 93 + asus@7ec0000 { 94 + label = "asus"; 95 + reg = <0x07ec0000 0x00140000>; 96 + read-only; 97 + }; 98 + }; 99 + };
+4
arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
··· 12 12 reg = <0>; 13 13 #address-cells = <1>; 14 14 #size-cells = <1>; 15 + 16 + partitions { 17 + compatible = "brcm,bcm947xx-cfe-partitions"; 18 + }; 15 19 }; 16 20 }; 17 21 };
+4 -1
arch/arm/boot/dts/bcm5301x.dtsi
··· 475 475 compatible = "jedec,spi-nor"; 476 476 reg = <0>; 477 477 spi-max-frequency = <20000000>; 478 - linux,part-probe = "ofpart", "bcm47xxpart"; 479 478 status = "disabled"; 479 + 480 + partitions { 481 + compatible = "brcm,bcm947xx-cfe-partitions"; 482 + }; 480 483 }; 481 484 }; 482 485