1/*
2 * Odroid-U3/X2 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 = "Odroid based on Exynos4412";
15	compatible = "samsung,odroid", "samsung,exynos4412";
16
17	aliases {
18		i2c0 = "/i2c@13860000";
19		i2c1 = "/i2c@13870000";
20		i2c2 = "/i2c@13880000";
21		i2c3 = "/i2c@13890000";
22		i2c4 = "/i2c@138a0000";
23		i2c5 = "/i2c@138b0000";
24		i2c6 = "/i2c@138c0000";
25		i2c7 = "/i2c@138d0000";
26		serial0 = "/serial@13800000";
27		console = "/serial@13810000";
28		mmc2 = "sdhci@12530000";
29		mmc4 = "dwmmc@12550000";
30	};
31
32	i2c@13860000 {
33		samsung,i2c-sda-delay = <100>;
34		samsung,i2c-slave-addr = <0x10>;
35		samsung,i2c-max-bus-freq = <100000>;
36		status = "okay";
37
38		max77686_pmic@09 {
39			compatible = "maxim,max77686";
40			interrupts = <7 0>;
41			reg = <0x09 0 0>;
42			#clock-cells = <1>;
43
44			voltage-regulators {
45				ldo1_reg: ldo1 {
46					regulator-name = "VDD_ALIVE_1.0V";
47					regulator-min-microvolt = <1000000>;
48					regulator-max-microvolt = <1000000>;
49				};
50
51				ldo2_reg: ldo2 {
52					regulator-name = "VDDQ_VM1M2_1.2V";
53					regulator-min-microvolt = <1200000>;
54					regulator-max-microvolt = <1200000>;
55				};
56
57				ldo3_reg: ldo3 {
58					regulator-name = "VCC_1.8V_AP";
59					regulator-min-microvolt = <1800000>;
60					regulator-max-microvolt = <1800000>;
61				};
62
63				ldo4_reg: ldo4 {
64					regulator-name = "VDDQ_MMC2_2.8V";
65					regulator-min-microvolt = <2800000>;
66					regulator-max-microvolt = <2800000>;
67				};
68
69				ldo5_reg: ldo5 {
70					regulator-name = "VDDQ_MMC0/1/3_1.8V";
71					regulator-min-microvolt = <1800000>;
72					regulator-max-microvolt = <1800000>;
73				};
74
75				ldo6_reg: ldo6 {
76					regulator-name = "VMPLL_1.0V";
77					regulator-min-microvolt = <1100000>;
78					regulator-max-microvolt = <1100000>;
79				};
80
81				ldo7_reg: ldo7 {
82					regulator-name = "VPLL_1.1V";
83					regulator-min-microvolt = <1100000>;
84					regulator-max-microvolt = <1100000>;
85				};
86
87				ldo8_reg: ldo8 {
88					regulator-name = "VDD_MIPI/HDMI_1.0V";
89					regulator-min-microvolt = <1000000>;
90					regulator-max-microvolt = <1000000>;
91				};
92
93				ldo10_reg: ldo10 {
94					regulator-name = "VDD_MIPI/HDMI_1.8V";
95					regulator-min-microvolt = <1800000>;
96					regulator-max-microvolt = <1800000>;
97				};
98
99				ldo11_reg: ldo11 {
100					regulator-name = "VDD_ABB1_1.8V";
101					regulator-min-microvolt = <1800000>;
102					regulator-max-microvolt = <1800000>;
103				};
104
105				ldo12_reg: ldo12 {
106					regulator-name = "VDD_UOTG_3.0V";
107					regulator-min-microvolt = <3000000>;
108					regulator-max-microvolt = <3000000>;
109				};
110
111				ldo13_reg: ldo13 {
112					regulator-name = "VDD_C2C_1.8V";
113					regulator-min-microvolt = <1800000>;
114					regulator-max-microvolt = <1800000>;
115				};
116
117				ldo14_reg: ldo14 {
118					regulator-name = "VDD_ABB02_1.8V";
119					regulator-min-microvolt = <1800000>;
120					regulator-max-microvolt = <1800000>;
121				};
122
123				ldo15_reg: ldo15 {
124					regulator-name = "VDD_HSIC/OTG_1.0V";
125					regulator-min-microvolt = <1000000>;
126					regulator-max-microvolt = <1000000>;
127				};
128
129				ldo16_reg: ldo16 {
130					regulator-name = "VDD_HSIC_1.8V";
131					regulator-min-microvolt = <1800000>;
132					regulator-max-microvolt = <1800000>;
133				};
134
135				ldo17_reg: ldo17 {
136					regulator-name = "VDDQ_CAM_1.2V";
137					regulator-min-microvolt = <1200000>;
138					regulator-max-microvolt = <1200000>;
139				};
140
141				ldo20_reg: ldo20 {
142					regulator-name = "VDDQ_EMMC_1.8V";
143					regulator-min-microvolt = <1800000>;
144					regulator-max-microvolt = <1800000>;
145					regulator-always-on;
146					regulator-boot-on;
147				};
148
149				ldo21_reg: ldo21 {
150					regulator-name = "TFLASH_2.8V";
151					regulator-min-microvolt = <2800000>;
152					regulator-max-microvolt = <2800000>;
153					regulator-always-on;
154					regulator-boot-on;
155				};
156
157				ldo22_reg: ldo22 {
158					regulator-name = "VDDQ_EMMC_2.8V";
159					regulator-min-microvolt = <2800000>;
160					regulator-max-microvolt = <2800000>;
161					regulator-always-on;
162					regulator-boot-on;
163				};
164
165				ldo25_reg: ldo25 {
166					regulator-compatible = "LDO25";
167					regulator-name = "VDDQ_LCD_3.0V";
168					regulator-min-microvolt = <3000000>;
169					regulator-max-microvolt = <3000000>;
170				};
171
172				buck1_reg: buck1 {
173					regulator-name = "VDD_MIF_1.0V";
174					regulator-min-microvolt = <8500000>;
175					regulator-max-microvolt = <1100000>;
176				};
177
178				buck2_reg: buck2 {
179					regulator-name = "VDD_ARM_1.0V";
180					regulator-min-microvolt = <850000>;
181					regulator-max-microvolt = <1500000>;
182				};
183
184				buck3_reg: buck3 {
185					regulator-name = "VDD_INT_1.1V";
186					regulator-min-microvolt = <850000>;
187					regulator-max-microvolt = <1150000>;
188				};
189
190				buck4_reg: buck4 {
191					regulator-name = "VDD_G3D_1.0V";
192					regulator-min-microvolt = <850000>;
193					regulator-max-microvolt = <1150000>;
194				};
195
196				buck5_reg: buck5 {
197					regulator-name = "VDDQ_AP_1.2V";
198					regulator-min-microvolt = <1200000>;
199					regulator-max-microvolt = <1200000>;
200				};
201
202				buck6_reg: buck6 {
203					regulator-name = "VCC_INL1/7_1.35V";
204					regulator-min-microvolt = <1350000>;
205					regulator-max-microvolt = <1350000>;
206				};
207
208				buck7_reg: buck7 {
209					regulator-name = "VCC_INL2/3/5_2.0V";
210					regulator-min-microvolt = <2000000>;
211					regulator-max-microvolt = <2000000>;
212				};
213
214				buck8_reg: buck8 {
215					regulator-name = "VCC_P3V3_2.85V";
216					regulator-min-microvolt = <2850000>;
217					regulator-max-microvolt = <3300000>;
218				};
219			};
220		};
221	};
222
223	serial@13810000 {
224		status = "okay";
225	};
226
227	sdhci@12510000 {
228		status = "disabled";
229	};
230
231	sdhci@12520000 {
232		status = "disabled";
233	};
234
235	sdhci@12530000 {
236		samsung,bus-width = <4>;
237		samsung,timing = <1 2 3>;
238		cd-gpios = <&gpk2 2 0>;
239	};
240
241	sdhci@12540000 {
242		status = "disabled";
243	};
244
245	dwmmc@12550000 {
246		samsung,bus-width = <8>;
247		samsung,timing = <2 1 0>;
248		samsung,removable = <0>;
249		fifoth_val = <0x203f0040>;
250		bus_hz = <400000000>;
251		div = <0x3>;
252		index = <4>;
253	};
254
255	ehci@12580000 {
256		compatible = "samsung,exynos-ehci";
257		reg = <0x12580000 0x100>;
258		#address-cells = <1>;
259		#size-cells = <1>;
260		phy {
261			compatible = "samsung,exynos-usb-phy";
262			reg = <0x125B0000 0x100>;
263		};
264	};
265
266	emmc-reset {
267		compatible = "samsung,emmc-reset";
268		reset-gpio = <&gpk1 2 0>;
269	};
270};
271