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