059-ARM-BCM5301X-Add-DT-for-Buffalo-WXR-1900DHP.patch 3.7 KB

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