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