306-ARM-BCM5301X-Add-DT-for-Netgear-R8500.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R8500
  3. MIME-Version: 1.0
  4. Content-Type: text/plain; charset=UTF-8
  5. Content-Transfer-Encoding: 8bit
  6. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  7. ---
  8. arch/arm/boot/dts/Makefile | 1 +
  9. arch/arm/boot/dts/bcm47094-netgear-r8500.dts | 31 ++++++++++++++++++++++++++++
  10. 2 files changed, 32 insertions(+)
  11. create mode 100644 arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  12. --- a/arch/arm/boot/dts/Makefile
  13. +++ b/arch/arm/boot/dts/Makefile
  14. @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  15. bcm4709-netgear-r7900.dtb \
  16. bcm4709-netgear-r8000.dtb \
  17. bcm47094-dlink-dir-885l.dtb \
  18. + bcm47094-netgear-r8500.dtb \
  19. bcm94708.dtb \
  20. bcm94709.dtb \
  21. bcm953012er.dtb \
  22. --- /dev/null
  23. +++ b/arch/arm/boot/dts/bcm47094-netgear-r8500.dts
  24. @@ -0,0 +1,107 @@
  25. +/*
  26. + * Broadcom BCM470X / BCM5301X ARM platform code.
  27. + * DTS for Netgear R8500
  28. + *
  29. + * Copyright (C) 2016 Rafał Miłecki <zajec5@gmail.com>
  30. + *
  31. + * Licensed under the GNU/GPL. See COPYING for details.
  32. + */
  33. +
  34. +/dts-v1/;
  35. +
  36. +#include "bcm4708.dtsi"
  37. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  38. +
  39. +/ {
  40. + compatible = "netgear,r8500", "brcm,bcm47094", "brcm,bcm4708";
  41. + model = "Netgear R8500";
  42. +
  43. + chosen {
  44. + bootargs = "console=ttyS0,115200";
  45. + };
  46. +
  47. + memory {
  48. + reg = <0x00000000 0x08000000>;
  49. + };
  50. +
  51. + leds {
  52. + compatible = "gpio-leds";
  53. +
  54. + power0 {
  55. + label = "bcm53xx:white:power";
  56. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  57. + linux,default-trigger = "default-on";
  58. + };
  59. +
  60. + power1 {
  61. + label = "bcm53xx:amber:power";
  62. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  63. + linux,default-trigger = "default-off";
  64. + };
  65. +
  66. + 5ghz-1 {
  67. + label = "bcm53xx:white:5ghz-1";
  68. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  69. + linux,default-trigger = "default-off";
  70. + };
  71. +
  72. + 5ghz-2 {
  73. + label = "bcm53xx:white:5ghz-2";
  74. + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
  75. + linux,default-trigger = "default-off";
  76. + };
  77. +
  78. + 2ghz {
  79. + label = "bcm53xx:white:2ghz";
  80. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  81. + linux,default-trigger = "default-off";
  82. + };
  83. +
  84. + usb2 {
  85. + label = "bcm53xx:white:usb2";
  86. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  87. + linux,default-trigger = "default-off";
  88. + };
  89. +
  90. + usb3 {
  91. + label = "bcm53xx:white:usb3";
  92. + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  93. + linux,default-trigger = "default-off";
  94. + };
  95. + };
  96. +
  97. + gpio-keys {
  98. + compatible = "gpio-keys";
  99. + #address-cells = <1>;
  100. + #size-cells = <0>;
  101. +
  102. + brightness {
  103. + label = "Backlight";
  104. + linux,code = <KEY_BRIGHTNESS_ZERO>;
  105. + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  106. + };
  107. +
  108. + restart {
  109. + label = "Reset";
  110. + linux,code = <KEY_RESTART>;
  111. + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  112. + };
  113. +
  114. + wps {
  115. + label = "WPS";
  116. + linux,code = <KEY_WPS_BUTTON>;
  117. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  118. + };
  119. +
  120. + rfkill {
  121. + label = "WiFi";
  122. + linux,code = <KEY_RFKILL>;
  123. + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  124. + };
  125. + };
  126. +};
  127. +
  128. +&uart0 {
  129. + status = "okay";
  130. + clock-frequency = <125000000>;
  131. +};