Merge tag 'qcom-drivers-for-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / arch / arm / boot / dts / exynos5422-odroidxu3-common.dtsi
1 /*
2  * Hardkernel Odroid XU3 board device tree source
3  *
4  * Copyright (c) 2014 Collabora Ltd.
5  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #include <dt-bindings/clock/samsung,s2mps11.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/sound/samsung-i2s.h>
17 #include "exynos5800.dtsi"
18 #include "exynos5422-cpus.dtsi"
19 #include "exynos5422-cpu-thermal.dtsi"
20 #include "exynos-mfc-reserved-memory.dtsi"
21
22 / {
23         memory {
24                 reg = <0x40000000 0x7EA00000>;
25         };
26
27         chosen {
28                 linux,stdout-path = &serial_2;
29         };
30
31         firmware@02073000 {
32                 compatible = "samsung,secure-firmware";
33                 reg = <0x02073000 0x1000>;
34         };
35
36         fixed-rate-clocks {
37                 oscclk {
38                         compatible = "samsung,exynos5420-oscclk";
39                         clock-frequency = <24000000>;
40                 };
41         };
42
43         emmc_pwrseq: pwrseq {
44                 pinctrl-0 = <&emmc_nrst_pin>;
45                 pinctrl-names = "default";
46                 compatible = "mmc-pwrseq-emmc";
47                 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
48         };
49
50         fan0: pwm-fan {
51                 compatible = "pwm-fan";
52                 pwms = <&pwm 0 20972 0>;
53                 cooling-min-state = <0>;
54                 cooling-max-state = <3>;
55                 #cooling-cells = <2>;
56                 cooling-levels = <0 130 170 230>;
57         };
58 };
59
60 &bus_wcore {
61         devfreq-events = <&nocp_mem0_0>, <&nocp_mem0_1>,
62                         <&nocp_mem1_0>, <&nocp_mem1_1>;
63         vdd-supply = <&buck3_reg>;
64         exynos,saturation-ratio = <100>;
65         status = "okay";
66 };
67
68 &bus_noc {
69         devfreq = <&bus_wcore>;
70         status = "okay";
71 };
72
73 &bus_fsys_apb {
74         devfreq = <&bus_wcore>;
75         status = "okay";
76 };
77
78 &bus_fsys {
79         devfreq = <&bus_wcore>;
80         status = "okay";
81 };
82
83 &bus_fsys2 {
84         devfreq = <&bus_wcore>;
85         status = "okay";
86 };
87
88 &bus_mfc {
89         devfreq = <&bus_wcore>;
90         status = "okay";
91 };
92
93 &bus_gen {
94         devfreq = <&bus_wcore>;
95         status = "okay";
96 };
97
98 &bus_peri {
99         devfreq = <&bus_wcore>;
100         status = "okay";
101 };
102
103 &bus_g2d {
104         devfreq = <&bus_wcore>;
105         status = "okay";
106 };
107
108 &bus_g2d_acp {
109         devfreq = <&bus_wcore>;
110         status = "okay";
111 };
112
113 &bus_jpeg {
114         devfreq = <&bus_wcore>;
115         status = "okay";
116 };
117
118 &bus_jpeg_apb {
119         devfreq = <&bus_wcore>;
120         status = "okay";
121 };
122
123 &bus_disp1_fimd {
124         devfreq = <&bus_wcore>;
125         status = "okay";
126 };
127
128 &bus_disp1 {
129         devfreq = <&bus_wcore>;
130         status = "okay";
131 };
132
133 &bus_gscl_scaler {
134         devfreq = <&bus_wcore>;
135         status = "okay";
136 };
137
138 &bus_mscl {
139         devfreq = <&bus_wcore>;
140         status = "okay";
141 };
142
143 &clock_audss {
144         assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
145                         <&clock_audss EXYNOS_MOUT_I2S>,
146                         <&clock_audss EXYNOS_DOUT_AUD_BUS>;
147         assigned-clock-parents = <&clock CLK_FIN_PLL>,
148                         <&clock_audss EXYNOS_MOUT_AUDSS>;
149         assigned-clock-rates = <0>,
150                         <0>,
151                         <19200000>;
152 };
153
154 &cpu0 {
155         cpu-supply = <&buck6_reg>;
156 };
157
158 &cpu4 {
159         cpu-supply = <&buck2_reg>;
160 };
161
162 &hdmi {
163         status = "okay";
164         hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
165         pinctrl-names = "default";
166         pinctrl-0 = <&hdmi_hpd_irq>;
167
168         vdd_osc-supply = <&ldo7_reg>;
169         vdd_pll-supply = <&ldo6_reg>;
170         vdd-supply = <&ldo6_reg>;
171 };
172
173 &hsi2c_4 {
174         status = "okay";
175
176         s2mps11_pmic@66 {
177                 compatible = "samsung,s2mps11-pmic";
178                 reg = <0x66>;
179                 samsung,s2mps11-acokb-ground;
180
181                 interrupt-parent = <&gpx0>;
182                 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
183                 pinctrl-names = "default";
184                 pinctrl-0 = <&s2mps11_irq>;
185
186                 s2mps11_osc: clocks {
187                         #clock-cells = <1>;
188                         clock-output-names = "s2mps11_ap",
189                                         "s2mps11_cp", "s2mps11_bt";
190                 };
191
192                 regulators {
193                         ldo1_reg: LDO1 {
194                                 regulator-name = "vdd_ldo1";
195                                 regulator-min-microvolt = <1000000>;
196                                 regulator-max-microvolt = <1000000>;
197                                 regulator-always-on;
198                         };
199
200                         ldo3_reg: LDO3 {
201                                 regulator-name = "vddq_mmc0";
202                                 regulator-min-microvolt = <1800000>;
203                                 regulator-max-microvolt = <1800000>;
204                         };
205
206                         ldo5_reg: LDO5 {
207                                 regulator-name = "vdd_ldo5";
208                                 regulator-min-microvolt = <1800000>;
209                                 regulator-max-microvolt = <1800000>;
210                                 regulator-always-on;
211                         };
212
213                         ldo6_reg: LDO6 {
214                                 regulator-name = "vdd_ldo6";
215                                 regulator-min-microvolt = <1000000>;
216                                 regulator-max-microvolt = <1000000>;
217                                 regulator-always-on;
218                         };
219
220                         ldo7_reg: LDO7 {
221                                 regulator-name = "vdd_ldo7";
222                                 regulator-min-microvolt = <1800000>;
223                                 regulator-max-microvolt = <1800000>;
224                                 regulator-always-on;
225                         };
226
227                         ldo8_reg: LDO8 {
228                                 regulator-name = "vdd_ldo8";
229                                 regulator-min-microvolt = <1800000>;
230                                 regulator-max-microvolt = <1800000>;
231                                 regulator-always-on;
232                         };
233
234                         ldo9_reg: LDO9 {
235                                 regulator-name = "vdd_ldo9";
236                                 regulator-min-microvolt = <3000000>;
237                                 regulator-max-microvolt = <3000000>;
238                                 regulator-always-on;
239                         };
240
241                         ldo10_reg: LDO10 {
242                                 regulator-name = "vdd_ldo10";
243                                 regulator-min-microvolt = <1800000>;
244                                 regulator-max-microvolt = <1800000>;
245                                 regulator-always-on;
246                         };
247
248                         ldo11_reg: LDO11 {
249                                 regulator-name = "vdd_ldo11";
250                                 regulator-min-microvolt = <1000000>;
251                                 regulator-max-microvolt = <1000000>;
252                                 regulator-always-on;
253                         };
254
255                         ldo12_reg: LDO12 {
256                                 regulator-name = "vdd_ldo12";
257                                 regulator-min-microvolt = <1800000>;
258                                 regulator-max-microvolt = <1800000>;
259                                 regulator-always-on;
260                         };
261
262                         ldo13_reg: LDO13 {
263                                 regulator-name = "vddq_mmc2";
264                                 regulator-min-microvolt = <2800000>;
265                                 regulator-max-microvolt = <2800000>;
266                         };
267
268                         ldo15_reg: LDO15 {
269                                 regulator-name = "vdd_ldo15";
270                                 regulator-min-microvolt = <3100000>;
271                                 regulator-max-microvolt = <3100000>;
272                                 regulator-always-on;
273                         };
274
275                         ldo16_reg: LDO16 {
276                                 regulator-name = "vdd_ldo16";
277                                 regulator-min-microvolt = <2200000>;
278                                 regulator-max-microvolt = <2200000>;
279                                 regulator-always-on;
280                         };
281
282                         ldo17_reg: LDO17 {
283                                 regulator-name = "tsp_avdd";
284                                 regulator-min-microvolt = <3300000>;
285                                 regulator-max-microvolt = <3300000>;
286                                 regulator-always-on;
287                         };
288
289                         ldo18_reg: LDO18 {
290                                 regulator-name = "vdd_emmc_1V8";
291                                 regulator-min-microvolt = <1800000>;
292                                 regulator-max-microvolt = <1800000>;
293                         };
294
295                         ldo19_reg: LDO19 {
296                                 regulator-name = "vdd_sd";
297                                 regulator-min-microvolt = <2800000>;
298                                 regulator-max-microvolt = <2800000>;
299                         };
300
301                         ldo24_reg: LDO24 {
302                                 regulator-name = "tsp_io";
303                                 regulator-min-microvolt = <2800000>;
304                                 regulator-max-microvolt = <2800000>;
305                                 regulator-always-on;
306                         };
307
308                         ldo26_reg: LDO26 {
309                                 regulator-name = "vdd_ldo26";
310                                 regulator-min-microvolt = <3000000>;
311                                 regulator-max-microvolt = <3000000>;
312                                 regulator-always-on;
313                         };
314
315                         buck1_reg: BUCK1 {
316                                 regulator-name = "vdd_mif";
317                                 regulator-min-microvolt = <800000>;
318                                 regulator-max-microvolt = <1300000>;
319                                 regulator-always-on;
320                                 regulator-boot-on;
321                         };
322
323                         buck2_reg: BUCK2 {
324                                 regulator-name = "vdd_arm";
325                                 regulator-min-microvolt = <800000>;
326                                 regulator-max-microvolt = <1500000>;
327                                 regulator-always-on;
328                                 regulator-boot-on;
329                         };
330
331                         buck3_reg: BUCK3 {
332                                 regulator-name = "vdd_int";
333                                 regulator-min-microvolt = <800000>;
334                                 regulator-max-microvolt = <1400000>;
335                                 regulator-always-on;
336                                 regulator-boot-on;
337                         };
338
339                         buck4_reg: BUCK4 {
340                                 regulator-name = "vdd_g3d";
341                                 regulator-min-microvolt = <800000>;
342                                 regulator-max-microvolt = <1400000>;
343                                 regulator-always-on;
344                                 regulator-boot-on;
345                         };
346
347                         buck5_reg: BUCK5 {
348                                 regulator-name = "vdd_mem";
349                                 regulator-min-microvolt = <800000>;
350                                 regulator-max-microvolt = <1400000>;
351                                 regulator-always-on;
352                                 regulator-boot-on;
353                         };
354
355                         buck6_reg: BUCK6 {
356                                 regulator-name = "vdd_kfc";
357                                 regulator-min-microvolt = <800000>;
358                                 regulator-max-microvolt = <1500000>;
359                                 regulator-always-on;
360                                 regulator-boot-on;
361                         };
362
363                         buck7_reg: BUCK7 {
364                                 regulator-name = "vdd_1.0v_ldo";
365                                 regulator-min-microvolt = <800000>;
366                                 regulator-max-microvolt = <1500000>;
367                                 regulator-always-on;
368                                 regulator-boot-on;
369                         };
370
371                         buck8_reg: BUCK8 {
372                                 regulator-name = "vdd_1.8v_ldo";
373                                 regulator-min-microvolt = <800000>;
374                                 regulator-max-microvolt = <1500000>;
375                                 regulator-always-on;
376                                 regulator-boot-on;
377                         };
378
379                         buck9_reg: BUCK9 {
380                                 regulator-name = "vdd_2.8v_ldo";
381                                 regulator-min-microvolt = <3000000>;
382                                 regulator-max-microvolt = <3750000>;
383                                 regulator-always-on;
384                                 regulator-boot-on;
385                         };
386
387                         buck10_reg: BUCK10 {
388                                 regulator-name = "vdd_vmem";
389                                 regulator-min-microvolt = <2850000>;
390                                 regulator-max-microvolt = <2850000>;
391                                 regulator-always-on;
392                                 regulator-boot-on;
393                         };
394                 };
395         };
396 };
397
398 &i2c_2 {
399         samsung,i2c-sda-delay = <100>;
400         samsung,i2c-max-bus-freq = <66000>;
401         status = "okay";
402
403         hdmiddc@50 {
404                 compatible = "samsung,exynos4210-hdmiddc";
405                 reg = <0x50>;
406         };
407 };
408
409 &mfc {
410         memory-region = <&mfc_left>, <&mfc_right>;
411 };
412
413 &mmc_0 {
414         status = "okay";
415         mmc-pwrseq = <&emmc_pwrseq>;
416         cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
417         card-detect-delay = <200>;
418         samsung,dw-mshc-ciu-div = <3>;
419         samsung,dw-mshc-sdr-timing = <0 4>;
420         samsung,dw-mshc-ddr-timing = <0 2>;
421         samsung,dw-mshc-hs400-timing = <0 2>;
422         samsung,read-strobe-delay = <90>;
423         pinctrl-names = "default";
424         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd &sd0_rclk>;
425         bus-width = <8>;
426         cap-mmc-highspeed;
427         mmc-hs200-1_8v;
428         mmc-hs400-1_8v;
429         vmmc-supply = <&ldo18_reg>;
430         vqmmc-supply = <&ldo3_reg>;
431 };
432
433 &mmc_2 {
434         status = "okay";
435         card-detect-delay = <200>;
436         samsung,dw-mshc-ciu-div = <3>;
437         samsung,dw-mshc-sdr-timing = <0 4>;
438         samsung,dw-mshc-ddr-timing = <0 2>;
439         pinctrl-names = "default";
440         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
441         bus-width = <4>;
442         cap-sd-highspeed;
443         vmmc-supply = <&ldo19_reg>;
444         vqmmc-supply = <&ldo13_reg>;
445 };
446
447 &nocp_mem0_0 {
448         status = "okay";
449 };
450
451 &nocp_mem0_1 {
452         status = "okay";
453 };
454
455 &nocp_mem1_0 {
456         status = "okay";
457 };
458
459 &nocp_mem1_1 {
460         status = "okay";
461 };
462
463 &pinctrl_0 {
464         hdmi_hpd_irq: hdmi-hpd-irq {
465                 samsung,pins = "gpx3-7";
466                 samsung,pin-function = <0>;
467                 samsung,pin-pud = <1>;
468                 samsung,pin-drv = <0>;
469         };
470
471         s2mps11_irq: s2mps11-irq {
472                 samsung,pins = "gpx0-4";
473                 samsung,pin-function = <0xf>;
474                 samsung,pin-pud = <0>;
475                 samsung,pin-drv = <0>;
476         };
477 };
478
479 &pinctrl_1 {
480         emmc_nrst_pin: emmc-nrst {
481                 samsung,pins = "gpd1-0";
482                 samsung,pin-function = <0>;
483                 samsung,pin-pud = <0>;
484                 samsung,pin-drv = <0>;
485         };
486 };
487
488 &tmu_cpu0 {
489         vtmu-supply = <&ldo7_reg>;
490         status = "okay";
491 };
492
493 &tmu_cpu1 {
494         vtmu-supply = <&ldo7_reg>;
495         status = "okay";
496 };
497
498 &tmu_cpu2 {
499         vtmu-supply = <&ldo7_reg>;
500         status = "okay";
501 };
502
503 &tmu_cpu3 {
504         vtmu-supply = <&ldo7_reg>;
505         status = "okay";
506 };
507
508 &tmu_gpu {
509         vtmu-supply = <&ldo7_reg>;
510         status = "okay";
511 };
512
513 &rtc {
514         status = "okay";
515         clocks = <&clock CLK_RTC>, <&s2mps11_osc S2MPS11_CLK_AP>;
516         clock-names = "rtc", "rtc_src";
517 };
518
519 &usbdrd_dwc3_0 {
520         dr_mode = "host";
521 };
522
523 /* usbdrd_dwc3_1 mode customized in each board */
524
525 &usbdrd3_0 {
526         vdd33-supply = <&ldo9_reg>;
527         vdd10-supply = <&ldo11_reg>;
528 };
529
530 &usbdrd3_1 {
531         vdd33-supply = <&ldo9_reg>;
532         vdd10-supply = <&ldo11_reg>;
533 };