qcom-ipq8064-ad7200.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. };
  21. reset {
  22. label = "reset";
  23. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_RESTART>;
  25. };
  26. wps {
  27. label = "wps";
  28. gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
  29. linux,code = <KEY_WPS_BUTTON>;
  30. };
  31. led_enable {
  32. label = "led-enable";
  33. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_LIGHTS_TOGGLE>;
  35. };
  36. };
  37. leds {
  38. compatible = "gpio-leds";
  39. pinctrl-0 = <&led_pins>;
  40. pinctrl-names = "default";
  41. lan {
  42. label = "blue:lan";
  43. gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
  44. };
  45. usb1 {
  46. label = "blue:usb1";
  47. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  48. };
  49. wlan5g {
  50. label = "blue:wlan5g";
  51. gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
  52. };
  53. usb3 {
  54. label = "blue:usb3";
  55. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
  56. };
  57. wlan2g {
  58. label = "blue:wlan2g";
  59. gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
  60. };
  61. wan_orange {
  62. label = "orange:wan";
  63. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  64. };
  65. wan_blue {
  66. label = "blue:wan";
  67. gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
  68. };
  69. wps {
  70. label = "blue:wps";
  71. gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
  72. };
  73. wlan60g {
  74. label = "blue:wlan60g";
  75. gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
  76. };
  77. led_status: status {
  78. label = "blue:status";
  79. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  80. };
  81. };
  82. };
  83. &qcom_pinmux {
  84. button_pins: button_pins {
  85. mux {
  86. pins = "gpio53", "gpio54", "gpio67";
  87. function = "gpio";
  88. drive-strength = <2>;
  89. bias-pull-up;
  90. };
  91. };
  92. led_pins: led_pins {
  93. mux {
  94. pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
  95. "gpio33", "gpio55", "gpio56", "gpio66";
  96. function = "gpio";
  97. drive-strength = <2>;
  98. bias-pull-up;
  99. };
  100. };
  101. };
  102. &pcie2 {
  103. status = "okay";
  104. max-link-speed = <1>;
  105. };