2
0

qcom-ipq8064-ad7200.dts 2.4 KB

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