qcom-ipq8064-ad7200.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/leds/common.h>
  3. #include "qcom-ipq8064-ad7200-c2600.dtsi"
  4. / {
  5. model = "TP-Link Talon AD7200";
  6. compatible = "tplink,ad7200", "qcom,ipq8064";
  7. aliases {
  8. led-boot = &led_status;
  9. led-failsafe = &led_status;
  10. led-running = &led_status;
  11. led-upgrade = &led_status;
  12. };
  13. keys {
  14. compatible = "gpio-keys";
  15. pinctrl-0 = <&button_pins>;
  16. pinctrl-names = "default";
  17. wifi {
  18. label = "wifi";
  19. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RFKILL>;
  21. debounce-interval = <60>;
  22. wakeup-source;
  23. };
  24. reset {
  25. label = "reset";
  26. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. debounce-interval = <60>;
  29. wakeup-source;
  30. };
  31. wps {
  32. label = "wps";
  33. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_WPS_BUTTON>;
  35. debounce-interval = <60>;
  36. wakeup-source;
  37. };
  38. led_enable {
  39. label = "led-enable";
  40. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_LIGHTS_TOGGLE>;
  42. debounce-interval = <60>;
  43. wakeup-source;
  44. };
  45. };
  46. leds {
  47. compatible = "gpio-leds";
  48. pinctrl-0 = <&led_pins>;
  49. pinctrl-names = "default";
  50. lan {
  51. function = LED_FUNCTION_LAN;
  52. color = <LED_COLOR_ID_BLUE>;
  53. gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
  54. };
  55. usb1 {
  56. label = "blue:usb1";
  57. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  58. };
  59. wlan5g {
  60. label = "blue:wlan5g";
  61. gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
  62. };
  63. usb3 {
  64. label = "blue:usb3";
  65. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  66. };
  67. wlan2g {
  68. label = "blue:wlan2g";
  69. gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
  70. };
  71. wan_orange {
  72. function = LED_FUNCTION_WAN;
  73. color = <LED_COLOR_ID_ORANGE>;
  74. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  75. };
  76. wan_blue {
  77. function = LED_FUNCTION_WAN;
  78. color = <LED_COLOR_ID_BLUE>;
  79. gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
  80. };
  81. wps {
  82. function = LED_FUNCTION_WPS;
  83. color = <LED_COLOR_ID_BLUE>;
  84. gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
  85. };
  86. wlan60g {
  87. label = "blue:wlan60g";
  88. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  89. };
  90. led_status: status {
  91. function = LED_FUNCTION_STATUS;
  92. color = <LED_COLOR_ID_BLUE>;
  93. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  94. };
  95. };
  96. };
  97. &qcom_pinmux {
  98. button_pins: button_pins {
  99. mux {
  100. pins = "gpio53", "gpio54", "gpio67";
  101. function = "gpio";
  102. drive-strength = <2>;
  103. bias-pull-up;
  104. };
  105. };
  106. led_pins: led_pins {
  107. mux {
  108. pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
  109. "gpio33", "gpio55", "gpio56", "gpio66";
  110. function = "gpio";
  111. drive-strength = <2>;
  112. bias-pull-up;
  113. };
  114. };
  115. };
  116. &mdio0 {
  117. switch@10 {
  118. ports {
  119. port@1 {
  120. label = "wan";
  121. };
  122. port@2 {
  123. label = "lan1";
  124. };
  125. port@3 {
  126. label = "lan2";
  127. };
  128. port@4 {
  129. label = "lan3";
  130. };
  131. port@5 {
  132. label = "lan4";
  133. };
  134. };
  135. };
  136. };
  137. &pcie2 {
  138. status = "okay";
  139. max-link-speed = <1>;
  140. };