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_NONE>;
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			};
161
162			ldo8_reg: LDO8 {
163				regulator-name = "vdd_ldo8";
164				regulator-min-microvolt = <700000>;
165				regulator-max-microvolt = <1000000>;
166				regulator-enable-ramp-delay = <125>;
167			};
168
169			ldo9_reg: LDO9 {
170				regulator-name = "vdd_ldo9";
171				regulator-min-microvolt = <700000>;
172				regulator-max-microvolt = <1000000>;
173				regulator-enable-ramp-delay = <125>;
174			};
175
176			ldo10_reg: LDO10 {
177				regulator-name = "vdd_ldo10";
178				regulator-min-microvolt = <700000>;
179				regulator-max-microvolt = <1000000>;
180				regulator-enable-ramp-delay = <125>;
181			};
182
183			ldo11_reg: LDO11 {
184				regulator-name = "vdd_ldo11";
185				regulator-min-microvolt = <1000000>;
186				regulator-max-microvolt = <1300000>;
187				regulator-always-on;
188				regulator-enable-ramp-delay = <125>;
189			};
190
191			ldo12_reg: LDO12 {
192				regulator-name = "vdd_ldo12";
193				regulator-min-microvolt = <1000000>;
194				regulator-max-microvolt = <1300000>;
195				regulator-enable-ramp-delay = <125>;
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 {
356		samsung,pins = "gpa0-2";
357		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
358		samsung,pin-drv = <EXYNOS4_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 {
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 = <EXYNOS4_PIN_DRV_LV1>;
399	};
400
401	usb3drd_boost_en: usb3drd-boost-en {
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 = <EXYNOS4_PIN_DRV_LV1>;
406	};
407};
408
409&usbdrd_phy {
410	vbus-supply = <&usb30_vbus_reg>;
411	vbus-boost-supply = <&usb3drd_boost_5v>;
412};
413