1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/clock/jz4740-cgu.h>
3 #include <dt-bindings/clock/ingenic,tcu.h>
8 compatible = "ingenic,jz4740";
16 compatible = "ingenic,xburst-mxu1.0";
19 clocks = <&cgu JZ4740_CLK_CCLK>;
24 cpuintc: interrupt-controller {
26 #interrupt-cells = <1>;
28 compatible = "mti,cpu-interrupt-controller";
31 intc: interrupt-controller@10001000 {
32 compatible = "ingenic,jz4740-intc";
33 reg = <0x10001000 0x14>;
36 #interrupt-cells = <1>;
38 interrupt-parent = <&cpuintc>;
43 compatible = "fixed-clock";
48 compatible = "fixed-clock";
50 clock-frequency = <32768>;
53 cgu: jz4740-cgu@10000000 {
54 compatible = "ingenic,jz4740-cgu";
55 reg = <0x10000000 0x100>;
57 clocks = <&ext>, <&rtc>;
58 clock-names = "ext", "rtc";
64 compatible = "ingenic,jz4740-tcu", "simple-mfd";
65 reg = <0x10002000 0x1000>;
68 ranges = <0x0 0x10002000 0x1000>;
72 clocks = <&cgu JZ4740_CLK_RTC>,
73 <&cgu JZ4740_CLK_EXT>,
74 <&cgu JZ4740_CLK_PCLK>,
75 <&cgu JZ4740_CLK_TCU>;
76 clock-names = "rtc", "ext", "pclk", "tcu";
79 #interrupt-cells = <1>;
81 interrupt-parent = <&intc>;
82 interrupts = <23 22 21>;
84 watchdog: watchdog@0 {
85 compatible = "ingenic,jz4740-watchdog";
88 clocks = <&tcu TCU_CLK_WDT>;
93 compatible = "ingenic,jz4740-pwm";
98 clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
99 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
100 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
101 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
102 clock-names = "timer0", "timer1", "timer2", "timer3",
103 "timer4", "timer5", "timer6", "timer7";
107 rtc_dev: rtc@10003000 {
108 compatible = "ingenic,jz4740-rtc";
109 reg = <0x10003000 0x40>;
111 interrupt-parent = <&intc>;
114 clocks = <&cgu JZ4740_CLK_RTC>;
118 pinctrl: pin-controller@10010000 {
119 compatible = "ingenic,jz4740-pinctrl";
120 reg = <0x10010000 0x400>;
122 #address-cells = <1>;
126 compatible = "ingenic,jz4740-gpio";
130 gpio-ranges = <&pinctrl 0 0 32>;
133 interrupt-controller;
134 #interrupt-cells = <2>;
136 interrupt-parent = <&intc>;
141 compatible = "ingenic,jz4740-gpio";
145 gpio-ranges = <&pinctrl 0 32 32>;
148 interrupt-controller;
149 #interrupt-cells = <2>;
151 interrupt-parent = <&intc>;
156 compatible = "ingenic,jz4740-gpio";
160 gpio-ranges = <&pinctrl 0 64 32>;
163 interrupt-controller;
164 #interrupt-cells = <2>;
166 interrupt-parent = <&intc>;
171 compatible = "ingenic,jz4740-gpio";
175 gpio-ranges = <&pinctrl 0 96 32>;
178 interrupt-controller;
179 #interrupt-cells = <2>;
181 interrupt-parent = <&intc>;
186 aic: audio-controller@10020000 {
187 compatible = "ingenic,jz4740-i2s";
188 reg = <0x10020000 0x38>;
190 #sound-dai-cells = <0>;
192 interrupt-parent = <&intc>;
195 clocks = <&cgu JZ4740_CLK_AIC>,
196 <&cgu JZ4740_CLK_I2S>,
197 <&cgu JZ4740_CLK_EXT>,
198 <&cgu JZ4740_CLK_PLL_HALF>;
199 clock-names = "aic", "i2s", "ext", "pll half";
201 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
202 dma-names = "rx", "tx";
205 codec: audio-codec@100200a4 {
206 compatible = "ingenic,jz4740-codec";
207 reg = <0x10020080 0x8>;
209 #sound-dai-cells = <0>;
211 clocks = <&cgu JZ4740_CLK_AIC>;
216 compatible = "ingenic,jz4740-mmc";
217 reg = <0x10021000 0x1000>;
219 clocks = <&cgu JZ4740_CLK_MMC>;
222 interrupt-parent = <&intc>;
225 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
226 dma-names = "rx", "tx";
233 uart0: serial@10030000 {
234 compatible = "ingenic,jz4740-uart";
235 reg = <0x10030000 0x100>;
237 interrupt-parent = <&intc>;
240 clocks = <&ext>, <&cgu JZ4740_CLK_UART0>;
241 clock-names = "baud", "module";
244 uart1: serial@10031000 {
245 compatible = "ingenic,jz4740-uart";
246 reg = <0x10031000 0x100>;
248 interrupt-parent = <&intc>;
251 clocks = <&ext>, <&cgu JZ4740_CLK_UART1>;
252 clock-names = "baud", "module";
256 compatible = "ingenic,jz4740-adc";
257 reg = <0x10070000 0x30>;
258 #io-channel-cells = <1>;
260 clocks = <&cgu JZ4740_CLK_ADC>;
263 interrupt-parent = <&intc>;
267 nemc: memory-controller@13010000 {
268 compatible = "ingenic,jz4740-nemc";
269 reg = <0x13010000 0x54>;
270 #address-cells = <2>;
272 ranges = <1 0 0x18000000 0x4000000>,
273 <2 0 0x14000000 0x4000000>,
274 <3 0 0x0c000000 0x4000000>,
275 <4 0 0x08000000 0x4000000>;
277 clocks = <&cgu JZ4740_CLK_MCLK>;
280 ecc: ecc-controller@13010100 {
281 compatible = "ingenic,jz4740-ecc";
282 reg = <0x13010100 0x2C>;
284 clocks = <&cgu JZ4740_CLK_MCLK>;
287 dmac: dma-controller@13020000 {
288 compatible = "ingenic,jz4740-dma";
289 reg = <0x13020000 0xbc>, <0x13020300 0x14>;
292 interrupt-parent = <&intc>;
295 clocks = <&cgu JZ4740_CLK_DMA>;
299 compatible = "ingenic,jz4740-ohci", "generic-ohci";
300 reg = <0x13030000 0x1000>;
302 clocks = <&cgu JZ4740_CLK_UHC>;
303 assigned-clocks = <&cgu JZ4740_CLK_UHC>;
304 assigned-clock-rates = <48000000>;
306 interrupt-parent = <&intc>;
313 compatible = "ingenic,jz4740-musb";
314 reg = <0x13040000 0x10000>;
316 interrupt-parent = <&intc>;
318 interrupt-names = "mc";
320 clocks = <&cgu JZ4740_CLK_UDC>;
324 lcd: lcd-controller@13050000 {
325 compatible = "ingenic,jz4740-lcd";
326 reg = <0x13050000 0x1000>;
328 interrupt-parent = <&intc>;
331 clocks = <&cgu JZ4740_CLK_LCD_PCLK>, <&cgu JZ4740_CLK_LCD>;
332 clock-names = "lcd_pclk", "lcd";