bmips: dts: remove unneeded cferom alias
[openwrt/openwrt.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 label = "green:power";
111 default-state = "on";
112 };
113
114 led@10 {
115 reg = <10>;
116 active-low;
117 label = "green:adsl";
118 };
119
120 led@11 {
121 reg = <11>;
122 active-low;
123 label = "red:adsl";
124 };
125
126 led@12 {
127 reg = <12>;
128 active-low;
129 label = "green:phone";
130 };
131
132 led@13 {
133 reg = <13>;
134 active-low;
135 label = "green:wps";
136 };
137
138 led@14 {
139 reg = <14>;
140 active-low;
141 label = "green:wifi";
142 };
143
144 led@15 {
145 reg = <15>;
146 active-low;
147 label = "green:usb";
148 };
149
150 led@17 {
151 /* EPHY0 Spd */
152 reg = <17>;
153 brcm,hardware-controlled;
154 };
155 };
156
157 &ohci {
158 status = "okay";
159 };
160
161 &pcie {
162 status = "okay";
163 };
164
165 &pinctrl {
166 pinctrl_leds: leds {
167 function = "led";
168 pins = "gpio0", "gpio1";
169 };
170 };
171
172 &nflash {
173 status = "okay";
174
175 nandcs@0 {
176 compatible = "brcm,nandcs";
177 reg = <0>;
178 nand-ecc-step-size = <512>;
179 nand-ecc-strength = <15>;
180 nand-on-flash-bbt;
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 compatible = "mac-base";
202 reg = <0x6a0 0x6>;
203 #nvmem-cell-cells = <1>;
204 };
205 };
206 };
207
208 partition@20000 {
209 label = "mmap";
210 reg = <0x0020000 0x00a0000>;
211 read-only;
212 };
213
214 partition@c0000 {
215 label = "cferam1";
216 reg = <0x00c0000 0x0140000>;
217 read-only;
218 };
219
220 partition@200000 {
221 label = "cferam2";
222 reg = <0x0200000 0x0140000>;
223 read-only;
224 };
225
226 partition@340000 {
227 label = "serial";
228 reg = <0x0340000 0x00a0000>;
229 read-only;
230 };
231
232 partition@3e0000 {
233 label = "protect";
234 reg = <0x03e0000 0x0140000>;
235 read-only;
236 };
237
238 partition@6920000 {
239 label = "bootflag1";
240 reg = <0x6920000 0x0140000>;
241 read-only;
242 };
243
244 partition@6a60000 {
245 label = "bootflag2";
246 reg = <0x6a60000 0x0140000>;
247 read-only;
248 };
249
250 partition@520000 {
251 compatible = "sercomm,wfi";
252 label = "wfi";
253 reg = <0x0520000 0x6400000>;
254 };
255
256 partition@6ba0000 {
257 label = "xml_cfg";
258 reg = <0x6ba0000 0x0280000>;
259 read-only;
260 };
261
262 partition@6e20000 {
263 label = "app_dat";
264 reg = <0x6e20000 0x0280000>;
265 read-only;
266 };
267 };
268 };
269 };
270
271 &switch0 {
272 ports {
273 port@0 {
274 reg = <0>;
275 label = "fibre";
276
277 phy-handle = <&phy1>;
278 phy-mode = "mii";
279 };
280
281 port@1 {
282 reg = <1>;
283 label = "lan3";
284
285 phy-handle = <&phy2>;
286 phy-mode = "mii";
287 };
288
289 port@2 {
290 reg = <2>;
291 label = "lan2";
292
293 phy-handle = <&phy3>;
294 phy-mode = "mii";
295 };
296
297 port@3 {
298 reg = <3>;
299 label = "lan1";
300
301 phy-handle = <&phy4>;
302 phy-mode = "mii";
303 };
304 };
305 };
306
307 &uart0 {
308 status = "okay";
309 };
310
311 &usbh {
312 status = "okay";
313 };