1#include <dt-bindings/clock/jz4780-cgu.h>
2
3/ {
4	#address-cells = <1>;
5	#size-cells = <1>;
6	compatible = "ingenic,jz4780";
7
8	cpuintc: interrupt-controller {
9		#address-cells = <0>;
10		#interrupt-cells = <1>;
11		interrupt-controller;
12		compatible = "mti,cpu-interrupt-controller";
13	};
14
15	intc: interrupt-controller@10001000 {
16		compatible = "ingenic,jz4780-intc";
17		reg = <0x10001000 0x50>;
18
19		interrupt-controller;
20		#interrupt-cells = <1>;
21
22		interrupt-parent = <&cpuintc>;
23		interrupts = <2>;
24	};
25
26	ext: ext {
27		compatible = "fixed-clock";
28		#clock-cells = <0>;
29	};
30
31	rtc: rtc {
32		compatible = "fixed-clock";
33		#clock-cells = <0>;
34		clock-frequency = <32768>;
35	};
36
37	cgu: jz4780-cgu@10000000 {
38		compatible = "ingenic,jz4780-cgu";
39		reg = <0x10000000 0x100>;
40
41		clocks = <&ext>, <&rtc>;
42		clock-names = "ext", "rtc";
43
44		#clock-cells = <1>;
45	};
46
47	uart0: serial@10030000 {
48		compatible = "ingenic,jz4780-uart";
49		reg = <0x10030000 0x100>;
50
51		interrupt-parent = <&intc>;
52		interrupts = <51>;
53
54		clocks = <&ext>, <&cgu JZ4780_CLK_UART0>;
55		clock-names = "baud", "module";
56
57		status = "disabled";
58	};
59
60	uart1: serial@10031000 {
61		compatible = "ingenic,jz4780-uart";
62		reg = <0x10031000 0x100>;
63
64		interrupt-parent = <&intc>;
65		interrupts = <50>;
66
67		clocks = <&ext>, <&cgu JZ4780_CLK_UART1>;
68		clock-names = "baud", "module";
69
70		status = "disabled";
71	};
72
73	uart2: serial@10032000 {
74		compatible = "ingenic,jz4780-uart";
75		reg = <0x10032000 0x100>;
76
77		interrupt-parent = <&intc>;
78		interrupts = <49>;
79
80		clocks = <&ext>, <&cgu JZ4780_CLK_UART2>;
81		clock-names = "baud", "module";
82
83		status = "disabled";
84	};
85
86	uart3: serial@10033000 {
87		compatible = "ingenic,jz4780-uart";
88		reg = <0x10033000 0x100>;
89
90		interrupt-parent = <&intc>;
91		interrupts = <48>;
92
93		clocks = <&ext>, <&cgu JZ4780_CLK_UART3>;
94		clock-names = "baud", "module";
95
96		status = "disabled";
97	};
98
99	uart4: serial@10034000 {
100		compatible = "ingenic,jz4780-uart";
101		reg = <0x10034000 0x100>;
102
103		interrupt-parent = <&intc>;
104		interrupts = <34>;
105
106		clocks = <&ext>, <&cgu JZ4780_CLK_UART4>;
107		clock-names = "baud", "module";
108
109		status = "disabled";
110	};
111
112	nemc: nemc@13410000 {
113		compatible = "ingenic,jz4780-nemc";
114		reg = <0x13410000 0x10000>;
115		#address-cells = <2>;
116		#size-cells = <1>;
117		ranges = <1 0 0x1b000000 0x1000000
118			  2 0 0x1a000000 0x1000000
119			  3 0 0x19000000 0x1000000
120			  4 0 0x18000000 0x1000000
121			  5 0 0x17000000 0x1000000
122			  6 0 0x16000000 0x1000000>;
123
124		clocks = <&cgu JZ4780_CLK_NEMC>;
125
126		status = "disabled";
127	};
128
129	bch: bch@134d0000 {
130		compatible = "ingenic,jz4780-bch";
131		reg = <0x134d0000 0x10000>;
132
133		clocks = <&cgu JZ4780_CLK_BCH>;
134
135		status = "disabled";
136	};
137};
138