1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "ar9341_tplink_tl-wa.dtsi"
8 model = "TP-Link TL-WA860RE v1";
9 compatible = "tplink,tl-wa860re-v1", "qca,ar9341";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_orange;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_orange;
19 compatible = "gpio-keys";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
44 compatible = "gpio-leds";
47 function = LED_FUNCTION_LAN;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
52 led_power_green: power_green {
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 led_power_orange: power_orange {
60 function = LED_FUNCTION_POWER;
61 color = <LED_COLOR_ID_ORANGE>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
66 function = LED_FUNCTION_WLAN;
67 color = <LED_COLOR_ID_GREEN>;
68 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
69 linux,default-trigger = "phy0tpt";
73 function = LED_FUNCTION_WLAN;
74 color = <LED_COLOR_ID_ORANGE>;
75 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;