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