1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Odroid-U3/X2 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 "exynos4412.dtsi"
11
12/ {
13	model = "Odroid based on Exynos4412";
14	compatible = "samsung,odroid", "samsung,exynos4412";
15
16	aliases {
17		serial0 = "/serial@13800000";
18		console = "/serial@13810000";
19		mmc0 = &mshc_0;
20		mmc2 = &sdhci2;
21	};
22
23	serial@13810000 {
24		status = "okay";
25	};
26
27	ehci@12580000 {
28		compatible = "samsung,exynos-ehci";
29		reg = <0x12580000 0x100>;
30		#address-cells = <1>;
31		#size-cells = <1>;
32		phy {
33			compatible = "samsung,exynos-usb-phy";
34			reg = <0x125B0000 0x100>;
35		};
36	};
37
38	emmc-reset {
39		compatible = "samsung,emmc-reset";
40		reset-gpio = <&gpk1 2 0>;
41	};
42};
43
44&i2c_0 {
45	samsung,i2c-sda-delay = <100>;
46	samsung,i2c-slave-addr = <0x10>;
47	samsung,i2c-max-bus-freq = <100000>;
48	status = "okay";
49
50	max77686: max77686_pmic@09 {
51		compatible = "maxim,max77686";
52		interrupt-parent = <&gpx3>;
53		interrupts = <7 0>;
54		reg = <0x09 0 0>;
55		#clock-cells = <1>;
56
57		voltage-regulators {
58			ldo1_reg: LDO1 {
59				regulator-name = "VDD_ALIVE_1.0V";
60				regulator-min-microvolt = <1000000>;
61				regulator-max-microvolt = <1000000>;
62			};
63
64			ldo2_reg: LDO2 {
65				regulator-name = "VDDQ_VM1M2_1.2V";
66				regulator-min-microvolt = <1200000>;
67				regulator-max-microvolt = <1200000>;
68			};
69
70			ldo3_reg: LDO3 {
71				regulator-name = "VCC_1.8V_AP";
72				regulator-min-microvolt = <1800000>;
73				regulator-max-microvolt = <1800000>;
74			};
75
76			ldo4_reg: LDO4 {
77				regulator-name = "VDDQ_MMC2_2.8V";
78				regulator-min-microvolt = <2800000>;
79				regulator-max-microvolt = <2800000>;
80			};
81
82			ldo5_reg: LDO5 {
83				regulator-name = "VDDQ_MMC0/1/3_1.8V";
84				regulator-min-microvolt = <1800000>;
85				regulator-max-microvolt = <1800000>;
86			};
87
88			ldo6_reg: LDO6 {
89				regulator-name = "VMPLL_1.0V";
90				regulator-min-microvolt = <1100000>;
91				regulator-max-microvolt = <1100000>;
92			};
93
94			ldo7_reg: LDO7 {
95				regulator-name = "VPLL_1.1V";
96				regulator-min-microvolt = <1100000>;
97				regulator-max-microvolt = <1100000>;
98			};
99
100			ldo8_reg: LDO8 {
101				regulator-name = "VDD_MIPI/HDMI_1.0V";
102				regulator-min-microvolt = <1000000>;
103				regulator-max-microvolt = <1000000>;
104			};
105
106			ldo10_reg: LDO10 {
107				regulator-name = "VDD_MIPI/HDMI_1.8V";
108				regulator-min-microvolt = <1800000>;
109				regulator-max-microvolt = <1800000>;
110			};
111
112			ldo11_reg: LDO11 {
113				regulator-name = "VDD_ABB1_1.8V";
114				regulator-min-microvolt = <1800000>;
115				regulator-max-microvolt = <1800000>;
116			};
117
118			ldo12_reg: LDO12 {
119				regulator-name = "VDD_UOTG_3.0V";
120				regulator-min-microvolt = <3000000>;
121				regulator-max-microvolt = <3000000>;
122			};
123
124			ldo13_reg: LDO13 {
125				regulator-name = "VDD_C2C_1.8V";
126				regulator-min-microvolt = <1800000>;
127				regulator-max-microvolt = <1800000>;
128			};
129
130			ldo14_reg: LDO14 {
131				regulator-name = "VDD_ABB02_1.8V";
132				regulator-min-microvolt = <1800000>;
133				regulator-max-microvolt = <1800000>;
134			};
135
136			ldo15_reg: LDO15 {
137				regulator-name = "VDD_HSIC/OTG_1.0V";
138				regulator-min-microvolt = <1000000>;
139				regulator-max-microvolt = <1000000>;
140			};
141
142			ldo16_reg: LDO16 {
143				regulator-name = "VDD_HSIC_1.8V";
144				regulator-min-microvolt = <1800000>;
145				regulator-max-microvolt = <1800000>;
146			};
147
148			ldo17_reg: LDO17 {
149				regulator-name = "VDDQ_CAM_1.2V";
150				regulator-min-microvolt = <1200000>;
151				regulator-max-microvolt = <1200000>;
152			};
153
154			ldo20_reg: LDO20 {
155				regulator-name = "VDDQ_EMMC_1.8V";
156				regulator-min-microvolt = <1800000>;
157				regulator-max-microvolt = <1800000>;
158				regulator-always-on;
159				regulator-boot-on;
160			};
161
162			ldo21_reg: LDO21 {
163				regulator-name = "TFLASH_2.8V";
164				regulator-min-microvolt = <2800000>;
165				regulator-max-microvolt = <2800000>;
166				regulator-always-on;
167				regulator-boot-on;
168			};
169
170			ldo22_reg: LDO22 {
171				regulator-name = "VDDQ_EMMC_2.8V";
172				regulator-min-microvolt = <2800000>;
173				regulator-max-microvolt = <2800000>;
174				regulator-always-on;
175				regulator-boot-on;
176			};
177
178			ldo25_reg: LDO25 {
179				regulator-compatible = "LDO25";
180				regulator-name = "VDDQ_LCD_3.0V";
181				regulator-min-microvolt = <3000000>;
182				regulator-max-microvolt = <3000000>;
183			};
184
185			buck1_reg: BUCK1 {
186				regulator-name = "VDD_MIF_1.0V";
187				regulator-min-microvolt = <8500000>;
188				regulator-max-microvolt = <1100000>;
189			};
190
191			buck2_reg: BUCK2 {
192				regulator-name = "VDD_ARM_1.0V";
193				regulator-min-microvolt = <850000>;
194				regulator-max-microvolt = <1500000>;
195			};
196
197			buck3_reg: BUCK3 {
198				regulator-name = "VDD_INT_1.1V";
199				regulator-min-microvolt = <850000>;
200				regulator-max-microvolt = <1150000>;
201			};
202
203			buck4_reg: BUCK4 {
204				regulator-name = "VDD_G3D_1.0V";
205				regulator-min-microvolt = <850000>;
206				regulator-max-microvolt = <1150000>;
207			};
208
209			buck5_reg: BUCK5 {
210				regulator-name = "VDDQ_AP_1.2V";
211				regulator-min-microvolt = <1200000>;
212				regulator-max-microvolt = <1200000>;
213			};
214
215			buck6_reg: BUCK6 {
216				regulator-name = "VCC_INL1/7_1.35V";
217				regulator-min-microvolt = <1350000>;
218				regulator-max-microvolt = <1350000>;
219			};
220
221			buck7_reg: BUCK7 {
222				regulator-name = "VCC_INL2/3/5_2.0V";
223				regulator-min-microvolt = <2000000>;
224				regulator-max-microvolt = <2000000>;
225			};
226
227			buck8_reg: BUCK8 {
228				regulator-name = "VCC_P3V3_2.85V";
229				regulator-min-microvolt = <750000>;
230				regulator-max-microvolt = <3300000>;
231			};
232		};
233	};
234};
235
236&sdhci2 {
237	samsung,bus-width = <4>;
238	samsung,timing = <1 2 3>;
239	cd-inverted;
240	cd-gpios = <&gpk2 2 0>;
241	status = "okay";
242};
243
244&mshc_0 {
245	samsung,bus-width = <8>;
246	samsung,timing = <2 1 0>;
247	samsung,removable = <0>;
248	fifoth_val = <0x203f0040>;
249	bus_hz = <400000000>;
250	div = <0x3>;
251	index = <4>;
252	status = "okay";
253};
254