xref: /freebsd/sys/contrib/device-tree/src/arm/samsung/exynos5410-odroidxu.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Hardkernel Odroid XU board device tree source
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6*f126890aSEmmanuel Vadot *		http://www.samsung.com
7*f126890aSEmmanuel Vadot * Copyright (c) 2016 Krzysztof Kozlowski
8*f126890aSEmmanuel Vadot */
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/dts-v1/;
11*f126890aSEmmanuel Vadot#include "exynos5410.dtsi"
12*f126890aSEmmanuel Vadot#include <dt-bindings/clock/maxim,max77802.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
14*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
15*f126890aSEmmanuel Vadot#include <dt-bindings/sound/samsung-i2s.h>
16*f126890aSEmmanuel Vadot#include "exynos54xx-odroidxu-leds.dtsi"
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot/ {
19*f126890aSEmmanuel Vadot	model = "Hardkernel Odroid XU";
20*f126890aSEmmanuel Vadot	compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5";
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	aliases {
23*f126890aSEmmanuel Vadot		ethernet = &ethernet;
24*f126890aSEmmanuel Vadot		mmc0 = &mmc_0;
25*f126890aSEmmanuel Vadot		mmc1 = &mmc_2;
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot	memory@40000000 {
29*f126890aSEmmanuel Vadot		device_type = "memory";
30*f126890aSEmmanuel Vadot		reg = <0x40000000 0x7ea00000>;
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot	chosen {
34*f126890aSEmmanuel Vadot		stdout-path = "serial2:115200n8";
35*f126890aSEmmanuel Vadot	};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot	emmc_pwrseq: pwrseq {
38*f126890aSEmmanuel Vadot		pinctrl-0 = <&emmc_nrst_pin>;
39*f126890aSEmmanuel Vadot		pinctrl-names = "default";
40*f126890aSEmmanuel Vadot		compatible = "mmc-pwrseq-emmc";
41*f126890aSEmmanuel Vadot		reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	fan0: pwm-fan {
45*f126890aSEmmanuel Vadot		compatible = "pwm-fan";
46*f126890aSEmmanuel Vadot		pwms = <&pwm 0 20972 0>;
47*f126890aSEmmanuel Vadot		#cooling-cells = <2>;
48*f126890aSEmmanuel Vadot		cooling-levels = <0 130 170 230>;
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	fin_pll: xxti {
52*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
53*f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
54*f126890aSEmmanuel Vadot		clock-output-names = "fin_pll";
55*f126890aSEmmanuel Vadot		#clock-cells = <0>;
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot	firmware@2073000 {
59*f126890aSEmmanuel Vadot		compatible = "samsung,secure-firmware";
60*f126890aSEmmanuel Vadot		reg = <0x02073000 0x1000>;
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	sound: sound {
64*f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot		simple-audio-card,name = "Odroid-XU";
67*f126890aSEmmanuel Vadot		simple-audio-card,widgets =
68*f126890aSEmmanuel Vadot			"Headphone", "Headphone Jack",
69*f126890aSEmmanuel Vadot			"Speakers", "Speakers";
70*f126890aSEmmanuel Vadot		simple-audio-card,routing =
71*f126890aSEmmanuel Vadot			"Headphone Jack", "HPL",
72*f126890aSEmmanuel Vadot			"Headphone Jack", "HPR",
73*f126890aSEmmanuel Vadot			"Headphone Jack", "MICBIAS",
74*f126890aSEmmanuel Vadot			"IN1", "Headphone Jack",
75*f126890aSEmmanuel Vadot			"Speakers", "SPKL",
76*f126890aSEmmanuel Vadot			"Speakers", "SPKR";
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot		simple-audio-card,format = "i2s";
79*f126890aSEmmanuel Vadot		simple-audio-card,bitclock-master = <&link0_codec>;
80*f126890aSEmmanuel Vadot		simple-audio-card,frame-master = <&link0_codec>;
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot		simple-audio-card,cpu {
83*f126890aSEmmanuel Vadot			sound-dai = <&audi2s0 0>;
84*f126890aSEmmanuel Vadot			system-clock-frequency = <19200000>;
85*f126890aSEmmanuel Vadot		};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot		link0_codec: simple-audio-card,codec {
88*f126890aSEmmanuel Vadot			sound-dai = <&max98090>;
89*f126890aSEmmanuel Vadot			clocks = <&audi2s0 CLK_I2S_CDCLK>;
90*f126890aSEmmanuel Vadot		};
91*f126890aSEmmanuel Vadot	};
92*f126890aSEmmanuel Vadot};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot&adc {
95*f126890aSEmmanuel Vadot	vdd-supply = <&ldo10_reg>;
96*f126890aSEmmanuel Vadot	status = "okay";
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&audi2s0 {
100*f126890aSEmmanuel Vadot	status = "okay";
101*f126890aSEmmanuel Vadot};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot&clock {
104*f126890aSEmmanuel Vadot	clocks = <&fin_pll>;
105*f126890aSEmmanuel Vadot	assigned-clocks = <&clock CLK_FOUT_EPLL>;
106*f126890aSEmmanuel Vadot	assigned-clock-rates = <192000000>;
107*f126890aSEmmanuel Vadot};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot&clock_audss {
110*f126890aSEmmanuel Vadot	assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
111*f126890aSEmmanuel Vadot			<&clock_audss EXYNOS_MOUT_I2S>,
112*f126890aSEmmanuel Vadot			<&clock_audss EXYNOS_DOUT_SRP>,
113*f126890aSEmmanuel Vadot			<&clock_audss EXYNOS_DOUT_AUD_BUS>;
114*f126890aSEmmanuel Vadot
115*f126890aSEmmanuel Vadot	assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
116*f126890aSEmmanuel Vadot			<&clock_audss EXYNOS_MOUT_AUDSS>;
117*f126890aSEmmanuel Vadot
118*f126890aSEmmanuel Vadot	assigned-clock-rates = <0>,
119*f126890aSEmmanuel Vadot			       <0>,
120*f126890aSEmmanuel Vadot			       <96000000>,
121*f126890aSEmmanuel Vadot			       <19200000>;
122*f126890aSEmmanuel Vadot};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot&cpu0_thermal {
125*f126890aSEmmanuel Vadot	polling-delay-passive = <0>;
126*f126890aSEmmanuel Vadot	polling-delay = <0>;
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	trips {
129*f126890aSEmmanuel Vadot		cpu_alert0: cpu-alert-0 {
130*f126890aSEmmanuel Vadot			temperature = <50000>; /* millicelsius */
131*f126890aSEmmanuel Vadot			hysteresis = <5000>; /* millicelsius */
132*f126890aSEmmanuel Vadot			type = "active";
133*f126890aSEmmanuel Vadot		};
134*f126890aSEmmanuel Vadot		cpu_alert1: cpu-alert-1 {
135*f126890aSEmmanuel Vadot			temperature = <60000>; /* millicelsius */
136*f126890aSEmmanuel Vadot			hysteresis = <5000>; /* millicelsius */
137*f126890aSEmmanuel Vadot			type = "active";
138*f126890aSEmmanuel Vadot		};
139*f126890aSEmmanuel Vadot		cpu_alert2: cpu-alert-2 {
140*f126890aSEmmanuel Vadot			temperature = <70000>; /* millicelsius */
141*f126890aSEmmanuel Vadot			hysteresis = <5000>; /* millicelsius */
142*f126890aSEmmanuel Vadot			type = "active";
143*f126890aSEmmanuel Vadot		};
144*f126890aSEmmanuel Vadot		cpu_crit0: cpu-crit-0 {
145*f126890aSEmmanuel Vadot			temperature = <120000>; /* millicelsius */
146*f126890aSEmmanuel Vadot			hysteresis = <0>; /* millicelsius */
147*f126890aSEmmanuel Vadot			type = "critical";
148*f126890aSEmmanuel Vadot		};
149*f126890aSEmmanuel Vadot	};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot	cooling-maps {
152*f126890aSEmmanuel Vadot		map0 {
153*f126890aSEmmanuel Vadot			trip = <&cpu_alert0>;
154*f126890aSEmmanuel Vadot			cooling-device = <&fan0 0 1>;
155*f126890aSEmmanuel Vadot		};
156*f126890aSEmmanuel Vadot		map1 {
157*f126890aSEmmanuel Vadot			trip = <&cpu_alert1>;
158*f126890aSEmmanuel Vadot			cooling-device = <&fan0 1 2>;
159*f126890aSEmmanuel Vadot		};
160*f126890aSEmmanuel Vadot		map2 {
161*f126890aSEmmanuel Vadot			trip = <&cpu_alert2>;
162*f126890aSEmmanuel Vadot			cooling-device = <&fan0 2 3>;
163*f126890aSEmmanuel Vadot		};
164*f126890aSEmmanuel Vadot	};
165*f126890aSEmmanuel Vadot};
166*f126890aSEmmanuel Vadot
167*f126890aSEmmanuel Vadot&hsi2c_4 {
168*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
169*f126890aSEmmanuel Vadot	status = "okay";
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot	usb3503: usb-hub@8 {
172*f126890aSEmmanuel Vadot		compatible = "smsc,usb3503";
173*f126890aSEmmanuel Vadot		reg = <0x08>;
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot		intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
176*f126890aSEmmanuel Vadot		connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
177*f126890aSEmmanuel Vadot		reset-gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
178*f126890aSEmmanuel Vadot		initial-mode = <1>;
179*f126890aSEmmanuel Vadot
180*f126890aSEmmanuel Vadot		clock-names = "refclk";
181*f126890aSEmmanuel Vadot		clocks = <&pmu_system_controller 0>;
182*f126890aSEmmanuel Vadot		refclk-frequency = <24000000>;
183*f126890aSEmmanuel Vadot	};
184*f126890aSEmmanuel Vadot
185*f126890aSEmmanuel Vadot	max77802: pmic@9 {
186*f126890aSEmmanuel Vadot		compatible = "maxim,max77802";
187*f126890aSEmmanuel Vadot		reg = <0x9>;
188*f126890aSEmmanuel Vadot		interrupt-parent = <&gpx0>;
189*f126890aSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_NONE>;
190*f126890aSEmmanuel Vadot		pinctrl-names = "default";
191*f126890aSEmmanuel Vadot		pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>;
192*f126890aSEmmanuel Vadot		wakeup-source;
193*f126890aSEmmanuel Vadot		#clock-cells = <1>;
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot		inl1-supply = <&buck5_reg>;
196*f126890aSEmmanuel Vadot		inl2-supply = <&buck7_reg>;
197*f126890aSEmmanuel Vadot		inl3-supply = <&buck9_reg>;
198*f126890aSEmmanuel Vadot		inl4-supply = <&buck9_reg>;
199*f126890aSEmmanuel Vadot		inl5-supply = <&buck9_reg>;
200*f126890aSEmmanuel Vadot		inl6-supply = <&buck10_reg>;
201*f126890aSEmmanuel Vadot		inl7-supply = <&buck9_reg>;
202*f126890aSEmmanuel Vadot		/* inl9 supply is BOOST, not configured here */
203*f126890aSEmmanuel Vadot		inl10-supply = <&buck7_reg>;
204*f126890aSEmmanuel Vadot
205*f126890aSEmmanuel Vadot		regulators {
206*f126890aSEmmanuel Vadot			buck1_reg: BUCK1 {
207*f126890aSEmmanuel Vadot				regulator-name = "vdd_mif";
208*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
209*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1300000>;
210*f126890aSEmmanuel Vadot				regulator-always-on;
211*f126890aSEmmanuel Vadot				regulator-boot-on;
212*f126890aSEmmanuel Vadot			};
213*f126890aSEmmanuel Vadot
214*f126890aSEmmanuel Vadot			buck2_reg: BUCK2 {
215*f126890aSEmmanuel Vadot				regulator-name = "vdd_arm";
216*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
217*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
218*f126890aSEmmanuel Vadot				regulator-always-on;
219*f126890aSEmmanuel Vadot				regulator-boot-on;
220*f126890aSEmmanuel Vadot			};
221*f126890aSEmmanuel Vadot
222*f126890aSEmmanuel Vadot			buck3_reg: BUCK3 {
223*f126890aSEmmanuel Vadot				regulator-name = "vdd_int";
224*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
225*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1400000>;
226*f126890aSEmmanuel Vadot				regulator-always-on;
227*f126890aSEmmanuel Vadot				regulator-boot-on;
228*f126890aSEmmanuel Vadot			};
229*f126890aSEmmanuel Vadot
230*f126890aSEmmanuel Vadot			buck4_reg: BUCK4 {
231*f126890aSEmmanuel Vadot				regulator-name = "vdd_g3d";
232*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
233*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1400000>;
234*f126890aSEmmanuel Vadot				regulator-always-on;
235*f126890aSEmmanuel Vadot				regulator-boot-on;
236*f126890aSEmmanuel Vadot			};
237*f126890aSEmmanuel Vadot
238*f126890aSEmmanuel Vadot			buck5_reg: BUCK5 {
239*f126890aSEmmanuel Vadot				regulator-name = "vdd_mem";
240*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
241*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
242*f126890aSEmmanuel Vadot				regulator-always-on;
243*f126890aSEmmanuel Vadot				regulator-boot-on;
244*f126890aSEmmanuel Vadot			};
245*f126890aSEmmanuel Vadot
246*f126890aSEmmanuel Vadot			buck6_reg: BUCK6 {
247*f126890aSEmmanuel Vadot				regulator-name = "vdd_kfc";
248*f126890aSEmmanuel Vadot				regulator-min-microvolt = <800000>;
249*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1500000>;
250*f126890aSEmmanuel Vadot				regulator-always-on;
251*f126890aSEmmanuel Vadot				regulator-boot-on;
252*f126890aSEmmanuel Vadot			};
253*f126890aSEmmanuel Vadot
254*f126890aSEmmanuel Vadot			buck7_reg: BUCK7 {
255*f126890aSEmmanuel Vadot				regulator-name = "buck7";
256*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1300000>;
257*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1300000>;
258*f126890aSEmmanuel Vadot				regulator-always-on;
259*f126890aSEmmanuel Vadot				regulator-boot-on;
260*f126890aSEmmanuel Vadot			};
261*f126890aSEmmanuel Vadot
262*f126890aSEmmanuel Vadot			buck8_reg: BUCK8 {
263*f126890aSEmmanuel Vadot				/* vdd_mmc0 */
264*f126890aSEmmanuel Vadot				regulator-name = "vddf_2v85";
265*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2850000>;
266*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2850000>;
267*f126890aSEmmanuel Vadot				regulator-always-on;
268*f126890aSEmmanuel Vadot				regulator-boot-on;
269*f126890aSEmmanuel Vadot			};
270*f126890aSEmmanuel Vadot
271*f126890aSEmmanuel Vadot			buck9_reg: BUCK9 {
272*f126890aSEmmanuel Vadot				regulator-name = "buck9";
273*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3000000>;
274*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
275*f126890aSEmmanuel Vadot				regulator-always-on;
276*f126890aSEmmanuel Vadot				regulator-boot-on;
277*f126890aSEmmanuel Vadot			};
278*f126890aSEmmanuel Vadot
279*f126890aSEmmanuel Vadot			buck10_reg: BUCK10 {
280*f126890aSEmmanuel Vadot				regulator-name = "buck10";
281*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2950000>;
282*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2950000>;
283*f126890aSEmmanuel Vadot				regulator-always-on;
284*f126890aSEmmanuel Vadot				regulator-boot-on;
285*f126890aSEmmanuel Vadot			};
286*f126890aSEmmanuel Vadot
287*f126890aSEmmanuel Vadot			ldo1_reg: LDO1 {
288*f126890aSEmmanuel Vadot				regulator-name = "vdd_alive";
289*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
290*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
291*f126890aSEmmanuel Vadot				regulator-always-on;
292*f126890aSEmmanuel Vadot			};
293*f126890aSEmmanuel Vadot
294*f126890aSEmmanuel Vadot			ldo2_reg: LDO2 {
295*f126890aSEmmanuel Vadot				regulator-name = "vddq_m1_m2";
296*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
297*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1200000>;
298*f126890aSEmmanuel Vadot				regulator-always-on;
299*f126890aSEmmanuel Vadot			};
300*f126890aSEmmanuel Vadot
301*f126890aSEmmanuel Vadot			ldo3_reg: LDO3 {
302*f126890aSEmmanuel Vadot				regulator-name = "vddq_gpio";
303*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
304*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
305*f126890aSEmmanuel Vadot				regulator-always-on;
306*f126890aSEmmanuel Vadot			};
307*f126890aSEmmanuel Vadot
308*f126890aSEmmanuel Vadot			ldo4_reg: LDO4 {
309*f126890aSEmmanuel Vadot				regulator-name = "vddq_mmc2";
310*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
311*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3000000>;
312*f126890aSEmmanuel Vadot				/* Having it off prevents reboot */
313*f126890aSEmmanuel Vadot				regulator-always-on;
314*f126890aSEmmanuel Vadot			};
315*f126890aSEmmanuel Vadot
316*f126890aSEmmanuel Vadot			ldo5_reg: LDO5 {
317*f126890aSEmmanuel Vadot				regulator-name = "vdd18_hsic";
318*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
319*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
320*f126890aSEmmanuel Vadot				regulator-always-on;
321*f126890aSEmmanuel Vadot			};
322*f126890aSEmmanuel Vadot
323*f126890aSEmmanuel Vadot			ldo6_reg: LDO6 {
324*f126890aSEmmanuel Vadot				regulator-name = "vdd18_bpll";
325*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
326*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
327*f126890aSEmmanuel Vadot				regulator-always-on;
328*f126890aSEmmanuel Vadot			};
329*f126890aSEmmanuel Vadot
330*f126890aSEmmanuel Vadot			ldo7_reg: LDO7 {
331*f126890aSEmmanuel Vadot				regulator-name = "vddq_lcd";
332*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
333*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
334*f126890aSEmmanuel Vadot				/* Supplies also GPK and GPJ */
335*f126890aSEmmanuel Vadot				regulator-always-on;
336*f126890aSEmmanuel Vadot			};
337*f126890aSEmmanuel Vadot
338*f126890aSEmmanuel Vadot			ldo8_reg: LDO8 {
339*f126890aSEmmanuel Vadot				regulator-name = "vdd10_hdmi";
340*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
341*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
342*f126890aSEmmanuel Vadot				regulator-always-on;
343*f126890aSEmmanuel Vadot			};
344*f126890aSEmmanuel Vadot
345*f126890aSEmmanuel Vadot			ldo9_reg: LDO9 {
346*f126890aSEmmanuel Vadot				regulator-name = "ldo9";
347*f126890aSEmmanuel Vadot			};
348*f126890aSEmmanuel Vadot
349*f126890aSEmmanuel Vadot			ldo10_reg: LDO10 {
350*f126890aSEmmanuel Vadot				regulator-name = "vdd18_mipi";
351*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
352*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
353*f126890aSEmmanuel Vadot				regulator-always-on;
354*f126890aSEmmanuel Vadot			};
355*f126890aSEmmanuel Vadot
356*f126890aSEmmanuel Vadot			ldo11_reg: LDO11 {
357*f126890aSEmmanuel Vadot				regulator-name = "vddq_mmc01";
358*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
359*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
360*f126890aSEmmanuel Vadot				/*
361*f126890aSEmmanuel Vadot				 * Having it off prevents accessing MMC after
362*f126890aSEmmanuel Vadot				 * reboot with error:
363*f126890aSEmmanuel Vadot				 * MMC Device 1: Clock OFF has been failed.
364*f126890aSEmmanuel Vadot				 */
365*f126890aSEmmanuel Vadot				regulator-always-on;
366*f126890aSEmmanuel Vadot			};
367*f126890aSEmmanuel Vadot
368*f126890aSEmmanuel Vadot			ldo12_reg: LDO12 {
369*f126890aSEmmanuel Vadot				regulator-name = "vdd33_usb3";
370*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
371*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
372*f126890aSEmmanuel Vadot				regulator-always-on;
373*f126890aSEmmanuel Vadot			};
374*f126890aSEmmanuel Vadot
375*f126890aSEmmanuel Vadot			ldo13_reg: LDO13 {
376*f126890aSEmmanuel Vadot				regulator-name = "vddq_abbg0";
377*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
378*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
379*f126890aSEmmanuel Vadot				regulator-always-on;
380*f126890aSEmmanuel Vadot			};
381*f126890aSEmmanuel Vadot
382*f126890aSEmmanuel Vadot			ldo14_reg: LDO14 {
383*f126890aSEmmanuel Vadot				regulator-name = "vddq_abbg1";
384*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
385*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
386*f126890aSEmmanuel Vadot				regulator-always-on;
387*f126890aSEmmanuel Vadot			};
388*f126890aSEmmanuel Vadot
389*f126890aSEmmanuel Vadot			ldo15_reg: LDO15 {
390*f126890aSEmmanuel Vadot				regulator-name = "vdd10_usb3";
391*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
392*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
393*f126890aSEmmanuel Vadot				regulator-always-on;
394*f126890aSEmmanuel Vadot			};
395*f126890aSEmmanuel Vadot
396*f126890aSEmmanuel Vadot			ldo17_reg: LDO17 {
397*f126890aSEmmanuel Vadot				regulator-name = "cam_sensor_core";
398*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
399*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1200000>;
400*f126890aSEmmanuel Vadot			};
401*f126890aSEmmanuel Vadot
402*f126890aSEmmanuel Vadot			ldo18_reg: LDO18 {
403*f126890aSEmmanuel Vadot				regulator-name = "ldo18";
404*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
405*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
406*f126890aSEmmanuel Vadot			};
407*f126890aSEmmanuel Vadot
408*f126890aSEmmanuel Vadot			ldo19_reg: LDO19 {
409*f126890aSEmmanuel Vadot				regulator-name = "ldo19";
410*f126890aSEmmanuel Vadot			};
411*f126890aSEmmanuel Vadot
412*f126890aSEmmanuel Vadot			ldo20_reg: LDO20 {
413*f126890aSEmmanuel Vadot				regulator-name = "vdd_mmc0";
414*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
415*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
416*f126890aSEmmanuel Vadot			};
417*f126890aSEmmanuel Vadot
418*f126890aSEmmanuel Vadot			ldo21_reg: LDO21 {
419*f126890aSEmmanuel Vadot				/* vdd_mmc2 */
420*f126890aSEmmanuel Vadot				regulator-name = "vddf_2v8";
421*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2850000>;
422*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2850000>;
423*f126890aSEmmanuel Vadot			};
424*f126890aSEmmanuel Vadot
425*f126890aSEmmanuel Vadot			ldo23_reg: LDO23 {
426*f126890aSEmmanuel Vadot				regulator-name = "dp_p3v3";
427*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
428*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
429*f126890aSEmmanuel Vadot				regulator-always-on;
430*f126890aSEmmanuel Vadot			};
431*f126890aSEmmanuel Vadot
432*f126890aSEmmanuel Vadot			ldo24_reg: LDO24 {
433*f126890aSEmmanuel Vadot				regulator-name = "cam_af";
434*f126890aSEmmanuel Vadot				regulator-min-microvolt = <2800000>;
435*f126890aSEmmanuel Vadot				regulator-max-microvolt = <2800000>;
436*f126890aSEmmanuel Vadot			};
437*f126890aSEmmanuel Vadot
438*f126890aSEmmanuel Vadot			ldo25_reg: LDO25 {
439*f126890aSEmmanuel Vadot				regulator-name = "eth_p3v3";
440*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
441*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
442*f126890aSEmmanuel Vadot				regulator-always-on;
443*f126890aSEmmanuel Vadot			};
444*f126890aSEmmanuel Vadot
445*f126890aSEmmanuel Vadot			ldo26_reg: LDO26 {
446*f126890aSEmmanuel Vadot				regulator-name = "usb30_extclk";
447*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
448*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
449*f126890aSEmmanuel Vadot				regulator-always-on;
450*f126890aSEmmanuel Vadot			};
451*f126890aSEmmanuel Vadot
452*f126890aSEmmanuel Vadot			ldo27_reg: LDO27 {
453*f126890aSEmmanuel Vadot				regulator-name = "ldo27";
454*f126890aSEmmanuel Vadot			};
455*f126890aSEmmanuel Vadot
456*f126890aSEmmanuel Vadot			ldo28_reg: LDO28 {
457*f126890aSEmmanuel Vadot				regulator-name = "ldo28";
458*f126890aSEmmanuel Vadot			};
459*f126890aSEmmanuel Vadot
460*f126890aSEmmanuel Vadot			ldo29_reg: LDO29 {
461*f126890aSEmmanuel Vadot				regulator-name = "ldo29";
462*f126890aSEmmanuel Vadot			};
463*f126890aSEmmanuel Vadot
464*f126890aSEmmanuel Vadot			ldo30_reg: LDO30 {
465*f126890aSEmmanuel Vadot				regulator-name = "vddq_e1_e2";
466*f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
467*f126890aSEmmanuel Vadot				regulator-max-microvolt = <1200000>;
468*f126890aSEmmanuel Vadot				regulator-always-on;
469*f126890aSEmmanuel Vadot			};
470*f126890aSEmmanuel Vadot
471*f126890aSEmmanuel Vadot			/* On revisions with ti,ina231 this is sensor VS */
472*f126890aSEmmanuel Vadot			ldo32_reg: LDO32 {
473*f126890aSEmmanuel Vadot				regulator-name = "vs_power_meter";
474*f126890aSEmmanuel Vadot				regulator-min-microvolt = <3300000>;
475*f126890aSEmmanuel Vadot				regulator-max-microvolt = <3300000>;
476*f126890aSEmmanuel Vadot			};
477*f126890aSEmmanuel Vadot
478*f126890aSEmmanuel Vadot			ldo33_reg: LDO33 {
479*f126890aSEmmanuel Vadot				regulator-name = "ldo33";
480*f126890aSEmmanuel Vadot			};
481*f126890aSEmmanuel Vadot
482*f126890aSEmmanuel Vadot			ldo34_reg: LDO34 {
483*f126890aSEmmanuel Vadot				regulator-name = "ldo34";
484*f126890aSEmmanuel Vadot			};
485*f126890aSEmmanuel Vadot
486*f126890aSEmmanuel Vadot			ldo35_reg: LDO35 {
487*f126890aSEmmanuel Vadot				regulator-name = "ldo35";
488*f126890aSEmmanuel Vadot			};
489*f126890aSEmmanuel Vadot		};
490*f126890aSEmmanuel Vadot	};
491*f126890aSEmmanuel Vadot};
492*f126890aSEmmanuel Vadot
493*f126890aSEmmanuel Vadot&i2c_1 {
494*f126890aSEmmanuel Vadot	status = "okay";
495*f126890aSEmmanuel Vadot	max98090: audio-codec@10 {
496*f126890aSEmmanuel Vadot		compatible = "maxim,max98090";
497*f126890aSEmmanuel Vadot		reg = <0x10>;
498*f126890aSEmmanuel Vadot		interrupt-parent = <&gpj3>;
499*f126890aSEmmanuel Vadot		interrupts = <0 IRQ_TYPE_NONE>;
500*f126890aSEmmanuel Vadot		clocks = <&audi2s0 CLK_I2S_CDCLK>;
501*f126890aSEmmanuel Vadot		clock-names = "mclk";
502*f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
503*f126890aSEmmanuel Vadot	};
504*f126890aSEmmanuel Vadot};
505*f126890aSEmmanuel Vadot
506*f126890aSEmmanuel Vadot&mmc_0 {
507*f126890aSEmmanuel Vadot	status = "okay";
508*f126890aSEmmanuel Vadot	mmc-pwrseq = <&emmc_pwrseq>;
509*f126890aSEmmanuel Vadot	cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
510*f126890aSEmmanuel Vadot	card-detect-delay = <200>;
511*f126890aSEmmanuel Vadot	samsung,dw-mshc-ciu-div = <3>;
512*f126890aSEmmanuel Vadot	samsung,dw-mshc-sdr-timing = <0 4>;
513*f126890aSEmmanuel Vadot	samsung,dw-mshc-ddr-timing = <0 2>;
514*f126890aSEmmanuel Vadot	pinctrl-names = "default";
515*f126890aSEmmanuel Vadot	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
516*f126890aSEmmanuel Vadot	bus-width = <8>;
517*f126890aSEmmanuel Vadot	cap-mmc-highspeed;
518*f126890aSEmmanuel Vadot	mmc-ddr-1_8v;
519*f126890aSEmmanuel Vadot	mmc-hs200-1_8v;
520*f126890aSEmmanuel Vadot	vmmc-supply = <&ldo20_reg>;
521*f126890aSEmmanuel Vadot	vqmmc-supply = <&ldo11_reg>;
522*f126890aSEmmanuel Vadot};
523*f126890aSEmmanuel Vadot
524*f126890aSEmmanuel Vadot&mmc_2 {
525*f126890aSEmmanuel Vadot	status = "okay";
526*f126890aSEmmanuel Vadot	card-detect-delay = <200>;
527*f126890aSEmmanuel Vadot	samsung,dw-mshc-ciu-div = <3>;
528*f126890aSEmmanuel Vadot	samsung,dw-mshc-sdr-timing = <0 4>;
529*f126890aSEmmanuel Vadot	samsung,dw-mshc-ddr-timing = <0 2>;
530*f126890aSEmmanuel Vadot	pinctrl-names = "default";
531*f126890aSEmmanuel Vadot	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>;
532*f126890aSEmmanuel Vadot	bus-width = <4>;
533*f126890aSEmmanuel Vadot	cap-sd-highspeed;
534*f126890aSEmmanuel Vadot	vmmc-supply = <&ldo21_reg>;
535*f126890aSEmmanuel Vadot	vqmmc-supply = <&ldo4_reg>;
536*f126890aSEmmanuel Vadot};
537*f126890aSEmmanuel Vadot
538*f126890aSEmmanuel Vadot&pinctrl_0 {
539*f126890aSEmmanuel Vadot	emmc_nrst_pin: emmc-nrst-pins {
540*f126890aSEmmanuel Vadot		samsung,pins = "gpd1-0";
541*f126890aSEmmanuel Vadot		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
542*f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
543*f126890aSEmmanuel Vadot		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
544*f126890aSEmmanuel Vadot	};
545*f126890aSEmmanuel Vadot
546*f126890aSEmmanuel Vadot	sd2_wp: sd2-wp-pins {
547*f126890aSEmmanuel Vadot		samsung,pins = "gpm5-0";
548*f126890aSEmmanuel Vadot		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
549*f126890aSEmmanuel Vadot		/* Pin is floating so be sure to disable write-protect */
550*f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
551*f126890aSEmmanuel Vadot		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
552*f126890aSEmmanuel Vadot	};
553*f126890aSEmmanuel Vadot
554*f126890aSEmmanuel Vadot	pmic_dvs_2: pmic-dvs-2-pins {
555*f126890aSEmmanuel Vadot		samsung,pins = "gpx0-0", "gpx0-1";
556*f126890aSEmmanuel Vadot		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
557*f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
558*f126890aSEmmanuel Vadot		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
559*f126890aSEmmanuel Vadot	};
560*f126890aSEmmanuel Vadot
561*f126890aSEmmanuel Vadot	pmic_dvs_1: pmic-dvs-1-pins {
562*f126890aSEmmanuel Vadot		samsung,pins = "gpx0-2";
563*f126890aSEmmanuel Vadot		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
564*f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
565*f126890aSEmmanuel Vadot		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
566*f126890aSEmmanuel Vadot		samsung,pin-val = <1>;
567*f126890aSEmmanuel Vadot	};
568*f126890aSEmmanuel Vadot
569*f126890aSEmmanuel Vadot	max77802_irq: max77802-irq-pins {
570*f126890aSEmmanuel Vadot		samsung,pins = "gpx0-4";
571*f126890aSEmmanuel Vadot		samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
572*f126890aSEmmanuel Vadot		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
573*f126890aSEmmanuel Vadot		samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
574*f126890aSEmmanuel Vadot	};
575*f126890aSEmmanuel Vadot};
576*f126890aSEmmanuel Vadot
577*f126890aSEmmanuel Vadot&pwm {
578*f126890aSEmmanuel Vadot	/*
579*f126890aSEmmanuel Vadot	 * PWM 0 -- fan
580*f126890aSEmmanuel Vadot	 * PWM 1 -- Green LED
581*f126890aSEmmanuel Vadot	 * PWM 2 -- Blue LED
582*f126890aSEmmanuel Vadot	 * PWM 3 -- on MIPI connector for backlight
583*f126890aSEmmanuel Vadot	 */
584*f126890aSEmmanuel Vadot	pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
585*f126890aSEmmanuel Vadot	pinctrl-names = "default";
586*f126890aSEmmanuel Vadot	status = "okay";
587*f126890aSEmmanuel Vadot};
588*f126890aSEmmanuel Vadot
589*f126890aSEmmanuel Vadot&rtc {
590*f126890aSEmmanuel Vadot	status = "okay";
591*f126890aSEmmanuel Vadot	clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
592*f126890aSEmmanuel Vadot	clock-names = "rtc", "rtc_src";
593*f126890aSEmmanuel Vadot};
594*f126890aSEmmanuel Vadot
595*f126890aSEmmanuel Vadot&serial_0 {
596*f126890aSEmmanuel Vadot	status = "okay";
597*f126890aSEmmanuel Vadot};
598*f126890aSEmmanuel Vadot
599*f126890aSEmmanuel Vadot&serial_1 {
600*f126890aSEmmanuel Vadot	status = "okay";
601*f126890aSEmmanuel Vadot};
602*f126890aSEmmanuel Vadot
603*f126890aSEmmanuel Vadot&serial_2 {
604*f126890aSEmmanuel Vadot	status = "okay";
605*f126890aSEmmanuel Vadot};
606*f126890aSEmmanuel Vadot
607*f126890aSEmmanuel Vadot&serial_3 {
608*f126890aSEmmanuel Vadot	status = "okay";
609*f126890aSEmmanuel Vadot};
610*f126890aSEmmanuel Vadot
611*f126890aSEmmanuel Vadot&tmu_cpu0 {
612*f126890aSEmmanuel Vadot	vtmu-supply = <&ldo10_reg>;
613*f126890aSEmmanuel Vadot};
614*f126890aSEmmanuel Vadot
615*f126890aSEmmanuel Vadot&tmu_cpu1 {
616*f126890aSEmmanuel Vadot	vtmu-supply = <&ldo10_reg>;
617*f126890aSEmmanuel Vadot};
618*f126890aSEmmanuel Vadot
619*f126890aSEmmanuel Vadot&tmu_cpu2 {
620*f126890aSEmmanuel Vadot	vtmu-supply = <&ldo10_reg>;
621*f126890aSEmmanuel Vadot};
622*f126890aSEmmanuel Vadot
623*f126890aSEmmanuel Vadot&tmu_cpu3 {
624*f126890aSEmmanuel Vadot	vtmu-supply = <&ldo10_reg>;
625*f126890aSEmmanuel Vadot};
626*f126890aSEmmanuel Vadot
627*f126890aSEmmanuel Vadot&usb3_0_oc {
628*f126890aSEmmanuel Vadot	/* External pull up */
629*f126890aSEmmanuel Vadot	samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
630*f126890aSEmmanuel Vadot};
631*f126890aSEmmanuel Vadot
632*f126890aSEmmanuel Vadot&usb3_1_oc {
633*f126890aSEmmanuel Vadot	/* External pull up */
634*f126890aSEmmanuel Vadot	samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
635*f126890aSEmmanuel Vadot};
636*f126890aSEmmanuel Vadot
637*f126890aSEmmanuel Vadot&usbdrd_dwc3_0 {
638*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
639*f126890aSEmmanuel Vadot};
640*f126890aSEmmanuel Vadot
641*f126890aSEmmanuel Vadot&usbdrd_dwc3_1 {
642*f126890aSEmmanuel Vadot	dr_mode = "host";
643*f126890aSEmmanuel Vadot};
644*f126890aSEmmanuel Vadot
645*f126890aSEmmanuel Vadot&usbdrd3_0 {
646*f126890aSEmmanuel Vadot	vdd33-supply = <&ldo12_reg>;
647*f126890aSEmmanuel Vadot	vdd10-supply = <&ldo15_reg>;
648*f126890aSEmmanuel Vadot};
649*f126890aSEmmanuel Vadot
650*f126890aSEmmanuel Vadot&usbdrd3_1 {
651*f126890aSEmmanuel Vadot	vdd33-supply = <&ldo12_reg>;
652*f126890aSEmmanuel Vadot	vdd10-supply = <&ldo15_reg>;
653*f126890aSEmmanuel Vadot};
654*f126890aSEmmanuel Vadot
655*f126890aSEmmanuel Vadot&usbhost2 {
656*f126890aSEmmanuel Vadot	#address-cells = <1>;
657*f126890aSEmmanuel Vadot	#size-cells = <0>;
658*f126890aSEmmanuel Vadot
659*f126890aSEmmanuel Vadot	ethernet: ethernet@2 {
660*f126890aSEmmanuel Vadot		compatible = "usb424,9730";
661*f126890aSEmmanuel Vadot		reg = <2>;
662*f126890aSEmmanuel Vadot		local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
663*f126890aSEmmanuel Vadot	};
664*f126890aSEmmanuel Vadot};
665