ffc2b8934516e5a8f6f4d233188ce45403eb6aca
[openwrt/openwrt.git] / target / linux / ath79 / dts / qcn5502_asus_rt-ac59u.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcn5502_asus.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 wps {
27 label = "wps";
28 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power: power {
38 label = "blue:power";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41
42 usb {
43 label = "blue:usb";
44 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
45 trigger-sources = <&hub_port0>;
46 linux,default-trigger = "usbport";
47 };
48
49 wlan2g {
50 label = "blue:wlan2g";
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54
55 wlan5g {
56 label = "blue:wlan5g";
57 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
59 };
60 };
61 };
62
63 &usb_phy0 {
64 status = "okay";
65 };
66
67 &usb0 {
68 status = "okay";
69 };