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