060-ARM-BCM5301X-Add-DT-for-SmartRG-SR400ac.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. From 691917f20cae813d242f7123a4dc97e7d48e6ff1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Wed, 13 May 2015 09:10:53 +0200
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for SmartRG SR400ac
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 119 ++++++++++++++++++++++++++
  13. 2 files changed, 120 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -60,6 +60,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  18. bcm4708-luxul-xwc-1000.dtb \
  19. bcm4708-netgear-r6250.dtb \
  20. bcm4708-netgear-r6300-v2.dtb \
  21. + bcm4708-smartrg-sr400ac.dtb \
  22. bcm47081-asus-rt-n18u.dtb \
  23. bcm47081-buffalo-wzr-600dhp2.dtb \
  24. bcm47081-buffalo-wzr-900dhp.dtb \
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  27. @@ -0,0 +1,119 @@
  28. +/*
  29. + * Broadcom BCM470X / BCM5301X arm platform code.
  30. + * DTS for SmartRG SR400ac
  31. + *
  32. + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
  33. + *
  34. + * Licensed under the GNU/GPL. See COPYING for details.
  35. + */
  36. +
  37. +/dts-v1/;
  38. +
  39. +#include "bcm4708.dtsi"
  40. +
  41. +/ {
  42. + compatible = "smartrg,sr400ac", "brcm,bcm4708";
  43. + model = "SmartRG SR400ac";
  44. +
  45. + chosen {
  46. + bootargs = "console=ttyS0,115200";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + leds {
  54. + compatible = "gpio-leds";
  55. +
  56. + power-white {
  57. + label = "bcm53xx:white:power";
  58. + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  59. + linux,default-trigger = "default-on";
  60. + };
  61. +
  62. + power-amber {
  63. + label = "bcm53xx:amber:power";
  64. + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  65. + linux,default-trigger = "default-off";
  66. + };
  67. +
  68. + usb2 {
  69. + label = "bcm53xx:white:usb2";
  70. + gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
  71. + linux,default-trigger = "default-off";
  72. + };
  73. +
  74. + usb3-white {
  75. + label = "bcm53xx:white:usb3";
  76. + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  77. + linux,default-trigger = "default-off";
  78. + };
  79. +
  80. + usb3-green {
  81. + label = "bcm53xx:green:usb3";
  82. + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  83. + linux,default-trigger = "default-off";
  84. + };
  85. +
  86. + wps {
  87. + label = "bcm53xx:white:wps";
  88. + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  89. + linux,default-trigger = "default-off";
  90. + };
  91. +
  92. + status-red {
  93. + label = "bcm53xx:red:status";
  94. + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  95. + linux,default-trigger = "default-off";
  96. + };
  97. +
  98. + status-green {
  99. + label = "bcm53xx:green:status";
  100. + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  101. + linux,default-trigger = "default-off";
  102. + };
  103. +
  104. + status-blue {
  105. + label = "bcm53xx:blue:status";
  106. + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
  107. + linux,default-trigger = "default-off";
  108. + };
  109. +
  110. + wan-white {
  111. + label = "bcm53xx:white:wan";
  112. + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  113. + linux,default-trigger = "default-off";
  114. + };
  115. +
  116. + wan-red {
  117. + label = "bcm53xx:red:wan";
  118. + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  119. + linux,default-trigger = "default-off";
  120. + };
  121. + };
  122. +
  123. + gpio-keys {
  124. + compatible = "gpio-keys";
  125. + #address-cells = <1>;
  126. + #size-cells = <0>;
  127. +
  128. + rfkill {
  129. + label = "WiFi";
  130. + linux,code = <KEY_RFKILL>;
  131. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  132. + };
  133. +
  134. + wps {
  135. + label = "WPS";
  136. + linux,code = <KEY_WPS_BUTTON>;
  137. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  138. + };
  139. +
  140. + restart {
  141. + label = "Reset";
  142. + linux,code = <KEY_RESTART>;
  143. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  144. + };
  145. + };
  146. +};