047-0016-ARM-dts-BCM5301X-Add-support-for-TP-LINK-Archer-C5-V.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. From d6661da842bbeec2082b7263c9e682792e7951a9 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Tue, 14 Mar 2017 11:39:41 +0100
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add support for TP-LINK Archer C5 V2
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This is BCM47081A0 based home router with BCM43217 and BCM4352 wireless
  9. 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/bcm47081-tplink-archer-c5-v2.dts | 98 ++++++++++++++++++++++
  15. 2 files changed, 99 insertions(+)
  16. create mode 100644 arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
  17. --- a/arch/arm/boot/dts/Makefile
  18. +++ b/arch/arm/boot/dts/Makefile
  19. @@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  20. bcm47081-buffalo-wzr-900dhp.dtb \
  21. bcm47081-luxul-xap-1410.dtb \
  22. bcm47081-luxul-xwr-1200.dtb \
  23. + bcm47081-tplink-archer-c5-v2.dtb \
  24. bcm4709-asus-rt-ac87u.dtb \
  25. bcm4709-buffalo-wxr-1900dhp.dtb \
  26. bcm4709-linksys-ea9200.dtb \
  27. --- /dev/null
  28. +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
  29. @@ -0,0 +1,98 @@
  30. +/*
  31. + * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
  32. + *
  33. + * Licensed under the ISC license.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm47081.dtsi"
  39. +
  40. +/ {
  41. + compatible = "tplink,archer-c5-v2", "brcm,bcm47081", "brcm,bcm4708";
  42. + model = "TP-LINK Archer C5 V2";
  43. +
  44. + chosen {
  45. + bootargs = "earlycon";
  46. + };
  47. +
  48. + memory {
  49. + reg = <0x00000000 0x08000000>;
  50. + };
  51. +
  52. + leds {
  53. + compatible = "gpio-leds";
  54. +
  55. + 2ghz {
  56. + label = "bcm53xx:green:2ghz";
  57. + gpios = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  58. + };
  59. +
  60. + lan {
  61. + label = "bcm53xx:green:lan";
  62. + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
  63. + };
  64. +
  65. + usb2-port1 {
  66. + label = "bcm53xx:green:usb2-port1";
  67. + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
  68. + };
  69. +
  70. + power {
  71. + label = "bcm53xx:green:power";
  72. + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  73. + linux,default-trigger = "default-on";
  74. + };
  75. +
  76. + wan-green {
  77. + label = "bcm53xx:green:wan";
  78. + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  79. + };
  80. +
  81. + wps {
  82. + label = "bcm53xx:green:wps";
  83. + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  84. + };
  85. +
  86. + wan-amber {
  87. + label = "bcm53xx:amber:wan";
  88. + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  89. + };
  90. +
  91. + 5ghz {
  92. + label = "bcm53xx:green:5ghz";
  93. + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  94. + };
  95. +
  96. + usb2-port2 {
  97. + label = "bcm53xx:green:usb2-port2";
  98. + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  99. + };
  100. + };
  101. +
  102. + gpio-keys {
  103. + compatible = "gpio-keys";
  104. + #address-cells = <1>;
  105. + #size-cells = <0>;
  106. +
  107. + rfkill {
  108. + label = "WiFi";
  109. + linux,code = <KEY_RFKILL>;
  110. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  111. + };
  112. +
  113. + restart {
  114. + label = "Reset";
  115. + linux,code = <KEY_RESTART>;
  116. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  117. + };
  118. + };
  119. +};
  120. +
  121. +&spi_nor {
  122. + status = "okay";
  123. +};
  124. +
  125. +&usb2 {
  126. + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  127. +};