3c79d38bfbdd0971d916f9ff1befe76a10dceeb7
[openwrt/staging/stintel.git] / target / linux / bmips / dts / bcm63168-sercomm-shg2500.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm63268.dtsi"
4
5 / {
6 model = "Sercomm SHG2500";
7 compatible = "sercomm,shg2500", "brcm,bcm63168", "brcm,bcm63268";
8
9 aliases {
10 led-boot = &led_power_red;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_red;
13 led-upgrade = &led_power_red;
14 };
15
16 i2c {
17 compatible = "i2c-gpio";
18 sda-gpios = <&gpio 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
19 scl-gpios = <&gpio 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
20 #address-cells = <1>;
21 #size-cells = <0>;
22 };
23
24 keys {
25 compatible = "gpio-keys-polled";
26 poll-interval = <100>;
27
28 wps {
29 label = "wps";
30 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
32 debounce-interval = <60>;
33 };
34
35 reset {
36 label = "reset";
37 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 debounce-interval = <60>;
40 };
41 };
42
43 bcm4360-sprom {
44 compatible = "brcm,bcma-sprom";
45
46 pci-bus = <1>;
47 pci-dev = <0>;
48
49 nvmem-cells = <&macaddr_cferom_6a0 1>;
50 nvmem-cell-names = "mac-address";
51
52 brcm,sprom = "brcm/bcm4360-sprom.bin";
53 };
54 };
55
56 &ehci {
57 status = "okay";
58 };
59
60 &ethernet {
61 status = "okay";
62
63 nvmem-cells = <&macaddr_cferom_6a0 0>;
64 nvmem-cell-names = "mac-address";
65 };
66
67 &hsspi {
68 status = "okay";
69
70 led-controller@1 {
71 compatible = "sercomm,msp430-leds";
72 reg = <1>;
73 spi-max-frequency = <500000>;
74
75 led@1 {
76 reg = <1>;
77 label = "red:modem";
78 };
79
80 led@2 {
81 reg = <2>;
82 label = "green:modem";
83 };
84
85 led@3 {
86 reg = <3>;
87 label = "blue:modem";
88 };
89
90 led@4 {
91 reg = <4>;
92 label = "red:internet";
93 };
94
95 led@5 {
96 reg = <5>;
97 label = "red:phone";
98 };
99
100 led@6 {
101 reg = <6>;
102 label = "green:phone";
103 };
104
105 led@7 {
106 reg = <7>;
107 label = "green:wifi";
108 };
109
110 led_power_red: led@8 {
111 reg = <8>;
112 label = "red:power";
113 };
114
115 led@9 {
116 reg = <9>;
117 label = "green:internet";
118 };
119 };
120 };
121
122 &mdio_int {
123 phy12: ethernet-phy@c {
124 compatible = "ethernet-phy-ieee802.3-c22";
125 reg = <12>;
126 };
127 };
128
129 &mdio_ext {
130 switch@1e {
131 compatible = "brcm,bcm53125";
132 reg = <30>;
133
134 dsa,member = <1 0>;
135
136 ports {
137 #address-cells = <1>;
138 #size-cells = <0>;
139
140 port@1 {
141 reg = <1>;
142 label = "lan1";
143 };
144
145 port@2 {
146 reg = <2>;
147 label = "lan2";
148 };
149
150 port@3 {
151 reg = <3>;
152 label = "lan3";
153 };
154
155 port@4 {
156 reg = <4>;
157 label = "lan4";
158 };
159
160 port@8 {
161 reg = <8>;
162
163 phy-mode = "rgmii";
164 ethernet = <&switch0port4>;
165
166 fixed-link {
167 speed = <1000>;
168 full-duplex;
169 };
170 };
171 };
172 };
173 };
174
175 &nflash {
176 status = "okay";
177
178 nandcs@0 {
179 compatible = "brcm,nandcs";
180 reg = <0>;
181 nand-ecc-step-size = <512>;
182 nand-ecc-strength = <15>;
183 nand-on-flash-bbt;
184 brcm,nand-oob-sector-size = <64>;
185
186 #address-cells = <1>;
187 #size-cells = <1>;
188
189 partitions {
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
192 #size-cells = <1>;
193
194 partition@0 {
195 label = "cferom";
196 reg = <0x0000000 0x0020000>;
197 read-only;
198
199 nvmem-layout {
200 compatible = "fixed-layout";
201 #address-cells = <1>;
202 #size-cells = <1>;
203
204 macaddr_cferom_6a0: macaddr@6a0 {
205 compatible = "mac-base";
206 reg = <0x6a0 0x6>;
207 #nvmem-cell-cells = <1>;
208 };
209 };
210 };
211
212 partition@20000 {
213 label = "part_map";
214 reg = <0x0020000 0x00a0000>;
215 read-only;
216 };
217
218 partition@c0000 {
219 label = "cferam1";
220 reg = <0x00c0000 0x0140000>;
221 read-only;
222 };
223
224 partition@200000 {
225 label = "cferam2";
226 reg = <0x0200000 0x0140000>;
227 read-only;
228 };
229
230 artition@6920000 {
231 label = "bootflag1";
232 reg = <0x6920000 0x0140000>;
233 };
234
235 partition@6a60000 {
236 label = "bootflag2";
237 reg = <0x6a60000 0x0140000>;
238 };
239
240 partition@520000 {
241 compatible = "sercomm,wfi";
242 label = "wfi";
243 reg = <0x0520000 0x6400000>;
244 };
245
246 partition@6ba0000 {
247 label = "xml_cfg";
248 reg = <0x6ba0000 0x0280000>;
249 read-only;
250 };
251
252 partition@6e20000 {
253 label = "app_data";
254 reg = <0x6e20000 0x0280000>;
255 read-only;
256 };
257 };
258 };
259 };
260
261 &ohci {
262 status = "okay";
263 };
264
265 &pcie {
266 status = "okay";
267 };
268
269 &pinctrl {
270 pinctrl_uart1: uart1-pins {
271 pinctrl_uart1_sdin: uart1_sdin {
272 function = "uart1_sdin";
273 pins = "gpio12";
274 };
275
276 pinctrl_uart1_sdout: uart1_sdout {
277 function = "uart1_sdout";
278 pins = "gpio13";
279 };
280 };
281 };
282
283 &switch0 {
284 dsa,member = <0 0>;
285
286 ports {
287 port@3 {
288 reg = <3>;
289 label = "wan";
290
291 phy-handle = <&phy12>;
292 phy-mode = "gmii";
293 };
294
295 switch0port4: port@4 {
296 reg = <4>;
297 label = "extsw";
298
299 phy-mode = "rgmii";
300
301 fixed-link {
302 speed = <1000>;
303 full-duplex;
304 };
305 };
306 };
307 };
308
309 &uart0 {
310 status = "okay";
311 };
312
313 &uart1 {
314 status = "okay";
315
316 pinctrl-names = "default";
317 pinctrl-0 = <&pinctrl_uart1>;
318 };
319
320 &usbh {
321 status = "okay";
322 };