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