044-0009-ARM-BCM5301X-Add-DT-for-TP-LINK-Archer-C9-V1.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. From 41182beb217c47cfbaaf26a60f22a8b3943faa61 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Sun, 13 Nov 2016 11:12:09 +0100
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for TP-LINK Archer C9 V1
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. It's BCM4709A0 based device with 16 MiB flash, 128 MiB of RAM and two
  9. PCIe based on-PCB BCM4360 chipsets.
  10. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  11. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  12. ---
  13. arch/arm/boot/dts/Makefile | 1 +
  14. arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts | 114 ++++++++++++++++++++++
  15. 2 files changed, 115 insertions(+)
  16. create mode 100644 arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
  17. --- a/arch/arm/boot/dts/Makefile
  18. +++ b/arch/arm/boot/dts/Makefile
  19. @@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  20. bcm4709-buffalo-wxr-1900dhp.dtb \
  21. bcm4709-netgear-r7000.dtb \
  22. bcm4709-netgear-r8000.dtb \
  23. + bcm4709-tplink-archer-c9-v1.dtb \
  24. bcm47094-dlink-dir-885l.dtb \
  25. bcm47094-luxul-xwr-3100.dtb \
  26. bcm47094-netgear-r8500.dtb \
  27. --- /dev/null
  28. +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
  29. @@ -0,0 +1,114 @@
  30. +/*
  31. + * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  32. + *
  33. + * Licensed under the ISC license.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm4709.dtsi"
  39. +
  40. +/ {
  41. + compatible = "tplink,archer-c9-v1", "brcm,bcm4709", "brcm,bcm4708";
  42. + model = "TP-LINK Archer C9 V1";
  43. +
  44. + chosen {
  45. + bootargs = "console=ttyS0,115200 earlycon";
  46. + };
  47. +
  48. + memory {
  49. + reg = <0x00000000 0x08000000>;
  50. + };
  51. +
  52. + leds {
  53. + compatible = "gpio-leds";
  54. +
  55. + lan {
  56. + label = "bcm53xx:blue:lan";
  57. + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  58. + linux,default-trigger = "default-off";
  59. + };
  60. +
  61. + wps {
  62. + label = "bcm53xx:blue:wps";
  63. + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  64. + linux,default-trigger = "default-off";
  65. + };
  66. +
  67. + 2ghz {
  68. + label = "bcm53xx:blue:2ghz";
  69. + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  70. + linux,default-trigger = "default-off";
  71. + };
  72. +
  73. + 5ghz {
  74. + label = "bcm53xx:blue:5ghz";
  75. + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  76. + linux,default-trigger = "default-off";
  77. + };
  78. +
  79. + usb3 {
  80. + label = "bcm53xx:blue:usb3";
  81. + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  82. + linux,default-trigger = "default-off";
  83. + };
  84. +
  85. + usb2 {
  86. + label = "bcm53xx:blue:usb2";
  87. + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  88. + linux,default-trigger = "default-off";
  89. + };
  90. +
  91. + wan-blue {
  92. + label = "bcm53xx:blue:wan";
  93. + gpios = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
  94. + linux,default-trigger = "default-off";
  95. + };
  96. +
  97. + wan-amber {
  98. + label = "bcm53xx:amber:wan";
  99. + gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  100. + linux,default-trigger = "default-off";
  101. + };
  102. +
  103. + power {
  104. + label = "bcm53xx:blue:power";
  105. + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  106. + linux,default-trigger = "default-on";
  107. + };
  108. + };
  109. +
  110. + gpio-keys {
  111. + compatible = "gpio-keys";
  112. + #address-cells = <1>;
  113. + #size-cells = <0>;
  114. +
  115. + wps {
  116. + label = "WPS";
  117. + linux,code = <KEY_WPS_BUTTON>;
  118. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  119. + };
  120. +
  121. + restart {
  122. + label = "Reset";
  123. + linux,code = <KEY_RESTART>;
  124. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  125. + };
  126. + };
  127. +};
  128. +
  129. +&uart0 {
  130. + status = "okay";
  131. +};
  132. +
  133. +&usb2 {
  134. + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  135. +};
  136. +
  137. +&usb3 {
  138. + vcc-gpio = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  139. +};
  140. +
  141. +&spi_nor {
  142. + status = "okay";
  143. +};