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