1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Samsung's Exynos4212 based Galaxy Tab 3 board common source
4 *
5 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 *		http://www.samsung.com
7 */
8
9/dts-v1/;
10#include "exynos4212.dtsi"
11#include "exynos4412-ppmu-common.dtsi"
12#include "exynos-mfc-reserved-memory.dtsi"
13#include <dt-bindings/clock/samsung,s2mps11.h>
14#include <dt-bindings/gpio/gpio.h>
15#include <dt-bindings/leds/common.h>
16#include <dt-bindings/input/gpio-keys.h>
17#include <dt-bindings/input/input.h>
18#include <dt-bindings/interrupt-controller/irq.h>
19#include "exynos-pinctrl.h"
20
21/ {
22	compatible = "samsung,tab3", "samsung,exynos4212", "samsung,exynos4";
23
24	memory@40000000 {
25		device_type = "memory";
26
27		/*
28		 * Technically 1.5GB is available, but the latter 512MB is handled
29		 * in a special way by downstream (every second page is skipped),
30		 * and thus doesn't initialize correctly on mainline. Only 1020M is
31		 * used for now.
32		 */
33		reg = <0x40000000 0x3fc00000>;
34	};
35
36	aliases {
37		mmc0 = &mshc_0;   /* Internal storage */
38		mmc1 = &sdhci_2;  /* SD card */
39		mmc2 = &sdhci_3;  /* WiFi */
40	};
41
42	chosen {
43		stdout-path = &serial_2;
44
45		/* Default S-BOOT bootloader loads initramfs here */
46		linux,initrd-start = <0x42000000>;
47		linux,initrd-end = <0x42800000>;
48	};
49
50	firmware@204f000 {
51		compatible = "samsung,secure-firmware";
52		reg = <0x0204F000 0x1000>;
53	};
54
55	fixed-rate-clocks {
56		xxti {
57			compatible = "samsung,clock-xxti";
58			clock-frequency = <0>;
59		};
60
61		xusbxti {
62			compatible = "samsung,clock-xusbxti";
63			clock-frequency = <24000000>;
64		};
65	};
66
67	gpio-keys {
68		compatible = "gpio-keys";
69		pinctrl-names = "default";
70		pinctrl-0 = <&gpio_keys>;
71
72		key-power {
73			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
74			linux,code = <KEY_POWER>;
75			label = "power";
76			debounce-interval = <10>;
77			wakeup-source;
78		};
79
80		key-up {
81			gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
82			linux,code = <KEY_VOLUMEUP>;
83			label = "volume down";
84			debounce-interval = <10>;
85		};
86
87		key-down {
88			gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
89			linux,code = <KEY_VOLUMEDOWN>;
90			label = "volume up";
91			debounce-interval = <10>;
92		};
93
94		key-home {
95			gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
96			linux,code = <KEY_HOME>;
97			label = "home";
98			debounce-interval = <10>;
99		};
100
101		switch-hall-sensor {
102			gpios = <&gpx2 4 GPIO_ACTIVE_LOW>;
103			linux,input-type = <EV_SW>;
104			linux,code = <SW_LID>;
105			linux,can-disable;
106			label = "hall effect sensor";
107			debounce-interval = <10>;
108			wakeup-source;
109		};
110	};
111
112	led-touchkeys {
113		compatible = "regulator-led";
114		vled-supply = <&ldo20_reg>;
115		default-state = "off";
116		function = LED_FUNCTION_KBD_BACKLIGHT;
117		color = <LED_COLOR_ID_WHITE>;
118	};
119
120	i2c_max77693: i2c-gpio-1 {
121		compatible = "i2c-gpio";
122		sda-gpios = <&gpm2 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
123		scl-gpios = <&gpm2 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
124		i2c-gpio,delay-us = <2>;
125		#address-cells = <1>;
126		#size-cells = <0>;
127
128		pmic@66 {
129			compatible = "maxim,max77693";
130			reg = <0x66>;
131			interrupt-parent = <&gpx1>;
132			interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
133			pinctrl-names = "default";
134			pinctrl-0 = <&max77693_irq>;
135
136			regulators {
137				esafeout1_reg: ESAFEOUT1 {
138					regulator-name = "ESAFEOUT1";
139					regulator-boot-on;
140				};
141
142				esafeout2_reg: ESAFEOUT2 {
143					regulator-name = "ESAFEOUT2";
144				};
145
146				charger_reg: CHARGER {
147					regulator-name = "CHARGER";
148					regulator-min-microamp = <60000>;
149					regulator-max-microamp = <2580000>;
150					regulator-boot-on;
151				};
152			};
153
154			charger {
155				compatible = "maxim,max77693-charger";
156
157				maxim,constant-microvolt = <4350000>;
158				maxim,min-system-microvolt = <3600000>;
159				maxim,thermal-regulation-celsius = <100>;
160				maxim,battery-overcurrent-microamp = <3500000>;
161				maxim,charge-input-threshold-microvolt = <4300000>;
162			};
163		};
164	};
165
166	i2c_max77693_fuel: i2c-gpio-2 {
167		compatible = "i2c-gpio";
168		sda-gpios = <&gpy0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
169		scl-gpios = <&gpy0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
170		i2c-gpio,delay-us = <2>;
171		#address-cells = <1>;
172		#size-cells = <0>;
173
174		fuel-gauge@36 {
175			compatible = "maxim,max17050";
176			reg = <0x36>;
177			interrupt-parent = <&gpx2>;
178			interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
179			pinctrl-names = "default";
180			pinctrl-0 = <&max77693_fuel_irq>;
181
182			maxim,over-heat-temp = <500>;
183			maxim,over-volt = <4500>;
184		};
185	};
186
187	i2c_magnetometer: i2c-gpio-3 {
188		compatible = "i2c-gpio";
189		sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
190		scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
191		i2c-gpio,delay-us = <2>;
192		#address-cells = <1>;
193		#size-cells = <0>;
194
195		magnetometer@2e {
196			compatible = "yamaha,yas532";
197			reg = <0x2e>;
198			iovdd-supply = <&ldo3_reg>;
199			mount-matrix = "-1", "0", "0",
200					  "0", "1", "0",
201					  "0", "0", "-1";
202		};
203	};
204
205	i2c_lightsensor: i2c-gpio-4 {
206		compatible = "i2c-gpio";
207		sda-gpios = <&gpl0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
208		scl-gpios = <&gpl0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
209		i2c-gpio,delay-us = <2>;
210		#address-cells = <1>;
211		#size-cells = <0>;
212		status = "disabled";
213
214		/* WiFi model uses CM3323, 3G/LTE use CM36653 */
215	};
216
217	i2c_bl: i2c-gpio-5 {
218		compatible = "i2c-gpio";
219		sda-gpios = <&gpm4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
220		scl-gpios = <&gpm4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
221		#address-cells = <1>;
222		#size-cells = <0>;
223
224		backlight: backlight@2c {
225			compatible = "ti,lp8556";
226			reg = <0x2c>;
227
228			bl-name = "lcd-bl";
229			dev-ctrl = /bits/ 8 <0x80>;
230			init-brt = /bits/ 8 <0x78>; /* 120 */
231
232			power-supply = <&vbatt_reg>;
233			enable-supply = <&backlight_reset_supply>;
234
235			pwms = <&pwm 1 78770 0>;
236			pwm-names = "lp8556";
237
238			rom-a3h {
239				rom-addr = /bits/ 8 <0xa3>;
240				rom-val = /bits/ 8 <0x5e>;
241			};
242
243			rom-a5h {
244				rom-addr = /bits/ 8 <0xa5>;
245				rom-val = /bits/ 8 <0x34>;
246			};
247
248			rom-a7h {
249				rom-addr = /bits/ 8 <0xa7>;
250				rom-val = /bits/ 8 <0xfa>;
251			};
252		};
253	};
254
255	vbatt_reg: voltage-regulator-1 {
256		compatible = "regulator-fixed";
257		regulator-name = "VBATT";
258		regulator-min-microvolt = <5000000>;
259		regulator-max-microvolt = <5000000>;
260		regulator-always-on;
261	};
262
263	backlight_reset_supply: voltage-regulator-2 {
264		compatible = "regulator-fixed";
265		regulator-name = "BACKLIGHT_ENVDDIO";
266		pinctrl-names = "default";
267		pinctrl-0 = <&backlight_reset>;
268		gpio = <&gpm0 1 GPIO_ACTIVE_HIGH>;
269		enable-active-high;
270	};
271
272	display_3v3_supply: voltage-regulator-3 {
273		compatible = "regulator-fixed";
274		regulator-name = "DISPLAY_3.3V";
275		regulator-min-microvolt = <3300000>;
276		regulator-max-microvolt = <3300000>;
277		pinctrl-names = "default";
278		pinctrl-0 = <&lcd_en>;
279		gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>; /* LCD_EN */
280		enable-active-high;
281	};
282
283	mic_bias_reg: voltage-regulator-4 {
284		compatible = "regulator-fixed";
285		regulator-name = "MICBIAS_LDO_2.8V";
286		regulator-min-microvolt = <2800000>;
287		regulator-max-microvolt = <2800000>;
288	};
289
290	submic_bias_reg: voltage-regulator-5 {
291		compatible = "regulator-fixed";
292		regulator-name = "SUB_MICBIAS_LDO_2.8V";
293		regulator-min-microvolt = <2800000>;
294		regulator-max-microvolt = <2800000>;
295	};
296
297	sound: sound {
298		compatible = "samsung,midas-audio";
299		model = "TAB3";
300		mic-bias-supply = <&mic_bias_reg>;
301		submic-bias-supply = <&submic_bias_reg>;
302
303		samsung,audio-routing =
304			"HP", "HPOUT1L",
305			"HP", "HPOUT1R",
306
307			"SPK", "SPKOUTLN",
308			"SPK", "SPKOUTLP",
309			"SPK", "SPKOUTRN",
310			"SPK", "SPKOUTRP",
311
312			"RCV", "HPOUT2N",
313			"RCV", "HPOUT2P",
314
315			"LINE", "LINEOUT2N",
316			"LINE", "LINEOUT2P",
317
318			"HDMI", "LINEOUT1N",
319			"HDMI", "LINEOUT1P",
320
321			"IN2LP:VXRN", "MICBIAS1",
322			"IN2LN", "MICBIAS1",
323			"Main Mic", "MICBIAS1",
324
325			"IN1RP", "MICBIAS2",
326			"IN1RN", "MICBIAS2",
327			"Sub Mic", "MICBIAS2",
328
329			"IN1LP", "Headset Mic",
330			"IN1LN", "Headset Mic";
331
332		cpu {
333			sound-dai = <&i2s0 0>;
334		};
335
336		codec {
337			sound-dai = <&wm1811>;
338		};
339	};
340
341	wlan_pwrseq: sdhci3-pwrseq {
342		compatible = "mmc-pwrseq-simple";
343		reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>;
344		clocks = <&s5m8767_osc S2MPS11_CLK_BT>;
345		clock-names = "ext_clock";
346	};
347};
348
349&bus_acp {
350	devfreq = <&bus_dmc>;
351	status = "okay";
352};
353
354&bus_c2c {
355	devfreq = <&bus_dmc>;
356	status = "okay";
357};
358
359&bus_display {
360	devfreq = <&bus_leftbus>;
361	status = "okay";
362};
363
364&bus_dmc {
365	devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
366	vdd-supply = <&buck1_reg>;
367	status = "okay";
368};
369
370&bus_fsys {
371	devfreq = <&bus_leftbus>;
372	status = "okay";
373};
374
375&bus_leftbus {
376	devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
377	vdd-supply = <&buck3_reg>;
378	status = "okay";
379};
380
381&bus_mfc {
382	devfreq = <&bus_leftbus>;
383	status = "okay";
384};
385
386&bus_peri {
387	devfreq = <&bus_leftbus>;
388	status = "okay";
389};
390
391&bus_rightbus {
392	devfreq = <&bus_leftbus>;
393	status = "okay";
394};
395
396&cpu0 {
397	cpu0-supply = <&buck2_reg>;
398};
399
400&cpu_thermal {
401	cooling-maps {
402		map0 {
403			/* Corresponds to 800MHz at freq_table */
404			cooling-device = <&cpu0 7 7>, <&cpu1 7 7>;
405		};
406		map1 {
407			/* Corresponds to 200MHz at freq_table */
408			cooling-device = <&cpu0 13 13>, <&cpu1 13 13>;
409		};
410	};
411};
412
413&dsi_0 {
414	vddcore-supply = <&ldo8_reg>;
415	vddio-supply = <&ldo10_reg>;
416	samsung,burst-clock-frequency = <500000000>;
417	samsung,esc-clock-frequency = <20000000>;
418	samsung,pll-clock-frequency = <24000000>;
419	status = "okay";
420
421	panel@0 {
422		compatible = "samsung,lsl080al02", "samsung,s6d7aa0";
423		reg = <0>;
424		power-supply = <&display_3v3_supply>;
425		pinctrl-names = "default";
426		pinctrl-0 = <&lcd_nrst>;
427		reset-gpios = <&gpf0 4 GPIO_ACTIVE_LOW>;
428		backlight = <&backlight>;
429	};
430};
431
432&exynos_usbphy {
433	vbus-supply = <&esafeout1_reg>;
434	status = "okay";
435};
436
437&fimd {
438	samsung,invert-vclk;
439	status = "okay";
440};
441
442&gpu {
443	mali-supply = <&buck4_reg>;
444	status = "okay";
445};
446
447&hsotg {
448	vusb_d-supply = <&ldo15_reg>;
449	vusb_a-supply = <&ldo12_reg>;
450	dr_mode = "otg";
451	status = "okay";
452};
453
454&i2c_1 {
455	pinctrl-0 = <&i2c1_bus>;
456	pinctrl-names = "default";
457	status = "okay";
458
459	lis3dh: accelerometer@19 {
460		/* K2DH seems to be the same as lis2dh12 in terms of registers */
461		compatible = "st,lis2dh12-accel";
462		reg = <0x19>;
463
464		interrupt-parent = <&gpx0>;
465		interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
466
467		vdd-supply = <&ldo17_reg>;
468		vddio-supply = <&ldo3_reg>;
469
470		mount-matrix = "-1", "0", "0",
471				  "0", "1", "0",
472				  "0", "0", "-1";
473	};
474};
475
476&i2c_3 {
477	samsung,i2c-sda-delay = <100>;
478	samsung,i2c-slave-addr = <0x10>;
479	samsung,i2c-max-bus-freq = <400000>;
480	pinctrl-0 = <&i2c3_bus>;
481	pinctrl-names = "default";
482	status = "okay";
483
484	touchscreen@48 {
485		/* MELFAS MMS252, using MMS114 compatible for now */
486		compatible = "melfas,mms114";
487		reg = <0x48>;
488		interrupt-parent = <&gpb>;
489		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
490		touchscreen-size-x = <800>;
491		touchscreen-size-y = <1280>;
492		avdd-supply = <&ldo21_reg>;
493		vdd-supply = <&ldo25_reg>;
494		linux,keycodes = <KEY_MENU KEY_BACK>;
495	};
496};
497
498&i2c_4 {
499	samsung,i2c-sda-delay = <100>;
500	samsung,i2c-slave-addr = <0x10>;
501	samsung,i2c-max-bus-freq = <100000>;
502	pinctrl-0 = <&i2c4_bus>;
503	pinctrl-names = "default";
504	status = "okay";
505
506	wm1811: audio-codec@1a {
507		compatible = "wlf,wm1811";
508		reg = <0x1a>;
509		clocks = <&pmu_system_controller 0>;
510		clock-names = "MCLK1";
511		interrupt-controller;
512		#interrupt-cells = <2>;
513		interrupt-parent = <&gpx3>;
514		interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
515
516		gpio-controller;
517		#gpio-cells = <2>;
518		#sound-dai-cells = <0>;
519
520		wlf,gpio-cfg = <0x3 0x0 0x0 0x0 0x0 0x0
521			0x0 0x8000 0x0 0x0 0x0>;
522		wlf,micbias-cfg = <0x25 0x2f>;
523
524		wlf,lineout1-feedback;
525		wlf,lineout1-se;
526		wlf,lineout2-se;
527		wlf,ldoena-always-driven;
528
529		AVDD2-supply = <&ldo3_reg>;
530		CPVDD-supply = <&ldo3_reg>;
531		DBVDD1-supply = <&ldo3_reg>;
532		DBVDD2-supply = <&ldo3_reg>;
533		DBVDD3-supply = <&ldo3_reg>;
534		SPKVDD1-supply = <&vbatt_reg>;
535		SPKVDD2-supply = <&vbatt_reg>;
536		wlf,ldo1ena-gpios = <&gpm4 4 GPIO_ACTIVE_HIGH>;
537		wlf,ldo2ena-gpios = <&gpm4 4 GPIO_ACTIVE_HIGH>;
538	};
539};
540
541&i2c_7 {
542	samsung,i2c-sda-delay = <100>;
543	samsung,i2c-slave-addr = <0x10>;
544	samsung,i2c-max-bus-freq = <100000>;
545	pinctrl-0 = <&i2c7_bus>;
546	pinctrl-names = "default";
547	status = "okay";
548
549	s5m8767: pmic@66 {
550		compatible = "samsung,s5m8767-pmic";
551		reg = <0x66>;
552		interrupt-parent = <&gpx0>;
553		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
554		pinctrl-names = "default";
555		pinctrl-0 = <&s5m8767_irq &s5m8767_dvs &s5m8767_ds>;
556		wakeup-source;
557
558		s5m8767,pmic-buck-default-dvs-idx = <1>;
559
560		s5m8767,pmic-buck-dvs-gpios = <&gpm3 0 GPIO_ACTIVE_HIGH>,
561						 <&gpm3 1 GPIO_ACTIVE_HIGH>,
562						 <&gpm3 2 GPIO_ACTIVE_HIGH>;
563
564		s5m8767,pmic-buck-ds-gpios = <&gpf3 1 GPIO_ACTIVE_HIGH>,
565						 <&gpf3 2 GPIO_ACTIVE_HIGH>,
566						 <&gpf3 3 GPIO_ACTIVE_HIGH>;
567
568		s5m8767,pmic-buck2-dvs-voltage = <1100000>, <1100000>,
569						<1100000>, <1100000>,
570						<1100000>, <1100000>,
571						<1100000>, <1100000>;
572
573		s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
574						<1100000>, <1100000>,
575						<1100000>, <1100000>,
576						<1100000>, <1100000>;
577
578		s5m8767,pmic-buck4-dvs-voltage = <1100000>, <1100000>,
579						<1100000>, <1100000>,
580						<1100000>, <1100000>,
581						<1100000>, <1100000>;
582
583		regulators {
584			ldo1_reg: LDO1 {
585				regulator-name = "VALIVE_1.0V_AP";
586				regulator-min-microvolt = <1000000>;
587				regulator-max-microvolt = <1000000>;
588				regulator-always-on;
589				regulator-boot-on;
590				op_mode = <1>;
591			};
592
593			ldo2_reg: LDO2 {
594				regulator-name = "VM1M2_1.2V_AP";
595				regulator-min-microvolt = <1200000>;
596				regulator-max-microvolt = <1200000>;
597				regulator-always-on;
598				regulator-boot-on;
599				op_mode = <1>;
600			};
601
602			ldo3_reg: LDO3 {
603				regulator-name = "VCC_1.8V_AP";
604				regulator-min-microvolt = <1800000>;
605				regulator-max-microvolt = <1800000>;
606				regulator-always-on;
607				op_mode = <1>;
608			};
609
610			ldo5_reg: LDO5 {
611				regulator-name = "VCC_3.3V_MHL";
612				regulator-min-microvolt = <3300000>;
613				regulator-max-microvolt = <3300000>;
614				op_mode = <1>;
615			};
616
617			ldo8_reg: LDO8 {
618				regulator-name = "VMIPI_1.0V";
619				regulator-min-microvolt = <1000000>;
620				regulator-max-microvolt = <1000000>;
621				op_mode = <3>;
622			};
623
624			ldo9_reg: LDO9 {
625				regulator-name = "VSIL_1.2V";
626				regulator-min-microvolt = <1200000>;
627				regulator-max-microvolt = <1200000>;
628				op_mode = <1>;
629			};
630
631			ldo10_reg: LDO10 {
632				regulator-name = "VMIPI_1.8V";
633				regulator-min-microvolt = <1800000>;
634				regulator-max-microvolt = <1800000>;
635				op_mode = <3>;
636			};
637
638			ldo12_reg: LDO12 {
639				regulator-name = "VUOTG_3.0V";
640				regulator-min-microvolt = <3000000>;
641				regulator-max-microvolt = <3000000>;
642				op_mode = <1>;
643				regulator-state-mem {
644					regulator-off-in-suspend;
645				};
646			};
647
648			ldo13_reg: LDO13 {
649				regulator-name = "VCC_1.8V_MHL";
650				regulator-min-microvolt = <1800000>;
651				regulator-max-microvolt = <1800000>;
652				op_mode = <1>;
653			};
654
655			ldo15_reg: LDO15 {
656				regulator-name = "VHSIC_1.0V";
657				regulator-min-microvolt = <1000000>;
658				regulator-max-microvolt = <1000000>;
659				op_mode = <1>;
660				regulator-state-mem {
661					regulator-on-in-suspend;
662				};
663			};
664
665			ldo17_reg: LDO17 {
666				regulator-name = "VCC_2.8V_AP";
667				regulator-min-microvolt = <2800000>;
668				regulator-max-microvolt = <2800000>;
669				op_mode = <1>;
670				regulator-always-on;
671			};
672
673			ldo19_reg: LDO19 {
674				regulator-name = "VLED_IC_1.9V";
675				regulator-min-microvolt = <1900000>;
676				regulator-max-microvolt = <1900000>;
677				op_mode = <1>;
678				regulator-always-on;
679			};
680
681			ldo20_reg: LDO20 {
682				regulator-name = "VTOUCH_3.3V";
683				regulator-min-microvolt = <3300000>;
684				regulator-max-microvolt = <3300000>;
685				op_mode = <1>;
686			};
687
688			ldo21_reg: LDO21 {
689				regulator-name = "TSP_VDD_3.3V";
690				regulator-min-microvolt = <3300000>;
691				regulator-max-microvolt = <3300000>;
692				op_mode = <1>;
693			};
694
695			ldo22_reg: LDO22 {
696				regulator-name = "5M_AF_2.8V";
697				regulator-min-microvolt = <2800000>;
698				regulator-max-microvolt = <2800000>;
699				op_mode = <1>;
700			};
701
702			ldo23_reg: LDO23 {
703				regulator-name = "VTF_2.8V";
704				regulator-min-microvolt = <2800000>;
705				regulator-max-microvolt = <2800000>;
706				op_mode = <3>;
707			};
708
709			ldo24_reg: LDO24 {
710				regulator-name = "LEDA_2.8V";
711				regulator-min-microvolt = <2800000>;
712				regulator-max-microvolt = <2800000>;
713				op_mode = <1>;
714			};
715
716			ldo25_reg: LDO25 {
717				regulator-name = "TSP_VDD_1.8V";
718				regulator-min-microvolt = <1800000>;
719				regulator-max-microvolt = <1800000>;
720				op_mode = <1>;
721			};
722
723			ldo26_reg: LDO26 {
724				regulator-name = "CAM_IO_1.8V";
725				regulator-min-microvolt = <1800000>;
726				regulator-max-microvolt = <1800000>;
727				op_mode = <1>;
728			};
729
730			ldo27_reg: LDO27 {
731				regulator-name = "VTCAM_1.8V";
732				regulator-min-microvolt = <1800000>;
733				regulator-max-microvolt = <1800000>;
734				op_mode = <1>;
735			};
736
737			buck1_reg: BUCK1 {
738				regulator-name = "VDD_MIF";
739				regulator-min-microvolt = <850000>;
740				regulator-max-microvolt = <1100000>;
741				regulator-always-on;
742				regulator-boot-on;
743				op_mode = <3>;
744			};
745
746			buck2_reg: BUCK2 {
747				regulator-name = "VDD_ARM";
748				regulator-min-microvolt = <850000>;
749				regulator-max-microvolt = <1500000>;
750				regulator-always-on;
751				regulator-boot-on;
752				op_mode = <3>;
753			};
754
755			buck3_reg: BUCK3 {
756				regulator-name = "VDD_INT";
757				regulator-min-microvolt = <850000>;
758				regulator-max-microvolt = <1300000>;
759				regulator-always-on;
760				regulator-boot-on;
761				op_mode = <3>;
762			};
763
764			buck4_reg: BUCK4 {
765				regulator-name = "VDD_G3D";
766				regulator-min-microvolt = <850000>;
767				regulator-max-microvolt = <1150000>;
768				regulator-boot-on;
769				op_mode = <3>;
770			};
771
772			buck5_reg: BUCK5 {
773				regulator-name = "VMEM_1.2V_AP";
774				regulator-min-microvolt = <1200000>;
775				regulator-max-microvolt	= <1200000>;
776				regulator-always-on;
777				regulator-boot-on;
778				op_mode = <1>;
779			};
780
781			buck6_reg: BUCK6 {
782				regulator-name = "CAM_ISP_CORE_1.2V";
783				regulator-min-microvolt = <1200000>;
784				regulator-max-microvolt = <1200000>;
785				op_mode = <1>;
786
787				regulator-state-mem {
788					regulator-off-in-suspend;
789				};
790			};
791		};
792
793		s5m8767_osc: clocks {
794			compatible = "samsung,s5m8767-clk";
795			#clock-cells = <1>;
796			clock-output-names = "en32khz_ap",
797					     "en32khz_cp",
798					     "en32khz_bt";
799		};
800	};
801};
802
803&i2s0 {
804	pinctrl-0 = <&i2s0_bus>;
805	pinctrl-names = "default";
806	status = "okay";
807};
808
809&mshc_0 {
810	broken-cd;
811	non-removable;
812	card-detect-delay = <200>;
813	vmmc-supply = <&ldo22_reg>;
814	clock-frequency = <400000000>;
815	samsung,dw-mshc-ciu-div = <0>;
816	samsung,dw-mshc-sdr-timing = <2 3>;
817	samsung,dw-mshc-ddr-timing = <1 2>;
818	pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
819	pinctrl-names = "default";
820	bus-width = <8>;
821	cap-mmc-highspeed;
822	mmc-ddr-1_8v;
823	status = "okay";
824};
825
826&pinctrl_0 {
827	pinctrl-names = "default";
828	pinctrl-0 = <&sleep0>;
829
830	lcd_en: lcd-en-pins {
831		samsung,pins = "gpc0-1";
832		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
833		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
834	};
835
836	lcd_nrst: lcd-nrst-pins {
837		samsung,pins = "gpf0-4";
838		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
839		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
840	};
841
842	s5m8767_ds: s5m8767-ds-pins {
843		samsung,pins = "gpf3-1", "gpf3-2", "gpf3-3";
844		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
845		samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
846		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
847	};
848
849	sleep0: sleep-state {
850		PIN_SLP(gpa0-0, INPUT, NONE);
851		PIN_SLP(gpa0-1, OUT0, NONE);
852		PIN_SLP(gpa0-2, INPUT, NONE);
853		PIN_SLP(gpa0-3, INPUT, UP);
854		PIN_SLP(gpa0-4, INPUT, DOWN);
855		PIN_SLP(gpa0-5, INPUT, DOWN);
856		PIN_SLP(gpa0-6, INPUT, DOWN);
857		PIN_SLP(gpa0-7, INPUT, DOWN);
858
859		PIN_SLP(gpa1-0, INPUT, DOWN);
860		PIN_SLP(gpa1-1, INPUT, DOWN);
861		PIN_SLP(gpa1-2, INPUT, DOWN);
862		PIN_SLP(gpa1-3, INPUT, DOWN);
863		PIN_SLP(gpa1-4, INPUT, DOWN);
864		PIN_SLP(gpa1-5, INPUT, DOWN);
865
866		PIN_SLP(gpb-0, INPUT, NONE);
867		PIN_SLP(gpb-1, INPUT, NONE);
868		PIN_SLP(gpb-2, INPUT, NONE);
869		PIN_SLP(gpb-3, INPUT, NONE);
870		PIN_SLP(gpb-4, INPUT, DOWN);
871		PIN_SLP(gpb-5, INPUT, DOWN);
872		PIN_SLP(gpb-6, INPUT, DOWN);
873		PIN_SLP(gpb-7, INPUT, DOWN);
874
875		PIN_SLP(gpc0-0, INPUT, DOWN);
876		PIN_SLP(gpc0-1, INPUT, DOWN);
877		PIN_SLP(gpc0-2, INPUT, NONE);
878		PIN_SLP(gpc0-3, INPUT, NONE);
879		PIN_SLP(gpc0-4, INPUT, NONE);
880
881		PIN_SLP(gpc1-0, INPUT, DOWN);
882		PIN_SLP(gpc1-1, INPUT, DOWN);
883		PIN_SLP(gpc1-2, INPUT, DOWN);
884		PIN_SLP(gpc1-3, INPUT, DOWN);
885		PIN_SLP(gpc1-4, INPUT, DOWN);
886
887		PIN_SLP(gpd0-0, INPUT, DOWN);
888		PIN_SLP(gpd0-1, OUT0, NONE);
889		PIN_SLP(gpd0-2, INPUT, NONE);
890		PIN_SLP(gpd0-3, INPUT, NONE);
891
892		PIN_SLP(gpd1-0, INPUT, DOWN);
893		PIN_SLP(gpd1-1, INPUT, DOWN);
894		PIN_SLP(gpd1-2, INPUT, NONE);
895		PIN_SLP(gpd1-3, INPUT, NONE);
896
897		PIN_SLP(gpf0-0, INPUT, DOWN);
898		PIN_SLP(gpf0-1, INPUT, DOWN);
899		PIN_SLP(gpf0-2, INPUT, DOWN);
900		PIN_SLP(gpf0-3, INPUT, DOWN);
901		PIN_SLP(gpf0-4, OUT0, NONE);
902		PIN_SLP(gpf0-5, OUT0, NONE);
903		PIN_SLP(gpf0-6, INPUT, DOWN);
904		PIN_SLP(gpf0-7, INPUT, DOWN);
905
906		PIN_SLP(gpf1-0, INPUT, DOWN);
907		PIN_SLP(gpf1-1, INPUT, DOWN);
908		PIN_SLP(gpf1-2, INPUT, DOWN);
909		PIN_SLP(gpf1-3, INPUT, DOWN);
910		PIN_SLP(gpf1-4, INPUT, DOWN);
911		PIN_SLP(gpf1-5, INPUT, DOWN);
912		PIN_SLP(gpf1-6, INPUT, DOWN);
913		PIN_SLP(gpf1-7, INPUT, DOWN);
914
915		PIN_SLP(gpf2-0, INPUT, DOWN);
916		PIN_SLP(gpf2-1, INPUT, DOWN);
917		PIN_SLP(gpf2-2, INPUT, DOWN);
918		PIN_SLP(gpf2-3, INPUT, DOWN);
919		PIN_SLP(gpf2-4, INPUT, DOWN);
920		PIN_SLP(gpf2-5, INPUT, DOWN);
921		PIN_SLP(gpf2-6, INPUT, DOWN);
922		PIN_SLP(gpf2-7, INPUT, DOWN);
923
924		PIN_SLP(gpf3-0, INPUT, DOWN);
925		PIN_SLP(gpf3-1, INPUT, DOWN);
926		PIN_SLP(gpf3-2, INPUT, DOWN);
927		PIN_SLP(gpf3-3, INPUT, DOWN);
928		PIN_SLP(gpf3-4, PREV, NONE);
929		PIN_SLP(gpf3-5, OUT0, DOWN);
930
931		PIN_SLP(gpj0-0, INPUT, DOWN);
932		PIN_SLP(gpj0-1, INPUT, DOWN);
933		PIN_SLP(gpj0-2, INPUT, DOWN);
934		PIN_SLP(gpj0-3, OUT0, NONE);
935		PIN_SLP(gpj0-4, INPUT, DOWN);
936		PIN_SLP(gpj0-5, INPUT, DOWN);
937		PIN_SLP(gpj0-6, OUT0, NONE);
938		PIN_SLP(gpj0-7, OUT0, NONE);
939
940		PIN_SLP(gpj1-0, OUT0, NONE);
941		PIN_SLP(gpj1-1, INPUT, DOWN);
942		PIN_SLP(gpj1-2, PREV, NONE);
943		PIN_SLP(gpj1-3, INPUT, DOWN);
944		PIN_SLP(gpj1-4, INPUT, DOWN);
945	};
946};
947
948&pinctrl_1 {
949	pinctrl-names = "default";
950	pinctrl-0 = <&sleep1>;
951
952	bt_shutdown: bt-shutdown-pins {
953		samsung,pins = "gpl0-6";
954		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
955	};
956
957	bt_host_wakeup: bt-host-wakeup-pins {
958		samsung,pins = "gpx2-6";
959		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
960	};
961
962	bt_device_wakeup: bt-device-wakeup-pins {
963		samsung,pins = "gpx3-1";
964		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
965	};
966
967	backlight_reset: backlight-reset-pins {
968		samsung,pins = "gpm0-1";
969		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
970		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
971	};
972
973	gpio_keys: gpio-keys-pins {
974		samsung,pins = "gpx1-2", "gpx2-2", "gpx2-4", "gpx2-7", "gpx3-3";
975		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
976	};
977
978	max77693_irq: max77693-irq-pins {
979		samsung,pins = "gpx1-5";
980		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
981		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
982		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
983	};
984
985	max77693_fuel_irq: max77693-fuel-irq-pins {
986		samsung,pins = "gpx2-3";
987		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
988		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
989		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
990	};
991
992	sdhci2_cd: sdhci2-cd-irq-pins {
993		samsung,pins = "gpx3-4";
994		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
995		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
996		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
997	};
998
999	s5m8767_dvs: s5m8767-dvs-pins {
1000		samsung,pins = "gpm3-0", "gpm3-1", "gpm3-2";
1001		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
1002		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1003		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
1004	};
1005
1006	s5m8767_irq: s5m8767-irq-pins {
1007		samsung,pins = "gpx0-7";
1008		samsung,pin-function = <EXYNOS_PIN_FUNC_EINT>;
1009		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
1010		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
1011	};
1012
1013	sleep1: sleep-state {
1014		PIN_SLP(gpk0-0, PREV, NONE);
1015		PIN_SLP(gpk0-1, PREV, NONE);
1016		PIN_SLP(gpk0-2, PREV, NONE);
1017		PIN_SLP(gpk0-3, PREV, NONE);
1018		PIN_SLP(gpk0-4, PREV, NONE);
1019		PIN_SLP(gpk0-5, PREV, NONE);
1020		PIN_SLP(gpk0-6, PREV, NONE);
1021
1022		PIN_SLP(gpk1-0, INPUT, DOWN);
1023		PIN_SLP(gpk1-1, INPUT, DOWN);
1024		PIN_SLP(gpk1-2, INPUT, DOWN);
1025		PIN_SLP(gpk1-3, PREV, NONE);
1026		PIN_SLP(gpk1-4, PREV, NONE);
1027		PIN_SLP(gpk1-5, PREV, NONE);
1028		PIN_SLP(gpk1-6, PREV, NONE);
1029
1030		PIN_SLP(gpk2-0, INPUT, DOWN);
1031		PIN_SLP(gpk2-1, INPUT, DOWN);
1032		PIN_SLP(gpk2-2, INPUT, DOWN);
1033		PIN_SLP(gpk2-3, INPUT, DOWN);
1034		PIN_SLP(gpk2-4, INPUT, DOWN);
1035		PIN_SLP(gpk2-5, INPUT, DOWN);
1036		PIN_SLP(gpk2-6, INPUT, DOWN);
1037
1038		PIN_SLP(gpk3-0, OUT0, NONE);
1039		PIN_SLP(gpk3-1, INPUT, NONE);
1040		PIN_SLP(gpk3-2, INPUT, DOWN);
1041		PIN_SLP(gpk3-3, INPUT, NONE);
1042		PIN_SLP(gpk3-4, INPUT, NONE);
1043		PIN_SLP(gpk3-5, INPUT, NONE);
1044		PIN_SLP(gpk3-6, INPUT, NONE);
1045
1046		PIN_SLP(gpl0-0, INPUT, DOWN);
1047		PIN_SLP(gpl0-1, INPUT, NONE);
1048		PIN_SLP(gpl0-2, INPUT, NONE);
1049		PIN_SLP(gpl0-3, INPUT, DOWN);
1050		PIN_SLP(gpl0-4, INPUT, DOWN);
1051		PIN_SLP(gpl0-6, PREV, NONE);
1052
1053		PIN_SLP(gpl1-0, INPUT, DOWN);
1054		PIN_SLP(gpl1-1, OUT0, NONE);
1055		PIN_SLP(gpl2-0, INPUT, DOWN);
1056		PIN_SLP(gpl2-1, PREV, NONE);
1057		PIN_SLP(gpl2-2, PREV, NONE);
1058		PIN_SLP(gpl2-3, INPUT, DOWN);
1059		PIN_SLP(gpl2-4, INPUT, DOWN);
1060		PIN_SLP(gpl2-5, INPUT, DOWN);
1061		PIN_SLP(gpl2-6, INPUT, DOWN);
1062		PIN_SLP(gpl2-7, INPUT, DOWN);
1063
1064		PIN_SLP(gpm0-0, PREV, NONE);
1065		PIN_SLP(gpm0-1, OUT0, NONE);
1066		PIN_SLP(gpm0-2, INPUT, DOWN);
1067		PIN_SLP(gpm0-3, INPUT, DOWN);
1068		PIN_SLP(gpm0-4, INPUT, DOWN);
1069		PIN_SLP(gpm0-5, INPUT, DOWN);
1070		PIN_SLP(gpm0-6, INPUT, DOWN);
1071		PIN_SLP(gpm0-7, INPUT, DOWN);
1072
1073		PIN_SLP(gpm1-0, INPUT, DOWN);
1074		PIN_SLP(gpm1-1, INPUT, DOWN);
1075		PIN_SLP(gpm1-2, INPUT, NONE);
1076		PIN_SLP(gpm1-3, INPUT, NONE);
1077		PIN_SLP(gpm1-4, INPUT, NONE);
1078		PIN_SLP(gpm1-5, INPUT, NONE);
1079		PIN_SLP(gpm1-6, OUT0, NONE);
1080
1081		PIN_SLP(gpm2-0, INPUT, NONE);
1082		PIN_SLP(gpm2-1, INPUT, NONE);
1083		PIN_SLP(gpm2-2, OUT0, NONE);
1084		PIN_SLP(gpm2-3, INPUT, DOWN);
1085		PIN_SLP(gpm2-4, INPUT, DOWN);
1086
1087		PIN_SLP(gpm3-0, PREV, NONE);
1088		PIN_SLP(gpm3-1, PREV, NONE);
1089		PIN_SLP(gpm3-2, PREV, NONE);
1090		PIN_SLP(gpm3-3, INPUT, DOWN);
1091		PIN_SLP(gpm3-4, INPUT, DOWN);
1092		PIN_SLP(gpm3-5, PREV, NONE);
1093		PIN_SLP(gpm3-6, INPUT, DOWN);
1094		PIN_SLP(gpm3-7, OUT0, NONE);
1095
1096		PIN_SLP(gpm4-0, INPUT, DOWN);
1097		PIN_SLP(gpm4-1, INPUT, DOWN);
1098		PIN_SLP(gpm4-2, INPUT, DOWN);
1099		PIN_SLP(gpm4-3, INPUT, DOWN);
1100		PIN_SLP(gpm4-4, PREV, NONE);
1101		PIN_SLP(gpm4-5, INPUT, NONE);
1102		PIN_SLP(gpm4-6, INPUT, DOWN);
1103		PIN_SLP(gpm4-7, INPUT, DOWN);
1104
1105		PIN_SLP(gpy0-0, INPUT, DOWN);
1106		PIN_SLP(gpy0-1, INPUT, DOWN);
1107		PIN_SLP(gpy0-2, INPUT, NONE);
1108		PIN_SLP(gpy0-3, INPUT, NONE);
1109		PIN_SLP(gpy0-4, INPUT, DOWN);
1110		PIN_SLP(gpy0-5, INPUT, DOWN);
1111
1112		PIN_SLP(gpy1-0, INPUT, DOWN);
1113		PIN_SLP(gpy1-1, INPUT, DOWN);
1114		PIN_SLP(gpy1-2, INPUT, DOWN);
1115		PIN_SLP(gpy1-3, INPUT, DOWN);
1116
1117		PIN_SLP(gpy2-0, PREV, NONE);
1118		PIN_SLP(gpy2-1, INPUT, DOWN);
1119		PIN_SLP(gpy2-2, INPUT, NONE);
1120		PIN_SLP(gpy2-3, INPUT, NONE);
1121		PIN_SLP(gpy2-4, INPUT, NONE);
1122		PIN_SLP(gpy2-5, INPUT, NONE);
1123
1124		PIN_SLP(gpy3-0, INPUT, DOWN);
1125		PIN_SLP(gpy3-1, INPUT, DOWN);
1126		PIN_SLP(gpy3-2, INPUT, DOWN);
1127		PIN_SLP(gpy3-3, INPUT, DOWN);
1128		PIN_SLP(gpy3-4, INPUT, DOWN);
1129		PIN_SLP(gpy3-5, INPUT, DOWN);
1130		PIN_SLP(gpy3-6, INPUT, DOWN);
1131		PIN_SLP(gpy3-7, INPUT, DOWN);
1132
1133		PIN_SLP(gpy4-0, INPUT, DOWN);
1134		PIN_SLP(gpy4-1, INPUT, DOWN);
1135		PIN_SLP(gpy4-2, INPUT, DOWN);
1136		PIN_SLP(gpy4-3, INPUT, DOWN);
1137		PIN_SLP(gpy4-4, INPUT, DOWN);
1138		PIN_SLP(gpy4-5, INPUT, DOWN);
1139		PIN_SLP(gpy4-6, INPUT, DOWN);
1140		PIN_SLP(gpy4-7, INPUT, DOWN);
1141
1142		PIN_SLP(gpy5-0, INPUT, DOWN);
1143		PIN_SLP(gpy5-1, INPUT, DOWN);
1144		PIN_SLP(gpy5-2, INPUT, DOWN);
1145		PIN_SLP(gpy5-3, INPUT, DOWN);
1146		PIN_SLP(gpy5-4, INPUT, DOWN);
1147		PIN_SLP(gpy5-5, INPUT, DOWN);
1148		PIN_SLP(gpy5-6, INPUT, DOWN);
1149		PIN_SLP(gpy5-7, INPUT, DOWN);
1150
1151		PIN_SLP(gpy6-0, INPUT, DOWN);
1152		PIN_SLP(gpy6-1, INPUT, DOWN);
1153		PIN_SLP(gpy6-2, INPUT, DOWN);
1154		PIN_SLP(gpy6-3, INPUT, DOWN);
1155		PIN_SLP(gpy6-4, INPUT, DOWN);
1156		PIN_SLP(gpy6-5, INPUT, DOWN);
1157		PIN_SLP(gpy6-6, INPUT, DOWN);
1158		PIN_SLP(gpy6-7, INPUT, DOWN);
1159	};
1160};
1161
1162&pinctrl_2 {
1163	pinctrl-names = "default";
1164	pinctrl-0 = <&sleep2>;
1165
1166	sleep2: sleep-state {
1167		PIN_SLP(gpz-0, INPUT, DOWN);
1168		PIN_SLP(gpz-1, INPUT, DOWN);
1169		PIN_SLP(gpz-2, INPUT, DOWN);
1170		PIN_SLP(gpz-3, INPUT, DOWN);
1171		PIN_SLP(gpz-4, INPUT, DOWN);
1172		PIN_SLP(gpz-5, INPUT, DOWN);
1173		PIN_SLP(gpz-6, INPUT, DOWN);
1174	};
1175};
1176
1177&pinctrl_3 {
1178	pinctrl-names = "default";
1179	pinctrl-0 = <&sleep3>;
1180
1181	sleep3: sleep-state {
1182		PIN_SLP(gpv0-0, INPUT, DOWN);
1183		PIN_SLP(gpv0-1, INPUT, DOWN);
1184		PIN_SLP(gpv0-2, INPUT, DOWN);
1185		PIN_SLP(gpv0-3, INPUT, DOWN);
1186		PIN_SLP(gpv0-4, INPUT, DOWN);
1187		PIN_SLP(gpv0-5, INPUT, DOWN);
1188		PIN_SLP(gpv0-6, INPUT, DOWN);
1189		PIN_SLP(gpv0-7, INPUT, DOWN);
1190
1191		PIN_SLP(gpv1-0, INPUT, DOWN);
1192		PIN_SLP(gpv1-1, INPUT, DOWN);
1193		PIN_SLP(gpv1-2, INPUT, DOWN);
1194		PIN_SLP(gpv1-3, INPUT, DOWN);
1195		PIN_SLP(gpv1-4, INPUT, DOWN);
1196		PIN_SLP(gpv1-5, INPUT, DOWN);
1197		PIN_SLP(gpv1-6, INPUT, DOWN);
1198		PIN_SLP(gpv1-7, INPUT, DOWN);
1199
1200		PIN_SLP(gpv2-0, INPUT, DOWN);
1201		PIN_SLP(gpv2-1, INPUT, DOWN);
1202		PIN_SLP(gpv2-2, INPUT, DOWN);
1203		PIN_SLP(gpv2-3, INPUT, DOWN);
1204		PIN_SLP(gpv2-4, INPUT, DOWN);
1205		PIN_SLP(gpv2-5, INPUT, DOWN);
1206		PIN_SLP(gpv2-6, INPUT, DOWN);
1207		PIN_SLP(gpv2-7, INPUT, DOWN);
1208
1209		PIN_SLP(gpv3-0, INPUT, DOWN);
1210		PIN_SLP(gpv3-1, INPUT, DOWN);
1211		PIN_SLP(gpv3-2, INPUT, DOWN);
1212		PIN_SLP(gpv3-3, INPUT, DOWN);
1213		PIN_SLP(gpv3-4, INPUT, DOWN);
1214		PIN_SLP(gpv3-5, INPUT, DOWN);
1215		PIN_SLP(gpv3-6, INPUT, DOWN);
1216		PIN_SLP(gpv3-7, INPUT, DOWN);
1217
1218		PIN_SLP(gpv4-0, INPUT, DOWN);
1219		PIN_SLP(gpv4-1, INPUT, DOWN);
1220	};
1221};
1222
1223&pmu_system_controller {
1224	assigned-clocks = <&pmu_system_controller 0>;
1225	assigned-clock-parents = <&clock CLK_XUSBXTI>;
1226};
1227
1228&pwm {
1229	pinctrl-0 = <&pwm1_out>;
1230	pinctrl-names = "default";
1231	samsung,pwm-outputs = <1>;
1232	status = "okay";
1233};
1234
1235/*
1236 * The internal RTC does not work; instead, the RTC provided by the
1237 * S5M8766 PMIC is used. Disable the RTC to make sure the working
1238 * one gets used.
1239 *
1240 * We add this node to avoid DTB check warnings, as the Exynos4 RTC
1241 * requires two clocks, and only one is set up by default.
1242 */
1243&rtc {
1244	clocks = <&clock CLK_RTC>, <&s5m8767_osc S2MPS11_CLK_AP>;
1245	clock-names = "rtc", "rtc_src";
1246	status = "disabled";
1247};
1248
1249&sdhci_2 {
1250	bus-width = <4>;
1251	cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
1252	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>;
1253	pinctrl-names = "default";
1254	vmmc-supply = <&ldo23_reg>;
1255	status = "okay";
1256};
1257
1258&sdhci_3 {
1259	#address-cells = <1>;
1260	#size-cells = <0>;
1261	non-removable;
1262	bus-width = <4>;
1263
1264	mmc-pwrseq = <&wlan_pwrseq>;
1265	pinctrl-names = "default";
1266	pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
1267	status = "okay";
1268
1269	brcmf: wifi@1 {
1270		compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
1271		reg = <1>;
1272
1273		interrupt-parent = <&gpx2>;
1274		interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
1275		interrupt-names = "host-wake";
1276	};
1277};
1278
1279&serial_0 {
1280	pinctrl-0 = <&uart0_data &uart0_fctl>;
1281	pinctrl-names = "default";
1282	status = "okay";
1283
1284	bluetooth {
1285		compatible = "brcm,bcm4330-bt"; /* BCM4334B0 */
1286		pinctrl-0 = <&bt_shutdown &bt_device_wakeup &bt_host_wakeup>;
1287		pinctrl-names = "default";
1288		max-speed = <3000000>;
1289		shutdown-gpios = <&gpl0 6 GPIO_ACTIVE_HIGH>;
1290		device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
1291		host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
1292		clocks = <&s5m8767_osc S2MPS11_CLK_BT>;
1293	};
1294};
1295
1296&serial_1 {
1297	status = "okay";
1298};
1299
1300&serial_2 {
1301	status = "okay";
1302};
1303
1304&serial_3 {
1305	status = "okay";
1306};
1307
1308&tmu {
1309	vtmu-supply = <&ldo10_reg>;
1310	status = "okay";
1311};
1312