ARM: BCM5301X: Enable SPI-NOR on dual flash devices
authorRafał Miłecki <zajec5@gmail.com>
Wed, 27 Apr 2016 07:05:03 +0000 (09:05 +0200)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 1 Jun 2016 19:25:57 +0000 (12:25 -0700)
Commit 1b47b98acce2 ("ARM: BCM5301X: Add DT entry for SPI controller and
NOR flash") enabled SPI-NOR device on routers using serial flash only.
However there are also devices with two flash memories:
1) Small SPI attached flash used mostly for booting
2) Bigger NAND used mostly for storing firmware
On such devices we still need SPI-NOR e.g. to access NVRAM data.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
arch/arm/boot/dts/bcm4708-netgear-r6250.dts
arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts

index 5087aa8..9cb186e 100644 (file)
 &usb3 {
        vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
 };
+
+&spi_nor {
+       status = "okay";
+};
index 1049ab1..8ce39d5 100644 (file)
@@ -90,3 +90,7 @@
 &usb3 {
        vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
 };
+
+&spi_nor {
+       status = "okay";
+};
index 3a94606..6229ef2 100644 (file)
@@ -82,3 +82,7 @@
                };
        };
 };
+
+&spi_nor {
+       status = "okay";
+};
index 791d722..0653e7e 100644 (file)
 &usb2 {
        vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
 };
+
+&spi_nor {
+       status = "okay";
+};
index ace38ef..50cf804 100644 (file)
 &usb3 {
        vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
 };
+
+&spi_nor {
+       status = "okay";
+};