GNU Linux-libre 4.14.265-gnu1
[releases.git] / arch / arm64 / boot / dts / exynos / exynos7-espresso.dts
1 /*
2  * SAMSUNG Exynos7 Espresso board device tree source
3  *
4  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10 */
11
12 /dts-v1/;
13 #include "exynos7.dtsi"
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/clock/samsung,s2mps11.h>
16 #include <dt-bindings/gpio/gpio.h>
17
18 / {
19         model = "Samsung Exynos7 Espresso board based on EXYNOS7";
20         compatible = "samsung,exynos7-espresso", "samsung,exynos7";
21
22         aliases {
23                 serial0 = &serial_2;
24                 mshc0 = &mmc_0;
25                 mshc2 = &mmc_2;
26         };
27
28         chosen {
29                 linux,stdout-path = &serial_2;
30         };
31
32         memory@40000000 {
33                 device_type = "memory";
34                 reg = <0x0 0x40000000 0x0 0xC0000000>;
35         };
36
37         usb30_vbus_reg: regulator-usb30 {
38                 compatible = "regulator-fixed";
39                 regulator-name = "VBUS_5V";
40                 regulator-min-microvolt = <5000000>;
41                 regulator-max-microvolt = <5000000>;
42                 gpio = <&gph1 1 GPIO_ACTIVE_HIGH>;
43                 pinctrl-names = "default";
44                 pinctrl-0 = <&usb30_vbus_en>;
45                 enable-active-high;
46         };
47
48         usb3drd_boost_5v: regulator-usb3drd-boost {
49                 compatible = "regulator-fixed";
50                 regulator-name = "VUSB_VBUS_5V";
51                 regulator-min-microvolt = <5000000>;
52                 regulator-max-microvolt = <5000000>;
53                 gpio = <&gpf4 1 GPIO_ACTIVE_HIGH>;
54                 pinctrl-names = "default";
55                 pinctrl-0 = <&usb3drd_boost_en>;
56                 enable-active-high;
57         };
58
59 };
60
61 &fin_pll {
62         clock-frequency = <24000000>;
63 };
64
65 &serial_2 {
66         status = "okay";
67 };
68
69 &rtc {
70         status = "okay";
71         clocks = <&clock_ccore PCLK_RTC>, <&s2mps15_osc S2MPS11_CLK_AP>;
72         clock-names = "rtc", "rtc_src";
73 };
74
75 &watchdog {
76         status = "okay";
77 };
78
79 &adc {
80         status = "okay";
81 };
82
83 &hsi2c_4 {
84         samsung,i2c-sda-delay = <100>;
85         samsung,i2c-max-bus-freq = <200000>;
86         status = "okay";
87
88         s2mps15_pmic@66 {
89                 compatible = "samsung,s2mps15-pmic";
90                 reg = <0x66>;
91                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
92                 interrupt-parent = <&gpa0>;
93                 pinctrl-names = "default";
94                 pinctrl-0 = <&pmic_irq>;
95                 wakeup-source;
96
97                 s2mps15_osc: clocks {
98                         compatible = "samsung,s2mps13-clk";
99                         #clock-cells = <1>;
100                         clock-output-names = "s2mps13_ap", "s2mps13_cp",
101                                 "s2mps13_bt";
102                 };
103
104                 regulators {
105                         ldo1_reg: LDO1 {
106                                 regulator-name = "vdd_ldo1";
107                                 regulator-min-microvolt = <500000>;
108                                 regulator-max-microvolt = <900000>;
109                                 regulator-always-on;
110                                 regulator-enable-ramp-delay = <125>;
111                         };
112
113                         ldo2_reg: LDO2 {
114                                 regulator-name = "vqmmc-sdcard";
115                                 regulator-min-microvolt = <1620000>;
116                                 regulator-max-microvolt = <3300000>;
117                                 regulator-always-on;
118                                 regulator-enable-ramp-delay = <125>;
119                         };
120
121                         ldo3_reg: LDO3 {
122                                 regulator-name = "vdd_ldo3";
123                                 regulator-min-microvolt = <1620000>;
124                                 regulator-max-microvolt = <1980000>;
125                                 regulator-always-on;
126                                 regulator-boot-on;
127                                 regulator-enable-ramp-delay = <125>;
128                         };
129
130                         ldo4_reg: LDO4 {
131                                 regulator-name = "vdd_ldo4";
132                                 regulator-min-microvolt = <800000>;
133                                 regulator-max-microvolt = <1110000>;
134                                 regulator-always-on;
135                                 regulator-enable-ramp-delay = <125>;
136                         };
137
138                         ldo5_reg: LDO5 {
139                                 regulator-name = "vdd_ldo5";
140                                 regulator-min-microvolt = <1620000>;
141                                 regulator-max-microvolt = <1980000>;
142                                 regulator-always-on;
143                                 regulator-enable-ramp-delay = <125>;
144                         };
145
146                         ldo6_reg: LDO6 {
147                                 regulator-name = "vdd_ldo6";
148                                 regulator-min-microvolt = <2250000>;
149                                 regulator-max-microvolt = <3300000>;
150                                 regulator-enable-ramp-delay = <125>;
151                         };
152
153                         ldo7_reg: LDO7 {
154                                 regulator-name = "vdd_ldo7";
155                                 regulator-min-microvolt = <700000>;
156                                 regulator-max-microvolt = <1150000>;
157                                 regulator-enable-ramp-delay = <125>;
158                                 regulator-always-on;
159                         };
160
161                         ldo8_reg: LDO8 {
162                                 regulator-name = "vdd_ldo8";
163                                 regulator-min-microvolt = <700000>;
164                                 regulator-max-microvolt = <1000000>;
165                                 regulator-enable-ramp-delay = <125>;
166                         };
167
168                         ldo9_reg: LDO9 {
169                                 regulator-name = "vdd_ldo9";
170                                 regulator-min-microvolt = <700000>;
171                                 regulator-max-microvolt = <1000000>;
172                                 regulator-enable-ramp-delay = <125>;
173                         };
174
175                         ldo10_reg: LDO10 {
176                                 regulator-name = "vdd_ldo10";
177                                 regulator-min-microvolt = <700000>;
178                                 regulator-max-microvolt = <1000000>;
179                                 regulator-enable-ramp-delay = <125>;
180                         };
181
182                         ldo11_reg: LDO11 {
183                                 regulator-name = "vdd_ldo11";
184                                 regulator-min-microvolt = <1000000>;
185                                 regulator-max-microvolt = <1300000>;
186                                 regulator-always-on;
187                                 regulator-enable-ramp-delay = <125>;
188                         };
189
190                         ldo12_reg: LDO12 {
191                                 regulator-name = "vdd_ldo12";
192                                 regulator-min-microvolt = <1000000>;
193                                 regulator-max-microvolt = <1300000>;
194                                 regulator-enable-ramp-delay = <125>;
195                         };
196
197                         ldo13_reg: LDO13 {
198                                 regulator-name = "vdd_ldo13";
199                                 regulator-min-microvolt = <1000000>;
200                                 regulator-max-microvolt = <1300000>;
201                                 regulator-always-on;
202                                 regulator-enable-ramp-delay = <125>;
203                         };
204
205                         ldo14_reg: LDO14 {
206                                 regulator-name = "vdd_ldo14";
207                                 regulator-min-microvolt = <1800000>;
208                                 regulator-max-microvolt = <3375000>;
209                                 regulator-enable-ramp-delay = <125>;
210                         };
211
212                         ldo17_reg: LDO17 {
213                                 regulator-name = "vmmc-sdcard";
214                                 regulator-min-microvolt = <1800000>;
215                                 regulator-max-microvolt = <3375000>;
216                                 regulator-enable-ramp-delay = <125>;
217                         };
218
219                         ldo18_reg: LDO18 {
220                                 regulator-name = "vdd_ldo18";
221                                 regulator-min-microvolt = <1500000>;
222                                 regulator-max-microvolt = <2275000>;
223                                 regulator-enable-ramp-delay = <125>;
224                         };
225
226                         ldo19_reg: LDO19 {
227                                 regulator-name = "vdd_ldo19";
228                                 regulator-min-microvolt = <1800000>;
229                                 regulator-max-microvolt = <3375000>;
230                                 regulator-enable-ramp-delay = <125>;
231                         };
232
233                         ldo21_reg: LDO21 {
234                                 regulator-name = "vdd_ldo21";
235                                 regulator-min-microvolt = <1800000>;
236                                 regulator-max-microvolt = <3375000>;
237                                 regulator-enable-ramp-delay = <125>;
238                         };
239
240                         ldo23_reg: LDO23 {
241                                 regulator-name = "vdd_ldo23";
242                                 regulator-min-microvolt = <1500000>;
243                                 regulator-max-microvolt = <2275000>;
244                                 regulator-enable-ramp-delay = <125>;
245                         };
246
247                         ldo25_reg: LDO25 {
248                                 regulator-name = "vdd_ldo25";
249                                 regulator-min-microvolt = <1800000>;
250                                 regulator-max-microvolt = <3375000>;
251                                 regulator-enable-ramp-delay = <125>;
252                         };
253
254                         ldo26_reg: LDO26 {
255                                 regulator-name = "vdd_ldo26";
256                                 regulator-min-microvolt = <700000>;
257                                 regulator-max-microvolt = <1470000>;
258                                 regulator-enable-ramp-delay = <125>;
259                         };
260
261                         ldo27_reg: LDO27 {
262                                 regulator-name = "vdd_ldo27";
263                                 regulator-min-microvolt = <1500000>;
264                                 regulator-max-microvolt = <2275000>;
265                                 regulator-enable-ramp-delay = <125>;
266                         };
267
268                         buck1_reg: BUCK1 {
269                                 regulator-name = "vdd_mif";
270                                 regulator-min-microvolt = <500000>;
271                                 regulator-max-microvolt = <1200000>;
272                                 regulator-always-on;
273                                 regulator-boot-on;
274                                 regulator-ramp-delay = <25000>;
275                                 regulator-enable-ramp-delay = <250>;
276                         };
277
278                         buck2_reg: BUCK2 {
279                                 regulator-name = "vdd_atlas";
280                                 regulator-min-microvolt = <500000>;
281                                 regulator-max-microvolt = <1200000>;
282                                 regulator-always-on;
283                                 regulator-boot-on;
284                                 regulator-ramp-delay = <12500>;
285                                 regulator-enable-ramp-delay = <250>;
286                         };
287
288                         buck4_reg: BUCK4 {
289                                 regulator-name = "vdd_int";
290                                 regulator-min-microvolt = <500000>;
291                                 regulator-max-microvolt = <1200000>;
292                                 regulator-always-on;
293                                 regulator-boot-on;
294                                 regulator-ramp-delay = <12500>;
295                                 regulator-enable-ramp-delay = <250>;
296                         };
297
298                         buck5_reg: BUCK5 {
299                                 regulator-name = "vdd_buck5";
300                                 regulator-min-microvolt = <500000>;
301                                 regulator-max-microvolt = <1300000>;
302                                 regulator-ramp-delay = <25000>;
303                                 regulator-enable-ramp-delay = <250>;
304                         };
305
306                         buck6_reg: BUCK6 {
307                                 regulator-name = "vdd_g3d";
308                                 regulator-min-microvolt = <500000>;
309                                 regulator-max-microvolt = <1400000>;
310                                 regulator-ramp-delay = <12500>;
311                                 regulator-enable-ramp-delay = <250>;
312                         };
313
314                         buck7_reg: BUCK7 {
315                                 regulator-name = "vdd_buck7";
316                                 regulator-min-microvolt = <1000000>;
317                                 regulator-max-microvolt = <1500000>;
318                                 regulator-always-on;
319                                 regulator-ramp-delay = <25000>;
320                                 regulator-enable-ramp-delay = <250>;
321                         };
322
323                         buck8_reg: BUCK8 {
324                                 regulator-name = "vdd_buck8";
325                                 regulator-min-microvolt = <1000000>;
326                                 regulator-max-microvolt = <1500000>;
327                                 regulator-always-on;
328                                 regulator-ramp-delay = <25000>;
329                                 regulator-enable-ramp-delay = <250>;
330                         };
331
332                         buck9_reg: BUCK9 {
333                                 regulator-name = "vdd_buck9";
334                                 regulator-min-microvolt = <1800000>;
335                                 regulator-max-microvolt = <2100000>;
336                                 regulator-always-on;
337                                 regulator-ramp-delay = <25000>;
338                                 regulator-enable-ramp-delay = <250>;
339                         };
340
341                         buck10_reg: BUCK10 {
342                                 regulator-name = "vdd_buck10";
343                                 regulator-min-microvolt = <1000000>;
344                                 regulator-max-microvolt = <3000000>;
345                                 regulator-always-on;
346                                 regulator-ramp-delay = <25000>;
347                                 regulator-enable-ramp-delay = <250>;
348                         };
349                 };
350         };
351 };
352
353 &pinctrl_alive {
354         pmic_irq: pmic-irq {
355                 samsung,pins = "gpa0-2";
356                 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
357                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>;
358         };
359 };
360
361 &mmc_0 {
362         status = "okay";
363         cap-mmc-highspeed;
364         mmc-hs200-1_8v;
365         non-removable;
366         card-detect-delay = <200>;
367         clock-frequency = <800000000>;
368         samsung,dw-mshc-ciu-div = <3>;
369         samsung,dw-mshc-sdr-timing = <0 4>;
370         samsung,dw-mshc-ddr-timing = <0 2>;
371         pinctrl-names = "default";
372         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_qrdy &sd0_bus1 &sd0_bus4 &sd0_bus8>;
373         bus-width = <8>;
374 };
375
376 &mmc_2 {
377         status = "okay";
378         cap-sd-highspeed;
379         card-detect-delay = <200>;
380         clock-frequency = <400000000>;
381         samsung,dw-mshc-ciu-div = <3>;
382         samsung,dw-mshc-sdr-timing = <2 3>;
383         samsung,dw-mshc-ddr-timing = <1 2>;
384         pinctrl-names = "default";
385         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
386         bus-width = <4>;
387         vmmc-supply = <&ldo17_reg>;
388         vqmmc-supply = <&ldo2_reg>;
389         disable-wp;
390 };
391
392 &pinctrl_bus1 {
393         usb30_vbus_en: usb30-vbus-en {
394                 samsung,pins = "gph1-1";
395                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
396                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
397                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
398         };
399
400         usb3drd_boost_en: usb3drd-boost-en {
401                 samsung,pins = "gpf4-1";
402                 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
403                 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
404                 samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
405         };
406 };
407
408 &usbdrd_phy {
409         vbus-supply = <&usb30_vbus_reg>;
410         vbus-boost-supply = <&usb3drd_boost_5v>;
411 };