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};
65
66&serial_2 {
67	status = "okay";
68};
69
70&rtc {
71	status = "okay";
72	clocks = <&clock_ccore PCLK_RTC>, <&s2mps15_osc S2MPS11_CLK_AP>;
73	clock-names = "rtc", "rtc_src";
74};
75
76&watchdog {
77	status = "okay";
78};
79
80&adc {
81	vdd-supply = <&ldo3_reg>;
82	status = "okay";
83};
84
85&hsi2c_4 {
86	status = "okay";
87
88	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				regulator-always-on;
196			};
197
198			ldo13_reg: LDO13 {
199				regulator-name = "vdd_ldo13";
200				regulator-min-microvolt = <1000000>;
201				regulator-max-microvolt = <1300000>;
202				regulator-always-on;
203				regulator-enable-ramp-delay = <125>;
204			};
205
206			ldo14_reg: LDO14 {
207				regulator-name = "vdd_ldo14";
208				regulator-min-microvolt = <1800000>;
209				regulator-max-microvolt = <3375000>;
210				regulator-enable-ramp-delay = <125>;
211			};
212
213			ldo17_reg: LDO17 {
214				regulator-name = "vmmc-sdcard";
215				regulator-min-microvolt = <1800000>;
216				regulator-max-microvolt = <3375000>;
217				regulator-enable-ramp-delay = <125>;
218			};
219
220			ldo18_reg: LDO18 {
221				regulator-name = "vdd_ldo18";
222				regulator-min-microvolt = <1500000>;
223				regulator-max-microvolt = <2275000>;
224				regulator-enable-ramp-delay = <125>;
225			};
226
227			ldo19_reg: LDO19 {
228				regulator-name = "vdd_ldo19";
229				regulator-min-microvolt = <1800000>;
230				regulator-max-microvolt = <3375000>;
231				regulator-enable-ramp-delay = <125>;
232			};
233
234			ldo21_reg: LDO21 {
235				regulator-name = "vdd_ldo21";
236				regulator-min-microvolt = <1800000>;
237				regulator-max-microvolt = <3375000>;
238				regulator-enable-ramp-delay = <125>;
239			};
240
241			ldo23_reg: LDO23 {
242				regulator-name = "vdd_ldo23";
243				regulator-min-microvolt = <1500000>;
244				regulator-max-microvolt = <2275000>;
245				regulator-enable-ramp-delay = <125>;
246			};
247
248			ldo25_reg: LDO25 {
249				regulator-name = "vdd_ldo25";
250				regulator-min-microvolt = <1800000>;
251				regulator-max-microvolt = <3375000>;
252				regulator-enable-ramp-delay = <125>;
253			};
254
255			ldo26_reg: LDO26 {
256				regulator-name = "vdd_ldo26";
257				regulator-min-microvolt = <700000>;
258				regulator-max-microvolt = <1470000>;
259				regulator-enable-ramp-delay = <125>;
260			};
261
262			ldo27_reg: LDO27 {
263				regulator-name = "vdd_ldo27";
264				regulator-min-microvolt = <1500000>;
265				regulator-max-microvolt = <2275000>;
266				regulator-enable-ramp-delay = <125>;
267			};
268
269			buck1_reg: BUCK1 {
270				regulator-name = "vdd_mif";
271				regulator-min-microvolt = <500000>;
272				regulator-max-microvolt = <1200000>;
273				regulator-always-on;
274				regulator-boot-on;
275				regulator-ramp-delay = <25000>;
276				regulator-enable-ramp-delay = <250>;
277			};
278
279			buck2_reg: BUCK2 {
280				regulator-name = "vdd_atlas";
281				regulator-min-microvolt = <500000>;
282				regulator-max-microvolt = <1200000>;
283				regulator-always-on;
284				regulator-boot-on;
285				regulator-ramp-delay = <12500>;
286				regulator-enable-ramp-delay = <250>;
287			};
288
289			buck4_reg: BUCK4 {
290				regulator-name = "vdd_int";
291				regulator-min-microvolt = <500000>;
292				regulator-max-microvolt = <1200000>;
293				regulator-always-on;
294				regulator-boot-on;
295				regulator-ramp-delay = <12500>;
296				regulator-enable-ramp-delay = <250>;
297			};
298
299			buck5_reg: BUCK5 {
300				regulator-name = "vdd_buck5";
301				regulator-min-microvolt = <500000>;
302				regulator-max-microvolt = <1300000>;
303				regulator-ramp-delay = <25000>;
304				regulator-enable-ramp-delay = <250>;
305			};
306
307			buck6_reg: BUCK6 {
308				regulator-name = "vdd_g3d";
309				regulator-min-microvolt = <500000>;
310				regulator-max-microvolt = <1400000>;
311				regulator-ramp-delay = <12500>;
312				regulator-enable-ramp-delay = <250>;
313			};
314
315			buck7_reg: BUCK7 {
316				regulator-name = "vdd_buck7";
317				regulator-min-microvolt = <1000000>;
318				regulator-max-microvolt = <1500000>;
319				regulator-always-on;
320				regulator-ramp-delay = <25000>;
321				regulator-enable-ramp-delay = <250>;
322			};
323
324			buck8_reg: BUCK8 {
325				regulator-name = "vdd_buck8";
326				regulator-min-microvolt = <1000000>;
327				regulator-max-microvolt = <1500000>;
328				regulator-always-on;
329				regulator-ramp-delay = <25000>;
330				regulator-enable-ramp-delay = <250>;
331			};
332
333			buck9_reg: BUCK9 {
334				regulator-name = "vdd_buck9";
335				regulator-min-microvolt = <1800000>;
336				regulator-max-microvolt = <2100000>;
337				regulator-always-on;
338				regulator-ramp-delay = <25000>;
339				regulator-enable-ramp-delay = <250>;
340			};
341
342			buck10_reg: BUCK10 {
343				regulator-name = "vdd_buck10";
344				regulator-min-microvolt = <1000000>;
345				regulator-max-microvolt = <3000000>;
346				regulator-always-on;
347				regulator-ramp-delay = <25000>;
348				regulator-enable-ramp-delay = <250>;
349			};
350		};
351	};
352};
353
354&pinctrl_alive {
355	pmic_irq: pmic-irq-pins {
356		samsung,pins = "gpa0-2";
357		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
358		samsung,pin-drv = <EXYNOS7_PIN_DRV_LV4>;
359	};
360};
361
362&mmc_0 {
363	status = "okay";
364	cap-mmc-highspeed;
365	mmc-hs200-1_8v;
366	non-removable;
367	card-detect-delay = <200>;
368	clock-frequency = <800000000>;
369	samsung,dw-mshc-ciu-div = <3>;
370	samsung,dw-mshc-sdr-timing = <0 4>;
371	samsung,dw-mshc-ddr-timing = <0 2>;
372	pinctrl-names = "default";
373	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_qrdy &sd0_bus1 &sd0_bus4 &sd0_bus8>;
374	bus-width = <8>;
375};
376
377&mmc_2 {
378	status = "okay";
379	cap-sd-highspeed;
380	card-detect-delay = <200>;
381	clock-frequency = <400000000>;
382	samsung,dw-mshc-ciu-div = <3>;
383	samsung,dw-mshc-sdr-timing = <2 3>;
384	samsung,dw-mshc-ddr-timing = <1 2>;
385	pinctrl-names = "default";
386	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
387	bus-width = <4>;
388	vmmc-supply = <&ldo17_reg>;
389	vqmmc-supply = <&ldo2_reg>;
390	disable-wp;
391};
392
393&pinctrl_bus1 {
394	usb30_vbus_en: usb30-vbus-en-pins {
395		samsung,pins = "gph1-1";
396		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
397		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
398		samsung,pin-drv = <EXYNOS7_PIN_DRV_LV1>;
399	};
400
401	usb3drd_boost_en: usb3drd-boost-en-pins {
402		samsung,pins = "gpf4-1";
403		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
404		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
405		samsung,pin-drv = <EXYNOS7_PIN_DRV_LV1>;
406	};
407};
408
409&ufs {
410	status = "okay";
411};
412
413&usbdrd {
414	vdd10-supply = <&ldo4_reg>;
415	vdd33-supply = <&ldo6_reg>;
416};
417
418&usbdrd_phy {
419	vbus-supply = <&usb30_vbus_reg>;
420	vbus-boost-supply = <&usb3drd_boost_5v>;
421};
422