1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/clock/ingenic,jz4770-cgu.h>
3 #include <dt-bindings/clock/ingenic,tcu.h>
8 compatible = "ingenic,jz4770";
16 compatible = "ingenic,xburst-fpu1.0-mxu1.1";
19 clocks = <&cgu JZ4770_CLK_CCLK>;
24 cpuintc: interrupt-controller {
26 #interrupt-cells = <1>;
28 compatible = "mti,cpu-interrupt-controller";
31 intc: interrupt-controller@10001000 {
32 compatible = "ingenic,jz4770-intc";
33 reg = <0x10001000 0x40>;
36 #interrupt-cells = <1>;
38 interrupt-parent = <&cpuintc>;
43 compatible = "fixed-clock";
48 compatible = "fixed-clock";
50 clock-frequency = <32768>;
53 cgu: jz4770-cgu@10000000 {
54 compatible = "ingenic,jz4770-cgu", "simple-mfd";
55 reg = <0x10000000 0x100>;
58 ranges = <0x0 0x10000000 0x100>;
60 clocks = <&ext>, <&osc32k>;
61 clock-names = "ext", "osc32k";
66 compatible = "ingenic,jz4770-phy";
69 clocks = <&cgu JZ4770_CLK_OTG_PHY>;
76 compatible = "ingenic,jz4770-tcu", "simple-mfd";
77 reg = <0x10002000 0x1000>;
80 ranges = <0x0 0x10002000 0x1000>;
84 clocks = <&cgu JZ4770_CLK_RTC>,
85 <&cgu JZ4770_CLK_EXT>,
86 <&cgu JZ4770_CLK_PCLK>;
87 clock-names = "rtc", "ext", "pclk";
90 #interrupt-cells = <1>;
92 interrupt-parent = <&intc>;
93 interrupts = <27 26 25>;
95 watchdog: watchdog@0 {
96 compatible = "ingenic,jz4770-watchdog",
97 "ingenic,jz4740-watchdog";
100 clocks = <&tcu TCU_CLK_WDT>;
105 compatible = "ingenic,jz4770-pwm", "ingenic,jz4740-pwm";
110 clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
111 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
112 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
113 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
114 clock-names = "timer0", "timer1", "timer2", "timer3",
115 "timer4", "timer5", "timer6", "timer7";
119 compatible = "ingenic,jz4770-ost";
122 clocks = <&tcu TCU_CLK_OST>;
130 compatible = "ingenic,jz4770-rtc", "ingenic,jz4760-rtc";
131 reg = <0x10003000 0x40>;
133 interrupt-parent = <&intc>;
137 pinctrl: pin-controller@10010000 {
138 compatible = "ingenic,jz4770-pinctrl";
139 reg = <0x10010000 0x600>;
141 #address-cells = <1>;
145 compatible = "ingenic,jz4770-gpio";
149 gpio-ranges = <&pinctrl 0 0 32>;
152 interrupt-controller;
153 #interrupt-cells = <2>;
155 interrupt-parent = <&intc>;
160 compatible = "ingenic,jz4770-gpio";
164 gpio-ranges = <&pinctrl 0 32 32>;
167 interrupt-controller;
168 #interrupt-cells = <2>;
170 interrupt-parent = <&intc>;
175 compatible = "ingenic,jz4770-gpio";
179 gpio-ranges = <&pinctrl 0 64 32>;
182 interrupt-controller;
183 #interrupt-cells = <2>;
185 interrupt-parent = <&intc>;
190 compatible = "ingenic,jz4770-gpio";
194 gpio-ranges = <&pinctrl 0 96 32>;
197 interrupt-controller;
198 #interrupt-cells = <2>;
200 interrupt-parent = <&intc>;
205 compatible = "ingenic,jz4770-gpio";
209 gpio-ranges = <&pinctrl 0 128 32>;
212 interrupt-controller;
213 #interrupt-cells = <2>;
215 interrupt-parent = <&intc>;
220 compatible = "ingenic,jz4770-gpio";
224 gpio-ranges = <&pinctrl 0 160 32>;
227 interrupt-controller;
228 #interrupt-cells = <2>;
230 interrupt-parent = <&intc>;
235 aic: audio-controller@10020000 {
236 compatible = "ingenic,jz4770-i2s";
237 reg = <0x10020000 0x94>;
239 #sound-dai-cells = <0>;
241 clocks = <&cgu JZ4770_CLK_AIC>, <&cgu JZ4770_CLK_I2S>;
242 clock-names = "aic", "i2s";
244 interrupt-parent = <&intc>;
247 dmas = <&dmac0 25 0xffffffff>, <&dmac0 24 0xffffffff>;
248 dma-names = "rx", "tx";
251 codec: audio-codec@100200a0 {
252 compatible = "ingenic,jz4770-codec";
253 reg = <0x100200a4 0x8>;
255 #sound-dai-cells = <0>;
257 clocks = <&cgu JZ4770_CLK_AIC>;
262 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
263 reg = <0x10021000 0x1000>;
265 clocks = <&cgu JZ4770_CLK_MMC0>;
268 interrupt-parent = <&intc>;
271 dmas = <&dmac1 27 0xffffffff>, <&dmac1 26 0xffffffff>;
272 dma-names = "rx", "tx";
282 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
283 reg = <0x10022000 0x1000>;
285 clocks = <&cgu JZ4770_CLK_MMC1>;
288 interrupt-parent = <&intc>;
291 dmas = <&dmac1 31 0xffffffff>, <&dmac1 30 0xffffffff>;
292 dma-names = "rx", "tx";
302 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
303 reg = <0x10023000 0x1000>;
305 clocks = <&cgu JZ4770_CLK_MMC2>;
308 interrupt-parent = <&intc>;
311 dmas = <&dmac1 37 0xffffffff>, <&dmac1 36 0xffffffff>;
312 dma-names = "rx", "tx";
321 uart0: serial@10030000 {
322 compatible = "ingenic,jz4770-uart";
323 reg = <0x10030000 0x100>;
325 clocks = <&ext>, <&cgu JZ4770_CLK_UART0>;
326 clock-names = "baud", "module";
328 interrupt-parent = <&intc>;
334 uart1: serial@10031000 {
335 compatible = "ingenic,jz4770-uart";
336 reg = <0x10031000 0x100>;
338 clocks = <&ext>, <&cgu JZ4770_CLK_UART1>;
339 clock-names = "baud", "module";
341 interrupt-parent = <&intc>;
347 uart2: serial@10032000 {
348 compatible = "ingenic,jz4770-uart";
349 reg = <0x10032000 0x100>;
351 clocks = <&ext>, <&cgu JZ4770_CLK_UART2>;
352 clock-names = "baud", "module";
354 interrupt-parent = <&intc>;
360 uart3: serial@10033000 {
361 compatible = "ingenic,jz4770-uart";
362 reg = <0x10033000 0x100>;
364 clocks = <&ext>, <&cgu JZ4770_CLK_UART3>;
365 clock-names = "baud", "module";
367 interrupt-parent = <&intc>;
374 compatible = "ingenic,jz4770-adc";
375 reg = <0x10070000 0x30>;
377 #io-channel-cells = <1>;
379 clocks = <&cgu JZ4770_CLK_ADC>;
382 interrupt-parent = <&intc>;
387 compatible = "vivante,gc";
388 reg = <0x13040000 0x10000>;
390 clocks = <&cgu JZ4770_CLK_GPU>,
391 <&cgu JZ4770_CLK_GPU>,
392 <&cgu JZ4770_CLK_GPU>;
393 clock-names = "bus", "core", "shader";
395 interrupt-parent = <&intc>;
399 lcd: lcd-controller@13050000 {
400 compatible = "ingenic,jz4770-lcd";
401 reg = <0x13050000 0x130>; /* tbc */
403 interrupt-parent = <&intc>;
406 clocks = <&cgu JZ4770_CLK_LPCLK_MUX>;
407 clock-names = "lcd_pclk";
410 dmac0: dma-controller@13420000 {
411 compatible = "ingenic,jz4770-dma";
412 reg = <0x13420000 0xC0>, <0x13420300 0x20>;
416 clocks = <&cgu JZ4770_CLK_DMA>;
417 interrupt-parent = <&intc>;
421 dmac1: dma-controller@13420100 {
422 compatible = "ingenic,jz4770-dma";
423 reg = <0x13420100 0xC0>, <0x13420400 0x20>;
427 clocks = <&cgu JZ4770_CLK_DMA>;
428 interrupt-parent = <&intc>;
433 compatible = "generic-ohci";
434 reg = <0x13430000 0x1000>;
436 clocks = <&cgu JZ4770_CLK_UHC>, <&cgu JZ4770_CLK_UHC_PHY>;
437 assigned-clocks = <&cgu JZ4770_CLK_UHC>;
438 assigned-clock-rates = <48000000>;
440 interrupt-parent = <&intc>;
446 usb_otg: usb@13440000 {
447 compatible = "ingenic,jz4770-musb";
448 reg = <0x13440000 0x10000>;
450 clocks = <&cgu JZ4770_CLK_OTG>;
453 interrupt-parent = <&intc>;
455 interrupt-names = "mc";
462 rom: memory@1fc00000 {
463 compatible = "mtd-rom";
464 reg = <0x1fc00000 0x2000>;