treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / boot / dts / ingenic / jz4770.dtsi
blob0bfb9edff3d09d9994345094b7d18012440ef693
1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/clock/jz4770-cgu.h>
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "ingenic,jz4770";
10         cpuintc: interrupt-controller {
11                 #address-cells = <0>;
12                 #interrupt-cells = <1>;
13                 interrupt-controller;
14                 compatible = "mti,cpu-interrupt-controller";
15         };
17         intc: interrupt-controller@10001000 {
18                 compatible = "ingenic,jz4770-intc";
19                 reg = <0x10001000 0x40>;
21                 interrupt-controller;
22                 #interrupt-cells = <1>;
24                 interrupt-parent = <&cpuintc>;
25                 interrupts = <2>;
26         };
28         ext: ext {
29                 compatible = "fixed-clock";
30                 #clock-cells = <0>;
31         };
33         osc32k: osc32k {
34                 compatible = "fixed-clock";
35                 #clock-cells = <0>;
36                 clock-frequency = <32768>;
37         };
39         cgu: jz4770-cgu@10000000 {
40                 compatible = "ingenic,jz4770-cgu";
41                 reg = <0x10000000 0x100>;
43                 clocks = <&ext>, <&osc32k>;
44                 clock-names = "ext", "osc32k";
46                 #clock-cells = <1>;
47         };
49         tcu: timer@10002000 {
50                 compatible = "ingenic,jz4770-tcu", "simple-mfd";
51                 reg = <0x10002000 0x1000>;
52                 #address-cells = <1>;
53                 #size-cells = <1>;
54                 ranges = <0x0 0x10002000 0x1000>;
56                 #clock-cells = <1>;
58                 clocks = <&cgu JZ4770_CLK_RTC
59                           &cgu JZ4770_CLK_EXT
60                           &cgu JZ4770_CLK_PCLK>;
61                 clock-names = "rtc", "ext", "pclk";
63                 interrupt-controller;
64                 #interrupt-cells = <1>;
66                 interrupt-parent = <&intc>;
67                 interrupts = <27 26 25>;
68         };
70         pinctrl: pin-controller@10010000 {
71                 compatible = "ingenic,jz4770-pinctrl";
72                 reg = <0x10010000 0x600>;
74                 #address-cells = <1>;
75                 #size-cells = <0>;
77                 gpa: gpio@0 {
78                         compatible = "ingenic,jz4770-gpio";
79                         reg = <0>;
81                         gpio-controller;
82                         gpio-ranges = <&pinctrl 0 0 32>;
83                         #gpio-cells = <2>;
85                         interrupt-controller;
86                         #interrupt-cells = <2>;
88                         interrupt-parent = <&intc>;
89                         interrupts = <17>;
90                 };
92                 gpb: gpio@1 {
93                         compatible = "ingenic,jz4770-gpio";
94                         reg = <1>;
96                         gpio-controller;
97                         gpio-ranges = <&pinctrl 0 32 32>;
98                         #gpio-cells = <2>;
100                         interrupt-controller;
101                         #interrupt-cells = <2>;
103                         interrupt-parent = <&intc>;
104                         interrupts = <16>;
105                 };
107                 gpc: gpio@2 {
108                         compatible = "ingenic,jz4770-gpio";
109                         reg = <2>;
111                         gpio-controller;
112                         gpio-ranges = <&pinctrl 0 64 32>;
113                         #gpio-cells = <2>;
115                         interrupt-controller;
116                         #interrupt-cells = <2>;
118                         interrupt-parent = <&intc>;
119                         interrupts = <15>;
120                 };
122                 gpd: gpio@3 {
123                         compatible = "ingenic,jz4770-gpio";
124                         reg = <3>;
126                         gpio-controller;
127                         gpio-ranges = <&pinctrl 0 96 32>;
128                         #gpio-cells = <2>;
130                         interrupt-controller;
131                         #interrupt-cells = <2>;
133                         interrupt-parent = <&intc>;
134                         interrupts = <14>;
135                 };
137                 gpe: gpio@4 {
138                         compatible = "ingenic,jz4770-gpio";
139                         reg = <4>;
141                         gpio-controller;
142                         gpio-ranges = <&pinctrl 0 128 32>;
143                         #gpio-cells = <2>;
145                         interrupt-controller;
146                         #interrupt-cells = <2>;
148                         interrupt-parent = <&intc>;
149                         interrupts = <13>;
150                 };
152                 gpf: gpio@5 {
153                         compatible = "ingenic,jz4770-gpio";
154                         reg = <5>;
156                         gpio-controller;
157                         gpio-ranges = <&pinctrl 0 160 32>;
158                         #gpio-cells = <2>;
160                         interrupt-controller;
161                         #interrupt-cells = <2>;
163                         interrupt-parent = <&intc>;
164                         interrupts = <12>;
165                 };
166         };
168         uart0: serial@10030000 {
169                 compatible = "ingenic,jz4770-uart";
170                 reg = <0x10030000 0x100>;
172                 clocks = <&ext>, <&cgu JZ4770_CLK_UART0>;
173                 clock-names = "baud", "module";
175                 interrupt-parent = <&intc>;
176                 interrupts = <5>;
178                 status = "disabled";
179         };
181         uart1: serial@10031000 {
182                 compatible = "ingenic,jz4770-uart";
183                 reg = <0x10031000 0x100>;
185                 clocks = <&ext>, <&cgu JZ4770_CLK_UART1>;
186                 clock-names = "baud", "module";
188                 interrupt-parent = <&intc>;
189                 interrupts = <4>;
191                 status = "disabled";
192         };
194         uart2: serial@10032000 {
195                 compatible = "ingenic,jz4770-uart";
196                 reg = <0x10032000 0x100>;
198                 clocks = <&ext>, <&cgu JZ4770_CLK_UART2>;
199                 clock-names = "baud", "module";
201                 interrupt-parent = <&intc>;
202                 interrupts = <3>;
204                 status = "disabled";
205         };
207         uart3: serial@10033000 {
208                 compatible = "ingenic,jz4770-uart";
209                 reg = <0x10033000 0x100>;
211                 clocks = <&ext>, <&cgu JZ4770_CLK_UART3>;
212                 clock-names = "baud", "module";
214                 interrupt-parent = <&intc>;
215                 interrupts = <2>;
217                 status = "disabled";
218         };
220         dmac0: dma-controller@13420000 {
221                 compatible = "ingenic,jz4770-dma";
222                 reg = <0x13420000 0xC0
223                        0x13420300 0x20>;
225                 #dma-cells = <1>;
227                 clocks = <&cgu JZ4770_CLK_DMA>;
228                 interrupt-parent = <&intc>;
229                 interrupts = <24>;
231                 /* Disable dmac0 until we have something that uses it */
232                 status = "disabled";
233         };
235         dmac1: dma-controller@13420100 {
236                 compatible = "ingenic,jz4770-dma";
237                 reg = <0x13420100 0xC0
238                        0x13420400 0x20>;
240                 #dma-cells = <1>;
242                 clocks = <&cgu JZ4770_CLK_DMA>;
243                 interrupt-parent = <&intc>;
244                 interrupts = <23>;
246                 /* Disable dmac1 until we have something that uses it */
247                 status = "disabled";
248         };
250         uhc: uhc@13430000 {
251                 compatible = "generic-ohci";
252                 reg = <0x13430000 0x1000>;
254                 clocks = <&cgu JZ4770_CLK_UHC>, <&cgu JZ4770_CLK_UHC_PHY>;
255                 assigned-clocks = <&cgu JZ4770_CLK_UHC>;
256                 assigned-clock-rates = <48000000>;
258                 interrupt-parent = <&intc>;
259                 interrupts = <20>;
261                 status = "disabled";
262         };