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