Linux Audio

Check our new training course

Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0
  2#include <dt-bindings/clock/ingenic,jz4725b-cgu.h>
  3#include <dt-bindings/clock/ingenic,tcu.h>
  4
  5/ {
  6	#address-cells = <1>;
  7	#size-cells = <1>;
  8	compatible = "ingenic,jz4725b";
  9
 10	cpus {
 11		#address-cells = <1>;
 12		#size-cells = <0>;
 13
 14		cpu0: cpu@0 {
 15			device_type = "cpu";
 16			compatible = "ingenic,xburst-mxu1.0";
 17			reg = <0>;
 18
 19			clocks = <&cgu JZ4725B_CLK_CCLK>;
 20			clock-names = "cpu";
 21		};
 22	};
 23
 24	cpuintc: interrupt-controller {
 25		#address-cells = <0>;
 26		#interrupt-cells = <1>;
 27		interrupt-controller;
 28		compatible = "mti,cpu-interrupt-controller";
 29	};
 30
 31	intc: interrupt-controller@10001000 {
 32		compatible = "ingenic,jz4725b-intc", "ingenic,jz4740-intc";
 33		reg = <0x10001000 0x14>;
 34
 35		interrupt-controller;
 36		#interrupt-cells = <1>;
 37
 38		interrupt-parent = <&cpuintc>;
 39		interrupts = <2>;
 40	};
 41
 42	ext: ext {
 43		compatible = "fixed-clock";
 44		#clock-cells = <0>;
 45	};
 46
 47	osc32k: osc32k {
 48		compatible = "fixed-clock";
 49		#clock-cells = <0>;
 50		clock-frequency = <32768>;
 51	};
 52
 53	cgu: clock-controller@10000000 {
 54		compatible = "ingenic,jz4725b-cgu";
 55		reg = <0x10000000 0x100>;
 56
 57		clocks = <&ext>, <&osc32k>;
 58		clock-names = "ext", "osc32k";
 59
 60		#clock-cells = <1>;
 61	};
 62
 63	tcu: timer@10002000 {
 64		compatible = "ingenic,jz4725b-tcu", "simple-mfd";
 65		reg = <0x10002000 0x1000>;
 66		#address-cells = <1>;
 67		#size-cells = <1>;
 68		ranges = <0x0 0x10002000 0x1000>;
 69
 70		#clock-cells = <1>;
 71
 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";
 77
 78		interrupt-controller;
 79		#interrupt-cells = <1>;
 80
 81		interrupt-parent = <&intc>;
 82		interrupts = <23>, <22>, <21>;
 83
 84		watchdog: watchdog@0 {
 85			compatible = "ingenic,jz4725b-watchdog", "ingenic,jz4740-watchdog";
 86			reg = <0x0 0xc>;
 87
 88			clocks = <&tcu TCU_CLK_WDT>;
 89			clock-names = "wdt";
 90		};
 91
 92		pwm: pwm@60 {
 93			compatible = "ingenic,jz4725b-pwm";
 94			reg = <0x60 0x40>;
 95
 96			#pwm-cells = <3>;
 97
 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";
103		};
104
105		ost: timer@e0 {
106			compatible = "ingenic,jz4725b-ost";
107			reg = <0xe0 0x20>;
108
109			clocks = <&tcu TCU_CLK_OST>;
110			clock-names = "ost";
111
112			interrupts = <15>;
113		};
114	};
115
116	rtc_dev: rtc@10003000 {
117		compatible = "ingenic,jz4725b-rtc", "ingenic,jz4740-rtc";
118		reg = <0x10003000 0x40>;
119
120		interrupt-parent = <&intc>;
121		interrupts = <6>;
122
123		clocks = <&cgu JZ4725B_CLK_RTC>;
124		clock-names = "rtc";
125	};
126
127	pinctrl: pinctrl@10010000 {
128		compatible = "ingenic,jz4725b-pinctrl";
129		reg = <0x10010000 0x400>;
130
131		#address-cells = <1>;
132		#size-cells = <0>;
133
134		gpa: gpio@0 {
135			compatible = "ingenic,jz4725b-gpio";
136			reg = <0>;
137
138			gpio-controller;
139			gpio-ranges = <&pinctrl 0 0 32>;
140			#gpio-cells = <2>;
141
142			interrupt-controller;
143			#interrupt-cells = <2>;
144
145			interrupt-parent = <&intc>;
146			interrupts = <16>;
147		};
148
149		gpb: gpio@1 {
150			compatible = "ingenic,jz4725b-gpio";
151			reg = <1>;
152
153			gpio-controller;
154			gpio-ranges = <&pinctrl 0 32 32>;
155			#gpio-cells = <2>;
156
157			interrupt-controller;
158			#interrupt-cells = <2>;
159
160			interrupt-parent = <&intc>;
161			interrupts = <15>;
162		};
163
164		gpc: gpio@2 {
165			compatible = "ingenic,jz4725b-gpio";
166			reg = <2>;
167
168			gpio-controller;
169			gpio-ranges = <&pinctrl 0 64 32>;
170			#gpio-cells = <2>;
171
172			interrupt-controller;
173			#interrupt-cells = <2>;
174
175			interrupt-parent = <&intc>;
176			interrupts = <14>;
177		};
178
179		gpd: gpio@3 {
180			compatible = "ingenic,jz4725b-gpio";
181			reg = <3>;
182
183			gpio-controller;
184			gpio-ranges = <&pinctrl 0 96 32>;
185			#gpio-cells = <2>;
186
187			interrupt-controller;
188			#interrupt-cells = <2>;
189
190			interrupt-parent = <&intc>;
191			interrupts = <13>;
192		};
193	};
194
195	aic: audio-controller@10020000 {
196		compatible = "ingenic,jz4725b-i2s", "ingenic,jz4740-i2s";
197		reg = <0x10020000 0x38>;
198
199		#sound-dai-cells = <0>;
200
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";
206
207		interrupt-parent = <&intc>;
208		interrupts = <10>;
209
210		dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
211		dma-names = "rx", "tx";
212	};
213
214	codec: audio-codec@100200a4 {
215		compatible = "ingenic,jz4725b-codec";
216		reg = <0x100200a4 0x8>;
217
218		#sound-dai-cells = <0>;
219
220		clocks = <&cgu JZ4725B_CLK_AIC>;
221		clock-names = "aic";
222	};
223
224	mmc0: mmc@10021000 {
225		compatible = "ingenic,jz4725b-mmc";
226		reg = <0x10021000 0x1000>;
227
228		clocks = <&cgu JZ4725B_CLK_MMC0>;
229		clock-names = "mmc";
230
231		interrupt-parent = <&intc>;
232		interrupts = <25>;
233
234		dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
235		dma-names = "rx", "tx";
236
237		cap-sd-highspeed;
238		cap-mmc-highspeed;
239		cap-sdio-irq;
240	};
241
242	mmc1: mmc@10022000 {
243		compatible = "ingenic,jz4725b-mmc";
244		reg = <0x10022000 0x1000>;
245
246		clocks = <&cgu JZ4725B_CLK_MMC1>;
247		clock-names = "mmc";
248
249		interrupt-parent = <&intc>;
250		interrupts = <24>;
251
252		dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>;
253		dma-names = "rx", "tx";
254
255		cap-sd-highspeed;
256		cap-mmc-highspeed;
257		cap-sdio-irq;
258	};
259
260	uart: serial@10030000 {
261		compatible = "ingenic,jz4725b-uart", "ingenic,jz4740-uart";
262		reg = <0x10030000 0x100>;
263
264		interrupt-parent = <&intc>;
265		interrupts = <9>;
266
267		clocks = <&ext>, <&cgu JZ4725B_CLK_UART>;
268		clock-names = "baud", "module";
269	};
270
271	adc: adc@10070000 {
272		compatible = "ingenic,jz4725b-adc";
273		#io-channel-cells = <1>;
274
275		reg = <0x10070000 0x30>;
276		#address-cells = <1>;
277		#size-cells = <1>;
278		ranges = <0x0 0x10070000 0x30>;
279
280		clocks = <&cgu JZ4725B_CLK_ADC>;
281		clock-names = "adc";
282
283		interrupt-parent = <&intc>;
284		interrupts = <18>;
285	};
286
287	nemc: memory-controller@13010000 {
288		compatible = "ingenic,jz4725b-nemc", "ingenic,jz4740-nemc";
289		reg = <0x13010000 0x10000>;
290		#address-cells = <2>;
291		#size-cells = <1>;
292		ranges = <1 0 0x18000000 0x4000000>, <2 0 0x14000000 0x4000000>,
293			 <3 0 0x0c000000 0x4000000>, <4 0 0x08000000 0x4000000>;
294
295		clocks = <&cgu JZ4725B_CLK_MCLK>;
296	};
297
298	dmac: dma-controller@13020000 {
299		compatible = "ingenic,jz4725b-dma";
300		reg = <0x13020000 0xd8>, <0x13020300 0x14>;
301
302		#dma-cells = <2>;
303
304		interrupt-parent = <&intc>;
305		interrupts = <29>;
306
307		clocks = <&cgu JZ4725B_CLK_DMA>;
308	};
309
310	udc: usb@13040000 {
311		compatible = "ingenic,jz4725b-musb", "ingenic,jz4740-musb";
312		reg = <0x13040000 0x10000>;
313
314		interrupt-parent = <&intc>;
315		interrupts = <27>;
316		interrupt-names = "mc";
317
318		clocks = <&cgu JZ4725B_CLK_UDC>;
319		clock-names = "udc";
320	};
321
322	lcd: lcd-controller@13050000 {
323		compatible = "ingenic,jz4725b-lcd";
324		reg = <0x13050000 0x130>; /* tbc */
325
326		interrupt-parent = <&intc>;
327		interrupts = <31>;
328
329		clocks = <&cgu JZ4725B_CLK_LCD>;
330		clock-names = "lcd_pclk";
331
332		lcd_ports: ports {
333			#address-cells = <1>;
334			#size-cells = <0>;
335
336			port@8 {
337				reg = <8>;
338
339				ipu_output: endpoint {
340					remote-endpoint = <&ipu_input>;
341				};
342			};
343		};
344	};
345
346	ipu: ipu@13080000 {
347		compatible = "ingenic,jz4725b-ipu";
348		reg = <0x13080000 0x64>;
349
350		interrupt-parent = <&intc>;
351		interrupts = <30>;
352
353		clocks = <&cgu JZ4725B_CLK_IPU>;
354		clock-names = "ipu";
355
356		port {
357			ipu_input: endpoint {
358				remote-endpoint = <&ipu_output>;
359			};
360		};
361	};
362
363	bch: ecc-controller@130d0000 {
364		compatible = "ingenic,jz4725b-bch";
365		reg = <0x130d0000 0x44>;
366
367		clocks = <&cgu JZ4725B_CLK_BCH>;
368	};
369
370	rom: memory@1fc00000 {
371		compatible = "mtd-rom";
372		probe-type = "map_rom";
373		reg = <0x1fc00000 0x2000>;
374
375		bank-width = <4>;
376		device-width = <1>;
377	};
378};
v5.9
  1// SPDX-License-Identifier: GPL-2.0
  2#include <dt-bindings/clock/jz4725b-cgu.h>
  3#include <dt-bindings/clock/ingenic,tcu.h>
  4
  5/ {
  6	#address-cells = <1>;
  7	#size-cells = <1>;
  8	compatible = "ingenic,jz4725b";
  9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 10	cpuintc: interrupt-controller {
 11		#address-cells = <0>;
 12		#interrupt-cells = <1>;
 13		interrupt-controller;
 14		compatible = "mti,cpu-interrupt-controller";
 15	};
 16
 17	intc: interrupt-controller@10001000 {
 18		compatible = "ingenic,jz4725b-intc", "ingenic,jz4740-intc";
 19		reg = <0x10001000 0x14>;
 20
 21		interrupt-controller;
 22		#interrupt-cells = <1>;
 23
 24		interrupt-parent = <&cpuintc>;
 25		interrupts = <2>;
 26	};
 27
 28	ext: ext {
 29		compatible = "fixed-clock";
 30		#clock-cells = <0>;
 31	};
 32
 33	osc32k: osc32k {
 34		compatible = "fixed-clock";
 35		#clock-cells = <0>;
 36		clock-frequency = <32768>;
 37	};
 38
 39	cgu: clock-controller@10000000 {
 40		compatible = "ingenic,jz4725b-cgu";
 41		reg = <0x10000000 0x100>;
 42
 43		clocks = <&ext>, <&osc32k>;
 44		clock-names = "ext", "osc32k";
 45
 46		#clock-cells = <1>;
 47	};
 48
 49	tcu: timer@10002000 {
 50		compatible = "ingenic,jz4725b-tcu", "simple-mfd";
 51		reg = <0x10002000 0x1000>;
 52		#address-cells = <1>;
 53		#size-cells = <1>;
 54		ranges = <0x0 0x10002000 0x1000>;
 55
 56		#clock-cells = <1>;
 57
 58		clocks = <&cgu JZ4725B_CLK_RTC>,
 59			 <&cgu JZ4725B_CLK_EXT>,
 60			 <&cgu JZ4725B_CLK_PCLK>,
 61			 <&cgu JZ4725B_CLK_TCU>;
 62		clock-names = "rtc", "ext", "pclk", "tcu";
 63
 64		interrupt-controller;
 65		#interrupt-cells = <1>;
 66
 67		interrupt-parent = <&intc>;
 68		interrupts = <23>, <22>, <21>;
 69
 70		watchdog: watchdog@0 {
 71			compatible = "ingenic,jz4725b-watchdog", "ingenic,jz4740-watchdog";
 72			reg = <0x0 0xc>;
 73
 74			clocks = <&tcu TCU_CLK_WDT>;
 75			clock-names = "wdt";
 76		};
 77
 78		pwm: pwm@60 {
 79			compatible = "ingenic,jz4725b-pwm";
 80			reg = <0x60 0x40>;
 81
 82			#pwm-cells = <3>;
 83
 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			clock-names = "timer0", "timer1", "timer2",
 88				      "timer3", "timer4", "timer5";
 89		};
 90
 91		ost: timer@e0 {
 92			compatible = "ingenic,jz4725b-ost";
 93			reg = <0xe0 0x20>;
 94
 95			clocks = <&tcu TCU_CLK_OST>;
 96			clock-names = "ost";
 97
 98			interrupts = <15>;
 99		};
100	};
101
102	rtc_dev: rtc@10003000 {
103		compatible = "ingenic,jz4725b-rtc", "ingenic,jz4740-rtc";
104		reg = <0x10003000 0x40>;
105
106		interrupt-parent = <&intc>;
107		interrupts = <6>;
108
109		clocks = <&cgu JZ4725B_CLK_RTC>;
110		clock-names = "rtc";
111	};
112
113	pinctrl: pinctrl@10010000 {
114		compatible = "ingenic,jz4725b-pinctrl";
115		reg = <0x10010000 0x400>;
116
117		#address-cells = <1>;
118		#size-cells = <0>;
119
120		gpa: gpio@0 {
121			compatible = "ingenic,jz4725b-gpio";
122			reg = <0>;
123
124			gpio-controller;
125			gpio-ranges = <&pinctrl 0 0 32>;
126			#gpio-cells = <2>;
127
128			interrupt-controller;
129			#interrupt-cells = <2>;
130
131			interrupt-parent = <&intc>;
132			interrupts = <16>;
133		};
134
135		gpb: gpio@1 {
136			compatible = "ingenic,jz4725b-gpio";
137			reg = <1>;
138
139			gpio-controller;
140			gpio-ranges = <&pinctrl 0 32 32>;
141			#gpio-cells = <2>;
142
143			interrupt-controller;
144			#interrupt-cells = <2>;
145
146			interrupt-parent = <&intc>;
147			interrupts = <15>;
148		};
149
150		gpc: gpio@2 {
151			compatible = "ingenic,jz4725b-gpio";
152			reg = <2>;
153
154			gpio-controller;
155			gpio-ranges = <&pinctrl 0 64 32>;
156			#gpio-cells = <2>;
157
158			interrupt-controller;
159			#interrupt-cells = <2>;
160
161			interrupt-parent = <&intc>;
162			interrupts = <14>;
163		};
164
165		gpd: gpio@3 {
166			compatible = "ingenic,jz4725b-gpio";
167			reg = <3>;
168
169			gpio-controller;
170			gpio-ranges = <&pinctrl 0 96 32>;
171			#gpio-cells = <2>;
172
173			interrupt-controller;
174			#interrupt-cells = <2>;
175
176			interrupt-parent = <&intc>;
177			interrupts = <13>;
178		};
179	};
180
181	aic: audio-controller@10020000 {
182		compatible = "ingenic,jz4725b-i2s", "ingenic,jz4740-i2s";
183		reg = <0x10020000 0x38>;
184
185		#sound-dai-cells = <0>;
186
187		clocks = <&cgu JZ4725B_CLK_AIC>,
188			 <&cgu JZ4725B_CLK_I2S>,
189			 <&cgu JZ4725B_CLK_EXT>,
190			 <&cgu JZ4725B_CLK_PLL_HALF>;
191		clock-names = "aic", "i2s", "ext", "pll half";
192
193		interrupt-parent = <&intc>;
194		interrupts = <10>;
195
196		dmas = <&dmac 25 0xffffffff>, <&dmac 24 0xffffffff>;
197		dma-names = "rx", "tx";
198	};
199
200	codec: audio-codec@100200a4 {
201		compatible = "ingenic,jz4725b-codec";
202		reg = <0x100200a4 0x8>;
203
204		#sound-dai-cells = <0>;
205
206		clocks = <&cgu JZ4725B_CLK_AIC>;
207		clock-names = "aic";
208	};
209
210	mmc0: mmc@10021000 {
211		compatible = "ingenic,jz4725b-mmc";
212		reg = <0x10021000 0x1000>;
213
214		clocks = <&cgu JZ4725B_CLK_MMC0>;
215		clock-names = "mmc";
216
217		interrupt-parent = <&intc>;
218		interrupts = <25>;
219
220		dmas = <&dmac 27 0xffffffff>, <&dmac 26 0xffffffff>;
221		dma-names = "rx", "tx";
222
223		cap-sd-highspeed;
224		cap-mmc-highspeed;
225		cap-sdio-irq;
226	};
227
228	mmc1: mmc@10022000 {
229		compatible = "ingenic,jz4725b-mmc";
230		reg = <0x10022000 0x1000>;
231
232		clocks = <&cgu JZ4725B_CLK_MMC1>;
233		clock-names = "mmc";
234
235		interrupt-parent = <&intc>;
236		interrupts = <24>;
237
238		dmas = <&dmac 31 0xffffffff>, <&dmac 30 0xffffffff>;
239		dma-names = "rx", "tx";
240
241		cap-sd-highspeed;
242		cap-mmc-highspeed;
243		cap-sdio-irq;
244	};
245
246	uart: serial@10030000 {
247		compatible = "ingenic,jz4725b-uart", "ingenic,jz4740-uart";
248		reg = <0x10030000 0x100>;
249
250		interrupt-parent = <&intc>;
251		interrupts = <9>;
252
253		clocks = <&ext>, <&cgu JZ4725B_CLK_UART>;
254		clock-names = "baud", "module";
255	};
256
257	adc: adc@10070000 {
258		compatible = "ingenic,jz4725b-adc";
259		#io-channel-cells = <1>;
260
261		reg = <0x10070000 0x30>;
262		#address-cells = <1>;
263		#size-cells = <1>;
264		ranges = <0x0 0x10070000 0x30>;
265
266		clocks = <&cgu JZ4725B_CLK_ADC>;
267		clock-names = "adc";
268
269		interrupt-parent = <&intc>;
270		interrupts = <18>;
271	};
272
273	nemc: memory-controller@13010000 {
274		compatible = "ingenic,jz4725b-nemc", "ingenic,jz4740-nemc";
275		reg = <0x13010000 0x10000>;
276		#address-cells = <2>;
277		#size-cells = <1>;
278		ranges = <1 0 0x18000000 0x4000000>, <2 0 0x14000000 0x4000000>,
279			 <3 0 0x0c000000 0x4000000>, <4 0 0x08000000 0x4000000>;
280
281		clocks = <&cgu JZ4725B_CLK_MCLK>;
282	};
283
284	dmac: dma-controller@13020000 {
285		compatible = "ingenic,jz4725b-dma";
286		reg = <0x13020000 0xd8>, <0x13020300 0x14>;
287
288		#dma-cells = <2>;
289
290		interrupt-parent = <&intc>;
291		interrupts = <29>;
292
293		clocks = <&cgu JZ4725B_CLK_DMA>;
294	};
295
296	udc: usb@13040000 {
297		compatible = "ingenic,jz4725b-musb", "ingenic,jz4740-musb";
298		reg = <0x13040000 0x10000>;
299
300		interrupt-parent = <&intc>;
301		interrupts = <27>;
302		interrupt-names = "mc";
303
304		clocks = <&cgu JZ4725B_CLK_UDC>;
305		clock-names = "udc";
306	};
307
308	lcd: lcd-controller@13050000 {
309		compatible = "ingenic,jz4725b-lcd";
310		reg = <0x13050000 0x1000>;
311
312		interrupt-parent = <&intc>;
313		interrupts = <31>;
314
315		clocks = <&cgu JZ4725B_CLK_LCD>;
316		clock-names = "lcd_pclk";
317
318		lcd_ports: ports {
319			#address-cells = <1>;
320			#size-cells = <0>;
321
322			port@8 {
323				reg = <8>;
324
325				ipu_output: endpoint {
326					remote-endpoint = <&ipu_input>;
327				};
328			};
329		};
330	};
331
332	ipu: ipu@13080000 {
333		compatible = "ingenic,jz4725b-ipu";
334		reg = <0x13080000 0x64>;
335
336		interrupt-parent = <&intc>;
337		interrupts = <30>;
338
339		clocks = <&cgu JZ4725B_CLK_IPU>;
340		clock-names = "ipu";
341
342		port {
343			ipu_input: endpoint {
344				remote-endpoint = <&ipu_output>;
345			};
346		};
347	};
348
349	bch: ecc-controller@130d0000 {
350		compatible = "ingenic,jz4725b-bch";
351		reg = <0x130d0000 0x44>;
352
353		clocks = <&cgu JZ4725B_CLK_BCH>;
354	};
355
356	rom: memory@1fc00000 {
357		compatible = "mtd-rom";
358		probe-type = "map_rom";
359		reg = <0x1fc00000 0x2000>;
360
361		bank-width = <4>;
362		device-width = <1>;
363	};
364};