qcom-ipq8064-c2600.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #include <dt-bindings/leds/common.h>
  2. #include "qcom-ipq8064-ad7200-c2600.dtsi"
  3. / {
  4. model = "TP-Link Archer C2600";
  5. compatible = "tplink,c2600", "qcom,ipq8064";
  6. aliases {
  7. led-boot = &power;
  8. led-failsafe = &general;
  9. led-running = &power;
  10. led-upgrade = &general;
  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 49 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 64 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 65 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_WPS_BUTTON>;
  34. debounce-interval = <60>;
  35. wakeup-source;
  36. };
  37. ledswitch {
  38. label = "ledswitch";
  39. gpios = <&qcom_pinmux 16 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. function = LED_FUNCTION_LAN;
  51. color = <LED_COLOR_ID_WHITE>;
  52. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
  53. };
  54. usb4 {
  55. label = "white:usb_4";
  56. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  57. };
  58. usb2 {
  59. label = "white:usb_2";
  60. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  61. };
  62. wps {
  63. function = LED_FUNCTION_WPS;
  64. color = <LED_COLOR_ID_WHITE>;
  65. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  66. };
  67. wan_amber {
  68. function = LED_FUNCTION_WAN;
  69. color = <LED_COLOR_ID_AMBER>;
  70. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  71. };
  72. wan_white {
  73. function = LED_FUNCTION_WAN;
  74. color = <LED_COLOR_ID_WHITE>;
  75. gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
  76. };
  77. power: power {
  78. function = LED_FUNCTION_POWER;
  79. color = <LED_COLOR_ID_WHITE>;
  80. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  81. default-state = "keep";
  82. };
  83. general: general {
  84. label = "white:general";
  85. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  86. };
  87. };
  88. };
  89. &qcom_pinmux {
  90. button_pins: button_pins {
  91. mux {
  92. pins = "gpio16", "gpio54", "gpio65";
  93. function = "gpio";
  94. drive-strength = <2>;
  95. bias-pull-up;
  96. };
  97. };
  98. led_pins: led_pins {
  99. mux {
  100. pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
  101. "gpio53", "gpio66";
  102. function = "gpio";
  103. drive-strength = <2>;
  104. bias-pull-up;
  105. };
  106. };
  107. };