xref: /freebsd/sys/contrib/device-tree/src/arm/samsung/exynos4412-midas.dtsi (revision e1c4c8dd8d2d10b6104f06856a77bd5b4813a801)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos4412 based Trats 2 board device tree source
4 *
5 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 *		http://www.samsung.com
7 *
8 * Device tree source file for Samsung's Trats 2 board which is based on
9 * Samsung's Exynos4412 SoC.
10 */
11
12/dts-v1/;
13#include "exynos4412.dtsi"
14#include "exynos4412-ppmu-common.dtsi"
15
16#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/input/input.h>
18#include <dt-bindings/interrupt-controller/irq.h>
19#include <dt-bindings/clock/maxim,max77686.h>
20#include "exynos-pinctrl.h"
21
22/ {
23	compatible = "samsung,midas", "samsung,exynos4412", "samsung,exynos4";
24
25	aliases {
26		i2c11 = &i2c_max77693;
27		i2c12 = &i2c_max77693_fuel;
28		mmc0 = &mshc_0;
29		mmc2 = &sdhci_2;
30		mmc3 = &sdhci_3;
31	};
32
33	chosen {
34		stdout-path = &serial_2;
35	};
36
37	firmware@204f000 {
38		compatible = "samsung,secure-firmware";
39		reg = <0x0204f000 0x1000>;
40	};
41
42	fixed-rate-clocks {
43		xxti {
44			compatible = "samsung,clock-xxti";
45			clock-frequency = <0>;
46		};
47
48		xusbxti {
49			compatible = "samsung,clock-xusbxti";
50			clock-frequency = <24000000>;
51		};
52	};
53
54	cam_io_reg: voltage-regulator-1 {
55		compatible = "regulator-fixed";
56		regulator-name = "CAM_SENSOR_A";
57		regulator-min-microvolt = <2800000>;
58		regulator-max-microvolt = <2800000>;
59		enable-active-high;
60		status = "disabled";
61	};
62
63	cam_af_reg: voltage-regulator-2 {
64		compatible = "regulator-fixed";
65		regulator-name = "CAM_AF";
66		regulator-min-microvolt = <2800000>;
67		regulator-max-microvolt = <2800000>;
68		enable-active-high;
69		status = "disabled";
70	};
71
72	vsil12: voltage-regulator-3 {
73		compatible = "regulator-fixed";
74		regulator-name = "VSIL_1.2V";
75		regulator-min-microvolt = <1200000>;
76		regulator-max-microvolt = <1200000>;
77		gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
78		enable-active-high;
79		vin-supply = <&buck7_reg>;
80	};
81
82	vcc33mhl: voltage-regulator-4 {
83		compatible = "regulator-fixed";
84		regulator-name = "VCC_3.3_MHL";
85		regulator-min-microvolt = <3300000>;
86		regulator-max-microvolt = <3300000>;
87		gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
88		enable-active-high;
89	};
90
91	vcc18mhl: voltage-regulator-5 {
92		compatible = "regulator-fixed";
93		regulator-name = "VCC_1.8_MHL";
94		regulator-min-microvolt = <1800000>;
95		regulator-max-microvolt = <1800000>;
96		gpio = <&gpl0 4 GPIO_ACTIVE_HIGH>;
97		enable-active-high;
98	};
99
100	touchkey_reg: voltage-regulator-6 {
101		compatible = "regulator-fixed";
102		regulator-name = "LED_VDD_3.3V";
103		regulator-min-microvolt = <3300000>;
104		regulator-max-microvolt = <3300000>;
105		enable-active-high;
106		status = "disabled";
107	};
108
109	vbatt_reg: voltage-regulator-7 {
110		compatible = "regulator-fixed";
111		regulator-name = "VBATT";
112		regulator-min-microvolt = <5000000>;
113		regulator-max-microvolt = <5000000>;
114		regulator-always-on;
115	};
116
117	mic_bias_reg: voltage-regulator-8 {
118		compatible = "regulator-fixed";
119		regulator-name = "MICBIAS_LDO_2.8V";
120		regulator-min-microvolt = <2800000>;
121		regulator-max-microvolt = <2800000>;
122		gpio = <&gpf1 7 GPIO_ACTIVE_HIGH>;
123		enable-active-high;
124	};
125
126	submic_bias_reg: voltage-regulator-9 {
127		compatible = "regulator-fixed";
128		regulator-name = "SUB_MICBIAS_LDO_2.8V";
129		regulator-min-microvolt = <2800000>;
130		regulator-max-microvolt = <2800000>;
131	};
132
133	gpio-keys {
134		compatible = "gpio-keys";
135		pinctrl-names = "default";
136		pinctrl-0 = <&gpio_keys>;
137
138		key-down {
139			gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
140			linux,code = <114>;
141			label = "volume down";
142			debounce-interval = <10>;
143		};
144
145		key-up {
146			gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
147			linux,code = <115>;
148			label = "volume up";
149			debounce-interval = <10>;
150		};
151
152		key-power {
153			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
154			linux,code = <116>;
155			label = "power";
156			debounce-interval = <10>;
157			wakeup-source;
158		};
159
160		key-ok {
161			gpios = <&gpx0 1 GPIO_ACTIVE_LOW>;
162			linux,code = <139>;
163			label = "ok";
164			debounce-interval = <10>;
165			wakeup-source;
166		};
167	};
168
169	i2c_max77693: i2c-gpio-1 {
170		compatible = "i2c-gpio";
171		sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
172		scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
173		i2c-gpio,delay-us = <2>;
174		#address-cells = <1>;
175		#size-cells = <0>;
176
177		pmic@66 {
178			compatible = "maxim,max77693";
179			interrupt-parent = <&gpx1>;
180			interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
181			pinctrl-names = "default";
182			pinctrl-0 = <&max77693_irq>;
183			reg = <0x66>;
184
185			regulators {
186				esafeout1_reg: ESAFEOUT1 {
187					regulator-name = "ESAFEOUT1";
188				};
189				esafeout2_reg: ESAFEOUT2 {
190					regulator-name = "ESAFEOUT2";
191				};
192				charger_reg: CHARGER {
193					regulator-name = "CHARGER";
194					regulator-min-microamp = <60000>;
195					regulator-max-microamp = <2580000>;
196				};
197			};
198
199			motor-driver {
200				compatible = "maxim,max77693-haptic";
201				haptic-supply = <&ldo26_reg>;
202				pwms = <&pwm 0 38022 0>;
203			};
204
205			charger {
206				compatible = "maxim,max77693-charger";
207
208				maxim,constant-microvolt = <4350000>;
209				maxim,min-system-microvolt = <3600000>;
210				maxim,thermal-regulation-celsius = <100>;
211				maxim,battery-overcurrent-microamp = <3500000>;
212				maxim,charge-input-threshold-microvolt = <4300000>;
213			};
214		};
215	};
216
217	i2c_max77693_fuel: i2c-gpio-3 {
218		compatible = "i2c-gpio";
219		sda-gpios = <&gpf1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
220		scl-gpios = <&gpf1 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
221		i2c-gpio,delay-us = <2>;
222		#address-cells = <1>;
223		#size-cells = <0>;
224
225		fuel-gauge@36 {
226			compatible = "maxim,max17047";
227			interrupt-parent = <&gpx2>;
228			interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
229			pinctrl-names = "default";
230			pinctrl-0 = <&max77693_fuel_irq>;
231			reg = <0x36>;
232
233			maxim,over-heat-temp = <700>;
234			maxim,over-volt = <4500>;
235		};
236	};
237
238	i2c-gpio-4 {
239		compatible = "i2c-gpio";
240		sda-gpios = <&gpl0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
241		scl-gpios = <&gpl0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
242		i2c-gpio,delay-us = <2>;
243		#address-cells = <1>;
244		#size-cells = <0>;
245
246		touchkey@20 {
247			compatible = "cypress,midas-touchkey";
248			reg = <0x20>;
249			vdd-supply = <&touchkey_reg>;
250			vcc-supply = <&ldo5_reg>;
251			interrupt-parent = <&gpj0>;
252			interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
253			linux,keycodes = <KEY_BACK KEY_MENU>;
254		};
255	};
256
257	i2c-mhl {
258		compatible = "i2c-gpio";
259		sda-gpios = <&gpf0 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
260		scl-gpios = <&gpf0 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
261		i2c-gpio,delay-us = <100>;
262		#address-cells = <1>;
263		#size-cells = <0>;
264
265		pinctrl-0 = <&i2c_mhl_bus>;
266		pinctrl-names = "default";
267
268		sii9234: hdmi-bridge@39 {
269			compatible = "sil,sii9234";
270			avcc33-supply = <&vcc33mhl>;
271			iovcc18-supply = <&vcc18mhl>;
272			avcc12-supply = <&vsil12>;
273			cvcc12-supply = <&vsil12>;
274			reset-gpios = <&gpf3 4 GPIO_ACTIVE_LOW>;
275			interrupt-parent = <&gpf3>;
276			interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
277			reg = <0x39>;
278
279			ports {
280				#address-cells = <1>;
281				#size-cells = <0>;
282
283				port@0 {
284					reg = <0>;
285
286					mhl_to_hdmi: endpoint {
287						remote-endpoint = <&hdmi_to_mhl>;
288					};
289				};
290			};
291		};
292	};
293
294	wlan_pwrseq: sdhci3-pwrseq {
295		compatible = "mmc-pwrseq-simple";
296		reset-gpios = <&gpj0 0 GPIO_ACTIVE_LOW>;
297		clocks = <&max77686 MAX77686_CLK_PMIC>;
298		clock-names = "ext_clock";
299	};
300
301	sound: sound {
302		compatible = "samsung,midas-audio";
303		model = "Midas";
304		mic-bias-supply = <&mic_bias_reg>;
305		submic-bias-supply = <&submic_bias_reg>;
306
307		cpu {
308			sound-dai = <&i2s0 0>;
309		};
310		codec {
311			sound-dai = <&wm1811>;
312		};
313	};
314
315	thermistor-ap {
316		compatible = "murata,ncp15wb473";
317		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
318		pullup-ohm = <100000>;	 /* 100K */
319		pulldown-ohm = <100000>; /* 100K */
320		io-channels = <&adc 1>;  /* AP temperature */
321	};
322
323	thermistor-battery {
324		compatible = "murata,ncp15wb473";
325		pullup-uv = <1800000>;	 /* VCC_1.8V_AP */
326		pullup-ohm = <100000>;	 /* 100K */
327		pulldown-ohm = <100000>; /* 100K */
328		io-channels = <&adc 2>;  /* Battery temperature */
329	};
330};
331
332&adc {
333	vdd-supply = <&ldo3_reg>;
334	status = "okay";
335};
336
337&bus_dmc {
338	devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
339	vdd-supply = <&buck1_reg>;
340	status = "okay";
341};
342
343&bus_acp {
344	devfreq = <&bus_dmc>;
345	status = "okay";
346};
347
348&bus_c2c {
349	devfreq = <&bus_dmc>;
350	status = "okay";
351};
352
353&bus_leftbus {
354	devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
355	vdd-supply = <&buck3_reg>;
356	status = "okay";
357};
358
359&bus_rightbus {
360	devfreq = <&bus_leftbus>;
361	status = "okay";
362};
363
364&bus_display {
365	devfreq = <&bus_leftbus>;
366	status = "okay";
367};
368
369&bus_fsys {
370	devfreq = <&bus_leftbus>;
371	status = "okay";
372};
373
374&bus_peri {
375	devfreq = <&bus_leftbus>;
376	status = "okay";
377};
378
379&bus_mfc {
380	devfreq = <&bus_leftbus>;
381	status = "okay";
382};
383
384&camera {
385	pinctrl-0 = <&cam_port_a_clk_active &cam_port_b_clk_active>;
386	pinctrl-names = "default";
387	status = "okay";
388	assigned-clocks = <&clock CLK_MOUT_CAM0>,
389		<&clock CLK_MOUT_CAM1>;
390	assigned-clock-parents = <&clock CLK_XUSBXTI>,
391		<&clock CLK_XUSBXTI>;
392};
393
394&cpu0 {
395	cpu0-supply = <&buck2_reg>;
396};
397
398&cpu_thermal {
399	cooling-maps {
400		map0 {
401			/* Corresponds to 800MHz at freq_table */
402			cooling-device = <&cpu0 7 7>, <&cpu1 7 7>,
403					 <&cpu2 7 7>, <&cpu3 7 7>;
404		};
405		map1 {
406			/* Corresponds to 200MHz at freq_table */
407			cooling-device = <&cpu0 13 13>, <&cpu1 13 13>,
408					 <&cpu2 13 13>, <&cpu3 13 13>;
409		};
410	};
411};
412
413&csis_0 {
414	status = "okay";
415	vddcore-supply = <&ldo8_reg>;
416	vddio-supply = <&ldo10_reg>;
417	assigned-clocks = <&clock CLK_MOUT_CSIS0>,
418			<&clock CLK_SCLK_CSIS0>;
419	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
420	assigned-clock-rates = <0>, <176000000>;
421
422	/* Camera C (3) MIPI CSI-2 (CSIS0) */
423	port@3 {
424		reg = <3>;
425		csis0_ep: endpoint {
426			remote-endpoint = <&s5c73m3_ep>;
427			data-lanes = <1 2 3 4>;
428			samsung,csis-hs-settle = <12>;
429		};
430	};
431};
432
433&csis_1 {
434	status = "okay";
435	vddcore-supply = <&ldo8_reg>;
436	vddio-supply = <&ldo10_reg>;
437	assigned-clocks = <&clock CLK_MOUT_CSIS1>,
438			<&clock CLK_SCLK_CSIS1>;
439	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
440	assigned-clock-rates = <0>, <176000000>;
441
442	/* Camera D (4) MIPI CSI-2 (CSIS1) */
443	port@4 {
444		reg = <4>;
445		csis1_ep: endpoint {
446			remote-endpoint = <&is_s5k6a3_ep>;
447			data-lanes = <1>;
448			samsung,csis-hs-settle = <18>;
449			samsung,csis-wclk;
450		};
451	};
452};
453
454&dsi_0 {
455	vddcore-supply = <&ldo8_reg>;
456	vddio-supply = <&ldo10_reg>;
457	samsung,burst-clock-frequency = <500000000>;
458	samsung,esc-clock-frequency = <20000000>;
459	samsung,pll-clock-frequency = <24000000>;
460};
461
462&exynos_usbphy {
463	vbus-supply = <&esafeout1_reg>;
464	status = "okay";
465};
466
467&fimc_0 {
468	status = "okay";
469	assigned-clocks = <&clock CLK_MOUT_FIMC0>,
470			<&clock CLK_SCLK_FIMC0>;
471	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
472	assigned-clock-rates = <0>, <176000000>;
473};
474
475&fimc_1 {
476	status = "okay";
477	assigned-clocks = <&clock CLK_MOUT_FIMC1>,
478			<&clock CLK_SCLK_FIMC1>;
479	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
480	assigned-clock-rates = <0>, <176000000>;
481};
482
483&fimc_2 {
484	status = "okay";
485	assigned-clocks = <&clock CLK_MOUT_FIMC2>,
486			<&clock CLK_SCLK_FIMC2>;
487	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
488	assigned-clock-rates = <0>, <176000000>;
489};
490
491&fimc_3 {
492	status = "okay";
493	assigned-clocks = <&clock CLK_MOUT_FIMC3>,
494			<&clock CLK_SCLK_FIMC3>;
495	assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
496	assigned-clock-rates = <0>, <176000000>;
497};
498
499&fimc_is {
500	pinctrl-0 = <&fimc_is_uart>;
501	pinctrl-names = "default";
502	status = "okay";
503};
504
505&fimc_lite_0 {
506	status = "okay";
507};
508
509&fimc_lite_1 {
510	status = "okay";
511};
512
513&fimd {
514	status = "okay";
515};
516
517&gpu {
518	mali-supply = <&buck4_reg>;
519	status = "okay";
520};
521
522&hdmi {
523	hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
524	pinctrl-names = "default";
525	pinctrl-0 = <&hdmi_hpd>;
526	vdd-supply = <&ldo3_reg>;
527	vdd_osc-supply = <&ldo4_reg>;
528	vdd_pll-supply = <&ldo3_reg>;
529	ddc = <&i2c_5>;
530	status = "okay";
531
532	ports {
533		#address-cells = <1>;
534		#size-cells = <0>;
535
536		port@1 {
537			reg = <1>;
538			hdmi_to_mhl: endpoint {
539				remote-endpoint = <&mhl_to_hdmi>;
540			};
541		};
542	};
543};
544
545&hsotg {
546	vusb_d-supply = <&ldo15_reg>;
547	vusb_a-supply = <&ldo12_reg>;
548	dr_mode = "peripheral";
549	status = "okay";
550};
551
552&i2c_0 {
553	samsung,i2c-sda-delay = <100>;
554	samsung,i2c-slave-addr = <0x10>;
555	samsung,i2c-max-bus-freq = <400000>;
556	pinctrl-0 = <&i2c0_bus>;
557	pinctrl-names = "default";
558	status = "okay";
559
560	s5c73m3: image-sensor@3c {
561		compatible = "samsung,s5c73m3";
562		reg = <0x3c>;
563		xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */
564		vdd-int-supply = <&buck9_reg>;
565		vddio-cis-supply = <&ldo9_reg>;
566		vddio-host-supply = <&ldo18_reg>;
567		vdd-af-supply = <&cam_af_reg>;
568		vdd-reg-supply = <&cam_io_reg>;
569		clock-frequency = <24000000>;
570		/* CAM_A_CLKOUT */
571		clocks = <&camera 0>;
572		clock-names = "cis_extclk";
573		status = "disabled";
574		port {
575			s5c73m3_ep: endpoint {
576				remote-endpoint = <&csis0_ep>;
577				data-lanes = <1 2 3 4>;
578			};
579		};
580	};
581};
582
583&i2c1_isp {
584	pinctrl-0 = <&fimc_is_i2c1>;
585	pinctrl-names = "default";
586
587	image-sensor@10 {
588		compatible = "samsung,s5k6a3";
589		reg = <0x10>;
590		svdda-supply = <&cam_io_reg>;
591		svddio-supply = <&ldo19_reg>;
592		afvdd-supply = <&ldo19_reg>;
593		clock-frequency = <24000000>;
594		/* CAM_B_CLKOUT */
595		clocks = <&camera 1>;
596		clock-names = "extclk";
597		gpios = <&gpm1 6 GPIO_ACTIVE_LOW>;
598
599		port {
600			is_s5k6a3_ep: endpoint {
601				remote-endpoint = <&csis1_ep>;
602				data-lanes = <1>;
603			};
604		};
605	};
606};
607
608&i2c_3 {
609	samsung,i2c-sda-delay = <100>;
610	samsung,i2c-slave-addr = <0x10>;
611	samsung,i2c-max-bus-freq = <400000>;
612	pinctrl-0 = <&i2c3_bus>;
613	pinctrl-names = "default";
614	status = "okay";
615};
616
617&i2c_4 {
618	samsung,i2c-sda-delay = <100>;
619	samsung,i2c-slave-addr = <0x10>;
620	samsung,i2c-max-bus-freq = <100000>;
621	pinctrl-0 = <&i2c4_bus>;
622	pinctrl-names = "default";
623	status = "okay";
624
625	wm1811: audio-codec@1a {
626		compatible = "wlf,wm1811";
627		reg = <0x1a>;
628		clocks = <&pmu_system_controller 0>,
629			<&max77686 MAX77686_CLK_PMIC>;
630		clock-names = "MCLK1", "MCLK2";
631		interrupt-controller;
632		#interrupt-cells = <2>;
633		interrupt-parent = <&gpx3>;
634		interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
635
636		gpio-controller;
637		#gpio-cells = <2>;
638		#sound-dai-cells = <0>;
639
640		wlf,gpio-cfg = <0x3 0x0 0x0 0x0 0x0 0x0
641			0x0 0x8000 0x0 0x0 0x0>;
642		wlf,micbias-cfg = <0x2f 0x2b>;
643
644		wlf,lineout1-feedback;
645		wlf,lineout1-se;
646		wlf,lineout2-se;
647		wlf,ldoena-always-driven;
648
649		AVDD2-supply = <&vbatt_reg>;
650		DBVDD1-supply = <&ldo3_reg>;
651		DBVDD2-supply = <&vbatt_reg>;
652		DBVDD3-supply = <&vbatt_reg>;
653		DCVDD-supply = <&ldo3_reg>;
654		CPVDD-supply = <&vbatt_reg>;
655		SPKVDD1-supply = <&vbatt_reg>;
656		SPKVDD2-supply = <&vbatt_reg>;
657		wlf,ldo1ena-gpios = <&gpj0 4 GPIO_ACTIVE_HIGH>;
658		wlf,ldo2ena-gpios = <&gpj0 4 GPIO_ACTIVE_HIGH>;
659	};
660};
661
662&i2c_5 {
663	status = "okay";
664};
665
666&i2c_7 {
667	samsung,i2c-sda-delay = <100>;
668	samsung,i2c-slave-addr = <0x10>;
669	samsung,i2c-max-bus-freq = <100000>;
670	pinctrl-0 = <&i2c7_bus>;
671	pinctrl-names = "default";
672	status = "okay";
673
674	max77686: pmic@9 {
675		compatible = "maxim,max77686";
676		interrupt-parent = <&gpx0>;
677		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
678		pinctrl-0 = <&max77686_irq>;
679		pinctrl-names = "default";
680		wakeup-source;
681		reg = <0x09>;
682		#clock-cells = <1>;
683
684		voltage-regulators {
685			ldo1_reg: LDO1 {
686				regulator-name = "VALIVE_1.0V_AP";
687				regulator-min-microvolt = <1000000>;
688				regulator-max-microvolt = <1000000>;
689				regulator-always-on;
690			};
691
692			ldo2_reg: LDO2 {
693				regulator-name = "VM1M2_1.2V_AP";
694				regulator-min-microvolt = <1200000>;
695				regulator-max-microvolt = <1200000>;
696				regulator-always-on;
697				regulator-state-mem {
698					regulator-on-in-suspend;
699				};
700			};
701
702			ldo3_reg: LDO3 {
703				regulator-name = "VCC_1.8V_AP";
704				regulator-min-microvolt = <1800000>;
705				regulator-max-microvolt = <1800000>;
706				regulator-always-on;
707			};
708
709			ldo4_reg: LDO4 {
710				regulator-name = "VCC_2.8V_AP";
711				regulator-min-microvolt = <2800000>;
712				regulator-max-microvolt = <2800000>;
713				regulator-always-on;
714			};
715
716			ldo5_reg: LDO5 {
717				regulator-name = "VCC_1.8V_IO";
718				regulator-min-microvolt = <1800000>;
719				regulator-max-microvolt = <1800000>;
720				regulator-always-on;
721			};
722
723			ldo6_reg: LDO6 {
724				regulator-name = "VMPLL_1.0V_AP";
725				regulator-min-microvolt = <1000000>;
726				regulator-max-microvolt = <1000000>;
727				regulator-always-on;
728				regulator-state-mem {
729					regulator-on-in-suspend;
730				};
731			};
732
733			ldo7_reg: LDO7 {
734				regulator-name = "VPLL_1.0V_AP";
735				regulator-min-microvolt = <1000000>;
736				regulator-max-microvolt = <1000000>;
737				regulator-always-on;
738				regulator-state-mem {
739					regulator-on-in-suspend;
740				};
741			};
742
743			ldo8_reg: LDO8 {
744				regulator-name = "VMIPI_1.0V";
745				regulator-min-microvolt = <1000000>;
746				regulator-max-microvolt = <1000000>;
747				regulator-state-mem {
748					regulator-off-in-suspend;
749				};
750			};
751
752			ldo9_reg: LDO9 {
753				regulator-name = "CAM_ISP_MIPI_1.2V";
754				regulator-min-microvolt = <1200000>;
755				regulator-max-microvolt = <1200000>;
756			};
757
758			ldo10_reg: LDO10 {
759				regulator-name = "VMIPI_1.8V";
760				regulator-min-microvolt = <1800000>;
761				regulator-max-microvolt = <1800000>;
762				regulator-state-mem {
763					regulator-off-in-suspend;
764				};
765			};
766
767			ldo11_reg: LDO11 {
768				regulator-name = "VABB1_1.95V";
769				regulator-min-microvolt = <1950000>;
770				regulator-max-microvolt = <1950000>;
771				regulator-always-on;
772				regulator-state-mem {
773					regulator-off-in-suspend;
774				};
775			};
776
777			ldo12_reg: LDO12 {
778				regulator-name = "VUOTG_3.0V";
779				regulator-min-microvolt = <3000000>;
780				regulator-max-microvolt = <3000000>;
781				regulator-state-mem {
782					regulator-off-in-suspend;
783				};
784			};
785
786			ldo13_reg: LDO13 {
787				regulator-name = "NFC_AVDD_1.8V";
788				regulator-min-microvolt = <1800000>;
789				regulator-max-microvolt = <1800000>;
790			};
791
792			ldo14_reg: LDO14 {
793				regulator-name = "VABB2_1.95V";
794				regulator-min-microvolt = <1950000>;
795				regulator-max-microvolt = <1950000>;
796				regulator-always-on;
797				regulator-state-mem {
798					regulator-off-in-suspend;
799				};
800			};
801
802			ldo15_reg: LDO15 {
803				regulator-name = "VHSIC_1.0V";
804				regulator-min-microvolt = <1000000>;
805				regulator-max-microvolt = <1000000>;
806				regulator-state-mem {
807					regulator-on-in-suspend;
808				};
809			};
810
811			ldo16_reg: LDO16 {
812				regulator-name = "VHSIC_1.8V";
813				regulator-min-microvolt = <1800000>;
814				regulator-max-microvolt = <1800000>;
815				regulator-state-mem {
816					regulator-on-in-suspend;
817				};
818			};
819
820			ldo17_reg: LDO17 {
821				regulator-name = "CAM_SENSOR_CORE_1.2V";
822				regulator-min-microvolt = <1200000>;
823				regulator-max-microvolt = <1200000>;
824			};
825
826			ldo18_reg: LDO18 {
827				regulator-name = "CAM_ISP_SEN_IO_1.8V";
828				regulator-min-microvolt = <1800000>;
829				regulator-max-microvolt = <1800000>;
830			};
831
832			ldo19_reg: LDO19 {
833				regulator-name = "VT_CAM_1.8V";
834				regulator-min-microvolt = <1800000>;
835				regulator-max-microvolt = <1800000>;
836			};
837
838			ldo20_reg: LDO20 {
839				regulator-name = "VDDQ_PRE_1.8V";
840				regulator-min-microvolt = <1800000>;
841				regulator-max-microvolt = <1800000>;
842			};
843
844			ldo21_reg: LDO21 {
845				regulator-name = "VTF_2.8V";
846				regulator-min-microvolt = <2800000>;
847				regulator-max-microvolt = <2800000>;
848				maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>;
849			};
850
851			ldo22_reg: LDO22 {
852				regulator-name = "VMEM_VDD_2.8V";
853				regulator-min-microvolt = <2800000>;
854				regulator-max-microvolt = <2800000>;
855				maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
856			};
857
858			ldo23_reg: LDO23 {
859				regulator-name = "TSP_AVDD_3.3V";
860				regulator-min-microvolt = <3300000>;
861				regulator-max-microvolt = <3300000>;
862			};
863
864			ldo24_reg: LDO24 {
865				regulator-name = "TSP_VDD_1.8V";
866				regulator-min-microvolt = <1800000>;
867				regulator-max-microvolt = <1800000>;
868			};
869
870			ldo25_reg: LDO25 {
871				regulator-name = "LDO25";
872			};
873
874			ldo26_reg: LDO26 {
875				regulator-name = "MOTOR_VCC_3.0V";
876				regulator-min-microvolt = <3000000>;
877				regulator-max-microvolt = <3000000>;
878			};
879
880			buck1_reg: BUCK1 {
881				regulator-name = "VDD_MIF";
882				regulator-min-microvolt = <850000>;
883				regulator-max-microvolt = <1100000>;
884				regulator-always-on;
885				regulator-boot-on;
886				regulator-state-mem {
887					regulator-off-in-suspend;
888				};
889			};
890
891			buck2_reg: BUCK2 {
892				regulator-name = "VDD_ARM";
893				regulator-min-microvolt = <850000>;
894				regulator-max-microvolt = <1500000>;
895				regulator-always-on;
896				regulator-boot-on;
897				regulator-state-mem {
898					regulator-on-in-suspend;
899				};
900			};
901
902			buck3_reg: BUCK3 {
903				regulator-name = "VDD_INT";
904				regulator-min-microvolt = <850000>;
905				regulator-max-microvolt = <1150000>;
906				regulator-always-on;
907				regulator-boot-on;
908				regulator-state-mem {
909					regulator-off-in-suspend;
910				};
911			};
912
913			buck4_reg: BUCK4 {
914				regulator-name = "VDD_G3D";
915				regulator-min-microvolt = <850000>;
916				regulator-max-microvolt = <1150000>;
917				regulator-boot-on;
918				regulator-state-mem {
919					regulator-off-in-suspend;
920				};
921			};
922
923			buck5_reg: BUCK5 {
924				regulator-name = "VMEM_1.2V_AP";
925				regulator-min-microvolt = <1200000>;
926				regulator-max-microvolt = <1200000>;
927				regulator-always-on;
928			};
929
930			buck6_reg: BUCK6 {
931				regulator-name = "VCC_SUB_1.35V";
932				regulator-min-microvolt = <1350000>;
933				regulator-max-microvolt = <1350000>;
934				regulator-always-on;
935			};
936
937			buck7_reg: BUCK7 {
938				regulator-name = "VCC_SUB_2.0V";
939				regulator-min-microvolt = <2000000>;
940				regulator-max-microvolt = <2000000>;
941				regulator-always-on;
942			};
943
944			buck8_reg: BUCK8 {
945				regulator-name = "VMEM_VDDF_3.0V";
946				regulator-min-microvolt = <2850000>;
947				regulator-max-microvolt = <2850000>;
948				maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
949			};
950
951			buck9_reg: BUCK9 {
952				regulator-name = "CAM_ISP_CORE_1.2V";
953				regulator-min-microvolt = <1000000>;
954				regulator-max-microvolt = <1200000>;
955			};
956		};
957	};
958};
959
960&i2c_8 {
961	status = "okay";
962};
963
964&i2s0 {
965	pinctrl-0 = <&i2s0_bus>;
966	pinctrl-names = "default";
967	status = "okay";
968};
969
970&mixer {
971	status = "okay";
972};
973
974&mshc_0 {
975	broken-cd;
976	non-removable;
977	card-detect-delay = <200>;
978	vmmc-supply = <&ldo22_reg>;
979	clock-frequency = <400000000>;
980	samsung,dw-mshc-ciu-div = <0>;
981	samsung,dw-mshc-sdr-timing = <2 3>;
982	samsung,dw-mshc-ddr-timing = <1 2>;
983	mmc-ddr-1_8v;
984	pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
985	pinctrl-names = "default";
986	status = "okay";
987	bus-width = <8>;
988	cap-mmc-highspeed;
989};
990
991&pmu_system_controller {
992	assigned-clocks = <&pmu_system_controller 0>;
993	assigned-clock-parents =  <&clock CLK_XUSBXTI>;
994};
995
996&pinctrl_0 {
997	pinctrl-names = "default";
998	pinctrl-0 = <&sleep0>;
999
1000	mhl_int: mhl-int-pins {
1001		samsung,pins = "gpf3-5";
1002		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1003	};
1004
1005	i2c_mhl_bus: i2c-mhl-bus-pins {
1006		samsung,pins = "gpf0-4", "gpf0-6";
1007		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
1008		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
1009		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
1010	};
1011
1012	sleep0: sleep-state {
1013		PIN_SLP(gpa0-0, INPUT, NONE);
1014		PIN_SLP(gpa0-1, OUT0, NONE);
1015		PIN_SLP(gpa0-2, INPUT, NONE);
1016		PIN_SLP(gpa0-3, INPUT, UP);
1017		PIN_SLP(gpa0-4, INPUT, NONE);
1018		PIN_SLP(gpa0-5, INPUT, DOWN);
1019		PIN_SLP(gpa0-6, INPUT, DOWN);
1020		PIN_SLP(gpa0-7, INPUT, UP);
1021
1022		PIN_SLP(gpa1-0, INPUT, DOWN);
1023		PIN_SLP(gpa1-1, INPUT, DOWN);
1024		PIN_SLP(gpa1-2, INPUT, DOWN);
1025		PIN_SLP(gpa1-3, INPUT, DOWN);
1026		PIN_SLP(gpa1-4, INPUT, DOWN);
1027		PIN_SLP(gpa1-5, INPUT, DOWN);
1028
1029		PIN_SLP(gpb-0, INPUT, NONE);
1030		PIN_SLP(gpb-1, INPUT, NONE);
1031		PIN_SLP(gpb-2, INPUT, NONE);
1032		PIN_SLP(gpb-3, INPUT, NONE);
1033		PIN_SLP(gpb-4, INPUT, DOWN);
1034		PIN_SLP(gpb-5, INPUT, UP);
1035		PIN_SLP(gpb-6, INPUT, DOWN);
1036		PIN_SLP(gpb-7, INPUT, DOWN);
1037
1038		PIN_SLP(gpc0-0, INPUT, DOWN);
1039		PIN_SLP(gpc0-1, INPUT, DOWN);
1040		PIN_SLP(gpc0-2, INPUT, DOWN);
1041		PIN_SLP(gpc0-3, INPUT, DOWN);
1042		PIN_SLP(gpc0-4, INPUT, DOWN);
1043
1044		PIN_SLP(gpc1-0, INPUT, NONE);
1045		PIN_SLP(gpc1-1, PREV, NONE);
1046		PIN_SLP(gpc1-2, INPUT, NONE);
1047		PIN_SLP(gpc1-3, INPUT, NONE);
1048		PIN_SLP(gpc1-4, INPUT, NONE);
1049
1050		PIN_SLP(gpd0-0, INPUT, DOWN);
1051		PIN_SLP(gpd0-1, INPUT, DOWN);
1052		PIN_SLP(gpd0-2, INPUT, NONE);
1053		PIN_SLP(gpd0-3, INPUT, NONE);
1054
1055		PIN_SLP(gpd1-0, INPUT, DOWN);
1056		PIN_SLP(gpd1-1, INPUT, DOWN);
1057		PIN_SLP(gpd1-2, INPUT, NONE);
1058		PIN_SLP(gpd1-3, INPUT, NONE);
1059
1060		PIN_SLP(gpf0-0, INPUT, NONE);
1061		PIN_SLP(gpf0-1, INPUT, NONE);
1062		PIN_SLP(gpf0-2, INPUT, DOWN);
1063		PIN_SLP(gpf0-3, INPUT, DOWN);
1064		PIN_SLP(gpf0-4, INPUT, NONE);
1065		PIN_SLP(gpf0-5, INPUT, DOWN);
1066		PIN_SLP(gpf0-6, INPUT, NONE);
1067		PIN_SLP(gpf0-7, INPUT, DOWN);
1068
1069		PIN_SLP(gpf1-0, INPUT, DOWN);
1070		PIN_SLP(gpf1-1, INPUT, DOWN);
1071		PIN_SLP(gpf1-2, INPUT, DOWN);
1072		PIN_SLP(gpf1-3, INPUT, DOWN);
1073		PIN_SLP(gpf1-4, INPUT, NONE);
1074		PIN_SLP(gpf1-5, INPUT, NONE);
1075		PIN_SLP(gpf1-6, INPUT, DOWN);
1076		PIN_SLP(gpf1-7, PREV, NONE);
1077
1078		PIN_SLP(gpf2-0, PREV, NONE);
1079		PIN_SLP(gpf2-1, INPUT, DOWN);
1080		PIN_SLP(gpf2-2, INPUT, DOWN);
1081		PIN_SLP(gpf2-3, INPUT, DOWN);
1082		PIN_SLP(gpf2-4, INPUT, DOWN);
1083		PIN_SLP(gpf2-5, INPUT, DOWN);
1084		PIN_SLP(gpf2-6, INPUT, NONE);
1085		PIN_SLP(gpf2-7, INPUT, NONE);
1086
1087		PIN_SLP(gpf3-0, INPUT, NONE);
1088		PIN_SLP(gpf3-1, PREV, NONE);
1089		PIN_SLP(gpf3-2, PREV, NONE);
1090		PIN_SLP(gpf3-3, PREV, NONE);
1091		PIN_SLP(gpf3-4, OUT1, NONE);
1092		PIN_SLP(gpf3-5, INPUT, DOWN);
1093
1094		PIN_SLP(gpj0-0, PREV, NONE);
1095		PIN_SLP(gpj0-1, PREV, NONE);
1096		PIN_SLP(gpj0-2, PREV, NONE);
1097		PIN_SLP(gpj0-3, INPUT, DOWN);
1098		PIN_SLP(gpj0-4, PREV, NONE);
1099		PIN_SLP(gpj0-5, PREV, NONE);
1100		PIN_SLP(gpj0-6, INPUT, DOWN);
1101		PIN_SLP(gpj0-7, INPUT, DOWN);
1102
1103		PIN_SLP(gpj1-0, INPUT, DOWN);
1104		PIN_SLP(gpj1-1, PREV, NONE);
1105		PIN_SLP(gpj1-2, PREV, NONE);
1106		PIN_SLP(gpj1-3, INPUT, DOWN);
1107		PIN_SLP(gpj1-4, INPUT, DOWN);
1108	};
1109};
1110
1111&pinctrl_1 {
1112	pinctrl-names = "default";
1113	pinctrl-0 = <&sleep1>;
1114
1115	gpio_keys: gpio-keys-pins {
1116		samsung,pins = "gpx0-1", "gpx2-2", "gpx2-7", "gpx3-3";
1117		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1118	};
1119
1120	bt_shutdown: bt-shutdown-pins {
1121		samsung,pins = "gpl0-6";
1122		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1123	};
1124
1125	bt_host_wakeup: bt-host-wakeup-pins {
1126		samsung,pins = "gpx2-6";
1127		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1128	};
1129
1130	bt_device_wakeup: bt-device-wakeup-pins {
1131		samsung,pins = "gpx3-1";
1132		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1133	};
1134
1135	max77686_irq: max77686-irq-pins {
1136		samsung,pins = "gpx0-7";
1137		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1138	};
1139
1140	max77693_irq: max77693-irq-pins {
1141		samsung,pins = "gpx1-5";
1142		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1143	};
1144
1145	max77693_fuel_irq: max77693-fuel-irq-pins {
1146		samsung,pins = "gpx2-3";
1147		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1148	};
1149
1150	sdhci2_cd: sdhci2-cd-irq-pins {
1151		samsung,pins = "gpx3-4";
1152		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1153	};
1154
1155	hdmi_hpd: hdmi-hpd-pins {
1156		samsung,pins = "gpx3-7";
1157		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
1158	};
1159
1160	sleep1: sleep-state {
1161		PIN_SLP(gpk0-0, PREV, NONE);
1162		PIN_SLP(gpk0-1, PREV, NONE);
1163		PIN_SLP(gpk0-2, OUT0, NONE);
1164		PIN_SLP(gpk0-3, PREV, NONE);
1165		PIN_SLP(gpk0-4, PREV, NONE);
1166		PIN_SLP(gpk0-5, PREV, NONE);
1167		PIN_SLP(gpk0-6, PREV, NONE);
1168
1169		PIN_SLP(gpk1-0, INPUT, DOWN);
1170		PIN_SLP(gpk1-1, INPUT, DOWN);
1171		PIN_SLP(gpk1-2, INPUT, DOWN);
1172		PIN_SLP(gpk1-3, PREV, NONE);
1173		PIN_SLP(gpk1-4, PREV, NONE);
1174		PIN_SLP(gpk1-5, PREV, NONE);
1175		PIN_SLP(gpk1-6, PREV, NONE);
1176
1177		PIN_SLP(gpk2-0, INPUT, DOWN);
1178		PIN_SLP(gpk2-1, INPUT, DOWN);
1179		PIN_SLP(gpk2-2, INPUT, DOWN);
1180		PIN_SLP(gpk2-3, INPUT, DOWN);
1181		PIN_SLP(gpk2-4, INPUT, DOWN);
1182		PIN_SLP(gpk2-5, INPUT, DOWN);
1183		PIN_SLP(gpk2-6, INPUT, DOWN);
1184
1185		PIN_SLP(gpk3-0, OUT0, NONE);
1186		PIN_SLP(gpk3-1, INPUT, NONE);
1187		PIN_SLP(gpk3-2, INPUT, DOWN);
1188		PIN_SLP(gpk3-3, INPUT, NONE);
1189		PIN_SLP(gpk3-4, INPUT, NONE);
1190		PIN_SLP(gpk3-5, INPUT, NONE);
1191		PIN_SLP(gpk3-6, INPUT, NONE);
1192
1193		PIN_SLP(gpl0-0, INPUT, DOWN);
1194		PIN_SLP(gpl0-1, INPUT, DOWN);
1195		PIN_SLP(gpl0-2, INPUT, DOWN);
1196		PIN_SLP(gpl0-3, INPUT, DOWN);
1197		PIN_SLP(gpl0-4, PREV, NONE);
1198		PIN_SLP(gpl0-6, PREV, NONE);
1199
1200		PIN_SLP(gpl1-0, INPUT, DOWN);
1201		PIN_SLP(gpl1-1, INPUT, DOWN);
1202		PIN_SLP(gpl2-0, INPUT, DOWN);
1203		PIN_SLP(gpl2-1, INPUT, DOWN);
1204		PIN_SLP(gpl2-2, INPUT, DOWN);
1205		PIN_SLP(gpl2-3, INPUT, DOWN);
1206		PIN_SLP(gpl2-4, INPUT, DOWN);
1207		PIN_SLP(gpl2-5, INPUT, DOWN);
1208		PIN_SLP(gpl2-6, PREV, NONE);
1209		PIN_SLP(gpl2-7, INPUT, DOWN);
1210
1211		PIN_SLP(gpm0-0, INPUT, DOWN);
1212		PIN_SLP(gpm0-1, INPUT, DOWN);
1213		PIN_SLP(gpm0-2, INPUT, DOWN);
1214		PIN_SLP(gpm0-3, INPUT, DOWN);
1215		PIN_SLP(gpm0-4, INPUT, DOWN);
1216		PIN_SLP(gpm0-5, INPUT, DOWN);
1217		PIN_SLP(gpm0-6, INPUT, DOWN);
1218		PIN_SLP(gpm0-7, INPUT, DOWN);
1219
1220		PIN_SLP(gpm1-0, INPUT, DOWN);
1221		PIN_SLP(gpm1-1, INPUT, DOWN);
1222		PIN_SLP(gpm1-2, INPUT, NONE);
1223		PIN_SLP(gpm1-3, INPUT, NONE);
1224		PIN_SLP(gpm1-4, INPUT, NONE);
1225		PIN_SLP(gpm1-5, INPUT, NONE);
1226		PIN_SLP(gpm1-6, INPUT, DOWN);
1227
1228		PIN_SLP(gpm2-0, INPUT, NONE);
1229		PIN_SLP(gpm2-1, INPUT, NONE);
1230		PIN_SLP(gpm2-2, INPUT, DOWN);
1231		PIN_SLP(gpm2-3, INPUT, DOWN);
1232		PIN_SLP(gpm2-4, INPUT, DOWN);
1233
1234		PIN_SLP(gpm3-0, PREV, NONE);
1235		PIN_SLP(gpm3-1, PREV, NONE);
1236		PIN_SLP(gpm3-2, PREV, NONE);
1237		PIN_SLP(gpm3-3, OUT1, NONE);
1238		PIN_SLP(gpm3-4, INPUT, DOWN);
1239		PIN_SLP(gpm3-5, INPUT, DOWN);
1240		PIN_SLP(gpm3-6, INPUT, DOWN);
1241		PIN_SLP(gpm3-7, INPUT, DOWN);
1242
1243		PIN_SLP(gpm4-0, INPUT, DOWN);
1244		PIN_SLP(gpm4-1, INPUT, DOWN);
1245		PIN_SLP(gpm4-2, INPUT, DOWN);
1246		PIN_SLP(gpm4-3, INPUT, DOWN);
1247		PIN_SLP(gpm4-4, INPUT, DOWN);
1248		PIN_SLP(gpm4-5, INPUT, DOWN);
1249		PIN_SLP(gpm4-6, INPUT, DOWN);
1250		PIN_SLP(gpm4-7, INPUT, DOWN);
1251
1252		PIN_SLP(gpy0-0, INPUT, DOWN);
1253		PIN_SLP(gpy0-1, INPUT, DOWN);
1254		PIN_SLP(gpy0-2, INPUT, DOWN);
1255		PIN_SLP(gpy0-3, INPUT, DOWN);
1256		PIN_SLP(gpy0-4, INPUT, DOWN);
1257		PIN_SLP(gpy0-5, INPUT, DOWN);
1258
1259		PIN_SLP(gpy1-0, INPUT, DOWN);
1260		PIN_SLP(gpy1-1, INPUT, DOWN);
1261		PIN_SLP(gpy1-2, INPUT, DOWN);
1262		PIN_SLP(gpy1-3, INPUT, DOWN);
1263
1264		PIN_SLP(gpy2-0, PREV, NONE);
1265		PIN_SLP(gpy2-1, INPUT, DOWN);
1266		PIN_SLP(gpy2-2, INPUT, NONE);
1267		PIN_SLP(gpy2-3, INPUT, NONE);
1268		PIN_SLP(gpy2-4, INPUT, NONE);
1269		PIN_SLP(gpy2-5, INPUT, NONE);
1270
1271		PIN_SLP(gpy3-0, INPUT, DOWN);
1272		PIN_SLP(gpy3-1, INPUT, DOWN);
1273		PIN_SLP(gpy3-2, INPUT, DOWN);
1274		PIN_SLP(gpy3-3, INPUT, DOWN);
1275		PIN_SLP(gpy3-4, INPUT, DOWN);
1276		PIN_SLP(gpy3-5, INPUT, DOWN);
1277		PIN_SLP(gpy3-6, INPUT, DOWN);
1278		PIN_SLP(gpy3-7, INPUT, DOWN);
1279
1280		PIN_SLP(gpy4-0, INPUT, DOWN);
1281		PIN_SLP(gpy4-1, INPUT, DOWN);
1282		PIN_SLP(gpy4-2, INPUT, DOWN);
1283		PIN_SLP(gpy4-3, INPUT, DOWN);
1284		PIN_SLP(gpy4-4, INPUT, DOWN);
1285		PIN_SLP(gpy4-5, INPUT, DOWN);
1286		PIN_SLP(gpy4-6, INPUT, DOWN);
1287		PIN_SLP(gpy4-7, INPUT, DOWN);
1288
1289		PIN_SLP(gpy5-0, INPUT, DOWN);
1290		PIN_SLP(gpy5-1, INPUT, DOWN);
1291		PIN_SLP(gpy5-2, INPUT, DOWN);
1292		PIN_SLP(gpy5-3, INPUT, DOWN);
1293		PIN_SLP(gpy5-4, INPUT, DOWN);
1294		PIN_SLP(gpy5-5, INPUT, DOWN);
1295		PIN_SLP(gpy5-6, INPUT, DOWN);
1296		PIN_SLP(gpy5-7, INPUT, DOWN);
1297
1298		PIN_SLP(gpy6-0, INPUT, DOWN);
1299		PIN_SLP(gpy6-1, INPUT, DOWN);
1300		PIN_SLP(gpy6-2, INPUT, DOWN);
1301		PIN_SLP(gpy6-3, INPUT, DOWN);
1302		PIN_SLP(gpy6-4, INPUT, DOWN);
1303		PIN_SLP(gpy6-5, INPUT, DOWN);
1304		PIN_SLP(gpy6-6, INPUT, DOWN);
1305		PIN_SLP(gpy6-7, INPUT, DOWN);
1306	};
1307};
1308
1309&pinctrl_2 {
1310	pinctrl-names = "default";
1311	pinctrl-0 = <&sleep2>;
1312
1313	sleep2: sleep-state {
1314		PIN_SLP(gpz-0, INPUT, DOWN);
1315		PIN_SLP(gpz-1, INPUT, DOWN);
1316		PIN_SLP(gpz-2, INPUT, DOWN);
1317		PIN_SLP(gpz-3, INPUT, DOWN);
1318		PIN_SLP(gpz-4, INPUT, DOWN);
1319		PIN_SLP(gpz-5, INPUT, DOWN);
1320		PIN_SLP(gpz-6, INPUT, DOWN);
1321	};
1322};
1323
1324&pinctrl_3 {
1325	pinctrl-names = "default";
1326	pinctrl-0 = <&sleep3>;
1327
1328	sleep3: sleep-state {
1329		PIN_SLP(gpv0-0, INPUT, DOWN);
1330		PIN_SLP(gpv0-1, INPUT, DOWN);
1331		PIN_SLP(gpv0-2, INPUT, DOWN);
1332		PIN_SLP(gpv0-3, INPUT, DOWN);
1333		PIN_SLP(gpv0-4, INPUT, DOWN);
1334		PIN_SLP(gpv0-5, INPUT, DOWN);
1335		PIN_SLP(gpv0-6, INPUT, DOWN);
1336		PIN_SLP(gpv0-7, INPUT, DOWN);
1337
1338		PIN_SLP(gpv1-0, INPUT, DOWN);
1339		PIN_SLP(gpv1-1, INPUT, DOWN);
1340		PIN_SLP(gpv1-2, INPUT, DOWN);
1341		PIN_SLP(gpv1-3, INPUT, DOWN);
1342		PIN_SLP(gpv1-4, INPUT, DOWN);
1343		PIN_SLP(gpv1-5, INPUT, DOWN);
1344		PIN_SLP(gpv1-6, INPUT, DOWN);
1345		PIN_SLP(gpv1-7, INPUT, DOWN);
1346
1347		PIN_SLP(gpv2-0, INPUT, DOWN);
1348		PIN_SLP(gpv2-1, INPUT, DOWN);
1349		PIN_SLP(gpv2-2, INPUT, DOWN);
1350		PIN_SLP(gpv2-3, INPUT, DOWN);
1351		PIN_SLP(gpv2-4, INPUT, DOWN);
1352		PIN_SLP(gpv2-5, INPUT, DOWN);
1353		PIN_SLP(gpv2-6, INPUT, DOWN);
1354		PIN_SLP(gpv2-7, INPUT, DOWN);
1355
1356		PIN_SLP(gpv3-0, INPUT, DOWN);
1357		PIN_SLP(gpv3-1, INPUT, DOWN);
1358		PIN_SLP(gpv3-2, INPUT, DOWN);
1359		PIN_SLP(gpv3-3, INPUT, DOWN);
1360		PIN_SLP(gpv3-4, INPUT, DOWN);
1361		PIN_SLP(gpv3-5, INPUT, DOWN);
1362		PIN_SLP(gpv3-6, INPUT, DOWN);
1363		PIN_SLP(gpv3-7, INPUT, DOWN);
1364
1365		PIN_SLP(gpv4-0, INPUT, DOWN);
1366	};
1367};
1368
1369&pwm {
1370	pinctrl-0 = <&pwm0_out>;
1371	pinctrl-names = "default";
1372	samsung,pwm-outputs = <0>;
1373	status = "okay";
1374};
1375
1376&rtc {
1377	status = "okay";
1378	clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
1379	clock-names = "rtc", "rtc_src";
1380};
1381
1382&sdhci_2 {
1383	bus-width = <4>;
1384	cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
1385	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>;
1386	pinctrl-names = "default";
1387	vmmc-supply = <&ldo21_reg>;
1388	status = "okay";
1389};
1390
1391&sdhci_3 {
1392	#address-cells = <1>;
1393	#size-cells = <0>;
1394	non-removable;
1395	bus-width = <4>;
1396
1397	mmc-pwrseq = <&wlan_pwrseq>;
1398	pinctrl-names = "default";
1399	pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
1400	status = "okay";
1401
1402	brcmf: wifi@1 {
1403		reg = <1>;
1404		compatible = "brcm,bcm4329-fmac";
1405		interrupt-parent = <&gpx2>;
1406		interrupts = <5 IRQ_TYPE_NONE>;
1407		interrupt-names = "host-wake";
1408	};
1409};
1410
1411&serial_0 {
1412	pinctrl-0 = <&uart0_data &uart0_fctl>;
1413	pinctrl-names = "default";
1414	status = "okay";
1415
1416	bluetooth {
1417		compatible = "brcm,bcm4330-bt";
1418		pinctrl-0 = <&bt_shutdown &bt_device_wakeup &bt_host_wakeup>;
1419		pinctrl-names = "default";
1420		max-speed = <3000000>;
1421		shutdown-gpios = <&gpl0 6 GPIO_ACTIVE_HIGH>;
1422		device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
1423		host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
1424		clocks = <&max77686 MAX77686_CLK_PMIC>;
1425	};
1426};
1427
1428&serial_1 {
1429	status = "okay";
1430};
1431
1432&serial_2 {
1433	status = "okay";
1434};
1435
1436&serial_3 {
1437	status = "okay";
1438};
1439
1440&spi_1 {
1441	pinctrl-names = "default";
1442	pinctrl-0 = <&spi1_bus>;
1443	cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
1444	status = "okay";
1445
1446	s5c73m3_spi: image-sensor@0 {
1447		compatible = "samsung,s5c73m3";
1448		spi-max-frequency = <50000000>;
1449		reg = <0>;
1450		controller-data {
1451			samsung,spi-feedback-delay = <2>;
1452		};
1453	};
1454};
1455
1456&tmu {
1457	vtmu-supply = <&ldo10_reg>;
1458	status = "okay";
1459};
1460