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";
10 cpuintc: interrupt-controller {
12 #interrupt-cells = <1>;
14 compatible = "mti,cpu-interrupt-controller";
17 intc: interrupt-controller@10001000 {
18 compatible = "ingenic,jz4740-intc";
19 reg = <0x10001000 0x14>;
22 #interrupt-cells = <1>;
24 interrupt-parent = <&cpuintc>;
29 compatible = "fixed-clock";
34 compatible = "fixed-clock";
36 clock-frequency = <32768>;
39 cgu: jz4740-cgu@10000000 {
40 compatible = "ingenic,jz4740-cgu";
41 reg = <0x10000000 0x100>;
43 clocks = <&ext>, <&rtc>;
44 clock-names = "ext", "rtc";
50 compatible = "ingenic,jz4740-tcu", "simple-mfd";
51 reg = <0x10002000 0x1000>;
54 ranges = <0x0 0x10002000 0x1000>;
58 clocks = <&cgu JZ4740_CLK_RTC>,
59 <&cgu JZ4740_CLK_EXT>,
60 <&cgu JZ4740_CLK_PCLK>,
61 <&cgu JZ4740_CLK_TCU>;
62 clock-names = "rtc", "ext", "pclk", "tcu";
65 #interrupt-cells = <1>;
67 interrupt-parent = <&intc>;
68 interrupts = <23 22 21>;
70 watchdog: watchdog@0 {
71 compatible = "ingenic,jz4740-watchdog";
74 clocks = <&tcu TCU_CLK_WDT>;
79 compatible = "ingenic,jz4740-pwm";
84 clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
85 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
86 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
87 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
88 clock-names = "timer0", "timer1", "timer2", "timer3",
89 "timer4", "timer5", "timer6", "timer7";
93 rtc_dev: rtc@10003000 {
94 compatible = "ingenic,jz4740-rtc";
95 reg = <0x10003000 0x40>;
97 interrupt-parent = <&intc>;
100 clocks = <&cgu JZ4740_CLK_RTC>;
104 pinctrl: pin-controller@10010000 {
105 compatible = "ingenic,jz4740-pinctrl";
106 reg = <0x10010000 0x400>;
108 #address-cells = <1>;
112 compatible = "ingenic,jz4740-gpio";
116 gpio-ranges = <&pinctrl 0 0 32>;
119 interrupt-controller;
120 #interrupt-cells = <2>;
122 interrupt-parent = <&intc>;
127 compatible = "ingenic,jz4740-gpio";
131 gpio-ranges = <&pinctrl 0 32 32>;
134 interrupt-controller;
135 #interrupt-cells = <2>;
137 interrupt-parent = <&intc>;
142 compatible = "ingenic,jz4740-gpio";
146 gpio-ranges = <&pinctrl 0 64 32>;
149 interrupt-controller;
150 #interrupt-cells = <2>;
152 interrupt-parent = <&intc>;
157 compatible = "ingenic,jz4740-gpio";
161 gpio-ranges = <&pinctrl 0 96 32>;
164 interrupt-controller;
165 #interrupt-cells = <2>;
167 interrupt-parent = <&intc>;
172 aic: audio-controller@10020000 {
173 compatible = "ingenic,jz4740-i2s";
174 reg = <0x10020000 0x38>;
176 #sound-dai-cells = <0>;
178 interrupt-parent = <&intc>;
181 clocks = <&cgu JZ4740_CLK_AIC>,
182 <&cgu JZ4740_CLK_I2S>,
183 <&cgu JZ4740_CLK_EXT>,
184 <&cgu JZ4740_CLK_PLL_HALF>;
185 clock-names = "aic", "i2s", "ext", "pll half";
187 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
188 dma-names = "rx", "tx";
191 codec: audio-codec@100200a4 {
192 compatible = "ingenic,jz4740-codec";
193 reg = <0x10020080 0x8>;
195 #sound-dai-cells = <0>;
197 clocks = <&cgu JZ4740_CLK_AIC>;
202 compatible = "ingenic,jz4740-mmc";
203 reg = <0x10021000 0x1000>;
205 clocks = <&cgu JZ4740_CLK_MMC>;
208 interrupt-parent = <&intc>;
211 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
212 dma-names = "rx", "tx";
219 uart0: serial@10030000 {
220 compatible = "ingenic,jz4740-uart";
221 reg = <0x10030000 0x100>;
223 interrupt-parent = <&intc>;
226 clocks = <&ext>, <&cgu JZ4740_CLK_UART0>;
227 clock-names = "baud", "module";
230 uart1: serial@10031000 {
231 compatible = "ingenic,jz4740-uart";
232 reg = <0x10031000 0x100>;
234 interrupt-parent = <&intc>;
237 clocks = <&ext>, <&cgu JZ4740_CLK_UART1>;
238 clock-names = "baud", "module";
242 compatible = "ingenic,jz4740-adc";
243 reg = <0x10070000 0x30>;
244 #io-channel-cells = <1>;
246 clocks = <&cgu JZ4740_CLK_ADC>;
249 interrupt-parent = <&intc>;
253 nemc: memory-controller@13010000 {
254 compatible = "ingenic,jz4740-nemc";
255 reg = <0x13010000 0x54>;
256 #address-cells = <2>;
258 ranges = <1 0 0x18000000 0x4000000>,
259 <2 0 0x14000000 0x4000000>,
260 <3 0 0x0c000000 0x4000000>,
261 <4 0 0x08000000 0x4000000>;
263 clocks = <&cgu JZ4740_CLK_MCLK>;
266 ecc: ecc-controller@13010100 {
267 compatible = "ingenic,jz4740-ecc";
268 reg = <0x13010100 0x2C>;
270 clocks = <&cgu JZ4740_CLK_MCLK>;
273 dmac: dma-controller@13020000 {
274 compatible = "ingenic,jz4740-dma";
275 reg = <0x13020000 0xbc>, <0x13020300 0x14>;
278 interrupt-parent = <&intc>;
281 clocks = <&cgu JZ4740_CLK_DMA>;
285 compatible = "ingenic,jz4740-ohci", "generic-ohci";
286 reg = <0x13030000 0x1000>;
288 clocks = <&cgu JZ4740_CLK_UHC>;
289 assigned-clocks = <&cgu JZ4740_CLK_UHC>;
290 assigned-clock-rates = <48000000>;
292 interrupt-parent = <&intc>;
299 compatible = "ingenic,jz4740-musb";
300 reg = <0x13040000 0x10000>;
302 interrupt-parent = <&intc>;
304 interrupt-names = "mc";
306 clocks = <&cgu JZ4740_CLK_UDC>;
310 lcd: lcd-controller@13050000 {
311 compatible = "ingenic,jz4740-lcd";
312 reg = <0x13050000 0x1000>;
314 interrupt-parent = <&intc>;
317 clocks = <&cgu JZ4740_CLK_LCD_PCLK>, <&cgu JZ4740_CLK_LCD>;
318 clock-names = "lcd_pclk", "lcd";