kernel: backport bgmac changes from net-next
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 130-ARM-BCM5301X-Enable-SPI-NOR-on-dual-flash-devices.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
2 Date: Wed, 27 Apr 2016 08:58:01 +0200
3 Subject: [PATCH] ARM: BCM5301X: Enable SPI-NOR on dual flash devices
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 Commit 1b47b98acce2 ("ARM: BCM5301X: Add DT entry for SPI controller and
9 NOR flash") enabled SPI-NOR device on routers using serial flash only.
10 However there are also devices with two flash memories:
11 1) Small SPI attached flash used mostly for booting
12 2) Bigger NAND used mostly for storing firmware
13 On such devices we still need SPI-NOR e.g. to access NVRAM data.
14
15 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
16 ---
17
18 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
19 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
20 @@ -147,3 +147,7 @@
21 &usb3 {
22 vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
23 };
24 +
25 +&spi_nor {
26 + status = "okay";
27 +};
28 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
29 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
30 @@ -90,3 +90,7 @@
31 &usb3 {
32 vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
33 };
34 +
35 +&spi_nor {
36 + status = "okay";
37 +};
38 --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
39 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
40 @@ -82,3 +82,7 @@
41 };
42 };
43 };
44 +
45 +&spi_nor {
46 + status = "okay";
47 +};
48 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
49 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
50 @@ -131,3 +131,7 @@
51 &usb2 {
52 vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
53 };
54 +
55 +&spi_nor {
56 + status = "okay";
57 +};
58 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
59 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
60 @@ -113,3 +113,7 @@
61 &usb3 {
62 vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
63 };
64 +
65 +&spi_nor {
66 + status = "okay";
67 +};