ramips: mt7621: convert GPIO dts refs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_r6800.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "mt7621_netgear_sercomm_bzv.dtsi"
5
6 / {
7 compatible = "netgear,r6800", "mediatek,mt7621-soc";
8 model = "Netgear R6800";
9
10 aliases {
11 led-boot = &led_power_white;
12 led-failsafe = &led_power_orange;
13 led-running = &led_power_white;
14 led-upgrade = &led_power_orange;
15 label-mac-device = &ethernet;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power_orange: power_orange {
22 gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>;
23 label = "r6800:orange:power";
24 };
25
26 led_power_white: power_white {
27 gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>;
28 label = "r6800:white:power";
29 };
30
31 wan_orange {
32 gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>;
33 label = "r6800:orange:wan";
34 };
35
36 wan_white {
37 gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>;
38 label = "r6800:white:wan";
39 };
40
41 wlan2g {
42 gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>;
43 label = "r6800:white:wlan2g";
44 linux,default-trigger = "phy0radio";
45 };
46
47 wlan5g {
48 gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>;
49 label = "r6800:white:wlan5g";
50 linux,default-trigger = "phy1radio";
51 };
52
53 usb2 {
54 gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>;
55 label = "r6800:white:usb2";
56 linux,default-trigger = "usbport";
57 trigger-sources = <&ehci_port2>;
58 };
59
60 usb3 {
61 gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>;
62 label = "r6800:white:usb3";
63 linux,default-trigger = "usbport";
64 trigger-sources = <&xhci_ehci_port1>;
65 };
66
67 lan1_orange {
68 gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>;
69 label = "r6800:orange:lan1";
70 };
71
72 lan1_white {
73 gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>;
74 label = "r6800:white:lan1";
75 };
76
77 lan2_orange {
78 gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>;
79 label = "r6800:orange:lan2";
80 };
81
82 lan2_white {
83 gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>;
84 label = "r6800:white:lan2";
85 };
86
87 lan3_orange {
88 gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>;
89 label = "r6800:orange:lan3";
90 };
91
92 lan3_white {
93 gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>;
94 label = "r6800:white:lan3";
95 };
96
97 lan4_orange {
98 gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>;
99 label = "r6800:orange:lan4";
100 };
101
102 lan4_white {
103 gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>;
104 label = "r6800:white:lan4";
105 };
106
107 wps {
108 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
109 label = "r6800:white:wps";
110 };
111
112 wlan {
113 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
114 label = "r6800:white:wlan";
115 };
116 };
117 };
118
119 &state_default {
120 gpio {
121 ralink,group = "uart3", "uart2", "jtag", "wdt";
122 ralink,function = "gpio";
123 };
124 };