Merge tag 'rproc-v4.16' of git://github.com/andersson/remoteproc
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / uniphier-sld8.dtsi
1 /*
2  * Device Tree Source for UniPhier sLD8 SoC
3  *
4  * Copyright (C) 2015-2016 Socionext Inc.
5  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
6  *
7  * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8  */
9
10 #include <dt-bindings/gpio/uniphier-gpio.h>
11
12 / {
13         compatible = "socionext,uniphier-sld8";
14         #address-cells = <1>;
15         #size-cells = <1>;
16
17         cpus {
18                 #address-cells = <1>;
19                 #size-cells = <0>;
20
21                 cpu@0 {
22                         device_type = "cpu";
23                         compatible = "arm,cortex-a9";
24                         reg = <0>;
25                         enable-method = "psci";
26                         next-level-cache = <&l2>;
27                 };
28         };
29
30         psci {
31                 compatible = "arm,psci-0.2";
32                 method = "smc";
33         };
34
35         clocks {
36                 refclk: ref {
37                         compatible = "fixed-clock";
38                         #clock-cells = <0>;
39                         clock-frequency = <25000000>;
40                 };
41
42                 arm_timer_clk: arm-timer {
43                         #clock-cells = <0>;
44                         compatible = "fixed-clock";
45                         clock-frequency = <50000000>;
46                 };
47         };
48
49         soc {
50                 compatible = "simple-bus";
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53                 ranges;
54                 interrupt-parent = <&intc>;
55
56                 l2: l2-cache@500c0000 {
57                         compatible = "socionext,uniphier-system-cache";
58                         reg = <0x500c0000 0x2000>, <0x503c0100 0x4>,
59                               <0x506c0000 0x400>;
60                         interrupts = <0 174 4>, <0 175 4>;
61                         cache-unified;
62                         cache-size = <(256 * 1024)>;
63                         cache-sets = <256>;
64                         cache-line-size = <128>;
65                         cache-level = <2>;
66                 };
67
68                 serial0: serial@54006800 {
69                         compatible = "socionext,uniphier-uart";
70                         status = "disabled";
71                         reg = <0x54006800 0x40>;
72                         interrupts = <0 33 4>;
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&pinctrl_uart0>;
75                         clocks = <&peri_clk 0>;
76                         resets = <&peri_rst 0>;
77                 };
78
79                 serial1: serial@54006900 {
80                         compatible = "socionext,uniphier-uart";
81                         status = "disabled";
82                         reg = <0x54006900 0x40>;
83                         interrupts = <0 35 4>;
84                         pinctrl-names = "default";
85                         pinctrl-0 = <&pinctrl_uart1>;
86                         clocks = <&peri_clk 1>;
87                         resets = <&peri_rst 1>;
88                 };
89
90                 serial2: serial@54006a00 {
91                         compatible = "socionext,uniphier-uart";
92                         status = "disabled";
93                         reg = <0x54006a00 0x40>;
94                         interrupts = <0 37 4>;
95                         pinctrl-names = "default";
96                         pinctrl-0 = <&pinctrl_uart2>;
97                         clocks = <&peri_clk 2>;
98                         resets = <&peri_rst 2>;
99                 };
100
101                 serial3: serial@54006b00 {
102                         compatible = "socionext,uniphier-uart";
103                         status = "disabled";
104                         reg = <0x54006b00 0x40>;
105                         interrupts = <0 29 4>;
106                         pinctrl-names = "default";
107                         pinctrl-0 = <&pinctrl_uart3>;
108                         clocks = <&peri_clk 3>;
109                         resets = <&peri_rst 3>;
110                 };
111
112                 gpio: gpio@55000000 {
113                         compatible = "socionext,uniphier-gpio";
114                         reg = <0x55000000 0x200>;
115                         interrupt-parent = <&aidet>;
116                         interrupt-controller;
117                         #interrupt-cells = <2>;
118                         gpio-controller;
119                         #gpio-cells = <2>;
120                         gpio-ranges = <&pinctrl 0 0 0>,
121                                       <&pinctrl 104 0 0>,
122                                       <&pinctrl 112 0 0>;
123                         gpio-ranges-group-names = "gpio_range0",
124                                                   "gpio_range1",
125                                                   "gpio_range2";
126                         ngpios = <136>;
127                         socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
128                 };
129
130                 i2c0: i2c@58400000 {
131                         compatible = "socionext,uniphier-i2c";
132                         status = "disabled";
133                         reg = <0x58400000 0x40>;
134                         #address-cells = <1>;
135                         #size-cells = <0>;
136                         interrupts = <0 41 1>;
137                         pinctrl-names = "default";
138                         pinctrl-0 = <&pinctrl_i2c0>;
139                         clocks = <&peri_clk 4>;
140                         resets = <&peri_rst 4>;
141                         clock-frequency = <100000>;
142                 };
143
144                 i2c1: i2c@58480000 {
145                         compatible = "socionext,uniphier-i2c";
146                         status = "disabled";
147                         reg = <0x58480000 0x40>;
148                         #address-cells = <1>;
149                         #size-cells = <0>;
150                         interrupts = <0 42 1>;
151                         pinctrl-names = "default";
152                         pinctrl-0 = <&pinctrl_i2c1>;
153                         clocks = <&peri_clk 5>;
154                         resets = <&peri_rst 5>;
155                         clock-frequency = <100000>;
156                 };
157
158                 /* chip-internal connection for DMD */
159                 i2c2: i2c@58500000 {
160                         compatible = "socionext,uniphier-i2c";
161                         reg = <0x58500000 0x40>;
162                         #address-cells = <1>;
163                         #size-cells = <0>;
164                         interrupts = <0 43 1>;
165                         pinctrl-names = "default";
166                         pinctrl-0 = <&pinctrl_i2c2>;
167                         clocks = <&peri_clk 6>;
168                         resets = <&peri_rst 6>;
169                         clock-frequency = <400000>;
170                 };
171
172                 i2c3: i2c@58580000 {
173                         compatible = "socionext,uniphier-i2c";
174                         status = "disabled";
175                         reg = <0x58580000 0x40>;
176                         #address-cells = <1>;
177                         #size-cells = <0>;
178                         interrupts = <0 44 1>;
179                         pinctrl-names = "default";
180                         pinctrl-0 = <&pinctrl_i2c3>;
181                         clocks = <&peri_clk 7>;
182                         resets = <&peri_rst 7>;
183                         clock-frequency = <100000>;
184                 };
185
186                 system_bus: system-bus@58c00000 {
187                         compatible = "socionext,uniphier-system-bus";
188                         status = "disabled";
189                         reg = <0x58c00000 0x400>;
190                         #address-cells = <2>;
191                         #size-cells = <1>;
192                         pinctrl-names = "default";
193                         pinctrl-0 = <&pinctrl_system_bus>;
194                 };
195
196                 smpctrl@59801000 {
197                         compatible = "socionext,uniphier-smpctrl";
198                         reg = <0x59801000 0x400>;
199                 };
200
201                 mioctrl@59810000 {
202                         compatible = "socionext,uniphier-sld8-mioctrl",
203                                      "simple-mfd", "syscon";
204                         reg = <0x59810000 0x800>;
205
206                         mio_clk: clock {
207                                 compatible = "socionext,uniphier-sld8-mio-clock";
208                                 #clock-cells = <1>;
209                         };
210
211                         mio_rst: reset {
212                                 compatible = "socionext,uniphier-sld8-mio-reset";
213                                 #reset-cells = <1>;
214                         };
215                 };
216
217                 perictrl@59820000 {
218                         compatible = "socionext,uniphier-sld8-perictrl",
219                                      "simple-mfd", "syscon";
220                         reg = <0x59820000 0x200>;
221
222                         peri_clk: clock {
223                                 compatible = "socionext,uniphier-sld8-peri-clock";
224                                 #clock-cells = <1>;
225                         };
226
227                         peri_rst: reset {
228                                 compatible = "socionext,uniphier-sld8-peri-reset";
229                                 #reset-cells = <1>;
230                         };
231                 };
232
233                 usb0: usb@5a800100 {
234                         compatible = "socionext,uniphier-ehci", "generic-ehci";
235                         status = "disabled";
236                         reg = <0x5a800100 0x100>;
237                         interrupts = <0 80 4>;
238                         pinctrl-names = "default";
239                         pinctrl-0 = <&pinctrl_usb0>;
240                         clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 8>,
241                                  <&mio_clk 12>;
242                         resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 8>,
243                                  <&mio_rst 12>;
244                         has-transaction-translator;
245                 };
246
247                 usb1: usb@5a810100 {
248                         compatible = "socionext,uniphier-ehci", "generic-ehci";
249                         status = "disabled";
250                         reg = <0x5a810100 0x100>;
251                         interrupts = <0 81 4>;
252                         pinctrl-names = "default";
253                         pinctrl-0 = <&pinctrl_usb1>;
254                         clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 9>,
255                                  <&mio_clk 13>;
256                         resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 9>,
257                                  <&mio_rst 13>;
258                         has-transaction-translator;
259                 };
260
261                 usb2: usb@5a820100 {
262                         compatible = "socionext,uniphier-ehci", "generic-ehci";
263                         status = "disabled";
264                         reg = <0x5a820100 0x100>;
265                         interrupts = <0 82 4>;
266                         pinctrl-names = "default";
267                         pinctrl-0 = <&pinctrl_usb2>;
268                         clocks = <&sys_clk 8>, <&mio_clk 7>, <&mio_clk 10>,
269                                  <&mio_clk 14>;
270                         resets = <&sys_rst 8>, <&mio_rst 7>, <&mio_rst 10>,
271                                  <&mio_rst 14>;
272                         has-transaction-translator;
273                 };
274
275                 soc-glue@5f800000 {
276                         compatible = "socionext,uniphier-sld8-soc-glue",
277                                      "simple-mfd", "syscon";
278                         reg = <0x5f800000 0x2000>;
279
280                         pinctrl: pinctrl {
281                                 compatible = "socionext,uniphier-sld8-pinctrl";
282                         };
283                 };
284
285                 soc-glue@5f900000 {
286                         compatible = "socionext,uniphier-sld8-soc-glue-debug",
287                                      "simple-mfd";
288                         #address-cells = <1>;
289                         #size-cells = <1>;
290                         ranges = <0 0x5f900000 0x2000>;
291
292                         efuse@100 {
293                                 compatible = "socionext,uniphier-efuse";
294                                 reg = <0x100 0x28>;
295                         };
296
297                         efuse@200 {
298                                 compatible = "socionext,uniphier-efuse";
299                                 reg = <0x200 0x14>;
300                         };
301                 };
302
303                 timer@60000200 {
304                         compatible = "arm,cortex-a9-global-timer";
305                         reg = <0x60000200 0x20>;
306                         interrupts = <1 11 0x104>;
307                         clocks = <&arm_timer_clk>;
308                 };
309
310                 timer@60000600 {
311                         compatible = "arm,cortex-a9-twd-timer";
312                         reg = <0x60000600 0x20>;
313                         interrupts = <1 13 0x104>;
314                         clocks = <&arm_timer_clk>;
315                 };
316
317                 intc: interrupt-controller@60001000 {
318                         compatible = "arm,cortex-a9-gic";
319                         reg = <0x60001000 0x1000>,
320                               <0x60000100 0x100>;
321                         #interrupt-cells = <3>;
322                         interrupt-controller;
323                 };
324
325                 aidet: aidet@61830000 {
326                         compatible = "socionext,uniphier-sld8-aidet";
327                         reg = <0x61830000 0x200>;
328                         interrupt-controller;
329                         #interrupt-cells = <2>;
330                 };
331
332                 sysctrl@61840000 {
333                         compatible = "socionext,uniphier-sld8-sysctrl",
334                                      "simple-mfd", "syscon";
335                         reg = <0x61840000 0x10000>;
336
337                         sys_clk: clock {
338                                 compatible = "socionext,uniphier-sld8-clock";
339                                 #clock-cells = <1>;
340                         };
341
342                         sys_rst: reset {
343                                 compatible = "socionext,uniphier-sld8-reset";
344                                 #reset-cells = <1>;
345                         };
346                 };
347
348                 nand: nand@68000000 {
349                         compatible = "socionext,uniphier-denali-nand-v5a";
350                         status = "disabled";
351                         reg-names = "nand_data", "denali_reg";
352                         reg = <0x68000000 0x20>, <0x68100000 0x1000>;
353                         interrupts = <0 65 4>;
354                         pinctrl-names = "default";
355                         pinctrl-0 = <&pinctrl_nand2cs>;
356                         clocks = <&sys_clk 2>;
357                         resets = <&sys_rst 2>;
358                 };
359         };
360 };
361
362 #include "uniphier-pinctrl.dtsi"