bmips: dts: align LEDs
[openwrt/staging/dedeckeh.git] / target / linux / bmips / dts / bcm63168-comtrend-vr-3032u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm63268.dtsi"
4
5 / {
6 model = "Comtrend VR-3032u";
7 compatible = "comtrend,vr-3032u", "brcm,bcm63168", "brcm,bcm63268";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14
15 led-dsl = &led_dsl_green;
16 led-internet = &led_internet_green;
17 led-usb = &led_usb_green;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 debounce-interval = <60>;
29 };
30
31 wps {
32 label = "wps";
33 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
35 debounce-interval = <60>;
36 };
37 };
38 };
39
40 &ehci {
41 status = "okay";
42 };
43
44 &ethernet {
45 status = "okay";
46
47 mtd-mac-address = <&cferom 0x6a0>;
48 };
49
50 &leds {
51 status = "okay";
52
53 brcm,serial-leds;
54 brcm,serial-dat-low;
55 brcm,serial-shift-inv;
56
57 pinctrl-names = "default";
58 pinctrl-0 = <&pinctrl_serial_led>;
59
60 led@0 {
61 /* GPHY0 Spd 0 */
62 reg = <0>;
63 brcm,hardware-controlled;
64 brcm,link-signal-sources = <0>;
65 };
66
67 led@1 {
68 /* GPHY0 Spd 1 */
69 reg = <1>;
70 brcm,hardware-controlled;
71 brcm,link-signal-sources = <1>;
72 };
73
74 led@2 {
75 reg = <2>;
76 active-low;
77 label = "red:internet";
78 };
79
80 led_dsl_green: led@3 {
81 reg = <3>;
82 active-low;
83 label = "green:dsl";
84 };
85
86 led_usb_green: led@4 {
87 reg = <4>;
88 active-low;
89 label = "green:usb";
90 };
91
92 led@7 {
93 reg = <7>;
94 active-low;
95 label = "green:wps";
96 };
97
98 led_internet_green: led@8 {
99 reg = <8>;
100 active-low;
101 label = "green:internet";
102 };
103
104 led@9 {
105 /* EPHY0 Act */
106 reg = <9>;
107 brcm,hardware-controlled;
108 };
109
110 led@10 {
111 /* EPHY1 Act */
112 reg = <10>;
113 brcm,hardware-controlled;
114 };
115
116 led@11 {
117 /* EPHY2 Act */
118 reg = <11>;
119 brcm,hardware-controlled;
120 };
121
122 led@12 {
123 /* GPHY0 Act */
124 reg = <12>;
125 brcm,hardware-controlled;
126 };
127
128 led@13 {
129 /* EPHY0 Spd */
130 reg = <13>;
131 brcm,hardware-controlled;
132 };
133
134 led@14 {
135 /* EPHY1 Spd */
136 reg = <14>;
137 brcm,hardware-controlled;
138 };
139
140 led@15 {
141 /* EPHY2 Spd */
142 reg = <15>;
143 brcm,hardware-controlled;
144 };
145
146 led_power_green: led@20 {
147 reg = <20>;
148 active-low;
149 label = "green:power";
150 };
151 };
152
153 &nflash {
154 status = "okay";
155
156 nandcs@0 {
157 compatible = "brcm,nandcs";
158 reg = <0>;
159 nand-ecc-step-size = <512>;
160 nand-ecc-strength = <15>;
161 nand-on-flash-bbt;
162 brcm,nand-oob-sector-size = <64>;
163
164 partitions {
165 compatible = "fixed-partitions";
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 cferom: partition@0 {
170 label = "cferom";
171 reg = <0x0000000 0x0020000>;
172 read-only;
173 };
174
175 partition@20000 {
176 compatible = "brcm,wfi-split";
177 label = "wfi";
178 reg = <0x0020000 0x7ac0000>;
179 };
180 };
181 };
182 };
183
184 &ohci {
185 status = "okay";
186 };
187
188 &switch0 {
189 ports {
190 port@0 {
191 reg = <0>;
192 label = "lan2";
193
194 phy-handle = <&phy1>;
195 };
196
197 port@1 {
198 reg = <1>;
199 label = "lan3";
200
201 phy-handle = <&phy2>;
202 };
203
204 port@2 {
205 reg = <2>;
206 label = "lan4";
207
208 phy-handle = <&phy3>;
209 };
210
211 port@3 {
212 reg = <3>;
213 label = "lan1";
214
215 phy-handle = <&phy4>;
216 };
217 };
218 };
219
220 &uart0 {
221 status = "okay";
222 };
223
224 &usbh {
225 status = "okay";
226 };