375b01b67372afbd1d9be6b0b90860a46377e793
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm63169-comtrend-vg-8050.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 VG-8050";
9 compatible = "comtrend,vg-8050", "brcm,bcm63169", "brcm,bcm63268";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
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 33 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 34 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 &hsspi {
50 status = "okay";
51
52 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_hsspi_cs5>;
54
55 switch@5 {
56 compatible = "brcm,bcm53125";
57 reg = <5>;
58 spi-max-frequency = <781000>;
59 spi-cpha;
60 spi-cpol;
61 dsa,member = <1 0>;
62
63 ports {
64 #address-cells = <1>;
65 #size-cells = <0>;
66
67 port@0 {
68 reg = <0>;
69 label = "lan4";
70 };
71
72 port@1 {
73 reg = <1>;
74 label = "lan3";
75 };
76
77 port@2 {
78 reg = <2>;
79 label = "lan2";
80 };
81
82 port@3 {
83 reg = <3>;
84 label = "lan1";
85 };
86
87 port@4 {
88 reg = <4>;
89 label = "wan";
90 };
91
92 port@8 {
93 reg = <8>;
94
95 phy-mode = "rgmii";
96 ethernet = <&switch0port6>;
97
98 fixed-link {
99 speed = <1000>;
100 full-duplex;
101 };
102 };
103 };
104 };
105 };
106
107 &leds {
108 status = "okay";
109
110 brcm,serial-leds;
111 brcm,serial-dat-low;
112 brcm,serial-shift-inv;
113
114 pinctrl-names = "default";
115 pinctrl-0 = <&pinctrl_serial_led>;
116
117 led@2 {
118 reg = <2>;
119 active-low;
120 label = "red:internet";
121 };
122
123 led_power_red: led@3 {
124 reg = <3>;
125 active-low;
126 function = LED_FUNCTION_POWER;
127 color = <LED_COLOR_ID_RED>;
128 panic-indicator;
129 };
130
131 led_power_green: led@6 {
132 reg = <6>;
133 active-low;
134 function = LED_FUNCTION_POWER;
135 color = <LED_COLOR_ID_GREEN>;
136 };
137
138 led@7 {
139 reg = <7>;
140 active-low;
141 function = LED_FUNCTION_WPS;
142 color = <LED_COLOR_ID_GREEN>;
143 };
144
145 led@8 {
146 reg = <8>;
147 active-low;
148 label = "green:internet";
149 };
150
151 led@10 {
152 reg = <10>;
153 active-low;
154 label = "green:voip";
155 };
156
157 led@12 {
158 reg = <12>;
159 active-low;
160 label = "red:voip";
161 };
162
163 led@14 {
164 reg = <14>;
165 active-low;
166 function = LED_FUNCTION_WPS;
167 color = <LED_COLOR_ID_RED>;
168 };
169 };
170
171 &nflash {
172 status = "okay";
173
174 nandcs@0 {
175 compatible = "brcm,nandcs";
176 reg = <0>;
177 nand-ecc-step-size = <512>;
178 nand-ecc-strength = <15>;
179 nand-on-flash-bbt;
180 brcm,nand-oob-sector-size = <64>;
181
182 #address-cells = <1>;
183 #size-cells = <1>;
184
185 partitions {
186 compatible = "fixed-partitions";
187 #address-cells = <1>;
188 #size-cells = <1>;
189
190 partition@0 {
191 label = "cferom";
192 reg = <0x0000000 0x0020000>;
193 read-only;
194
195 nvmem-layout {
196 compatible = "fixed-layout";
197 #address-cells = <1>;
198 #size-cells = <1>;
199
200 macaddr_cferom_6a0: macaddr@6a0 {
201 reg = <0x6a0 0x6>;
202 };
203 };
204 };
205
206 partition@20000 {
207 compatible = "brcm,wfi-split";
208 label = "wfi";
209 reg = <0x0020000 0x7ac0000>;
210 };
211 };
212 };
213 };
214
215 &ohci {
216 status = "okay";
217 };
218
219 &switch0 {
220 dsa,member = <0 0>;
221
222 ports {
223 switch0port6: port@6 {
224 reg = <6>;
225 label = "extsw";
226
227 phy-mode = "rgmii";
228
229 fixed-link {
230 speed = <1000>;
231 full-duplex;
232 };
233 };
234 };
235 };
236
237 &uart0 {
238 status = "okay";
239 };
240
241 &usbh {
242 status = "okay";
243 };