1/*
2 * Samsung's Exynos4412 based Trats2 board device tree source
3 *
4 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5 *		http://www.samsung.com
6 *
7 * SPDX-License-Identifier:	GPL-2.0+
8 */
9
10/dts-v1/;
11#include "exynos4412.dtsi"
12
13/ {
14	model = "Samsung Trats2 based on Exynos4412";
15	compatible = "samsung,trats2", "samsung,exynos4412";
16
17	config {
18		samsung,dsim-device-name = "s6e8ax0";
19	};
20
21	aliases {
22		i2c0 = "/i2c@13860000";
23		i2c1 = "/i2c@13870000";
24		i2c2 = "/i2c@13880000";
25		i2c3 = "/i2c@13890000";
26		i2c4 = "/i2c@138a0000";
27		i2c5 = "/i2c@138b0000";
28		i2c6 = "/i2c@138c0000";
29		i2c7 = "/i2c@138d0000";
30		i2c8 = &i2c_fg;
31		i2c9 = &i2c_max77693;
32		serial0 = "/serial@13800000";
33		console = "/serial@13820000";
34		mmc0 = "/sdhci@12510000";
35		mmc2 = "/sdhci@12530000";
36		mshc0 = "/dwmmc@12550000";
37	};
38
39	i2c_fg: fuel-gauge {
40		compatible = "i2c-gpio";
41		gpios = <&gpf1 5 0>,	/* sda */
42			<&gpf1 4 0>;	/* scl */
43		i2c-gpio,delay-us = <2>;        /* ~100 kHz */
44		status = "okay";
45	};
46
47	i2c_max77693: max77693 {
48		compatible = "i2c-gpio";
49		gpio = <&gpm2 0 0>,	/* sda */
50		       <&gpm2 1 0>;	/* scl */
51		i2c-gpio,delay-us = <2>;        /* ~100 kHz */
52		status = "okay";
53	};
54
55	i2c@138d0000 {
56		samsung,i2c-sda-delay = <100>;
57		samsung,i2c-slave-addr = <0x10>;
58		samsung,i2c-max-bus-freq = <100000>;
59		status = "okay";
60
61		max77686_pmic@09 {
62			compatible = "maxim,max77686";
63			interrupts = <7 0>;
64			reg = <0x09 0 0>;
65			#clock-cells = <1>;
66
67			voltage-regulators {
68				ldo1_reg: LDO1 {
69					regulator-compatible = "LDO1";
70					regulator-name = "VALIVE_1.0V_AP";
71					regulator-min-microvolt = <1000000>;
72					regulator-max-microvolt = <1000000>;
73					regulator-always-on;
74					regulator-mem-on;
75				};
76
77				ldo2_reg: LDO2 {
78					regulator-compatible = "LDO2";
79					regulator-name = "VM1M2_1.2V_AP";
80					regulator-min-microvolt = <1200000>;
81					regulator-max-microvolt = <1200000>;
82					regulator-always-on;
83					regulator-mem-on;
84				};
85
86				ldo3_reg: LDO3 {
87					regulator-compatible = "LDO3";
88					regulator-name = "VCC_1.8V_AP";
89					regulator-min-microvolt = <1800000>;
90					regulator-max-microvolt = <1800000>;
91					regulator-always-on;
92					regulator-mem-on;
93				};
94
95				ldo4_reg: LDO4 {
96					regulator-compatible = "LDO4";
97					regulator-name = "VCC_2.8V_AP";
98					regulator-min-microvolt = <2800000>;
99					regulator-max-microvolt = <2800000>;
100					regulator-always-on;
101					regulator-mem-on;
102				};
103
104				ldo5_reg: LDO5 {
105					regulator-compatible = "LDO5";
106					regulator-name = "VCC_1.8V_IO";
107					regulator-min-microvolt = <1800000>;
108					regulator-max-microvolt = <1800000>;
109					regulator-always-on;
110					regulator-mem-on;
111				};
112
113				ldo6_reg: LDO6 {
114					regulator-compatible = "LDO6";
115					regulator-name = "VMPLL_1.0V_AP";
116					regulator-min-microvolt = <1000000>;
117					regulator-max-microvolt = <1000000>;
118					regulator-always-on;
119					regulator-mem-on;
120				};
121
122				ldo7_reg: LDO7 {
123					regulator-compatible = "LDO7";
124					regulator-name = "VPLL_1.0V_AP";
125					regulator-min-microvolt = <1000000>;
126					regulator-max-microvolt = <1000000>;
127					regulator-always-on;
128					regulator-mem-on;
129				};
130
131				ldo8_reg: LDO8 {
132					regulator-compatible = "LDO8";
133					regulator-name = "VMIPI_1.0V";
134					regulator-min-microvolt = <1000000>;
135					regulator-max-microvolt = <1000000>;
136					regulator-mem-off;
137				};
138
139				ldo9_reg: LDO9 {
140					regulator-compatible = "LDO9";
141					regulator-name = "CAM_ISP_MIPI_1.2V";
142					regulator-min-microvolt = <1200000>;
143					regulator-max-microvolt = <1200000>;
144					regulator-mem-idle;
145				};
146
147				ldo10_reg: LDO10 {
148					regulator-compatible = "LDO10";
149					regulator-name = "VMIPI_1.8V";
150					regulator-min-microvolt = <1800000>;
151					regulator-max-microvolt = <1800000>;
152					regulator-mem-off;
153				};
154
155				ldo11_reg: LDO11 {
156					regulator-compatible = "LDO11";
157					regulator-name = "VABB1_1.95V";
158					regulator-min-microvolt = <1950000>;
159					regulator-max-microvolt = <1950000>;
160					regulator-always-on;
161					regulator-mem-off;
162				};
163
164				ldo12_reg: LDO12 {
165					regulator-compatible = "LDO12";
166					regulator-name = "VUOTG_3.0V";
167					regulator-min-microvolt = <3000000>;
168					regulator-max-microvolt = <3000000>;
169					regulator-mem-off;
170				};
171
172				ldo13_reg: LDO13 {
173					regulator-compatible = "LDO13";
174					regulator-name = "NFC_AVDD_1.8V";
175					regulator-min-microvolt = <1800000>;
176					regulator-max-microvolt = <1800000>;
177					regulator-mem-idle;
178				};
179
180				ldo14_reg: LDO14 {
181					regulator-compatible = "LDO14";
182					regulator-name = "VABB2_1.95V";
183					regulator-min-microvolt = <1950000>;
184					regulator-max-microvolt = <1950000>;
185					regulator-always-on;
186					regulator-mem-off;
187				};
188
189				ldo15_reg: LDO15 {
190					regulator-compatible = "LDO15";
191					regulator-name = "VHSIC_1.0V";
192					regulator-min-microvolt = <1000000>;
193					regulator-max-microvolt = <1000000>;
194					regulator-mem-off;
195				};
196
197				ldo16_reg: LDO16 {
198					regulator-compatible = "LDO16";
199					regulator-name = "VHSIC_1.8V";
200					regulator-min-microvolt = <1800000>;
201					regulator-max-microvolt = <1800000>;
202					regulator-mem-off;
203				};
204
205				ldo17_reg: LDO17 {
206					regulator-compatible = "LDO17";
207					regulator-name = "CAM_SENSOR_CORE_1.2V";
208					regulator-min-microvolt = <1200000>;
209					regulator-max-microvolt = <1200000>;
210					regulator-mem-idle;
211				};
212
213				ldo18_reg: LDO18 {
214					regulator-compatible = "LDO18";
215					regulator-name = "CAM_ISP_SEN_IO_1.8V";
216					regulator-min-microvolt = <1800000>;
217					regulator-max-microvolt = <1800000>;
218					regulator-mem-idle;
219				};
220
221				ldo19_reg: LDO19 {
222					regulator-compatible = "LDO19";
223					regulator-name = "VT_CAM_1.8V";
224					regulator-min-microvolt = <1800000>;
225					regulator-max-microvolt = <1800000>;
226					regulator-mem-idle;
227				};
228
229				ldo20_reg: LDO20 {
230					regulator-compatible = "LDO20";
231					regulator-name = "VDDQ_PRE_1.8V";
232					regulator-min-microvolt = <1800000>;
233					regulator-max-microvolt = <1800000>;
234					regulator-mem-idle;
235				};
236
237				ldo21_reg: LDO21 {
238					regulator-compatible = "LDO21";
239					regulator-name = "VTF_2.8V";
240					regulator-min-microvolt = <2800000>;
241					regulator-max-microvolt = <2800000>;
242					regulator-mem-idle;
243				};
244
245				ldo22_reg: LDO22 {
246					regulator-compatible = "LDO22";
247					regulator-name = "VMEM_VDD_2.8V";
248					regulator-min-microvolt = <2800000>;
249					regulator-max-microvolt = <2800000>;
250					regulator-always-on;
251					regulator-mem-off;
252				};
253
254				ldo23_reg: LDO23 {
255					regulator-compatible = "LDO23";
256					regulator-name = "TSP_AVDD_3.3V";
257					regulator-min-microvolt = <3300000>;
258					regulator-max-microvolt = <3300000>;
259					regulator-mem-idle;
260				};
261
262				ldo24_reg: LDO24 {
263					regulator-compatible = "LDO24";
264					regulator-name = "TSP_VDD_1.8V";
265					regulator-min-microvolt = <1800000>;
266					regulator-max-microvolt = <1800000>;
267					regulator-mem-idle;
268				};
269
270				ldo25_reg: LDO25 {
271					regulator-compatible = "LDO25";
272					regulator-name = "LCD_VCC_3.3V";
273					regulator-min-microvolt = <2800000>;
274					regulator-max-microvolt = <2800000>;
275					regulator-mem-idle;
276				};
277
278				ldo26_reg: LDO26 {
279					regulator-compatible = "LDO26";
280					regulator-name = "MOTOR_VCC_3.0V";
281					regulator-min-microvolt = <3000000>;
282					regulator-max-microvolt = <3000000>;
283					regulator-mem-idle;
284				};
285
286				buck1_reg: BUCK1 {
287					regulator-compatible = "BUCK1";
288					regulator-name = "vdd_mif";
289					regulator-min-microvolt = <850000>;
290					regulator-max-microvolt = <1100000>;
291					regulator-always-on;
292					regulator-boot-on;
293					regulator-mem-off;
294				};
295
296				buck2_reg: BUCK2 {
297					regulator-compatible = "BUCK2";
298					regulator-name = "vdd_arm";
299					regulator-min-microvolt = <850000>;
300					regulator-max-microvolt = <1500000>;
301					regulator-always-on;
302					regulator-boot-on;
303					regulator-mem-off;
304				};
305
306				buck3_reg: BUCK3 {
307					regulator-compatible = "BUCK3";
308					regulator-name = "vdd_int";
309					regulator-min-microvolt = <850000>;
310					regulator-max-microvolt = <1150000>;
311					regulator-always-on;
312					regulator-boot-on;
313					regulator-mem-off;
314				};
315
316				buck4_reg: BUCK4 {
317					regulator-compatible = "BUCK4";
318					regulator-name = "vdd_g3d";
319					regulator-min-microvolt = <850000>;
320					regulator-max-microvolt = <1150000>;
321					regulator-boot-on;
322					regulator-mem-off;
323				};
324
325				buck5_reg: BUCK5 {
326					regulator-compatible = "BUCK5";
327					regulator-name = "VMEM_1.2V_AP";
328					regulator-min-microvolt = <1200000>;
329					regulator-max-microvolt = <1200000>;
330					regulator-always-on;
331				};
332
333				buck6_reg: BUCK6 {
334					regulator-compatible = "BUCK6";
335					regulator-name = "VCC_SUB_1.35V";
336					regulator-min-microvolt = <1350000>;
337					regulator-max-microvolt = <1350000>;
338					regulator-always-on;
339				};
340
341				buck7_reg: BUCK7 {
342					regulator-compatible = "BUCK7";
343					regulator-name = "VCC_SUB_2.0V";
344					regulator-min-microvolt = <2000000>;
345					regulator-max-microvolt = <2000000>;
346					regulator-always-on;
347				};
348
349				buck8_reg: BUCK8 {
350					regulator-compatible = "BUCK8";
351					regulator-name = "VMEM_VDDF_3.0V";
352					regulator-min-microvolt = <2850000>;
353					regulator-max-microvolt = <2850000>;
354					regulator-always-on;
355					regulator-mem-off;
356				};
357
358				buck9_reg: BUCK9 {
359					regulator-compatible = "BUCK9";
360					regulator-name = "CAM_ISP_CORE_1.2V";
361					regulator-min-microvolt = <1000000>;
362					regulator-max-microvolt = <1200000>;
363					regulator-mem-off;
364				};
365			};
366		};
367	};
368
369	fimd@11c00000 {
370		compatible = "samsung,exynos-fimd";
371		reg = <0x11c00000 0xa4>;
372
373		samsung,vl-freq = <60>;
374		samsung,vl-col = <720>;
375		samsung,vl-row = <1280>;
376		samsung,vl-width = <720>;
377		samsung,vl-height = <1280>;
378
379		samsung,vl-clkp = <0>;
380		samsung,vl-oep = <0>;
381		samsung,vl-hsp = <1>;
382		samsung,vl-vsp = <1>;
383		samsung,vl-dp = <1>;
384		samsung,vl-bpix = <4>;
385
386		samsung,vl-hspw = <5>;
387		samsung,vl-hbpd = <10>;
388		samsung,vl-hfpd = <10>;
389		samsung,vl-vspw = <2>;
390		samsung,vl-vbpd = <1>;
391		samsung,vl-vfpd = <13>;
392		samsung,vl-cmd-allow-len = <0xf>;
393
394		samsung,winid = <0>;
395		samsung,power-on-delay = <30>;
396		samsung,interface-mode = <1>;
397		samsung,mipi-enabled = <1>;
398		samsung,dp-enabled;
399		samsung,dual-lcd-enabled;
400
401		samsung,logo-on = <1>;
402		samsung,resolution = <0>;
403		samsung,rgb-mode = <0>;
404	};
405
406	mipidsi@11c80000 {
407		compatible = "samsung,exynos-mipi-dsi";
408		reg = <0x11c80000 0x5c>;
409
410		samsung,dsim-config-e-interface = <1>;
411		samsung,dsim-config-e-virtual-ch = <0>;
412		samsung,dsim-config-e-pixel-format = <7>;
413		samsung,dsim-config-e-burst-mode = <1>;
414		samsung,dsim-config-e-no-data-lane = <3>;
415		samsung,dsim-config-e-byte-clk = <0>;
416		samsung,dsim-config-hfp = <1>;
417
418		samsung,dsim-config-p = <3>;
419		samsung,dsim-config-m = <120>;
420		samsung,dsim-config-s = <1>;
421
422		samsung,dsim-config-pll-stable-time = <500>;
423		samsung,dsim-config-esc-clk = <20000000>;
424		samsung,dsim-config-stop-holding-cnt = <0x7ff>;
425		samsung,dsim-config-bta-timeout = <0xff>;
426		samsung,dsim-config-rx-timeout = <0xffff>;
427
428		samsung,dsim-device-id = <0xffffffff>;
429		samsung,dsim-device-bus-id = <0>;
430
431		samsung,dsim-device-reverse-panel = <1>;
432	};
433
434	sdhci@12510000 {
435		samsung,bus-width = <8>;
436		samsung,timing = <1 3 3>;
437		pwr-gpios = <&gpk0 4 0>;
438		status = "disabled";
439	};
440
441	sdhci@12520000 {
442		status = "disabled";
443	};
444
445	sdhci@12530000 {
446		samsung,bus-width = <4>;
447		samsung,timing = <1 2 3>;
448		cd-gpios = <&gpk2 2 0>;
449	};
450
451	sdhci@12540000 {
452		status = "disabled";
453	};
454
455	dwmmc@12550000 {
456		samsung,bus-width = <8>;
457		samsung,timing = <2 1 0>;
458		pwr-gpios = <&gpk0 4 0>;
459		fifoth_val = <0x203f0040>;
460		bus_hz = <400000000>;
461		div = <0x3>;
462		index = <4>;
463	};
464};
465