qcom-ipq8064-c2600.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #include "qcom-ipq8064-ad7200-c2600.dtsi"
  2. / {
  3. model = "TP-Link Archer C2600";
  4. compatible = "tplink,c2600", "qcom,ipq8064";
  5. aliases {
  6. led-boot = &power;
  7. led-failsafe = &general;
  8. led-running = &power;
  9. led-upgrade = &general;
  10. };
  11. keys {
  12. compatible = "gpio-keys";
  13. pinctrl-0 = <&button_pins>;
  14. pinctrl-names = "default";
  15. wifi {
  16. label = "wifi";
  17. gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RFKILL>;
  19. debounce-interval = <60>;
  20. wakeup-source;
  21. };
  22. reset {
  23. label = "reset";
  24. gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RESTART>;
  26. debounce-interval = <60>;
  27. wakeup-source;
  28. };
  29. wps {
  30. label = "wps";
  31. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  32. linux,code = <KEY_WPS_BUTTON>;
  33. debounce-interval = <60>;
  34. wakeup-source;
  35. };
  36. ledswitch {
  37. label = "ledswitch";
  38. gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_LIGHTS_TOGGLE>;
  40. debounce-interval = <60>;
  41. wakeup-source;
  42. };
  43. };
  44. leds {
  45. compatible = "gpio-leds";
  46. pinctrl-0 = <&led_pins>;
  47. pinctrl-names = "default";
  48. lan {
  49. label = "white:lan";
  50. gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
  51. };
  52. usb4 {
  53. label = "white:usb_4";
  54. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  55. };
  56. usb2 {
  57. label = "white:usb_2";
  58. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  59. };
  60. wps {
  61. label = "white:wps";
  62. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  63. };
  64. wan_amber {
  65. label = "amber:wan";
  66. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
  67. };
  68. wan_white {
  69. label = "white:wan";
  70. gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
  71. };
  72. power: power {
  73. label = "white:power";
  74. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  75. default-state = "keep";
  76. };
  77. general: general {
  78. label = "white:general";
  79. gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
  80. };
  81. };
  82. };
  83. &qcom_pinmux {
  84. button_pins: button_pins {
  85. mux {
  86. pins = "gpio16", "gpio54", "gpio65";
  87. function = "gpio";
  88. drive-strength = <2>;
  89. bias-pull-up;
  90. };
  91. };
  92. led_pins: led_pins {
  93. mux {
  94. pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
  95. "gpio53", "gpio66";
  96. function = "gpio";
  97. drive-strength = <2>;
  98. bias-pull-up;
  99. };
  100. };
  101. };