1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/clock/jz4770-cgu.h>
4 #include <dt-bindings/clock/ingenic,tcu.h>
9 compatible = "ingenic,jz4770";
11 cpuintc: interrupt-controller {
13 #interrupt-cells = <1>;
15 compatible = "mti,cpu-interrupt-controller";
18 intc: interrupt-controller@10001000 {
19 compatible = "ingenic,jz4770-intc";
20 reg = <0x10001000 0x40>;
23 #interrupt-cells = <1>;
25 interrupt-parent = <&cpuintc>;
30 compatible = "fixed-clock";
35 compatible = "fixed-clock";
37 clock-frequency = <32768>;
40 cgu: jz4770-cgu@10000000 {
41 compatible = "ingenic,jz4770-cgu", "simple-mfd";
42 reg = <0x10000000 0x100>;
45 ranges = <0x0 0x10000000 0x100>;
47 clocks = <&ext>, <&osc32k>;
48 clock-names = "ext", "osc32k";
53 compatible = "ingenic,jz4770-phy";
56 clocks = <&cgu JZ4770_CLK_OTG_PHY>;
63 compatible = "ingenic,jz4770-tcu", "simple-mfd";
64 reg = <0x10002000 0x1000>;
67 ranges = <0x0 0x10002000 0x1000>;
71 clocks = <&cgu JZ4770_CLK_RTC>,
72 <&cgu JZ4770_CLK_EXT>,
73 <&cgu JZ4770_CLK_PCLK>;
74 clock-names = "rtc", "ext", "pclk";
77 #interrupt-cells = <1>;
79 interrupt-parent = <&intc>;
80 interrupts = <27 26 25>;
82 watchdog: watchdog@0 {
83 compatible = "ingenic,jz4770-watchdog",
84 "ingenic,jz4740-watchdog";
87 clocks = <&tcu TCU_CLK_WDT>;
92 compatible = "ingenic,jz4770-pwm", "ingenic,jz4740-pwm";
97 clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
98 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
99 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
100 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
101 clock-names = "timer0", "timer1", "timer2", "timer3",
102 "timer4", "timer5", "timer6", "timer7";
106 compatible = "ingenic,jz4770-ost";
109 clocks = <&tcu TCU_CLK_OST>;
117 compatible = "ingenic,jz4770-rtc", "ingenic,jz4760-rtc";
118 reg = <0x10003000 0x40>;
120 interrupt-parent = <&intc>;
124 pinctrl: pin-controller@10010000 {
125 compatible = "ingenic,jz4770-pinctrl";
126 reg = <0x10010000 0x600>;
128 #address-cells = <1>;
132 compatible = "ingenic,jz4770-gpio";
136 gpio-ranges = <&pinctrl 0 0 32>;
139 interrupt-controller;
140 #interrupt-cells = <2>;
142 interrupt-parent = <&intc>;
147 compatible = "ingenic,jz4770-gpio";
151 gpio-ranges = <&pinctrl 0 32 32>;
154 interrupt-controller;
155 #interrupt-cells = <2>;
157 interrupt-parent = <&intc>;
162 compatible = "ingenic,jz4770-gpio";
166 gpio-ranges = <&pinctrl 0 64 32>;
169 interrupt-controller;
170 #interrupt-cells = <2>;
172 interrupt-parent = <&intc>;
177 compatible = "ingenic,jz4770-gpio";
181 gpio-ranges = <&pinctrl 0 96 32>;
184 interrupt-controller;
185 #interrupt-cells = <2>;
187 interrupt-parent = <&intc>;
192 compatible = "ingenic,jz4770-gpio";
196 gpio-ranges = <&pinctrl 0 128 32>;
199 interrupt-controller;
200 #interrupt-cells = <2>;
202 interrupt-parent = <&intc>;
207 compatible = "ingenic,jz4770-gpio";
211 gpio-ranges = <&pinctrl 0 160 32>;
214 interrupt-controller;
215 #interrupt-cells = <2>;
217 interrupt-parent = <&intc>;
222 aic: audio-controller@10020000 {
223 compatible = "ingenic,jz4770-i2s";
224 reg = <0x10020000 0x94>;
226 #sound-dai-cells = <0>;
228 clocks = <&cgu JZ4770_CLK_AIC>, <&cgu JZ4770_CLK_I2S>,
229 <&cgu JZ4770_CLK_EXT>, <&cgu JZ4770_CLK_PLL0>;
230 clock-names = "aic", "i2s", "ext", "pll half";
232 interrupt-parent = <&intc>;
235 dmas = <&dmac0 25 0xffffffff>, <&dmac0 24 0xffffffff>;
236 dma-names = "rx", "tx";
239 codec: audio-codec@100200a0 {
240 compatible = "ingenic,jz4770-codec";
241 reg = <0x100200a4 0x8>;
243 #sound-dai-cells = <0>;
245 clocks = <&cgu JZ4770_CLK_AIC>;
250 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
251 reg = <0x10021000 0x1000>;
253 clocks = <&cgu JZ4770_CLK_MMC0>;
256 interrupt-parent = <&intc>;
259 dmas = <&dmac1 27 0xffffffff>, <&dmac1 26 0xffffffff>;
260 dma-names = "rx", "tx";
270 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
271 reg = <0x10022000 0x1000>;
273 clocks = <&cgu JZ4770_CLK_MMC1>;
276 interrupt-parent = <&intc>;
279 dmas = <&dmac1 31 0xffffffff>, <&dmac1 30 0xffffffff>;
280 dma-names = "rx", "tx";
290 compatible = "ingenic,jz4770-mmc", "ingenic,jz4760-mmc";
291 reg = <0x10023000 0x1000>;
293 clocks = <&cgu JZ4770_CLK_MMC2>;
296 interrupt-parent = <&intc>;
299 dmas = <&dmac1 37 0xffffffff>, <&dmac1 36 0xffffffff>;
300 dma-names = "rx", "tx";
309 uart0: serial@10030000 {
310 compatible = "ingenic,jz4770-uart";
311 reg = <0x10030000 0x100>;
313 clocks = <&ext>, <&cgu JZ4770_CLK_UART0>;
314 clock-names = "baud", "module";
316 interrupt-parent = <&intc>;
322 uart1: serial@10031000 {
323 compatible = "ingenic,jz4770-uart";
324 reg = <0x10031000 0x100>;
326 clocks = <&ext>, <&cgu JZ4770_CLK_UART1>;
327 clock-names = "baud", "module";
329 interrupt-parent = <&intc>;
335 uart2: serial@10032000 {
336 compatible = "ingenic,jz4770-uart";
337 reg = <0x10032000 0x100>;
339 clocks = <&ext>, <&cgu JZ4770_CLK_UART2>;
340 clock-names = "baud", "module";
342 interrupt-parent = <&intc>;
348 uart3: serial@10033000 {
349 compatible = "ingenic,jz4770-uart";
350 reg = <0x10033000 0x100>;
352 clocks = <&ext>, <&cgu JZ4770_CLK_UART3>;
353 clock-names = "baud", "module";
355 interrupt-parent = <&intc>;
362 compatible = "ingenic,jz4770-adc";
363 reg = <0x10070000 0x30>;
365 #io-channel-cells = <1>;
367 clocks = <&cgu JZ4770_CLK_ADC>;
370 interrupt-parent = <&intc>;
375 compatible = "vivante,gc";
376 reg = <0x13040000 0x10000>;
378 clocks = <&cgu JZ4770_CLK_GPU>,
379 <&cgu JZ4770_CLK_GPU>,
380 <&cgu JZ4770_CLK_GPU>;
381 clock-names = "bus", "core", "shader";
383 interrupt-parent = <&intc>;
387 lcd: lcd-controller@13050000 {
388 compatible = "ingenic,jz4770-lcd";
389 reg = <0x13050000 0x300>;
391 interrupt-parent = <&intc>;
394 clocks = <&cgu JZ4770_CLK_LPCLK_MUX>;
395 clock-names = "lcd_pclk";
398 dmac0: dma-controller@13420000 {
399 compatible = "ingenic,jz4770-dma";
400 reg = <0x13420000 0xC0>, <0x13420300 0x20>;
404 clocks = <&cgu JZ4770_CLK_DMA>;
405 interrupt-parent = <&intc>;
409 dmac1: dma-controller@13420100 {
410 compatible = "ingenic,jz4770-dma";
411 reg = <0x13420100 0xC0>, <0x13420400 0x20>;
415 clocks = <&cgu JZ4770_CLK_DMA>;
416 interrupt-parent = <&intc>;
421 compatible = "generic-ohci";
422 reg = <0x13430000 0x1000>;
424 clocks = <&cgu JZ4770_CLK_UHC>, <&cgu JZ4770_CLK_UHC_PHY>;
425 assigned-clocks = <&cgu JZ4770_CLK_UHC>;
426 assigned-clock-rates = <48000000>;
428 interrupt-parent = <&intc>;
434 usb_otg: usb@13440000 {
435 compatible = "ingenic,jz4770-musb";
436 reg = <0x13440000 0x10000>;
438 clocks = <&cgu JZ4770_CLK_OTG>;
441 interrupt-parent = <&intc>;
443 interrupt-names = "mc";
450 rom: memory@1fc00000 {
451 compatible = "mtd-rom";
452 probe-type = "map_rom";
453 reg = <0x1fc00000 0x2000>;