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