xref: /openbmc/linux/arch/mips/boot/dts/ingenic/jz4740.dtsi (revision 8838245d76b9bb2e20c9a7a977487d72c0117b9a)
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
88e8261ebSPaul Burton	cpuintc: interrupt-controller@0 {
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	};
46*8838245dSPaul Burton
47*8838245dSPaul Burton	uart0: serial@10030000 {
48*8838245dSPaul Burton		compatible = "ingenic,jz4740-uart";
49*8838245dSPaul Burton		reg = <0x10030000 0x100>;
50*8838245dSPaul Burton
51*8838245dSPaul Burton		interrupt-parent = <&intc>;
52*8838245dSPaul Burton		interrupts = <9>;
53*8838245dSPaul Burton
54*8838245dSPaul Burton		clocks = <&ext>, <&cgu JZ4740_CLK_UART0>;
55*8838245dSPaul Burton		clock-names = "baud", "module";
56*8838245dSPaul Burton	};
57*8838245dSPaul Burton
58*8838245dSPaul Burton	uart1: serial@10031000 {
59*8838245dSPaul Burton		compatible = "ingenic,jz4740-uart";
60*8838245dSPaul Burton		reg = <0x10031000 0x100>;
61*8838245dSPaul Burton
62*8838245dSPaul Burton		interrupt-parent = <&intc>;
63*8838245dSPaul Burton		interrupts = <8>;
64*8838245dSPaul Burton
65*8838245dSPaul Burton		clocks = <&ext>, <&cgu JZ4740_CLK_UART1>;
66*8838245dSPaul Burton		clock-names = "baud", "module";
67*8838245dSPaul Burton	};
68ffb1843dSPaul Burton};
69