Merge branch 'for-4.15/logitech' into for-linus
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / socionext / uniphier-ld20.dtsi
1 /*
2  * Device Tree Source for UniPhier LD20 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 /memreserve/ 0x80000000 0x02000000;
11
12 / {
13         compatible = "socionext,uniphier-ld20";
14         #address-cells = <2>;
15         #size-cells = <2>;
16         interrupt-parent = <&gic>;
17
18         cpus {
19                 #address-cells = <2>;
20                 #size-cells = <0>;
21
22                 cpu-map {
23                         cluster0 {
24                                 core0 {
25                                         cpu = <&cpu0>;
26                                 };
27                                 core1 {
28                                         cpu = <&cpu1>;
29                                 };
30                         };
31
32                         cluster1 {
33                                 core0 {
34                                         cpu = <&cpu2>;
35                                 };
36                                 core1 {
37                                         cpu = <&cpu3>;
38                                 };
39                         };
40                 };
41
42                 cpu0: cpu@0 {
43                         device_type = "cpu";
44                         compatible = "arm,cortex-a72", "arm,armv8";
45                         reg = <0 0x000>;
46                         clocks = <&sys_clk 32>;
47                         enable-method = "psci";
48                         operating-points-v2 = <&cluster0_opp>;
49                 };
50
51                 cpu1: cpu@1 {
52                         device_type = "cpu";
53                         compatible = "arm,cortex-a72", "arm,armv8";
54                         reg = <0 0x001>;
55                         clocks = <&sys_clk 32>;
56                         enable-method = "psci";
57                         operating-points-v2 = <&cluster0_opp>;
58                 };
59
60                 cpu2: cpu@100 {
61                         device_type = "cpu";
62                         compatible = "arm,cortex-a53", "arm,armv8";
63                         reg = <0 0x100>;
64                         clocks = <&sys_clk 33>;
65                         enable-method = "psci";
66                         operating-points-v2 = <&cluster1_opp>;
67                 };
68
69                 cpu3: cpu@101 {
70                         device_type = "cpu";
71                         compatible = "arm,cortex-a53", "arm,armv8";
72                         reg = <0 0x101>;
73                         clocks = <&sys_clk 33>;
74                         enable-method = "psci";
75                         operating-points-v2 = <&cluster1_opp>;
76                 };
77         };
78
79         cluster0_opp: opp_table0 {
80                 compatible = "operating-points-v2";
81                 opp-shared;
82
83                 opp-250000000 {
84                         opp-hz = /bits/ 64 <250000000>;
85                         clock-latency-ns = <300>;
86                 };
87                 opp-275000000 {
88                         opp-hz = /bits/ 64 <275000000>;
89                         clock-latency-ns = <300>;
90                 };
91                 opp-500000000 {
92                         opp-hz = /bits/ 64 <500000000>;
93                         clock-latency-ns = <300>;
94                 };
95                 opp-550000000 {
96                         opp-hz = /bits/ 64 <550000000>;
97                         clock-latency-ns = <300>;
98                 };
99                 opp-666667000 {
100                         opp-hz = /bits/ 64 <666667000>;
101                         clock-latency-ns = <300>;
102                 };
103                 opp-733334000 {
104                         opp-hz = /bits/ 64 <733334000>;
105                         clock-latency-ns = <300>;
106                 };
107                 opp-1000000000 {
108                         opp-hz = /bits/ 64 <1000000000>;
109                         clock-latency-ns = <300>;
110                 };
111                 opp-1100000000 {
112                         opp-hz = /bits/ 64 <1100000000>;
113                         clock-latency-ns = <300>;
114                 };
115         };
116
117         cluster1_opp: opp_table1 {
118                 compatible = "operating-points-v2";
119                 opp-shared;
120
121                 opp-250000000 {
122                         opp-hz = /bits/ 64 <250000000>;
123                         clock-latency-ns = <300>;
124                 };
125                 opp-275000000 {
126                         opp-hz = /bits/ 64 <275000000>;
127                         clock-latency-ns = <300>;
128                 };
129                 opp-500000000 {
130                         opp-hz = /bits/ 64 <500000000>;
131                         clock-latency-ns = <300>;
132                 };
133                 opp-550000000 {
134                         opp-hz = /bits/ 64 <550000000>;
135                         clock-latency-ns = <300>;
136                 };
137                 opp-666667000 {
138                         opp-hz = /bits/ 64 <666667000>;
139                         clock-latency-ns = <300>;
140                 };
141                 opp-733334000 {
142                         opp-hz = /bits/ 64 <733334000>;
143                         clock-latency-ns = <300>;
144                 };
145                 opp-1000000000 {
146                         opp-hz = /bits/ 64 <1000000000>;
147                         clock-latency-ns = <300>;
148                 };
149                 opp-1100000000 {
150                         opp-hz = /bits/ 64 <1100000000>;
151                         clock-latency-ns = <300>;
152                 };
153         };
154
155         psci {
156                 compatible = "arm,psci-1.0";
157                 method = "smc";
158         };
159
160         clocks {
161                 refclk: ref {
162                         compatible = "fixed-clock";
163                         #clock-cells = <0>;
164                         clock-frequency = <25000000>;
165                 };
166         };
167
168         timer {
169                 compatible = "arm,armv8-timer";
170                 interrupts = <1 13 4>,
171                              <1 14 4>,
172                              <1 11 4>,
173                              <1 10 4>;
174         };
175
176         soc@0 {
177                 compatible = "simple-bus";
178                 #address-cells = <1>;
179                 #size-cells = <1>;
180                 ranges = <0 0 0 0xffffffff>;
181
182                 serial0: serial@54006800 {
183                         compatible = "socionext,uniphier-uart";
184                         status = "disabled";
185                         reg = <0x54006800 0x40>;
186                         interrupts = <0 33 4>;
187                         pinctrl-names = "default";
188                         pinctrl-0 = <&pinctrl_uart0>;
189                         clocks = <&peri_clk 0>;
190                 };
191
192                 serial1: serial@54006900 {
193                         compatible = "socionext,uniphier-uart";
194                         status = "disabled";
195                         reg = <0x54006900 0x40>;
196                         interrupts = <0 35 4>;
197                         pinctrl-names = "default";
198                         pinctrl-0 = <&pinctrl_uart1>;
199                         clocks = <&peri_clk 1>;
200                 };
201
202                 serial2: serial@54006a00 {
203                         compatible = "socionext,uniphier-uart";
204                         status = "disabled";
205                         reg = <0x54006a00 0x40>;
206                         interrupts = <0 37 4>;
207                         pinctrl-names = "default";
208                         pinctrl-0 = <&pinctrl_uart2>;
209                         clocks = <&peri_clk 2>;
210                 };
211
212                 serial3: serial@54006b00 {
213                         compatible = "socionext,uniphier-uart";
214                         status = "disabled";
215                         reg = <0x54006b00 0x40>;
216                         interrupts = <0 177 4>;
217                         pinctrl-names = "default";
218                         pinctrl-0 = <&pinctrl_uart3>;
219                         clocks = <&peri_clk 3>;
220                 };
221
222                 adamv@57920000 {
223                         compatible = "socionext,uniphier-ld20-adamv",
224                                      "simple-mfd", "syscon";
225                         reg = <0x57920000 0x1000>;
226
227                         adamv_rst: reset {
228                                 compatible = "socionext,uniphier-ld20-adamv-reset";
229                                 #reset-cells = <1>;
230                         };
231                 };
232
233                 i2c0: i2c@58780000 {
234                         compatible = "socionext,uniphier-fi2c";
235                         status = "disabled";
236                         reg = <0x58780000 0x80>;
237                         #address-cells = <1>;
238                         #size-cells = <0>;
239                         interrupts = <0 41 4>;
240                         pinctrl-names = "default";
241                         pinctrl-0 = <&pinctrl_i2c0>;
242                         clocks = <&peri_clk 4>;
243                         clock-frequency = <100000>;
244                 };
245
246                 i2c1: i2c@58781000 {
247                         compatible = "socionext,uniphier-fi2c";
248                         status = "disabled";
249                         reg = <0x58781000 0x80>;
250                         #address-cells = <1>;
251                         #size-cells = <0>;
252                         interrupts = <0 42 4>;
253                         pinctrl-names = "default";
254                         pinctrl-0 = <&pinctrl_i2c1>;
255                         clocks = <&peri_clk 5>;
256                         clock-frequency = <100000>;
257                 };
258
259                 i2c2: i2c@58782000 {
260                         compatible = "socionext,uniphier-fi2c";
261                         reg = <0x58782000 0x80>;
262                         #address-cells = <1>;
263                         #size-cells = <0>;
264                         interrupts = <0 43 4>;
265                         clocks = <&peri_clk 6>;
266                         clock-frequency = <400000>;
267                 };
268
269                 i2c3: i2c@58783000 {
270                         compatible = "socionext,uniphier-fi2c";
271                         status = "disabled";
272                         reg = <0x58783000 0x80>;
273                         #address-cells = <1>;
274                         #size-cells = <0>;
275                         interrupts = <0 44 4>;
276                         pinctrl-names = "default";
277                         pinctrl-0 = <&pinctrl_i2c3>;
278                         clocks = <&peri_clk 7>;
279                         clock-frequency = <100000>;
280                 };
281
282                 i2c4: i2c@58784000 {
283                         compatible = "socionext,uniphier-fi2c";
284                         status = "disabled";
285                         reg = <0x58784000 0x80>;
286                         #address-cells = <1>;
287                         #size-cells = <0>;
288                         interrupts = <0 45 4>;
289                         pinctrl-names = "default";
290                         pinctrl-0 = <&pinctrl_i2c4>;
291                         clocks = <&peri_clk 8>;
292                         clock-frequency = <100000>;
293                 };
294
295                 i2c5: i2c@58785000 {
296                         compatible = "socionext,uniphier-fi2c";
297                         reg = <0x58785000 0x80>;
298                         #address-cells = <1>;
299                         #size-cells = <0>;
300                         interrupts = <0 25 4>;
301                         clocks = <&peri_clk 9>;
302                         clock-frequency = <400000>;
303                 };
304
305                 system_bus: system-bus@58c00000 {
306                         compatible = "socionext,uniphier-system-bus";
307                         status = "disabled";
308                         reg = <0x58c00000 0x400>;
309                         #address-cells = <2>;
310                         #size-cells = <1>;
311                         pinctrl-names = "default";
312                         pinctrl-0 = <&pinctrl_system_bus>;
313                 };
314
315                 smpctrl@59801000 {
316                         compatible = "socionext,uniphier-smpctrl";
317                         reg = <0x59801000 0x400>;
318                 };
319
320                 sdctrl@59810000 {
321                         compatible = "socionext,uniphier-ld20-sdctrl",
322                                      "simple-mfd", "syscon";
323                         reg = <0x59810000 0x400>;
324
325                         sd_clk: clock {
326                                 compatible = "socionext,uniphier-ld20-sd-clock";
327                                 #clock-cells = <1>;
328                         };
329
330                         sd_rst: reset {
331                                 compatible = "socionext,uniphier-ld20-sd-reset";
332                                 #reset-cells = <1>;
333                         };
334                 };
335
336                 perictrl@59820000 {
337                         compatible = "socionext,uniphier-ld20-perictrl",
338                                      "simple-mfd", "syscon";
339                         reg = <0x59820000 0x200>;
340
341                         peri_clk: clock {
342                                 compatible = "socionext,uniphier-ld20-peri-clock";
343                                 #clock-cells = <1>;
344                         };
345
346                         peri_rst: reset {
347                                 compatible = "socionext,uniphier-ld20-peri-reset";
348                                 #reset-cells = <1>;
349                         };
350                 };
351
352                 emmc: sdhc@5a000000 {
353                         compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
354                         reg = <0x5a000000 0x400>;
355                         interrupts = <0 78 4>;
356                         pinctrl-names = "default";
357                         pinctrl-0 = <&pinctrl_emmc>;
358                         clocks = <&sys_clk 4>;
359                         bus-width = <8>;
360                         mmc-ddr-1_8v;
361                         mmc-hs200-1_8v;
362                         cdns,phy-input-delay-legacy = <4>;
363                         cdns,phy-input-delay-mmc-highspeed = <2>;
364                         cdns,phy-input-delay-mmc-ddr = <3>;
365                         cdns,phy-dll-delay-sdclk = <21>;
366                         cdns,phy-dll-delay-sdclk-hsmmc = <21>;
367                 };
368
369                 soc-glue@5f800000 {
370                         compatible = "socionext,uniphier-ld20-soc-glue",
371                                      "simple-mfd", "syscon";
372                         reg = <0x5f800000 0x2000>;
373
374                         pinctrl: pinctrl {
375                                 compatible = "socionext,uniphier-ld20-pinctrl";
376                         };
377                 };
378
379                 aidet: aidet@5fc20000 {
380                         compatible = "socionext,uniphier-ld20-aidet";
381                         reg = <0x5fc20000 0x200>;
382                         interrupt-controller;
383                         #interrupt-cells = <2>;
384                 };
385
386                 gic: interrupt-controller@5fe00000 {
387                         compatible = "arm,gic-v3";
388                         reg = <0x5fe00000 0x10000>,     /* GICD */
389                               <0x5fe80000 0x80000>;     /* GICR */
390                         interrupt-controller;
391                         #interrupt-cells = <3>;
392                         interrupts = <1 9 4>;
393                 };
394
395                 sysctrl@61840000 {
396                         compatible = "socionext,uniphier-ld20-sysctrl",
397                                      "simple-mfd", "syscon";
398                         reg = <0x61840000 0x10000>;
399
400                         sys_clk: clock {
401                                 compatible = "socionext,uniphier-ld20-clock";
402                                 #clock-cells = <1>;
403                         };
404
405                         sys_rst: reset {
406                                 compatible = "socionext,uniphier-ld20-reset";
407                                 #reset-cells = <1>;
408                         };
409
410                         watchdog {
411                                 compatible = "socionext,uniphier-wdt";
412                         };
413                 };
414
415                 nand: nand@68000000 {
416                         compatible = "socionext,uniphier-denali-nand-v5b";
417                         status = "disabled";
418                         reg-names = "nand_data", "denali_reg";
419                         reg = <0x68000000 0x20>, <0x68100000 0x1000>;
420                         interrupts = <0 65 4>;
421                         pinctrl-names = "default";
422                         pinctrl-0 = <&pinctrl_nand>;
423                         clocks = <&sys_clk 2>;
424                 };
425         };
426 };
427
428 #include "uniphier-pinctrl.dtsi"