xref: /openbmc/linux/arch/mips/boot/dts/ingenic/jz4740.dtsi (revision 5214cae77c11f5fdb13ebe478067a6008c4da630)
1ff1930c6SPaul Burton#include <dt-bindings/clock/jz4740-cgu.h>
2ff1930c6SPaul Burton
3ffb1843dSPaul Burton/ {
4ffb1843dSPaul Burton	#address-cells = <1>;
5ffb1843dSPaul Burton	#size-cells = <1>;
6ffb1843dSPaul Burton	compatible = "ingenic,jz4740";
78e8261ebSPaul Burton
8*5214cae7SAntony Pavlov	cpuintc: interrupt-controller {
98e8261ebSPaul Burton		#address-cells = <0>;
108e8261ebSPaul Burton		#interrupt-cells = <1>;
118e8261ebSPaul Burton		interrupt-controller;
128e8261ebSPaul Burton		compatible = "mti,cpu-interrupt-controller";
138e8261ebSPaul Burton	};
14adbdce77SPaul Burton
15adbdce77SPaul Burton	intc: interrupt-controller@10001000 {
16adbdce77SPaul Burton		compatible = "ingenic,jz4740-intc";
17adbdce77SPaul Burton		reg = <0x10001000 0x14>;
18adbdce77SPaul Burton
19adbdce77SPaul Burton		interrupt-controller;
20adbdce77SPaul Burton		#interrupt-cells = <1>;
21adbdce77SPaul Burton
22adbdce77SPaul Burton		interrupt-parent = <&cpuintc>;
23adbdce77SPaul Burton		interrupts = <2>;
24adbdce77SPaul Burton	};
25ff1930c6SPaul Burton
26ff1930c6SPaul Burton	ext: ext {
27ff1930c6SPaul Burton		compatible = "fixed-clock";
28ff1930c6SPaul Burton		#clock-cells = <0>;
29ff1930c6SPaul Burton	};
30ff1930c6SPaul Burton
31ff1930c6SPaul Burton	rtc: rtc {
32ff1930c6SPaul Burton		compatible = "fixed-clock";
33ff1930c6SPaul Burton		#clock-cells = <0>;
34ff1930c6SPaul Burton		clock-frequency = <32768>;
35ff1930c6SPaul Burton	};
36ff1930c6SPaul Burton
37ff1930c6SPaul Burton	cgu: jz4740-cgu@10000000 {
38ff1930c6SPaul Burton		compatible = "ingenic,jz4740-cgu";
39ff1930c6SPaul Burton		reg = <0x10000000 0x100>;
40ff1930c6SPaul Burton
41ff1930c6SPaul Burton		clocks = <&ext>, <&rtc>;
42ff1930c6SPaul Burton		clock-names = "ext", "rtc";
43ff1930c6SPaul Burton
44ff1930c6SPaul Burton		#clock-cells = <1>;
45ff1930c6SPaul Burton	};
468838245dSPaul Burton
478838245dSPaul Burton	uart0: serial@10030000 {
488838245dSPaul Burton		compatible = "ingenic,jz4740-uart";
498838245dSPaul Burton		reg = <0x10030000 0x100>;
508838245dSPaul Burton
518838245dSPaul Burton		interrupt-parent = <&intc>;
528838245dSPaul Burton		interrupts = <9>;
538838245dSPaul Burton
548838245dSPaul Burton		clocks = <&ext>, <&cgu JZ4740_CLK_UART0>;
558838245dSPaul Burton		clock-names = "baud", "module";
568838245dSPaul Burton	};
578838245dSPaul Burton
588838245dSPaul Burton	uart1: serial@10031000 {
598838245dSPaul Burton		compatible = "ingenic,jz4740-uart";
608838245dSPaul Burton		reg = <0x10031000 0x100>;
618838245dSPaul Burton
628838245dSPaul Burton		interrupt-parent = <&intc>;
638838245dSPaul Burton		interrupts = <8>;
648838245dSPaul Burton
658838245dSPaul Burton		clocks = <&ext>, <&cgu JZ4740_CLK_UART1>;
668838245dSPaul Burton		clock-names = "baud", "module";
678838245dSPaul Burton	};
689d1e7875SMaarten ter Huurne
699d1e7875SMaarten ter Huurne	uhc: uhc@13030000 {
709d1e7875SMaarten ter Huurne		compatible = "ingenic,jz4740-ohci", "generic-ohci";
719d1e7875SMaarten ter Huurne		reg = <0x13030000 0x1000>;
729d1e7875SMaarten ter Huurne
739d1e7875SMaarten ter Huurne		clocks = <&cgu JZ4740_CLK_UHC>;
749d1e7875SMaarten ter Huurne		assigned-clocks = <&cgu JZ4740_CLK_UHC>;
759d1e7875SMaarten ter Huurne		assigned-clock-rates = <48000000>;
769d1e7875SMaarten ter Huurne
779d1e7875SMaarten ter Huurne		interrupt-parent = <&intc>;
789d1e7875SMaarten ter Huurne		interrupts = <3>;
799d1e7875SMaarten ter Huurne
809d1e7875SMaarten ter Huurne		status = "disabled";
819d1e7875SMaarten ter Huurne	};
82ffb1843dSPaul Burton};
83