1 #include <dt-bindings/leds/common.h>
3 #include "qcom-ipq8064-ad7200-c2600.dtsi"
6 model = "TP-Link Archer C2600";
7 compatible = "tplink,c2600", "qcom,ipq8064";
11 led-failsafe = &general;
13 led-upgrade = &general;
17 compatible = "gpio-keys";
18 pinctrl-0 = <&button_pins>;
19 pinctrl-names = "default";
23 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RFKILL>;
25 debounce-interval = <60>;
31 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
39 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 debounce-interval = <60>;
47 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_LIGHTS_TOGGLE>;
49 debounce-interval = <60>;
55 compatible = "gpio-leds";
56 pinctrl-0 = <&led_pins>;
57 pinctrl-names = "default";
60 function = LED_FUNCTION_LAN;
61 color = <LED_COLOR_ID_WHITE>;
62 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
66 label = "white:usb_4";
67 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
71 label = "white:usb_2";
72 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
76 function = LED_FUNCTION_WPS;
77 color = <LED_COLOR_ID_WHITE>;
78 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
82 function = LED_FUNCTION_WAN;
83 color = <LED_COLOR_ID_AMBER>;
84 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
88 function = LED_FUNCTION_WAN;
89 color = <LED_COLOR_ID_WHITE>;
90 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
94 function = LED_FUNCTION_POWER;
95 color = <LED_COLOR_ID_WHITE>;
96 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
97 default-state = "keep";
101 label = "white:general";
102 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
108 button_pins: button_pins {
110 pins = "gpio16", "gpio54", "gpio65";
112 drive-strength = <2>;
119 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
122 drive-strength = <2>;