1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/clock/jz4725b-cgu.h>
3 #include <dt-bindings/clock/ingenic,tcu.h>
8 compatible = "ingenic,jz4725b";
16 compatible = "ingenic,xburst-mxu1.0";
19 clocks = <&cgu JZ4725B_CLK_CCLK>;
24 cpuintc: interrupt-controller {
26 #interrupt-cells = <1>;
28 compatible = "mti,cpu-interrupt-controller";
31 intc: interrupt-controller@10001000 {
32 compatible = "ingenic,jz4725b-intc", "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: clock-controller@10000000 {
54 compatible = "ingenic,jz4725b-cgu";
55 reg = <0x10000000 0x100>;
57 clocks = <&ext>, <&osc32k>;
58 clock-names = "ext", "osc32k";
64 compatible = "ingenic,jz4725b-tcu", "simple-mfd";
65 reg = <0x10002000 0x1000>;
68 ranges = <0x0 0x10002000 0x1000>;
72 clocks = <&cgu JZ4725B_CLK_RTC>,
73 <&cgu JZ4725B_CLK_EXT>,
74 <&cgu JZ4725B_CLK_PCLK>,
75 <&cgu JZ4725B_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,jz4725b-watchdog", "ingenic,jz4740-watchdog";
88 clocks = <&tcu TCU_CLK_WDT>;
93 compatible = "ingenic,jz4725b-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 clock-names = "timer0", "timer1", "timer2",
102 "timer3", "timer4", "timer5";
106 compatible = "ingenic,jz4725b-ost";
109 clocks = <&tcu TCU_CLK_OST>;
116 rtc_dev: rtc@10003000 {
117 compatible = "ingenic,jz4725b-rtc", "ingenic,jz4740-rtc";
118 reg = <0x10003000 0x40>;
120 interrupt-parent = <&intc>;
123 clocks = <&cgu JZ4725B_CLK_RTC>;
127 pinctrl: pinctrl@10010000 {
128 compatible = "ingenic,jz4725b-pinctrl";
129 reg = <0x10010000 0x400>;
131 #address-cells = <1>;
135 compatible = "ingenic,jz4725b-gpio";
139 gpio-ranges = <&pinctrl 0 0 32>;
142 interrupt-controller;
143 #interrupt-cells = <2>;
145 interrupt-parent = <&intc>;
150 compatible = "ingenic,jz4725b-gpio";
154 gpio-ranges = <&pinctrl 0 32 32>;
157 interrupt-controller;
158 #interrupt-cells = <2>;
160 interrupt-parent = <&intc>;
165 compatible = "ingenic,jz4725b-gpio";
169 gpio-ranges = <&pinctrl 0 64 32>;
172 interrupt-controller;
173 #interrupt-cells = <2>;
175 interrupt-parent = <&intc>;
180 compatible = "ingenic,jz4725b-gpio";
184 gpio-ranges = <&pinctrl 0 96 32>;
187 interrupt-controller;
188 #interrupt-cells = <2>;
190 interrupt-parent = <&intc>;
195 aic: audio-controller@10020000 {
196 compatible = "ingenic,jz4725b-i2s", "ingenic,jz4740-i2s";
197 reg = <0x10020000 0x38>;
199 #sound-dai-cells = <0>;
201 clocks = <&cgu JZ4725B_CLK_AIC>,
202 <&cgu JZ4725B_CLK_I2S>,
203 <&cgu JZ4725B_CLK_EXT>,
204 <&cgu JZ4725B_CLK_PLL_HALF>;
205 clock-names = "aic", "i2s", "ext", "pll half";
207 interrupt-parent = <&intc>;
210 dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
211 dma-names = "rx", "tx";
214 codec: audio-codec@100200a4 {
215 compatible = "ingenic,jz4725b-codec";
216 reg = <0x100200a4 0x8>;
218 #sound-dai-cells = <0>;
220 clocks = <&cgu JZ4725B_CLK_AIC>;
225 compatible = "ingenic,jz4725b-mmc";
226 reg = <0x10021000 0x1000>;
228 clocks = <&cgu JZ4725B_CLK_MMC0>;
231 interrupt-parent = <&intc>;
234 dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
235 dma-names = "rx", "tx";
243 compatible = "ingenic,jz4725b-mmc";
244 reg = <0x10022000 0x1000>;
246 clocks = <&cgu JZ4725B_CLK_MMC1>;
249 interrupt-parent = <&intc>;
252 dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>;
253 dma-names = "rx", "tx";
260 uart: serial@10030000 {
261 compatible = "ingenic,jz4725b-uart", "ingenic,jz4740-uart";
262 reg = <0x10030000 0x100>;
264 interrupt-parent = <&intc>;
267 clocks = <&ext>, <&cgu JZ4725B_CLK_UART>;
268 clock-names = "baud", "module";
272 compatible = "ingenic,jz4725b-adc";
273 #io-channel-cells = <1>;
275 reg = <0x10070000 0x30>;
276 #address-cells = <1>;
278 ranges = <0x0 0x10070000 0x30>;
280 clocks = <&cgu JZ4725B_CLK_ADC>;
283 interrupt-parent = <&intc>;
287 nemc: memory-controller@13010000 {
288 compatible = "ingenic,jz4725b-nemc", "ingenic,jz4740-nemc";
289 reg = <0x13010000 0x10000>;
290 #address-cells = <2>;
292 ranges = <1 0 0x18000000 0x4000000>, <2 0 0x14000000 0x4000000>,
293 <3 0 0x0c000000 0x4000000>, <4 0 0x08000000 0x4000000>;
295 clocks = <&cgu JZ4725B_CLK_MCLK>;
298 dmac: dma-controller@13020000 {
299 compatible = "ingenic,jz4725b-dma";
300 reg = <0x13020000 0xd8>, <0x13020300 0x14>;
304 interrupt-parent = <&intc>;
307 clocks = <&cgu JZ4725B_CLK_DMA>;
311 compatible = "ingenic,jz4725b-musb", "ingenic,jz4740-musb";
312 reg = <0x13040000 0x10000>;
314 interrupt-parent = <&intc>;
316 interrupt-names = "mc";
318 clocks = <&cgu JZ4725B_CLK_UDC>;
322 lcd: lcd-controller@13050000 {
323 compatible = "ingenic,jz4725b-lcd";
324 reg = <0x13050000 0x1000>;
326 interrupt-parent = <&intc>;
329 clocks = <&cgu JZ4725B_CLK_LCD>;
330 clock-names = "lcd_pclk";
333 #address-cells = <1>;
339 ipu_output: endpoint {
340 remote-endpoint = <&ipu_input>;
347 compatible = "ingenic,jz4725b-ipu";
348 reg = <0x13080000 0x64>;
350 interrupt-parent = <&intc>;
353 clocks = <&cgu JZ4725B_CLK_IPU>;
357 ipu_input: endpoint {
358 remote-endpoint = <&ipu_output>;
363 bch: ecc-controller@130d0000 {
364 compatible = "ingenic,jz4725b-bch";
365 reg = <0x130d0000 0x44>;
367 clocks = <&cgu JZ4725B_CLK_BCH>;
370 rom: memory@1fc00000 {
371 compatible = "mtd-rom";
372 probe-type = "map_rom";
373 reg = <0x1fc00000 0x2000>;