1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "qcom-ipq8064-ad7200-c2600.dtsi"
8 model = "TP-Link Talon AD7200";
9 compatible = "tplink,ad7200", "qcom,ipq8064";
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
19 compatible = "gpio-keys";
20 pinctrl-0 = <&button_pins>;
21 pinctrl-names = "default";
25 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RFKILL>;
27 debounce-interval = <60>;
33 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 debounce-interval = <60>;
41 gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
43 debounce-interval = <60>;
49 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_LIGHTS_TOGGLE>;
51 debounce-interval = <60>;
57 compatible = "gpio-leds";
58 pinctrl-0 = <&led_pins>;
59 pinctrl-names = "default";
62 function = LED_FUNCTION_LAN;
63 color = <LED_COLOR_ID_BLUE>;
64 gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
69 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
73 label = "blue:wlan5g";
74 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
79 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
83 label = "blue:wlan2g";
84 gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
88 function = LED_FUNCTION_WAN;
89 color = <LED_COLOR_ID_ORANGE>;
90 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_BLUE>;
96 gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
100 function = LED_FUNCTION_WPS;
101 color = <LED_COLOR_ID_BLUE>;
102 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
106 label = "blue:wlan60g";
107 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
111 function = LED_FUNCTION_STATUS;
112 color = <LED_COLOR_ID_BLUE>;
113 gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
119 button_pins: button_pins {
121 pins = "gpio53", "gpio54", "gpio67";
123 drive-strength = <2>;
130 pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
131 "gpio33", "gpio55", "gpio56", "gpio66";
133 drive-strength = <2>;
167 max-link-speed = <1>;