bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/robimarko.git] / target / linux / bmips / dts / bcm6328-sercomm-ad1018.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6328.dtsi"
4
5 / {
6 model = "Sercomm AD1018";
7 compatible = "sercomm,ad1018", "brcm,bcm6328";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_green;
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 wps {
21 label = "wps";
22 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 debounce-interval = <60>;
25 };
26
27 wlan {
28 label = "wlan";
29 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WLAN>;
31 debounce-interval = <60>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 debounce-interval = <60>;
39 };
40 };
41
42 bcm432217-sprom {
43 compatible = "brcm,bcma-sprom";
44
45 pci-bus = <1>;
46 pci-dev = <0>;
47
48 nvmem-cells = <&macaddr_cferom_6a0 1>;
49 nvmem-cell-names = "mac-address";
50
51 brcm,sprom = "brcm/bcm43217-sprom.bin";
52 brcm,sprom-fixups = <6 0x1c00>,
53 <65 0x1256>,
54 <96 0x2046>,
55 <97 0xfe69>,
56 <98 0x1726>,
57 <99 0xfa5c>,
58 <112 0x2046>,
59 <113 0xfea8>,
60 <114 0x1978>,
61 <115 0xfa26>,
62 <161 0x2222>,
63 <169 0x2222>,
64 <171 0x2222>,
65 <173 0x2222>,
66 <174 0x4444>,
67 <175 0x2222>,
68 <176 0x4444>;
69 };
70 };
71
72 &ehci {
73 status = "okay";
74 };
75
76 &ethernet {
77 status = "okay";
78
79 nvmem-cells = <&macaddr_cferom_6a0 0>;
80 nvmem-cell-names = "mac-address";
81 };
82
83 &leds {
84 status = "okay";
85
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
88 &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
89 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
90
91 brcm,serial-leds;
92 brcm,serial-shift-inv;
93 brcm,serial-dat-low;
94
95 led@0 {
96 reg = <0>;
97 active-low;
98 label = "red:internet";
99 };
100
101 led@1 {
102 reg = <1>;
103 active-low;
104 label = "green:internet";
105 };
106
107 led_power_green: led@8 {
108 reg = <8>;
109 active-low;
110 function = LED_FUNCTION_POWER;
111 color = <LED_COLOR_ID_GREEN>;
112 default-state = "on";
113 };
114
115 led@10 {
116 reg = <10>;
117 active-low;
118 label = "green:adsl";
119 };
120
121 led@11 {
122 reg = <11>;
123 active-low;
124 label = "red:adsl";
125 };
126
127 led@12 {
128 reg = <12>;
129 active-low;
130 label = "green:phone";
131 };
132
133 led@13 {
134 reg = <13>;
135 active-low;
136 function = LED_FUNCTION_WPS;
137 color = <LED_COLOR_ID_GREEN>;
138 };
139
140 led@14 {
141 reg = <14>;
142 active-low;
143 label = "green:wifi";
144 };
145
146 led@15 {
147 reg = <15>;
148 active-low;
149 function = LED_FUNCTION_USB;
150 color = <LED_COLOR_ID_GREEN>;
151 };
152
153 led@17 {
154 /* EPHY0 Spd */
155 reg = <17>;
156 brcm,hardware-controlled;
157 };
158 };
159
160 &ohci {
161 status = "okay";
162 };
163
164 &pcie {
165 status = "okay";
166 };
167
168 &pinctrl {
169 pinctrl_leds: leds {
170 function = "led";
171 pins = "gpio0", "gpio1";
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
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 partitions {
189 compatible = "fixed-partitions";
190 #address-cells = <1>;
191 #size-cells = <1>;
192
193 partition@0 {
194 label = "cferom";
195 reg = <0x0000000 0x0020000>;
196 read-only;
197
198 nvmem-layout {
199 compatible = "fixed-layout";
200 #address-cells = <1>;
201 #size-cells = <1>;
202
203 macaddr_cferom_6a0: macaddr@6a0 {
204 compatible = "mac-base";
205 reg = <0x6a0 0x6>;
206 #nvmem-cell-cells = <1>;
207 };
208 };
209 };
210
211 partition@20000 {
212 label = "mmap";
213 reg = <0x0020000 0x00a0000>;
214 read-only;
215 };
216
217 partition@c0000 {
218 label = "cferam1";
219 reg = <0x00c0000 0x0140000>;
220 read-only;
221 };
222
223 partition@200000 {
224 label = "cferam2";
225 reg = <0x0200000 0x0140000>;
226 read-only;
227 };
228
229 partition@340000 {
230 label = "serial";
231 reg = <0x0340000 0x00a0000>;
232 read-only;
233 };
234
235 partition@3e0000 {
236 label = "protect";
237 reg = <0x03e0000 0x0140000>;
238 read-only;
239 };
240
241 partition@6920000 {
242 label = "bootflag1";
243 reg = <0x6920000 0x0140000>;
244 read-only;
245 };
246
247 partition@6a60000 {
248 label = "bootflag2";
249 reg = <0x6a60000 0x0140000>;
250 read-only;
251 };
252
253 partition@520000 {
254 compatible = "sercomm,wfi";
255 label = "wfi";
256 reg = <0x0520000 0x6400000>;
257 };
258
259 partition@6ba0000 {
260 label = "xml_cfg";
261 reg = <0x6ba0000 0x0280000>;
262 read-only;
263 };
264
265 partition@6e20000 {
266 label = "app_dat";
267 reg = <0x6e20000 0x0280000>;
268 read-only;
269 };
270 };
271 };
272 };
273
274 &switch0 {
275 ports {
276 port@0 {
277 reg = <0>;
278 label = "fibre";
279
280 phy-handle = <&phy1>;
281 phy-mode = "mii";
282 };
283
284 port@1 {
285 reg = <1>;
286 label = "lan3";
287
288 phy-handle = <&phy2>;
289 phy-mode = "mii";
290 };
291
292 port@2 {
293 reg = <2>;
294 label = "lan2";
295
296 phy-handle = <&phy3>;
297 phy-mode = "mii";
298 };
299
300 port@3 {
301 reg = <3>;
302 label = "lan1";
303
304 phy-handle = <&phy4>;
305 phy-mode = "mii";
306 };
307 };
308 };
309
310 &uart0 {
311 status = "okay";
312 };
313
314 &usbh {
315 status = "okay";
316 };