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