037-0002-ARM-BCM5301X-Enable-SPI-NOR-on-dual-flash-devices.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. 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. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  15. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  16. ---
  17. arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 4 ++++
  18. arch/arm/boot/dts/bcm4708-netgear-r6250.dts | 4 ++++
  19. arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 4 ++++
  20. arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 4 ++++
  21. arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 4 ++++
  22. 5 files changed, 20 insertions(+)
  23. --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  24. +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
  25. @@ -147,3 +147,7 @@
  26. &usb3 {
  27. vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  28. };
  29. +
  30. +&spi_nor {
  31. + status = "okay";
  32. +};
  33. --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  34. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
  35. @@ -90,3 +90,7 @@
  36. &usb3 {
  37. vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  38. };
  39. +
  40. +&spi_nor {
  41. + status = "okay";
  42. +};
  43. --- a/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
  44. +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
  45. @@ -82,3 +82,7 @@
  46. };
  47. };
  48. };
  49. +
  50. +&spi_nor {
  51. + status = "okay";
  52. +};
  53. --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  54. +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  55. @@ -131,3 +131,7 @@
  56. &usb2 {
  57. vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  58. };
  59. +
  60. +&spi_nor {
  61. + status = "okay";
  62. +};
  63. --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  64. +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
  65. @@ -113,3 +113,7 @@
  66. &usb3 {
  67. vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  68. };
  69. +
  70. +&spi_nor {
  71. + status = "okay";
  72. +};