bmips: add new target
[openwrt/staging/dedeckeh.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 pinctrl: pin-controller@10000080 {
150 compatible = "brcm,bcm6328-pinctrl";
151 reg = <0x10000080 0x8>,
152 <0x10000088 0x8>,
153 <0x10000098 0x4>,
154 <0x1000009c 0xc>;
155 reg-names = "dirout", "dat", "mode", "mux";
156
157 gpio-controller;
158 #gpio-cells = <2>;
159
160 interrupt-parent = <&ext_intc>;
161 interrupts = <3 0>, <2 0>, <0 0>, <1 0>;
162 interrupt-names = "gpio12", "gpio15",
163 "gpio23", "gpio24";
164
165 pinctrl_serial_led: serial_led {
166 pinctrl_serial_led_data: serial_led_data {
167 function = "serial_led_data";
168 pins = "gpio6";
169 };
170
171 pinctrl_serial_led_clk: serial_led_clk {
172 function = "serial_led_clk";
173 pins = "gpio7";
174 };
175 };
176
177 pinctrl_inet_act_led: inet_act_led {
178 function = "inet_act_led";
179 pins = "gpio11";
180 };
181
182 pinctrl_pcie_clkreq: pcie_clkreq {
183 function = "pcie_clkreq";
184 pins = "gpio16";
185 };
186
187 pinctrl_ephy0_spd_led: ephy0_spd_led {
188 function = "led";
189 pins = "gpio17";
190 };
191
192 pinctrl_ephy1_spd_led: ephy1_spd_led {
193 function = "led";
194 pins = "gpio18";
195 };
196
197 pinctrl_ephy2_spd_led: ephy2_spd_led {
198 function = "led";
199 pins = "gpio19";
200 };
201
202 pinctrl_ephy3_spd_led: ephy3_spd_led {
203 function = "led";
204 pins = "gpio20";
205 };
206
207 pinctrl_ephy0_act_led: ephy0_act_led {
208 function = "ephy0_act_led";
209 pins = "gpio25";
210 };
211
212 pinctrl_ephy1_act_led: ephy1_act_led {
213 function = "ephy1_act_led";
214 pins = "gpio26";
215 };
216
217 pinctrl_ephy2_act_led: ephy2_act_led {
218 function = "ephy2_act_led";
219 pins = "gpio27";
220 };
221
222 pinctrl_ephy3_act_led: ephy3_act_led {
223 function = "ephy3_act_led";
224 pins = "gpio28";
225 };
226
227 pinctrl_hsspi_cs1: hsspi_cs1 {
228 function = "hsspi_cs1";
229 pins = "hsspi_cs1";
230 };
231
232 pinctrl_usb_port1_device: usb_port1_device {
233 function = "usb_device_port";
234 pins = "usb_port1";
235 };
236
237 pinctrl_usb_port1_host: usb_port1_host {
238 function = "usb_host_port";
239 pins = "usb_port1";
240 };
241 };
242
243 uart0: serial@10000100 {
244 compatible = "brcm,bcm6345-uart";
245 reg = <0x10000100 0x18>;
246
247 interrupt-parent = <&periph_intc>;
248 interrupts = <BCM6328_IRQ_UART0>;
249
250 clocks = <&periph_osc>;
251 clock-names = "periph";
252
253 status = "disabled";
254 };
255
256 uart1: serial@10000120 {
257 compatible = "brcm,bcm6345-uart";
258 reg = <0x10000120 0x18>;
259
260 interrupt-parent = <&periph_intc>;
261 interrupts = <BCM6328_IRQ_UART1>;
262
263 clocks = <&periph_osc>;
264 clock-names = "periph";
265
266 status = "disabled";
267 };
268
269 nflash: nand@10000200 {
270 #address-cells = <1>;
271 #size-cells = <0>;
272 compatible = "brcm,nand-bcm6368",
273 "brcm,brcmnand-v2.2",
274 "brcm,brcmnand";
275 reg = <0x10000200 0x180>,
276 <0x10000400 0x200>,
277 <0x10000070 0x10>;
278 reg-names = "nand",
279 "nand-cache",
280 "nand-int-base";
281
282 interrupt-parent = <&periph_intc>;
283 interrupts = <BCM6328_IRQ_NAND>;
284
285 status = "disabled";
286 };
287
288 leds: led-controller@10000800 {
289 #address-cells = <1>;
290 #size-cells = <0>;
291 compatible = "brcm,bcm6328-leds";
292 reg = <0x10000800 0x24>;
293
294 status = "disabled";
295 };
296
297 hsspi: spi@10001000 {
298 compatible = "brcm,bcm6328-hsspi";
299 reg = <0x10001000 0x600>;
300 #address-cells = <1>;
301 #size-cells = <0>;
302
303 interrupt-parent = <&periph_intc>;
304 interrupts = <BCM6328_IRQ_HSSPI>;
305
306 clocks = <&periph_clk BCM6328_CLK_HSSPI>,
307 <&hsspi_osc>;
308 clock-names = "hsspi",
309 "pll";
310
311 resets = <&periph_rst BCM6328_RST_SPI>;
312
313 status = "disabled";
314 };
315
316 periph_pwr: power-controller@10001848 {
317 compatible = "brcm,bcm6328-power-controller";
318 reg = <0x10001848 0x4>;
319
320 #power-domain-cells = <1>;
321 };
322
323 ehci: usb@10002500 {
324 compatible = "brcm,bcm6328-ehci", "generic-ehci";
325 reg = <0x10002500 0x100>;
326 big-endian;
327 ignore-oc;
328
329 interrupt-parent = <&periph_intc>;
330 interrupts = <BCM6328_IRQ_EHCI>;
331
332 phys = <&usbh 0>;
333 phy-names = "usb";
334
335 status = "disabled";
336 };
337
338 ohci: usb@10002600 {
339 compatible = "brcm,bcm6328-ohci", "generic-ohci";
340 reg = <0x10002600 0x100>;
341 big-endian;
342 no-big-frame-no;
343
344 interrupt-parent = <&periph_intc>;
345 interrupts = <BCM6328_IRQ_OHCI>;
346
347 phys = <&usbh 0>;
348 phy-names = "usb";
349
350 status = "disabled";
351 };
352
353 usbh: usb-phy@10002700 {
354 compatible = "brcm,bcm6328-usbh-phy";
355 reg = <0x10002700 0x38>;
356
357 #phy-cells = <1>;
358
359 clocks = <&periph_clk BCM6328_CLK_USBH>;
360 clock-names = "usbh";
361
362 power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_USBH>;
363 resets = <&periph_rst BCM6328_RST_USBH>;
364
365 status = "disabled";
366 };
367 };
368 };