1 #include "qcom-ipq8064-ad7200-c2600.dtsi"
4 model = "TP-Link Archer C2600";
5 compatible = "tplink,c2600", "qcom,ipq8064";
9 led-failsafe = &general;
11 led-upgrade = &general;
15 compatible = "gpio-keys";
16 pinctrl-0 = <&button_pins>;
17 pinctrl-names = "default";
21 gpios = <&qcom_pinmux 49 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RFKILL>;
23 debounce-interval = <60>;
29 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
37 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 debounce-interval = <60>;
45 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_LIGHTS_TOGGLE>;
47 debounce-interval = <60>;
53 compatible = "gpio-leds";
54 pinctrl-0 = <&led_pins>;
55 pinctrl-names = "default";
58 function = LED_FUNCTION_LAN;
59 color = <LED_COLOR_ID_WHITE>;
60 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
64 label = "white:usb_4";
65 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
69 label = "white:usb_2";
70 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
74 function = LED_FUNCTION_WPS;
75 color = <LED_COLOR_ID_WHITE>;
76 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
80 function = LED_FUNCTION_WAN;
81 color = <LED_COLOR_ID_AMBER>;
82 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
86 function = LED_FUNCTION_WAN;
87 color = <LED_COLOR_ID_WHITE>;
88 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
92 function = LED_FUNCTION_POWER;
93 color = <LED_COLOR_ID_WHITE>;
94 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
95 default-state = "keep";
99 label = "white:general";
100 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
106 button_pins: button_pins {
108 pins = "gpio16", "gpio54", "gpio65";
110 drive-strength = <2>;
117 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio26", "gpio33",
120 drive-strength = <2>;
124 #include <dt-bindings/leds/common.h>