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