xref: /openbmc/linux/arch/mips/boot/dts/ingenic/jz4780.dtsi (revision 8931ddd8d6a55fcefb20f44a38ba42bb746f0b62)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
2c4a11bf4SPaul Cercueil#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
311479e8eSPaul Cercueil#include <dt-bindings/clock/ingenic,tcu.h>
42d972b6aSEzequiel Garcia#include <dt-bindings/dma/jz4780-dma.h>
55b9cdd24SPaul Burton
65b9cdd24SPaul Burton/ {
75b9cdd24SPaul Burton	#address-cells = <1>;
85b9cdd24SPaul Burton	#size-cells = <1>;
95b9cdd24SPaul Burton	compatible = "ingenic,jz4780";
105b9cdd24SPaul Burton
11c1f6b45eS周琰杰 (Zhou Yanjie)	cpus {
12c1f6b45eS周琰杰 (Zhou Yanjie)		#address-cells = <1>;
13c1f6b45eS周琰杰 (Zhou Yanjie)		#size-cells = <0>;
14c1f6b45eS周琰杰 (Zhou Yanjie)
15c1f6b45eS周琰杰 (Zhou Yanjie)		cpu0: cpu@0 {
16c1f6b45eS周琰杰 (Zhou Yanjie)			device_type = "cpu";
17c1f6b45eS周琰杰 (Zhou Yanjie)			compatible = "ingenic,xburst-fpu1.0-mxu1.1";
18c1f6b45eS周琰杰 (Zhou Yanjie)			reg = <0>;
19c1f6b45eS周琰杰 (Zhou Yanjie)
20c1f6b45eS周琰杰 (Zhou Yanjie)			clocks = <&cgu JZ4780_CLK_CPU>;
21c1f6b45eS周琰杰 (Zhou Yanjie)			clock-names = "cpu";
22c1f6b45eS周琰杰 (Zhou Yanjie)		};
23c1f6b45eS周琰杰 (Zhou Yanjie)
24c1f6b45eS周琰杰 (Zhou Yanjie)		cpu1: cpu@1 {
25c1f6b45eS周琰杰 (Zhou Yanjie)			device_type = "cpu";
26c1f6b45eS周琰杰 (Zhou Yanjie)			compatible = "ingenic,xburst-fpu1.0-mxu1.1";
27c1f6b45eS周琰杰 (Zhou Yanjie)			reg = <1>;
28c1f6b45eS周琰杰 (Zhou Yanjie)
29c1f6b45eS周琰杰 (Zhou Yanjie)			clocks = <&cgu JZ4780_CLK_CORE1>;
30c1f6b45eS周琰杰 (Zhou Yanjie)			clock-names = "cpu";
31c1f6b45eS周琰杰 (Zhou Yanjie)		};
32c1f6b45eS周琰杰 (Zhou Yanjie)	};
33c1f6b45eS周琰杰 (Zhou Yanjie)
345b9cdd24SPaul Burton	cpuintc: interrupt-controller {
355b9cdd24SPaul Burton		#address-cells = <0>;
365b9cdd24SPaul Burton		#interrupt-cells = <1>;
375b9cdd24SPaul Burton		interrupt-controller;
385b9cdd24SPaul Burton		compatible = "mti,cpu-interrupt-controller";
395b9cdd24SPaul Burton	};
405b9cdd24SPaul Burton
415b9cdd24SPaul Burton	intc: interrupt-controller@10001000 {
425b9cdd24SPaul Burton		compatible = "ingenic,jz4780-intc";
435b9cdd24SPaul Burton		reg = <0x10001000 0x50>;
445b9cdd24SPaul Burton
455b9cdd24SPaul Burton		interrupt-controller;
465b9cdd24SPaul Burton		#interrupt-cells = <1>;
475b9cdd24SPaul Burton
485b9cdd24SPaul Burton		interrupt-parent = <&cpuintc>;
495b9cdd24SPaul Burton		interrupts = <2>;
505b9cdd24SPaul Burton	};
515b9cdd24SPaul Burton
525b9cdd24SPaul Burton	ext: ext {
535b9cdd24SPaul Burton		compatible = "fixed-clock";
545b9cdd24SPaul Burton		#clock-cells = <0>;
555b9cdd24SPaul Burton	};
565b9cdd24SPaul Burton
575b9cdd24SPaul Burton	rtc: rtc {
585b9cdd24SPaul Burton		compatible = "fixed-clock";
595b9cdd24SPaul Burton		#clock-cells = <0>;
605b9cdd24SPaul Burton		clock-frequency = <32768>;
615b9cdd24SPaul Burton	};
625b9cdd24SPaul Burton
635b9cdd24SPaul Burton	cgu: jz4780-cgu@10000000 {
64158c774dS周琰杰 (Zhou Yanjie)		compatible = "ingenic,jz4780-cgu", "simple-mfd";
655b9cdd24SPaul Burton		reg = <0x10000000 0x100>;
66158c774dS周琰杰 (Zhou Yanjie)		#address-cells = <1>;
67158c774dS周琰杰 (Zhou Yanjie)		#size-cells = <1>;
68158c774dS周琰杰 (Zhou Yanjie)		ranges = <0x0 0x10000000 0x100>;
69158c774dS周琰杰 (Zhou Yanjie)
70158c774dS周琰杰 (Zhou Yanjie)		#clock-cells = <1>;
715b9cdd24SPaul Burton
725b9cdd24SPaul Burton		clocks = <&ext>, <&rtc>;
735b9cdd24SPaul Burton		clock-names = "ext", "rtc";
745b9cdd24SPaul Burton
75158c774dS周琰杰 (Zhou Yanjie)		otg_phy: usb-phy@3c {
76158c774dS周琰杰 (Zhou Yanjie)			compatible = "ingenic,jz4780-phy";
77158c774dS周琰杰 (Zhou Yanjie)			reg = <0x3c 0x10>;
78158c774dS周琰杰 (Zhou Yanjie)
79158c774dS周琰杰 (Zhou Yanjie)			clocks = <&cgu JZ4780_CLK_OTG1>;
80158c774dS周琰杰 (Zhou Yanjie)
81158c774dS周琰杰 (Zhou Yanjie)			#phy-cells = <0>;
82158c774dS周琰杰 (Zhou Yanjie)
83158c774dS周琰杰 (Zhou Yanjie)			status = "disabled";
84158c774dS周琰杰 (Zhou Yanjie)		};
85158c774dS周琰杰 (Zhou Yanjie)
86158c774dS周琰杰 (Zhou Yanjie)		rng: rng@d8 {
87158c774dS周琰杰 (Zhou Yanjie)			compatible = "ingenic,jz4780-rng";
88158c774dS周琰杰 (Zhou Yanjie)			reg = <0xd8 0x8>;
89158c774dS周琰杰 (Zhou Yanjie)
90158c774dS周琰杰 (Zhou Yanjie)			status = "disabled";
91158c774dS周琰杰 (Zhou Yanjie)		};
925b9cdd24SPaul Burton	};
935b9cdd24SPaul Burton
9436aafdbdSPaul Cercueil	tcu: timer@10002000 {
9536aafdbdSPaul Cercueil		compatible = "ingenic,jz4780-tcu",
9636aafdbdSPaul Cercueil			     "ingenic,jz4770-tcu",
9736aafdbdSPaul Cercueil			     "simple-mfd";
9836aafdbdSPaul Cercueil		reg = <0x10002000 0x1000>;
9936aafdbdSPaul Cercueil		#address-cells = <1>;
10036aafdbdSPaul Cercueil		#size-cells = <1>;
10136aafdbdSPaul Cercueil		ranges = <0x0 0x10002000 0x1000>;
10236aafdbdSPaul Cercueil
10336aafdbdSPaul Cercueil		#clock-cells = <1>;
10436aafdbdSPaul Cercueil
105cf2e6b8eSPaul Cercueil		clocks = <&cgu JZ4780_CLK_RTCLK>,
106cf2e6b8eSPaul Cercueil			 <&cgu JZ4780_CLK_EXCLK>,
107cf2e6b8eSPaul Cercueil			 <&cgu JZ4780_CLK_PCLK>;
10836aafdbdSPaul Cercueil		clock-names = "rtc", "ext", "pclk";
10936aafdbdSPaul Cercueil
11036aafdbdSPaul Cercueil		interrupt-controller;
11136aafdbdSPaul Cercueil		#interrupt-cells = <1>;
11236aafdbdSPaul Cercueil
11336aafdbdSPaul Cercueil		interrupt-parent = <&intc>;
11436aafdbdSPaul Cercueil		interrupts = <27 26 25>;
11511479e8eSPaul Cercueil
11611479e8eSPaul Cercueil		watchdog: watchdog@0 {
11711479e8eSPaul Cercueil			compatible = "ingenic,jz4780-watchdog";
11811479e8eSPaul Cercueil			reg = <0x0 0xc>;
11911479e8eSPaul Cercueil
12011479e8eSPaul Cercueil			clocks = <&tcu TCU_CLK_WDT>;
12111479e8eSPaul Cercueil			clock-names = "wdt";
12211479e8eSPaul Cercueil		};
123bf40bf5eSPaul Cercueil
124bf40bf5eSPaul Cercueil		pwm: pwm@40 {
125bf40bf5eSPaul Cercueil			compatible = "ingenic,jz4780-pwm", "ingenic,jz4740-pwm";
126bf40bf5eSPaul Cercueil			reg = <0x40 0x80>;
127bf40bf5eSPaul Cercueil
128bf40bf5eSPaul Cercueil			#pwm-cells = <3>;
129bf40bf5eSPaul Cercueil
130bf40bf5eSPaul Cercueil			clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
131bf40bf5eSPaul Cercueil				 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>,
132bf40bf5eSPaul Cercueil				 <&tcu TCU_CLK_TIMER4>, <&tcu TCU_CLK_TIMER5>,
133bf40bf5eSPaul Cercueil				 <&tcu TCU_CLK_TIMER6>, <&tcu TCU_CLK_TIMER7>;
134bf40bf5eSPaul Cercueil			clock-names = "timer0", "timer1", "timer2", "timer3",
135bf40bf5eSPaul Cercueil				      "timer4", "timer5", "timer6", "timer7";
136bf40bf5eSPaul Cercueil		};
137bf40bf5eSPaul Cercueil
138bf40bf5eSPaul Cercueil		ost: timer@e0 {
139bf40bf5eSPaul Cercueil			compatible = "ingenic,jz4780-ost", "ingenic,jz4770-ost";
140bf40bf5eSPaul Cercueil			reg = <0xe0 0x20>;
141bf40bf5eSPaul Cercueil
142bf40bf5eSPaul Cercueil			clocks = <&tcu TCU_CLK_OST>;
143bf40bf5eSPaul Cercueil			clock-names = "ost";
144bf40bf5eSPaul Cercueil
145bf40bf5eSPaul Cercueil			interrupts = <15>;
146bf40bf5eSPaul Cercueil		};
14736aafdbdSPaul Cercueil	};
14836aafdbdSPaul Cercueil
149ed326616SMathieu Malaterre	rtc_dev: rtc@10003000 {
150ed326616SMathieu Malaterre		compatible = "ingenic,jz4780-rtc";
151ed326616SMathieu Malaterre		reg = <0x10003000 0x4c>;
152ed326616SMathieu Malaterre
153ed326616SMathieu Malaterre		interrupt-parent = <&intc>;
154ed326616SMathieu Malaterre		interrupts = <32>;
155ed326616SMathieu Malaterre
156ed326616SMathieu Malaterre		clocks = <&cgu JZ4780_CLK_RTCLK>;
157ed326616SMathieu Malaterre		clock-names = "rtc";
158ed326616SMathieu Malaterre	};
159ed326616SMathieu Malaterre
160d32613c3SPaul Cercueil	pinctrl: pin-controller@10010000 {
161d32613c3SPaul Cercueil		compatible = "ingenic,jz4780-pinctrl";
162d32613c3SPaul Cercueil		reg = <0x10010000 0x600>;
163d32613c3SPaul Cercueil
164d32613c3SPaul Cercueil		#address-cells = <1>;
165d32613c3SPaul Cercueil		#size-cells = <0>;
166d32613c3SPaul Cercueil
167d32613c3SPaul Cercueil		gpa: gpio@0 {
168d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
169d32613c3SPaul Cercueil			reg = <0>;
170d32613c3SPaul Cercueil
171d32613c3SPaul Cercueil			gpio-controller;
172d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 0 32>;
173d32613c3SPaul Cercueil			#gpio-cells = <2>;
174d32613c3SPaul Cercueil
175d32613c3SPaul Cercueil			interrupt-controller;
176d32613c3SPaul Cercueil			#interrupt-cells = <2>;
177d32613c3SPaul Cercueil
178d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
179d32613c3SPaul Cercueil			interrupts = <17>;
180d32613c3SPaul Cercueil		};
181d32613c3SPaul Cercueil
182d32613c3SPaul Cercueil		gpb: gpio@1 {
183d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
184d32613c3SPaul Cercueil			reg = <1>;
185d32613c3SPaul Cercueil
186d32613c3SPaul Cercueil			gpio-controller;
187d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 32 32>;
188d32613c3SPaul Cercueil			#gpio-cells = <2>;
189d32613c3SPaul Cercueil
190d32613c3SPaul Cercueil			interrupt-controller;
191d32613c3SPaul Cercueil			#interrupt-cells = <2>;
192d32613c3SPaul Cercueil
193d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
194d32613c3SPaul Cercueil			interrupts = <16>;
195d32613c3SPaul Cercueil		};
196d32613c3SPaul Cercueil
197d32613c3SPaul Cercueil		gpc: gpio@2 {
198d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
199d32613c3SPaul Cercueil			reg = <2>;
200d32613c3SPaul Cercueil
201d32613c3SPaul Cercueil			gpio-controller;
202d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 64 32>;
203d32613c3SPaul Cercueil			#gpio-cells = <2>;
204d32613c3SPaul Cercueil
205d32613c3SPaul Cercueil			interrupt-controller;
206d32613c3SPaul Cercueil			#interrupt-cells = <2>;
207d32613c3SPaul Cercueil
208d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
209d32613c3SPaul Cercueil			interrupts = <15>;
210d32613c3SPaul Cercueil		};
211d32613c3SPaul Cercueil
212d32613c3SPaul Cercueil		gpd: gpio@3 {
213d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
214d32613c3SPaul Cercueil			reg = <3>;
215d32613c3SPaul Cercueil
216d32613c3SPaul Cercueil			gpio-controller;
217d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 96 32>;
218d32613c3SPaul Cercueil			#gpio-cells = <2>;
219d32613c3SPaul Cercueil
220d32613c3SPaul Cercueil			interrupt-controller;
221d32613c3SPaul Cercueil			#interrupt-cells = <2>;
222d32613c3SPaul Cercueil
223d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
224d32613c3SPaul Cercueil			interrupts = <14>;
225d32613c3SPaul Cercueil		};
226d32613c3SPaul Cercueil
227d32613c3SPaul Cercueil		gpe: gpio@4 {
228d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
229d32613c3SPaul Cercueil			reg = <4>;
230d32613c3SPaul Cercueil
231d32613c3SPaul Cercueil			gpio-controller;
232d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 128 32>;
233d32613c3SPaul Cercueil			#gpio-cells = <2>;
234d32613c3SPaul Cercueil
235d32613c3SPaul Cercueil			interrupt-controller;
236d32613c3SPaul Cercueil			#interrupt-cells = <2>;
237d32613c3SPaul Cercueil
238d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
239d32613c3SPaul Cercueil			interrupts = <13>;
240d32613c3SPaul Cercueil		};
241d32613c3SPaul Cercueil
242d32613c3SPaul Cercueil		gpf: gpio@5 {
243d32613c3SPaul Cercueil			compatible = "ingenic,jz4780-gpio";
244d32613c3SPaul Cercueil			reg = <5>;
245d32613c3SPaul Cercueil
246d32613c3SPaul Cercueil			gpio-controller;
247d32613c3SPaul Cercueil			gpio-ranges = <&pinctrl 0 160 32>;
248d32613c3SPaul Cercueil			#gpio-cells = <2>;
249d32613c3SPaul Cercueil
250d32613c3SPaul Cercueil			interrupt-controller;
251d32613c3SPaul Cercueil			#interrupt-cells = <2>;
252d32613c3SPaul Cercueil
253d32613c3SPaul Cercueil			interrupt-parent = <&intc>;
254d32613c3SPaul Cercueil			interrupts = <12>;
255d32613c3SPaul Cercueil		};
256d32613c3SPaul Cercueil	};
257d32613c3SPaul Cercueil
2587b3fd810SArtur Rojek	spi0: spi@10043000 {
2597b3fd810SArtur Rojek		compatible = "ingenic,jz4780-spi";
2607b3fd810SArtur Rojek		reg = <0x10043000 0x1c>;
261c24f5762SMathieu Malaterre		#address-cells = <1>;
262c24f5762SMathieu Malaterre		#size-cells = <0>;
263c24f5762SMathieu Malaterre
2647b3fd810SArtur Rojek		interrupt-parent = <&intc>;
2657b3fd810SArtur Rojek		interrupts = <8>;
266c24f5762SMathieu Malaterre
2677b3fd810SArtur Rojek		clocks = <&cgu JZ4780_CLK_SSI0>;
2687b3fd810SArtur Rojek		clock-names = "spi";
2697b3fd810SArtur Rojek
2707b3fd810SArtur Rojek		dmas = <&dma JZ4780_DMA_SSI0_RX 0xffffffff>,
2717b3fd810SArtur Rojek		       <&dma JZ4780_DMA_SSI0_TX 0xffffffff>;
2727b3fd810SArtur Rojek		dma-names = "rx", "tx";
2737b3fd810SArtur Rojek
2747b3fd810SArtur Rojek		status = "disabled";
275c24f5762SMathieu Malaterre	};
276c24f5762SMathieu Malaterre
2775b9cdd24SPaul Burton	uart0: serial@10030000 {
2785b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
2795b9cdd24SPaul Burton		reg = <0x10030000 0x100>;
2805b9cdd24SPaul Burton
2815b9cdd24SPaul Burton		interrupt-parent = <&intc>;
2825b9cdd24SPaul Burton		interrupts = <51>;
2835b9cdd24SPaul Burton
2845b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART0>;
2855b9cdd24SPaul Burton		clock-names = "baud", "module";
2865b9cdd24SPaul Burton
2875b9cdd24SPaul Burton		status = "disabled";
2885b9cdd24SPaul Burton	};
2895b9cdd24SPaul Burton
2905b9cdd24SPaul Burton	uart1: serial@10031000 {
2915b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
2925b9cdd24SPaul Burton		reg = <0x10031000 0x100>;
2935b9cdd24SPaul Burton
2945b9cdd24SPaul Burton		interrupt-parent = <&intc>;
2955b9cdd24SPaul Burton		interrupts = <50>;
2965b9cdd24SPaul Burton
2975b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART1>;
2985b9cdd24SPaul Burton		clock-names = "baud", "module";
2995b9cdd24SPaul Burton
3005b9cdd24SPaul Burton		status = "disabled";
3015b9cdd24SPaul Burton	};
3025b9cdd24SPaul Burton
3035b9cdd24SPaul Burton	uart2: serial@10032000 {
3045b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
3055b9cdd24SPaul Burton		reg = <0x10032000 0x100>;
3065b9cdd24SPaul Burton
3075b9cdd24SPaul Burton		interrupt-parent = <&intc>;
3085b9cdd24SPaul Burton		interrupts = <49>;
3095b9cdd24SPaul Burton
3105b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART2>;
3115b9cdd24SPaul Burton		clock-names = "baud", "module";
3125b9cdd24SPaul Burton
3135b9cdd24SPaul Burton		status = "disabled";
3145b9cdd24SPaul Burton	};
3155b9cdd24SPaul Burton
3165b9cdd24SPaul Burton	uart3: serial@10033000 {
3175b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
3185b9cdd24SPaul Burton		reg = <0x10033000 0x100>;
3195b9cdd24SPaul Burton
3205b9cdd24SPaul Burton		interrupt-parent = <&intc>;
3215b9cdd24SPaul Burton		interrupts = <48>;
3225b9cdd24SPaul Burton
3235b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART3>;
3245b9cdd24SPaul Burton		clock-names = "baud", "module";
3255b9cdd24SPaul Burton
3265b9cdd24SPaul Burton		status = "disabled";
3275b9cdd24SPaul Burton	};
3285b9cdd24SPaul Burton
3295b9cdd24SPaul Burton	uart4: serial@10034000 {
3305b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
3315b9cdd24SPaul Burton		reg = <0x10034000 0x100>;
3325b9cdd24SPaul Burton
3335b9cdd24SPaul Burton		interrupt-parent = <&intc>;
3345b9cdd24SPaul Burton		interrupts = <34>;
3355b9cdd24SPaul Burton
3365b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART4>;
3375b9cdd24SPaul Burton		clock-names = "baud", "module";
3385b9cdd24SPaul Burton
3395b9cdd24SPaul Burton		status = "disabled";
3405b9cdd24SPaul Burton	};
34178800558SAlex Smith
3427b3fd810SArtur Rojek	spi1: spi@10044000 {
3437b3fd810SArtur Rojek		compatible = "ingenic,jz4780-spi";
3447b3fd810SArtur Rojek		reg = <0x10044000 0x1c>;
3457b3fd810SArtur Rojek		#address-cells = <1>;
3467b3fd810SArtur Rojek		#size-sells = <0>;
3477b3fd810SArtur Rojek
3487b3fd810SArtur Rojek		interrupt-parent = <&intc>;
3497b3fd810SArtur Rojek		interrupts = <7>;
3507b3fd810SArtur Rojek
3517b3fd810SArtur Rojek		clocks = <&cgu JZ4780_CLK_SSI1>;
3527b3fd810SArtur Rojek		clock-names = "spi";
3537b3fd810SArtur Rojek
3547b3fd810SArtur Rojek		dmas = <&dma JZ4780_DMA_SSI1_RX 0xffffffff>,
3557b3fd810SArtur Rojek		       <&dma JZ4780_DMA_SSI1_TX 0xffffffff>;
3567b3fd810SArtur Rojek		dma-names = "rx", "tx";
3577b3fd810SArtur Rojek
3587b3fd810SArtur Rojek		status = "disabled";
3597b3fd810SArtur Rojek	};
3607b3fd810SArtur Rojek
361f56a040cSAlexandre GRIVEAUX	i2c0: i2c@10050000 {
362318951afSPaul Cercueil		compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
363f56a040cSAlexandre GRIVEAUX		#address-cells = <1>;
364f56a040cSAlexandre GRIVEAUX		#size-cells = <0>;
365f56a040cSAlexandre GRIVEAUX
366f56a040cSAlexandre GRIVEAUX		reg = <0x10050000 0x1000>;
367f56a040cSAlexandre GRIVEAUX
368f56a040cSAlexandre GRIVEAUX		interrupt-parent = <&intc>;
369f56a040cSAlexandre GRIVEAUX		interrupts = <60>;
370f56a040cSAlexandre GRIVEAUX
371f56a040cSAlexandre GRIVEAUX		clocks = <&cgu JZ4780_CLK_SMB0>;
372f56a040cSAlexandre GRIVEAUX		clock-frequency = <100000>;
373f56a040cSAlexandre GRIVEAUX		pinctrl-names = "default";
374f56a040cSAlexandre GRIVEAUX		pinctrl-0 = <&pins_i2c0_data>;
375f56a040cSAlexandre GRIVEAUX
376f56a040cSAlexandre GRIVEAUX		status = "disabled";
377f56a040cSAlexandre GRIVEAUX	};
378f56a040cSAlexandre GRIVEAUX
379f56a040cSAlexandre GRIVEAUX	i2c1: i2c@10051000 {
380318951afSPaul Cercueil		compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
381f56a040cSAlexandre GRIVEAUX		#address-cells = <1>;
382f56a040cSAlexandre GRIVEAUX		#size-cells = <0>;
383f56a040cSAlexandre GRIVEAUX		reg = <0x10051000 0x1000>;
384f56a040cSAlexandre GRIVEAUX
385f56a040cSAlexandre GRIVEAUX		interrupt-parent = <&intc>;
386f56a040cSAlexandre GRIVEAUX		interrupts = <59>;
387f56a040cSAlexandre GRIVEAUX
388f56a040cSAlexandre GRIVEAUX		clocks = <&cgu JZ4780_CLK_SMB1>;
389f56a040cSAlexandre GRIVEAUX		clock-frequency = <100000>;
390f56a040cSAlexandre GRIVEAUX		pinctrl-names = "default";
391f56a040cSAlexandre GRIVEAUX		pinctrl-0 = <&pins_i2c1_data>;
392f56a040cSAlexandre GRIVEAUX
393f56a040cSAlexandre GRIVEAUX		status = "disabled";
394f56a040cSAlexandre GRIVEAUX	};
395f56a040cSAlexandre GRIVEAUX
396f56a040cSAlexandre GRIVEAUX	i2c2: i2c@10052000 {
397318951afSPaul Cercueil		compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
398f56a040cSAlexandre GRIVEAUX		#address-cells = <1>;
399f56a040cSAlexandre GRIVEAUX		#size-cells = <0>;
400f56a040cSAlexandre GRIVEAUX		reg = <0x10052000 0x1000>;
401f56a040cSAlexandre GRIVEAUX
402f56a040cSAlexandre GRIVEAUX		interrupt-parent = <&intc>;
403f56a040cSAlexandre GRIVEAUX		interrupts = <58>;
404f56a040cSAlexandre GRIVEAUX
405f56a040cSAlexandre GRIVEAUX		clocks = <&cgu JZ4780_CLK_SMB2>;
406f56a040cSAlexandre GRIVEAUX		clock-frequency = <100000>;
407f56a040cSAlexandre GRIVEAUX		pinctrl-names = "default";
408f56a040cSAlexandre GRIVEAUX		pinctrl-0 = <&pins_i2c2_data>;
409f56a040cSAlexandre GRIVEAUX
410f56a040cSAlexandre GRIVEAUX		status = "disabled";
411f56a040cSAlexandre GRIVEAUX	};
412f56a040cSAlexandre GRIVEAUX
413f56a040cSAlexandre GRIVEAUX	i2c3: i2c@10053000 {
414318951afSPaul Cercueil		compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
415f56a040cSAlexandre GRIVEAUX		#address-cells = <1>;
416f56a040cSAlexandre GRIVEAUX		#size-cells = <0>;
417f56a040cSAlexandre GRIVEAUX		reg = <0x10053000 0x1000>;
418f56a040cSAlexandre GRIVEAUX
419f56a040cSAlexandre GRIVEAUX		interrupt-parent = <&intc>;
420f56a040cSAlexandre GRIVEAUX		interrupts = <57>;
421f56a040cSAlexandre GRIVEAUX
422f56a040cSAlexandre GRIVEAUX		clocks = <&cgu JZ4780_CLK_SMB3>;
423f56a040cSAlexandre GRIVEAUX		clock-frequency = <100000>;
424f56a040cSAlexandre GRIVEAUX		pinctrl-names = "default";
425f56a040cSAlexandre GRIVEAUX		pinctrl-0 = <&pins_i2c3_data>;
426f56a040cSAlexandre GRIVEAUX
427f56a040cSAlexandre GRIVEAUX		status = "disabled";
428f56a040cSAlexandre GRIVEAUX	};
429f56a040cSAlexandre GRIVEAUX
430f56a040cSAlexandre GRIVEAUX	i2c4: i2c@10054000 {
431318951afSPaul Cercueil		compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
432f56a040cSAlexandre GRIVEAUX		#address-cells = <1>;
433f56a040cSAlexandre GRIVEAUX		#size-cells = <0>;
434f56a040cSAlexandre GRIVEAUX		reg = <0x10054000 0x1000>;
435f56a040cSAlexandre GRIVEAUX
436f56a040cSAlexandre GRIVEAUX		interrupt-parent = <&intc>;
437f56a040cSAlexandre GRIVEAUX		interrupts = <56>;
438f56a040cSAlexandre GRIVEAUX
439f56a040cSAlexandre GRIVEAUX		clocks = <&cgu JZ4780_CLK_SMB4>;
440f56a040cSAlexandre GRIVEAUX		clock-frequency = <100000>;
441f56a040cSAlexandre GRIVEAUX		pinctrl-names = "default";
442f56a040cSAlexandre GRIVEAUX		pinctrl-0 = <&pins_i2c4_data>;
443f56a040cSAlexandre GRIVEAUX
444f56a040cSAlexandre GRIVEAUX		status = "disabled";
445f56a040cSAlexandre GRIVEAUX	};
446f56a040cSAlexandre GRIVEAUX
4479375100dSPaul Boddie	hdmi: hdmi@10180000 {
4489375100dSPaul Boddie		compatible = "ingenic,jz4780-dw-hdmi";
4499375100dSPaul Boddie		reg = <0x10180000 0x8000>;
4509375100dSPaul Boddie		reg-io-width = <4>;
4519375100dSPaul Boddie
4529375100dSPaul Boddie		clocks = <&cgu JZ4780_CLK_AHB0>, <&cgu JZ4780_CLK_HDMI>;
4539375100dSPaul Boddie		clock-names = "iahb", "isfr";
4549375100dSPaul Boddie
4559375100dSPaul Boddie		interrupt-parent = <&intc>;
4569375100dSPaul Boddie		interrupts = <3>;
4579375100dSPaul Boddie
4589375100dSPaul Boddie		status = "disabled";
4599375100dSPaul Boddie	};
4609375100dSPaul Boddie
4619375100dSPaul Boddie	lcdc0: lcdc0@13050000 {
4629375100dSPaul Boddie		compatible = "ingenic,jz4780-lcd";
4639375100dSPaul Boddie		reg = <0x13050000 0x1800>;
4649375100dSPaul Boddie
4659375100dSPaul Boddie		clocks = <&cgu JZ4780_CLK_TVE>, <&cgu JZ4780_CLK_LCD0PIXCLK>;
4669375100dSPaul Boddie		clock-names = "lcd", "lcd_pclk";
4679375100dSPaul Boddie
4689375100dSPaul Boddie		interrupt-parent = <&intc>;
4699375100dSPaul Boddie		interrupts = <31>;
4709375100dSPaul Boddie
4719375100dSPaul Boddie		status = "disabled";
4729375100dSPaul Boddie	};
4739375100dSPaul Boddie
4749375100dSPaul Boddie	lcdc1: lcdc1@130a0000 {
4759375100dSPaul Boddie		compatible = "ingenic,jz4780-lcd";
4769375100dSPaul Boddie		reg = <0x130a0000 0x1800>;
4779375100dSPaul Boddie
4789375100dSPaul Boddie		clocks = <&cgu JZ4780_CLK_TVE>, <&cgu JZ4780_CLK_LCD1PIXCLK>;
4799375100dSPaul Boddie		clock-names = "lcd", "lcd_pclk";
4809375100dSPaul Boddie
4819375100dSPaul Boddie		interrupt-parent = <&intc>;
4829375100dSPaul Boddie		interrupts = <23>;
4839375100dSPaul Boddie
4849375100dSPaul Boddie		status = "disabled";
4859375100dSPaul Boddie	};
4869375100dSPaul Boddie
48778800558SAlex Smith	nemc: nemc@13410000 {
488190607f2SPrasannaKumar Muralidharan		compatible = "ingenic,jz4780-nemc", "simple-mfd";
48978800558SAlex Smith		reg = <0x13410000 0x10000>;
49078800558SAlex Smith		#address-cells = <2>;
49178800558SAlex Smith		#size-cells = <1>;
492cf2e6b8eSPaul Cercueil		ranges = <0 0 0x13410000 0x10000>,
493cf2e6b8eSPaul Cercueil			 <1 0 0x1b000000 0x1000000>,
494cf2e6b8eSPaul Cercueil			 <2 0 0x1a000000 0x1000000>,
495cf2e6b8eSPaul Cercueil			 <3 0 0x19000000 0x1000000>,
496cf2e6b8eSPaul Cercueil			 <4 0 0x18000000 0x1000000>,
497cf2e6b8eSPaul Cercueil			 <5 0 0x17000000 0x1000000>,
498cf2e6b8eSPaul Cercueil			 <6 0 0x16000000 0x1000000>;
49978800558SAlex Smith
50078800558SAlex Smith		clocks = <&cgu JZ4780_CLK_NEMC>;
50178800558SAlex Smith
50278800558SAlex Smith		status = "disabled";
503190607f2SPrasannaKumar Muralidharan
504190607f2SPrasannaKumar Muralidharan		efuse: efuse@d0 {
505190607f2SPrasannaKumar Muralidharan			reg = <0 0xd0 0x30>;
506190607f2SPrasannaKumar Muralidharan			compatible = "ingenic,jz4780-efuse";
507190607f2SPrasannaKumar Muralidharan
508190607f2SPrasannaKumar Muralidharan			clocks = <&cgu JZ4780_CLK_AHB2>;
509190607f2SPrasannaKumar Muralidharan
510190607f2SPrasannaKumar Muralidharan			#address-cells = <1>;
511190607f2SPrasannaKumar Muralidharan			#size-cells = <1>;
512190607f2SPrasannaKumar Muralidharan
513*8931ddd8SKrzysztof Kozlowski			eth0_addr: eth-mac-addr@22 {
514190607f2SPrasannaKumar Muralidharan				reg = <0x22 0x6>;
515190607f2SPrasannaKumar Muralidharan			};
516190607f2SPrasannaKumar Muralidharan		};
51778800558SAlex Smith	};
51878800558SAlex Smith
5192d972b6aSEzequiel Garcia	dma: dma@13420000 {
5202d972b6aSEzequiel Garcia		compatible = "ingenic,jz4780-dma";
521cf2e6b8eSPaul Cercueil		reg = <0x13420000 0x400>, <0x13421000 0x40>;
5222d972b6aSEzequiel Garcia		#dma-cells = <2>;
5232d972b6aSEzequiel Garcia
5242d972b6aSEzequiel Garcia		interrupt-parent = <&intc>;
5252d972b6aSEzequiel Garcia		interrupts = <10>;
5262d972b6aSEzequiel Garcia
5272d972b6aSEzequiel Garcia		clocks = <&cgu JZ4780_CLK_PDMA>;
5282d972b6aSEzequiel Garcia	};
5292d972b6aSEzequiel Garcia
5307f5a07f4SEzequiel Garcia	mmc0: mmc@13450000 {
5317f5a07f4SEzequiel Garcia		compatible = "ingenic,jz4780-mmc";
5327f5a07f4SEzequiel Garcia		reg = <0x13450000 0x1000>;
5337f5a07f4SEzequiel Garcia
5347f5a07f4SEzequiel Garcia		interrupt-parent = <&intc>;
5357f5a07f4SEzequiel Garcia		interrupts = <37>;
5367f5a07f4SEzequiel Garcia
5377f5a07f4SEzequiel Garcia		clocks = <&cgu JZ4780_CLK_MSC0>;
5387f5a07f4SEzequiel Garcia		clock-names = "mmc";
5397f5a07f4SEzequiel Garcia
5407f5a07f4SEzequiel Garcia		cap-sd-highspeed;
5417f5a07f4SEzequiel Garcia		cap-mmc-highspeed;
5427f5a07f4SEzequiel Garcia		cap-sdio-irq;
5437f5a07f4SEzequiel Garcia		dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>,
5447f5a07f4SEzequiel Garcia		       <&dma JZ4780_DMA_MSC0_TX 0xffffffff>;
5457f5a07f4SEzequiel Garcia		dma-names = "rx", "tx";
5467f5a07f4SEzequiel Garcia
5477f5a07f4SEzequiel Garcia		status = "disabled";
5487f5a07f4SEzequiel Garcia	};
5497f5a07f4SEzequiel Garcia
5507f5a07f4SEzequiel Garcia	mmc1: mmc@13460000 {
5517f5a07f4SEzequiel Garcia		compatible = "ingenic,jz4780-mmc";
5527f5a07f4SEzequiel Garcia		reg = <0x13460000 0x1000>;
5537f5a07f4SEzequiel Garcia
5547f5a07f4SEzequiel Garcia		interrupt-parent = <&intc>;
5557f5a07f4SEzequiel Garcia		interrupts = <36>;
5567f5a07f4SEzequiel Garcia
5577f5a07f4SEzequiel Garcia		clocks = <&cgu JZ4780_CLK_MSC1>;
5587f5a07f4SEzequiel Garcia		clock-names = "mmc";
5597f5a07f4SEzequiel Garcia
5607f5a07f4SEzequiel Garcia		cap-sd-highspeed;
5617f5a07f4SEzequiel Garcia		cap-mmc-highspeed;
5627f5a07f4SEzequiel Garcia		cap-sdio-irq;
5637f5a07f4SEzequiel Garcia		dmas = <&dma JZ4780_DMA_MSC1_RX 0xffffffff>,
5647f5a07f4SEzequiel Garcia		       <&dma JZ4780_DMA_MSC1_TX 0xffffffff>;
5657f5a07f4SEzequiel Garcia		dma-names = "rx", "tx";
5667f5a07f4SEzequiel Garcia
5677f5a07f4SEzequiel Garcia		status = "disabled";
5687f5a07f4SEzequiel Garcia	};
5697f5a07f4SEzequiel Garcia
57078800558SAlex Smith	bch: bch@134d0000 {
57178800558SAlex Smith		compatible = "ingenic,jz4780-bch";
57278800558SAlex Smith		reg = <0x134d0000 0x10000>;
57378800558SAlex Smith
57478800558SAlex Smith		clocks = <&cgu JZ4780_CLK_BCH>;
57578800558SAlex Smith
57678800558SAlex Smith		status = "disabled";
57778800558SAlex Smith	};
578158c774dS周琰杰 (Zhou Yanjie)
579158c774dS周琰杰 (Zhou Yanjie)	otg: usb@13500000 {
580158c774dS周琰杰 (Zhou Yanjie)		compatible = "ingenic,jz4780-otg", "snps,dwc2";
581158c774dS周琰杰 (Zhou Yanjie)		reg = <0x13500000 0x40000>;
582158c774dS周琰杰 (Zhou Yanjie)
583158c774dS周琰杰 (Zhou Yanjie)		interrupt-parent = <&intc>;
584158c774dS周琰杰 (Zhou Yanjie)		interrupts = <21>;
585158c774dS周琰杰 (Zhou Yanjie)
586158c774dS周琰杰 (Zhou Yanjie)		clocks = <&cgu JZ4780_CLK_UHC>;
587158c774dS周琰杰 (Zhou Yanjie)		clock-names = "otg";
588158c774dS周琰杰 (Zhou Yanjie)
589158c774dS周琰杰 (Zhou Yanjie)		phys = <&otg_phy>;
590158c774dS周琰杰 (Zhou Yanjie)		phy-names = "usb2-phy";
591158c774dS周琰杰 (Zhou Yanjie)
592158c774dS周琰杰 (Zhou Yanjie)		g-rx-fifo-size = <768>;
593158c774dS周琰杰 (Zhou Yanjie)		g-np-tx-fifo-size = <256>;
594158c774dS周琰杰 (Zhou Yanjie)		g-tx-fifo-size = <256 256 256 256 256 256 256 512>;
595158c774dS周琰杰 (Zhou Yanjie)
596158c774dS周琰杰 (Zhou Yanjie)		status = "disabled";
597158c774dS周琰杰 (Zhou Yanjie)	};
5985b9cdd24SPaul Burton};
599