xref: /openbmc/linux/arch/mips/boot/dts/ingenic/jz4780.dtsi (revision 5b9cdd2449098b3cd519a02dfed7588fd2becd0e)
1*5b9cdd24SPaul Burton#include <dt-bindings/clock/jz4780-cgu.h>
2*5b9cdd24SPaul Burton
3*5b9cdd24SPaul Burton/ {
4*5b9cdd24SPaul Burton	#address-cells = <1>;
5*5b9cdd24SPaul Burton	#size-cells = <1>;
6*5b9cdd24SPaul Burton	compatible = "ingenic,jz4780";
7*5b9cdd24SPaul Burton
8*5b9cdd24SPaul Burton	cpuintc: interrupt-controller {
9*5b9cdd24SPaul Burton		#address-cells = <0>;
10*5b9cdd24SPaul Burton		#interrupt-cells = <1>;
11*5b9cdd24SPaul Burton		interrupt-controller;
12*5b9cdd24SPaul Burton		compatible = "mti,cpu-interrupt-controller";
13*5b9cdd24SPaul Burton	};
14*5b9cdd24SPaul Burton
15*5b9cdd24SPaul Burton	intc: interrupt-controller@10001000 {
16*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-intc";
17*5b9cdd24SPaul Burton		reg = <0x10001000 0x50>;
18*5b9cdd24SPaul Burton
19*5b9cdd24SPaul Burton		interrupt-controller;
20*5b9cdd24SPaul Burton		#interrupt-cells = <1>;
21*5b9cdd24SPaul Burton
22*5b9cdd24SPaul Burton		interrupt-parent = <&cpuintc>;
23*5b9cdd24SPaul Burton		interrupts = <2>;
24*5b9cdd24SPaul Burton	};
25*5b9cdd24SPaul Burton
26*5b9cdd24SPaul Burton	ext: ext {
27*5b9cdd24SPaul Burton		compatible = "fixed-clock";
28*5b9cdd24SPaul Burton		#clock-cells = <0>;
29*5b9cdd24SPaul Burton	};
30*5b9cdd24SPaul Burton
31*5b9cdd24SPaul Burton	rtc: rtc {
32*5b9cdd24SPaul Burton		compatible = "fixed-clock";
33*5b9cdd24SPaul Burton		#clock-cells = <0>;
34*5b9cdd24SPaul Burton		clock-frequency = <32768>;
35*5b9cdd24SPaul Burton	};
36*5b9cdd24SPaul Burton
37*5b9cdd24SPaul Burton	cgu: jz4780-cgu@10000000 {
38*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-cgu";
39*5b9cdd24SPaul Burton		reg = <0x10000000 0x100>;
40*5b9cdd24SPaul Burton
41*5b9cdd24SPaul Burton		clocks = <&ext>, <&rtc>;
42*5b9cdd24SPaul Burton		clock-names = "ext", "rtc";
43*5b9cdd24SPaul Burton
44*5b9cdd24SPaul Burton		#clock-cells = <1>;
45*5b9cdd24SPaul Burton	};
46*5b9cdd24SPaul Burton
47*5b9cdd24SPaul Burton	uart0: serial@10030000 {
48*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
49*5b9cdd24SPaul Burton		reg = <0x10030000 0x100>;
50*5b9cdd24SPaul Burton
51*5b9cdd24SPaul Burton		interrupt-parent = <&intc>;
52*5b9cdd24SPaul Burton		interrupts = <51>;
53*5b9cdd24SPaul Burton
54*5b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART0>;
55*5b9cdd24SPaul Burton		clock-names = "baud", "module";
56*5b9cdd24SPaul Burton
57*5b9cdd24SPaul Burton		status = "disabled";
58*5b9cdd24SPaul Burton	};
59*5b9cdd24SPaul Burton
60*5b9cdd24SPaul Burton	uart1: serial@10031000 {
61*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
62*5b9cdd24SPaul Burton		reg = <0x10031000 0x100>;
63*5b9cdd24SPaul Burton
64*5b9cdd24SPaul Burton		interrupt-parent = <&intc>;
65*5b9cdd24SPaul Burton		interrupts = <50>;
66*5b9cdd24SPaul Burton
67*5b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART1>;
68*5b9cdd24SPaul Burton		clock-names = "baud", "module";
69*5b9cdd24SPaul Burton
70*5b9cdd24SPaul Burton		status = "disabled";
71*5b9cdd24SPaul Burton	};
72*5b9cdd24SPaul Burton
73*5b9cdd24SPaul Burton	uart2: serial@10032000 {
74*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
75*5b9cdd24SPaul Burton		reg = <0x10032000 0x100>;
76*5b9cdd24SPaul Burton
77*5b9cdd24SPaul Burton		interrupt-parent = <&intc>;
78*5b9cdd24SPaul Burton		interrupts = <49>;
79*5b9cdd24SPaul Burton
80*5b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART2>;
81*5b9cdd24SPaul Burton		clock-names = "baud", "module";
82*5b9cdd24SPaul Burton
83*5b9cdd24SPaul Burton		status = "disabled";
84*5b9cdd24SPaul Burton	};
85*5b9cdd24SPaul Burton
86*5b9cdd24SPaul Burton	uart3: serial@10033000 {
87*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
88*5b9cdd24SPaul Burton		reg = <0x10033000 0x100>;
89*5b9cdd24SPaul Burton
90*5b9cdd24SPaul Burton		interrupt-parent = <&intc>;
91*5b9cdd24SPaul Burton		interrupts = <48>;
92*5b9cdd24SPaul Burton
93*5b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART3>;
94*5b9cdd24SPaul Burton		clock-names = "baud", "module";
95*5b9cdd24SPaul Burton
96*5b9cdd24SPaul Burton		status = "disabled";
97*5b9cdd24SPaul Burton	};
98*5b9cdd24SPaul Burton
99*5b9cdd24SPaul Burton	uart4: serial@10034000 {
100*5b9cdd24SPaul Burton		compatible = "ingenic,jz4780-uart";
101*5b9cdd24SPaul Burton		reg = <0x10034000 0x100>;
102*5b9cdd24SPaul Burton
103*5b9cdd24SPaul Burton		interrupt-parent = <&intc>;
104*5b9cdd24SPaul Burton		interrupts = <34>;
105*5b9cdd24SPaul Burton
106*5b9cdd24SPaul Burton		clocks = <&ext>, <&cgu JZ4780_CLK_UART4>;
107*5b9cdd24SPaul Burton		clock-names = "baud", "module";
108*5b9cdd24SPaul Burton
109*5b9cdd24SPaul Burton		status = "disabled";
110*5b9cdd24SPaul Burton	};
111*5b9cdd24SPaul Burton};
112