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