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