f4f86c381e6f518936b31a51995e10b052b0a026
[openwrt/staging/ldir.git] / target / linux / bmips / dts / bcm6328.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 /dts-v1/;
4
5 #include <dt-bindings/clock/bcm6328-clock.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h>
9 #include <dt-bindings/reset/bcm6328-reset.h>
10 #include <dt-bindings/soc/bcm6328-pm.h>
11
12 / {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "brcm,bcm6328";
16
17 aliases {
18 nflash = &nflash;
19 pinctrl = &pinctrl;
20 serial0 = &uart0;
21 serial1 = &uart1;
22 spi1 = &hsspi;
23 };
24
25 chosen {
26 bootargs = "console=ttyS0,115200n8 earlycon";
27 stdout-path = "serial0:115200n8";
28 };
29
30 clocks {
31 periph_osc: periph-osc {
32 compatible = "fixed-clock";
33
34 #clock-cells = <0>;
35
36 clock-frequency = <50000000>;
37 clock-output-names = "periph";
38 };
39
40 hsspi_osc: hsspi-osc {
41 compatible = "fixed-clock";
42
43 #clock-cells = <0>;
44
45 clock-frequency = <133333333>;
46 clock-output-names = "hsspi_osc";
47 };
48 };
49
50 cpus {
51 #address-cells = <1>;
52 #size-cells = <0>;
53 mips-hpt-frequency = <160000000>;
54
55 cpu@0 {
56 compatible = "brcm,bmips4350", "mips,mips4Kc";
57 device_type = "cpu";
58 reg = <0>;
59 };
60
61 cpu@1 {
62 compatible = "brcm,bmips4350", "mips,mips4Kc";
63 device_type = "cpu";
64 reg = <1>;
65 };
66 };
67
68 cpu_intc: interrupt-controller {
69 #address-cells = <0>;
70 compatible = "mti,cpu-interrupt-controller";
71
72 interrupt-controller;
73 #interrupt-cells = <1>;
74 };
75
76 memory@0 {
77 device_type = "memory";
78 reg = <0 0>;
79 };
80
81 ubus {
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 compatible = "simple-bus";
86 ranges;
87
88 periph_clk: clock-controller@10000004 {
89 compatible = "brcm,bcm6328-clocks";
90 reg = <0x10000004 0x4>;
91 #clock-cells = <1>;
92 };
93
94 periph_rst: reset-controller@10000010 {
95 compatible = "brcm,bcm6345-reset";
96 reg = <0x10000010 0x4>;
97 #reset-cells = <1>;
98 };
99
100 ext_intc: interrupt-controller@10000018 {
101 #address-cells = <1>;
102 compatible = "brcm,bcm6345-ext-intc";
103 reg = <0x10000018 0x4>;
104
105 interrupt-controller;
106 #interrupt-cells = <2>;
107
108 interrupts = <BCM6328_IRQ_EXTO>,
109 <BCM6328_IRQ_EXT1>,
110 <BCM6328_IRQ_EXT2>,
111 <BCM6328_IRQ_EXT3>;
112 };
113
114 periph_intc: interrupt-controller@10000020 {
115 #address-cells = <1>;
116 compatible = "brcm,bcm6345-l1-intc";
117 reg = <0x10000020 0x10>,
118 <0x10000030 0x10>;
119
120 interrupt-controller;
121 #interrupt-cells = <1>;
122
123 interrupt-parent = <&cpu_intc>;
124 interrupts = <2>, <3>;
125 };
126
127 wdt: watchdog@1000005c {
128 compatible = "brcm,bcm7038-wdt";
129 reg = <0x1000005c 0xc>;
130
131 clocks = <&periph_osc>;
132
133 timeout-sec = <30>;
134 };
135
136 pll_cntl: syscon@10000068 {
137 compatible = "syscon";
138 reg = <0x10000068 0x4>;
139 native-endian;
140 };
141
142 syscon-reboot {
143 compatible = "syscon-reboot";
144 regmap = <&pll_cntl>;
145 offset = <0>;
146 mask = <0x1>;
147 };
148
149 gpio: syscon@10000080 {
150 compatible = "syscon", "simple-mfd";
151 reg = <0x10000080 0x80>;
152 native-endian;
153
154 pinctrl: pin-controller {
155 compatible = "brcm,bcm6328-pinctrl";
156
157 gpio-controller;
158 #gpio-cells = <2>;
159
160 interrupts-extended = <&ext_intc 3 0>,
161 <&ext_intc 2 0>,
162 <&ext_intc 1 0>,
163 <&ext_intc 0 0>;
164 interrupt-names = "gpio12",
165 "gpio15",
166 "gpio23",
167 "gpio24";
168
169 pinctrl_serial_led: serial_led {
170 pinctrl_serial_led_data: serial_led_data {
171 function = "serial_led_data";
172 pins = "gpio6";
173 };
174
175 pinctrl_serial_led_clk: serial_led_clk {
176 function = "serial_led_clk";
177 pins = "gpio7";
178 };
179 };
180
181 pinctrl_inet_act_led: inet_act_led {
182 function = "inet_act_led";
183 pins = "gpio11";
184 };
185
186 pinctrl_pcie_clkreq: pcie_clkreq {
187 function = "pcie_clkreq";
188 pins = "gpio16";
189 };
190
191 pinctrl_ephy0_spd_led: ephy0_spd_led {
192 function = "led";
193 pins = "gpio17";
194 };
195
196 pinctrl_ephy1_spd_led: ephy1_spd_led {
197 function = "led";
198 pins = "gpio18";
199 };
200
201 pinctrl_ephy2_spd_led: ephy2_spd_led {
202 function = "led";
203 pins = "gpio19";
204 };
205
206 pinctrl_ephy3_spd_led: ephy3_spd_led {
207 function = "led";
208 pins = "gpio20";
209 };
210
211 pinctrl_ephy0_act_led: ephy0_act_led {
212 function = "ephy0_act_led";
213 pins = "gpio25";
214 };
215
216 pinctrl_ephy1_act_led: ephy1_act_led {
217 function = "ephy1_act_led";
218 pins = "gpio26";
219 };
220
221 pinctrl_ephy2_act_led: ephy2_act_led {
222 function = "ephy2_act_led";
223 pins = "gpio27";
224 };
225
226 pinctrl_ephy3_act_led: ephy3_act_led {
227 function = "ephy3_act_led";
228 pins = "gpio28";
229 };
230
231 pinctrl_hsspi_cs1: hsspi_cs1 {
232 function = "hsspi_cs1";
233 pins = "hsspi_cs1";
234 };
235
236 pinctrl_usb_port1_device: usb_port1_device {
237 function = "usb_device_port";
238 pins = "usb_port1";
239 };
240
241 pinctrl_usb_port1_host: usb_port1_host {
242 function = "usb_host_port";
243 pins = "usb_port1";
244 };
245 };
246 };
247
248 uart0: serial@10000100 {
249 compatible = "brcm,bcm6345-uart";
250 reg = <0x10000100 0x18>;
251
252 interrupt-parent = <&periph_intc>;
253 interrupts = <BCM6328_IRQ_UART0>;
254
255 clocks = <&periph_osc>;
256 clock-names = "periph";
257
258 status = "disabled";
259 };
260
261 uart1: serial@10000120 {
262 compatible = "brcm,bcm6345-uart";
263 reg = <0x10000120 0x18>;
264
265 interrupt-parent = <&periph_intc>;
266 interrupts = <BCM6328_IRQ_UART1>;
267
268 clocks = <&periph_osc>;
269 clock-names = "periph";
270
271 status = "disabled";
272 };
273
274 nflash: nand@10000200 {
275 #address-cells = <1>;
276 #size-cells = <0>;
277 compatible = "brcm,nand-bcm6368",
278 "brcm,brcmnand-v2.2",
279 "brcm,brcmnand";
280 reg = <0x10000200 0x180>,
281 <0x10000400 0x200>,
282 <0x10000070 0x10>;
283 reg-names = "nand",
284 "nand-cache",
285 "nand-int-base";
286
287 interrupt-parent = <&periph_intc>;
288 interrupts = <BCM6328_IRQ_NAND>;
289
290 status = "disabled";
291 };
292
293 leds: led-controller@10000800 {
294 #address-cells = <1>;
295 #size-cells = <0>;
296 compatible = "brcm,bcm6328-leds";
297 reg = <0x10000800 0x24>;
298
299 status = "disabled";
300 };
301
302 hsspi: spi@10001000 {
303 compatible = "brcm,bcm6328-hsspi";
304 reg = <0x10001000 0x600>;
305 #address-cells = <1>;
306 #size-cells = <0>;
307
308 interrupt-parent = <&periph_intc>;
309 interrupts = <BCM6328_IRQ_HSSPI>;
310
311 clocks = <&periph_clk BCM6328_CLK_HSSPI>,
312 <&hsspi_osc>;
313 clock-names = "hsspi",
314 "pll";
315
316 resets = <&periph_rst BCM6328_RST_SPI>;
317
318 status = "disabled";
319 };
320
321 periph_pwr: power-controller@10001848 {
322 compatible = "brcm,bcm6328-power-controller";
323 reg = <0x10001848 0x4>;
324
325 #power-domain-cells = <1>;
326 };
327
328 ehci: usb@10002500 {
329 compatible = "brcm,bcm6328-ehci", "generic-ehci";
330 reg = <0x10002500 0x100>;
331 big-endian;
332 ignore-oc;
333
334 interrupt-parent = <&periph_intc>;
335 interrupts = <BCM6328_IRQ_EHCI>;
336
337 phys = <&usbh 0>;
338 phy-names = "usb";
339
340 status = "disabled";
341 };
342
343 ohci: usb@10002600 {
344 compatible = "brcm,bcm6328-ohci", "generic-ohci";
345 reg = <0x10002600 0x100>;
346 big-endian;
347 no-big-frame-no;
348
349 interrupt-parent = <&periph_intc>;
350 interrupts = <BCM6328_IRQ_OHCI>;
351
352 phys = <&usbh 0>;
353 phy-names = "usb";
354
355 status = "disabled";
356 };
357
358 usbh: usb-phy@10002700 {
359 compatible = "brcm,bcm6328-usbh-phy";
360 reg = <0x10002700 0x38>;
361
362 #phy-cells = <1>;
363
364 clocks = <&periph_clk BCM6328_CLK_USBH>;
365 clock-names = "usbh";
366
367 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>;
368 resets = <&periph_rst BCM6328_RST_USBH>;
369
370 status = "disabled";
371 };
372 };
373 };