xref: /openbmc/linux/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi (revision 36b8bee7b93b6e5a93ab58a896c6e1fbae254586)
1/*
2 * SAMSUNG Exynos5433 TM2 board device tree source
3 *
4 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
5 *
6 * Common device tree source file for Samsung's TM2 and TM2E boards
7 * which are based on Samsung Exynos5433 SoC.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14/dts-v1/;
15#include "exynos5433.dtsi"
16#include <dt-bindings/clock/samsung,s2mps11.h>
17#include <dt-bindings/gpio/gpio.h>
18#include <dt-bindings/input/input.h>
19#include <dt-bindings/interrupt-controller/irq.h>
20
21/ {
22	aliases {
23		gsc0 = &gsc_0;
24		gsc1 = &gsc_1;
25		gsc2 = &gsc_2;
26		pinctrl0 = &pinctrl_alive;
27		pinctrl1 = &pinctrl_aud;
28		pinctrl2 = &pinctrl_cpif;
29		pinctrl3 = &pinctrl_ese;
30		pinctrl4 = &pinctrl_finger;
31		pinctrl5 = &pinctrl_fsys;
32		pinctrl6 = &pinctrl_imem;
33		pinctrl7 = &pinctrl_nfc;
34		pinctrl8 = &pinctrl_peric;
35		pinctrl9 = &pinctrl_touch;
36		serial0 = &serial_0;
37		serial1 = &serial_1;
38		serial2 = &serial_2;
39		serial3 = &serial_3;
40		spi0 = &spi_0;
41		spi1 = &spi_1;
42		spi2 = &spi_2;
43		spi3 = &spi_3;
44		spi4 = &spi_4;
45		mshc0 = &mshc_0;
46		mshc2 = &mshc_2;
47	};
48
49	chosen {
50		stdout-path = &serial_1;
51	};
52
53	memory@20000000 {
54		device_type = "memory";
55		reg = <0x0 0x20000000 0x0 0xc0000000>;
56	};
57
58	gpio-keys {
59		compatible = "gpio-keys";
60
61		power-key {
62			gpios = <&gpa2 7 GPIO_ACTIVE_LOW>;
63			linux,code = <KEY_POWER>;
64			label = "power key";
65			debounce-interval = <10>;
66		};
67
68		volume-up-key {
69			gpios = <&gpa2 0 GPIO_ACTIVE_LOW>;
70			linux,code = <KEY_VOLUMEUP>;
71			label = "volume-up key";
72			debounce-interval = <10>;
73		};
74
75		volume-down-key {
76			gpios = <&gpa2 1 GPIO_ACTIVE_LOW>;
77			linux,code = <KEY_VOLUMEDOWN>;
78			label = "volume-down key";
79			debounce-interval = <10>;
80		};
81
82		homepage-key {
83			gpios = <&gpa0 3 GPIO_ACTIVE_LOW>;
84			linux,code = <KEY_MENU>;
85			label = "homepage key";
86			debounce-interval = <10>;
87		};
88	};
89
90	i2c_max98504: i2c-gpio-0 {
91		compatible = "i2c-gpio";
92		gpios = <&gpd0 1 GPIO_ACTIVE_HIGH /* SPK_AMP_SDA */
93			 &gpd0 0 GPIO_ACTIVE_HIGH /* SPK_AMP_SCL */ >;
94		i2c-gpio,delay-us = <2>;
95		#address-cells = <1>;
96		#size-cells = <0>;
97		status = "okay";
98
99		max98504: max98504@31 {
100			compatible = "maxim,max98504";
101			reg = <0x31>;
102			maxim,rx-path = <1>;
103			maxim,tx-path = <1>;
104			maxim,tx-channel-mask = <3>;
105			maxim,tx-channel-source = <2>;
106		};
107	};
108
109	irda_regulator: irda-regulator {
110		compatible = "regulator-fixed";
111		enable-active-high;
112		gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>;
113		regulator-name = "irda_regulator";
114	};
115
116	sound {
117		compatible = "samsung,tm2-audio";
118		audio-codec = <&wm5110>;
119		i2s-controller = <&i2s0>;
120		audio-amplifier = <&max98504>;
121		mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
122		model = "wm5110";
123		samsung,audio-routing =
124			/* Headphone */
125			"HP", "HPOUT1L",
126			"HP", "HPOUT1R",
127
128			/* Speaker */
129			"SPK", "SPKOUT",
130			"SPKOUT", "HPOUT2L",
131			"SPKOUT", "HPOUT2R",
132
133			/* Receiver */
134			"RCV", "HPOUT3L",
135			"RCV", "HPOUT3R";
136		status = "okay";
137	};
138};
139
140&adc {
141	vdd-supply = <&ldo3_reg>;
142	status = "okay";
143
144	thermistor-ap {
145		compatible = "murata,ncp03wf104";
146		pullup-uv = <1800000>;
147		pullup-ohm = <100000>;
148		pulldown-ohm = <0>;
149		io-channels = <&adc 0>;
150	};
151
152	thermistor-battery {
153		compatible = "murata,ncp03wf104";
154		pullup-uv = <1800000>;
155		pullup-ohm = <100000>;
156		pulldown-ohm = <0>;
157		io-channels = <&adc 1>;
158		#thermal-sensor-cells = <0>;
159	};
160
161	thermistor-charger {
162		compatible = "murata,ncp03wf104";
163		pullup-uv = <1800000>;
164		pullup-ohm = <100000>;
165		pulldown-ohm = <0>;
166		io-channels = <&adc 2>;
167	};
168};
169
170&bus_g2d_400 {
171	devfreq-events = <&ppmu_event0_d0_general>, <&ppmu_event0_d1_general>;
172	vdd-supply = <&buck4_reg>;
173	exynos,saturation-ratio = <10>;
174	status = "okay";
175};
176
177&bus_g2d_266 {
178	devfreq = <&bus_g2d_400>;
179	status = "okay";
180};
181
182&bus_gscl {
183	devfreq = <&bus_g2d_400>;
184	status = "okay";
185};
186
187&bus_hevc {
188	devfreq = <&bus_g2d_400>;
189	status = "okay";
190};
191
192&bus_jpeg {
193	devfreq = <&bus_g2d_400>;
194	status = "okay";
195};
196
197&bus_mfc {
198	devfreq = <&bus_g2d_400>;
199	status = "okay";
200};
201
202&bus_mscl {
203	devfreq = <&bus_g2d_400>;
204	status = "okay";
205};
206
207&bus_noc0 {
208	devfreq = <&bus_g2d_400>;
209	status = "okay";
210};
211
212&bus_noc1 {
213	devfreq = <&bus_g2d_400>;
214	status = "okay";
215};
216
217&bus_noc2 {
218	devfreq = <&bus_g2d_400>;
219	status = "okay";
220};
221
222&cmu_aud {
223	assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>;
224	assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>;
225};
226
227&cmu_fsys {
228	assigned-clocks = <&cmu_top CLK_MOUT_SCLK_USBDRD30>,
229		<&cmu_top CLK_MOUT_SCLK_USBHOST30>,
230		<&cmu_fsys CLK_MOUT_SCLK_USBDRD30_USER>,
231		<&cmu_fsys CLK_MOUT_SCLK_USBHOST30_USER>,
232		<&cmu_fsys CLK_MOUT_PHYCLK_USBDRD30_UDRD30_PIPE_PCLK_USER>,
233		<&cmu_fsys CLK_MOUT_PHYCLK_USBHOST30_UHOST30_PIPE_PCLK_USER>,
234		<&cmu_fsys CLK_MOUT_PHYCLK_USBDRD30_UDRD30_PHYCLOCK_USER>,
235		<&cmu_fsys CLK_MOUT_PHYCLK_USBHOST30_UHOST30_PHYCLOCK_USER>,
236		<&cmu_top CLK_DIV_SCLK_USBDRD30>,
237		<&cmu_top CLK_DIV_SCLK_USBHOST30>;
238	assigned-clock-parents = <&cmu_top CLK_MOUT_BUS_PLL_USER>,
239		<&cmu_top CLK_MOUT_BUS_PLL_USER>,
240		<&cmu_top CLK_SCLK_USBDRD30_FSYS>,
241		<&cmu_top CLK_SCLK_USBHOST30_FSYS>,
242		<&cmu_fsys CLK_PHYCLK_USBDRD30_UDRD30_PIPE_PCLK_PHY>,
243		<&cmu_fsys CLK_PHYCLK_USBHOST30_UHOST30_PIPE_PCLK_PHY>,
244		<&cmu_fsys CLK_PHYCLK_USBDRD30_UDRD30_PHYCLOCK_PHY>,
245		<&cmu_fsys CLK_PHYCLK_USBHOST30_UHOST30_PHYCLOCK_PHY>;
246	assigned-clock-rates = <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>,
247			       <66700000>, <66700000>;
248};
249
250&cmu_gscl {
251	assigned-clocks = <&cmu_gscl CLK_MOUT_ACLK_GSCL_111_USER>,
252			  <&cmu_gscl CLK_MOUT_ACLK_GSCL_333_USER>;
253	assigned-clock-parents = <&cmu_top CLK_ACLK_GSCL_111>,
254				 <&cmu_top CLK_ACLK_GSCL_333>;
255};
256
257&cmu_mfc {
258	assigned-clocks = <&cmu_mfc CLK_MOUT_ACLK_MFC_400_USER>;
259	assigned-clock-parents = <&cmu_top CLK_ACLK_MFC_400>;
260};
261
262&cmu_mscl {
263	assigned-clocks = <&cmu_mscl CLK_MOUT_ACLK_MSCL_400_USER>,
264			  <&cmu_mscl CLK_MOUT_SCLK_JPEG_USER>,
265			  <&cmu_mscl CLK_MOUT_SCLK_JPEG>,
266			  <&cmu_top CLK_MOUT_SCLK_JPEG_A>;
267	assigned-clock-parents = <&cmu_top CLK_ACLK_MSCL_400>,
268				 <&cmu_top CLK_SCLK_JPEG_MSCL>,
269				 <&cmu_mscl CLK_MOUT_SCLK_JPEG_USER>,
270				 <&cmu_top CLK_MOUT_BUS_PLL_USER>;
271};
272
273&cpu0 {
274	cpu-supply = <&buck3_reg>;
275};
276
277&cpu4 {
278	cpu-supply = <&buck2_reg>;
279};
280
281&decon {
282	status = "okay";
283};
284
285&decon_tv {
286	status = "okay";
287
288	ports {
289		#address-cells = <1>;
290		#size-cells = <0>;
291
292		port@0 {
293			reg = <0>;
294			tv_to_hdmi: endpoint {
295				remote-endpoint = <&hdmi_to_tv>;
296			};
297		};
298	};
299};
300
301&dsi {
302	status = "okay";
303	vddcore-supply = <&ldo6_reg>;
304	vddio-supply = <&ldo7_reg>;
305	samsung,burst-clock-frequency = <512000000>;
306	samsung,esc-clock-frequency = <16000000>;
307	samsung,pll-clock-frequency = <24000000>;
308	pinctrl-names = "default";
309	pinctrl-0 = <&te_irq>;
310};
311
312&hdmi {
313	hpd-gpios = <&gpa3 0 GPIO_ACTIVE_HIGH>;
314	status = "okay";
315	vdd-supply = <&ldo6_reg>;
316	vdd_osc-supply = <&ldo7_reg>;
317	vdd_pll-supply = <&ldo6_reg>;
318
319	ports {
320		#address-cells = <1>;
321		#size-cells = <0>;
322
323		port@0 {
324			reg = <0>;
325			hdmi_to_tv: endpoint {
326				remote-endpoint = <&tv_to_hdmi>;
327			};
328		};
329
330		port@1 {
331			reg = <1>;
332			hdmi_to_mhl: endpoint {
333				remote-endpoint = <&mhl_to_hdmi>;
334			};
335		};
336	};
337};
338
339&hsi2c_0 {
340	status = "okay";
341	clock-frequency = <2500000>;
342
343	s2mps13-pmic@66 {
344		compatible = "samsung,s2mps13-pmic";
345		interrupt-parent = <&gpa0>;
346		interrupts = <7 IRQ_TYPE_NONE>;
347		reg = <0x66>;
348		samsung,s2mps11-wrstbi-ground;
349
350		s2mps13_osc: clocks {
351			compatible = "samsung,s2mps13-clk";
352			#clock-cells = <1>;
353			clock-output-names = "s2mps13_ap", "s2mps13_cp",
354				"s2mps13_bt";
355		};
356
357		regulators {
358			ldo1_reg: LDO1 {
359				regulator-name = "VDD_ALIVE_0.9V_AP";
360				regulator-min-microvolt = <900000>;
361				regulator-max-microvolt = <900000>;
362				regulator-always-on;
363			};
364
365			ldo2_reg: LDO2 {
366				regulator-name = "VDDQ_MMC2_2.8V_AP";
367				regulator-min-microvolt = <2800000>;
368				regulator-max-microvolt = <2800000>;
369				regulator-always-on;
370				regulator-state-mem {
371					regulator-off-in-suspend;
372				};
373			};
374
375			ldo3_reg: LDO3 {
376				regulator-name = "VDD1_E_1.8V_AP";
377				regulator-min-microvolt = <1800000>;
378				regulator-max-microvolt = <1800000>;
379				regulator-always-on;
380			};
381
382			ldo4_reg: LDO4 {
383				regulator-name = "VDD10_MIF_PLL_1.0V_AP";
384				regulator-min-microvolt = <1300000>;
385				regulator-max-microvolt = <1300000>;
386				regulator-always-on;
387				regulator-state-mem {
388					regulator-off-in-suspend;
389				};
390			};
391
392			ldo5_reg: LDO5 {
393				regulator-name = "VDD10_DPLL_1.0V_AP";
394				regulator-min-microvolt = <1000000>;
395				regulator-max-microvolt = <1000000>;
396				regulator-always-on;
397				regulator-state-mem {
398					regulator-off-in-suspend;
399				};
400			};
401
402			ldo6_reg: LDO6 {
403				regulator-name = "VDD10_MIPI2L_1.0V_AP";
404				regulator-min-microvolt = <1000000>;
405				regulator-max-microvolt = <1000000>;
406				regulator-state-mem {
407					regulator-off-in-suspend;
408				};
409			};
410
411			ldo7_reg: LDO7 {
412				regulator-name = "VDD18_MIPI2L_1.8V_AP";
413				regulator-min-microvolt = <1800000>;
414				regulator-max-microvolt = <1800000>;
415				regulator-always-on;
416				regulator-state-mem {
417					regulator-off-in-suspend;
418				};
419			};
420
421			ldo8_reg: LDO8 {
422				regulator-name = "VDD18_LLI_1.8V_AP";
423				regulator-min-microvolt = <1800000>;
424				regulator-max-microvolt = <1800000>;
425				regulator-always-on;
426				regulator-state-mem {
427					regulator-off-in-suspend;
428				};
429			};
430
431			ldo9_reg: LDO9 {
432				regulator-name = "VDD18_ABB_ETC_1.8V_AP";
433				regulator-min-microvolt = <1800000>;
434				regulator-max-microvolt = <1800000>;
435				regulator-always-on;
436				regulator-state-mem {
437					regulator-off-in-suspend;
438				};
439			};
440
441			ldo10_reg: LDO10 {
442				regulator-name = "VDD33_USB30_3.0V_AP";
443				regulator-min-microvolt = <3000000>;
444				regulator-max-microvolt = <3000000>;
445				regulator-state-mem {
446					regulator-off-in-suspend;
447				};
448			};
449
450			ldo11_reg: LDO11 {
451				regulator-name = "VDD_INT_M_1.0V_AP";
452				regulator-min-microvolt = <1000000>;
453				regulator-max-microvolt = <1000000>;
454				regulator-always-on;
455				regulator-state-mem {
456					regulator-off-in-suspend;
457				};
458			};
459
460			ldo12_reg: LDO12 {
461				regulator-name = "VDD_KFC_M_1.1V_AP";
462				regulator-min-microvolt = <800000>;
463				regulator-max-microvolt = <1350000>;
464				regulator-always-on;
465			};
466
467			ldo13_reg: LDO13 {
468				regulator-name = "VDD_G3D_M_0.95V_AP";
469				regulator-min-microvolt = <950000>;
470				regulator-max-microvolt = <950000>;
471				regulator-always-on;
472				regulator-state-mem {
473					regulator-off-in-suspend;
474				};
475			};
476
477			ldo14_reg: LDO14 {
478				regulator-name = "VDDQ_M1_LDO_1.2V_AP";
479				regulator-min-microvolt = <1200000>;
480				regulator-max-microvolt = <1200000>;
481				regulator-always-on;
482				regulator-state-mem {
483					regulator-off-in-suspend;
484				};
485			};
486
487			ldo15_reg: LDO15 {
488				regulator-name = "VDDQ_M2_LDO_1.2V_AP";
489				regulator-min-microvolt = <1200000>;
490				regulator-max-microvolt = <1200000>;
491				regulator-always-on;
492				regulator-state-mem {
493					regulator-off-in-suspend;
494				};
495			};
496
497			ldo16_reg: LDO16 {
498				regulator-name = "VDDQ_EFUSE";
499				regulator-min-microvolt = <1400000>;
500				regulator-max-microvolt = <3400000>;
501				regulator-always-on;
502			};
503
504			ldo17_reg: LDO17 {
505				regulator-name = "V_TFLASH_2.8V_AP";
506				regulator-min-microvolt = <2800000>;
507				regulator-max-microvolt = <2800000>;
508			};
509
510			ldo18_reg: LDO18 {
511				regulator-name = "V_CODEC_1.8V_AP";
512				regulator-min-microvolt = <1800000>;
513				regulator-max-microvolt = <1800000>;
514			};
515
516			ldo19_reg: LDO19 {
517				regulator-name = "VDDA_1.8V_COMP";
518				regulator-min-microvolt = <1800000>;
519				regulator-max-microvolt = <1800000>;
520				regulator-always-on;
521			};
522
523			ldo20_reg: LDO20 {
524				regulator-name = "VCC_2.8V_AP";
525				regulator-min-microvolt = <2800000>;
526				regulator-max-microvolt = <2800000>;
527				regulator-always-on;
528			};
529
530			ldo21_reg: LDO21 {
531				regulator-name = "VT_CAM_1.8V";
532				regulator-min-microvolt = <1800000>;
533				regulator-max-microvolt = <1800000>;
534			};
535
536			ldo22_reg: LDO22 {
537				regulator-name = "CAM_IO_1.8V_AP";
538				regulator-min-microvolt = <1800000>;
539				regulator-max-microvolt = <1800000>;
540			};
541
542			ldo23_reg: LDO23 {
543				regulator-name = "CAM_SEN_CORE_1.05V_AP";
544				regulator-min-microvolt = <1050000>;
545				regulator-max-microvolt = <1050000>;
546			};
547
548			ldo24_reg: LDO24 {
549				regulator-name = "VT_CAM_1.2V";
550				regulator-min-microvolt = <1200000>;
551				regulator-max-microvolt = <1200000>;
552			};
553
554			ldo25_reg: LDO25 {
555				regulator-name = "UNUSED_LDO25";
556				regulator-min-microvolt = <2800000>;
557				regulator-max-microvolt = <2800000>;
558			};
559
560			ldo26_reg: LDO26 {
561				regulator-name = "CAM_AF_2.8V_AP";
562				regulator-min-microvolt = <2800000>;
563				regulator-max-microvolt = <2800000>;
564			};
565
566			ldo27_reg: LDO27 {
567				regulator-name = "VCC_3.0V_LCD_AP";
568				regulator-min-microvolt = <3000000>;
569				regulator-max-microvolt = <3000000>;
570			};
571
572			ldo28_reg: LDO28 {
573				regulator-name = "VCC_1.8V_LCD_AP";
574				regulator-min-microvolt = <1800000>;
575				regulator-max-microvolt = <1800000>;
576			};
577
578			ldo29_reg: LDO29 {
579				regulator-name = "VT_CAM_2.8V";
580				regulator-min-microvolt = <3000000>;
581				regulator-max-microvolt = <3000000>;
582			};
583
584			ldo30_reg: LDO30 {
585				regulator-name = "TSP_AVDD_3.3V_AP";
586				regulator-min-microvolt = <3300000>;
587				regulator-max-microvolt = <3300000>;
588			};
589
590			ldo31_reg: LDO31 {
591				/*
592				 * LDO31 differs from target to target,
593				 * its definition is in the .dts
594				 */
595			};
596
597			ldo32_reg: LDO32 {
598				regulator-name = "VTOUCH_1.8V_AP";
599				regulator-min-microvolt = <1800000>;
600				regulator-max-microvolt = <1800000>;
601			};
602
603			ldo33_reg: LDO33 {
604				regulator-name = "VTOUCH_LED_3.3V";
605				regulator-min-microvolt = <2500000>;
606				regulator-max-microvolt = <3300000>;
607				regulator-ramp-delay = <12500>;
608			};
609
610			ldo34_reg: LDO34 {
611				regulator-name = "VCC_1.8V_MHL_AP";
612				regulator-min-microvolt = <1000000>;
613				regulator-max-microvolt = <2100000>;
614			};
615
616			ldo35_reg: LDO35 {
617				regulator-name = "OIS_VM_2.8V";
618				regulator-min-microvolt = <1800000>;
619				regulator-max-microvolt = <2800000>;
620			};
621
622			ldo36_reg: LDO36 {
623				regulator-name = "VSIL_1.0V";
624				regulator-min-microvolt = <1000000>;
625				regulator-max-microvolt = <1000000>;
626			};
627
628			ldo37_reg: LDO37 {
629				regulator-name = "VF_1.8V";
630				regulator-min-microvolt = <1800000>;
631				regulator-max-microvolt = <1800000>;
632			};
633
634			ldo38_reg: LDO38 {
635				/*
636				 * LDO38 differs from target to target,
637				 * its definition is in the .dts
638				 */
639			};
640
641			ldo39_reg: LDO39 {
642				regulator-name = "V_HRM_1.8V";
643				regulator-min-microvolt = <1800000>;
644				regulator-max-microvolt = <1800000>;
645			};
646
647			ldo40_reg: LDO40 {
648				regulator-name = "V_HRM_3.3V";
649				regulator-min-microvolt = <3300000>;
650				regulator-max-microvolt = <3300000>;
651			};
652
653			buck1_reg: BUCK1 {
654				regulator-name = "VDD_MIF_0.9V_AP";
655				regulator-min-microvolt = <600000>;
656				regulator-max-microvolt = <1500000>;
657				regulator-always-on;
658				regulator-state-mem {
659					regulator-off-in-suspend;
660				};
661			};
662
663			buck2_reg: BUCK2 {
664				regulator-name = "VDD_EGL_1.0V_AP";
665				regulator-min-microvolt = <900000>;
666				regulator-max-microvolt = <1300000>;
667				regulator-always-on;
668				regulator-state-mem {
669					regulator-off-in-suspend;
670				};
671			};
672
673			buck3_reg: BUCK3 {
674				regulator-name = "VDD_KFC_1.0V_AP";
675				regulator-min-microvolt = <800000>;
676				regulator-max-microvolt = <1200000>;
677				regulator-always-on;
678				regulator-state-mem {
679					regulator-off-in-suspend;
680				};
681			};
682
683			buck4_reg: BUCK4 {
684				regulator-name = "VDD_INT_0.95V_AP";
685				regulator-min-microvolt = <600000>;
686				regulator-max-microvolt = <1500000>;
687				regulator-always-on;
688				regulator-state-mem {
689					regulator-off-in-suspend;
690				};
691			};
692
693			buck5_reg: BUCK5 {
694				regulator-name = "VDD_DISP_CAM0_0.9V_AP";
695				regulator-min-microvolt = <600000>;
696				regulator-max-microvolt = <1500000>;
697				regulator-always-on;
698				regulator-state-mem {
699					regulator-off-in-suspend;
700				};
701			};
702
703			buck6_reg: BUCK6 {
704				regulator-name = "VDD_G3D_0.9V_AP";
705				regulator-min-microvolt = <600000>;
706				regulator-max-microvolt = <1500000>;
707				regulator-always-on;
708				regulator-state-mem {
709					regulator-off-in-suspend;
710				};
711			};
712
713			buck7_reg: BUCK7 {
714				regulator-name = "VDD_MEM1_1.2V_AP";
715				regulator-min-microvolt = <1200000>;
716				regulator-max-microvolt = <1200000>;
717				regulator-always-on;
718			};
719
720			buck8_reg: BUCK8 {
721				regulator-name = "VDD_LLDO_1.35V_AP";
722				regulator-min-microvolt = <1350000>;
723				regulator-max-microvolt = <3300000>;
724				regulator-always-on;
725			};
726
727			buck9_reg: BUCK9 {
728				regulator-name = "VDD_MLDO_2.0V_AP";
729				regulator-min-microvolt = <1350000>;
730				regulator-max-microvolt = <3300000>;
731				regulator-always-on;
732			};
733
734			buck10_reg: BUCK10 {
735				regulator-name = "vdd_mem2";
736				regulator-min-microvolt = <550000>;
737				regulator-max-microvolt = <1500000>;
738				regulator-always-on;
739			};
740		};
741	};
742};
743
744&hsi2c_4 {
745	status = "okay";
746
747	s3fwrn5: nfc@27 {
748		compatible = "samsung,s3fwrn5-i2c";
749		reg = <0x27>;
750		interrupt-parent = <&gpa1>;
751		interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
752		s3fwrn5,en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
753		s3fwrn5,fw-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
754	};
755};
756
757&hsi2c_5 {
758	status = "okay";
759
760	stmfts: touchscreen@49 {
761		compatible = "st,stmfts";
762		reg = <0x49>;
763		interrupt-parent = <&gpa1>;
764		interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
765		avdd-supply = <&ldo30_reg>;
766		vdd-supply = <&ldo31_reg>;
767	};
768};
769
770&hsi2c_7 {
771	status = "okay";
772	clock-frequency = <1000000>;
773
774	sii8620@39 {
775		reg = <0x39>;
776		compatible = "sil,sii8620";
777		cvcc10-supply = <&ldo36_reg>;
778		iovcc18-supply = <&ldo34_reg>;
779		interrupt-parent = <&gpf0>;
780		interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
781		reset-gpios = <&gpv7 0 GPIO_ACTIVE_LOW>;
782		clocks = <&pmu_system_controller 0>;
783		clock-names = "xtal";
784
785		port {
786			mhl_to_hdmi: endpoint {
787				remote-endpoint = <&hdmi_to_mhl>;
788			};
789		};
790	};
791};
792
793&hsi2c_8 {
794	status = "okay";
795
796	max77843@66 {
797		compatible = "maxim,max77843";
798		interrupt-parent = <&gpa1>;
799		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
800		reg = <0x66>;
801
802		muic: max77843-muic {
803			compatible = "maxim,max77843-muic";
804		};
805
806		regulators {
807			compatible = "maxim,max77843-regulator";
808			safeout1_reg: SAFEOUT1 {
809				regulator-name = "SAFEOUT1";
810				regulator-min-microvolt = <3300000>;
811				regulator-max-microvolt = <4950000>;
812			};
813
814			safeout2_reg: SAFEOUT2 {
815				regulator-name = "SAFEOUT2";
816				regulator-min-microvolt = <3300000>;
817				regulator-max-microvolt = <4950000>;
818			};
819
820			charger_reg: CHARGER {
821				regulator-name = "CHARGER";
822				regulator-min-microamp = <100000>;
823				regulator-max-microamp = <3150000>;
824			};
825		};
826
827		haptic: max77843-haptic {
828			compatible = "maxim,max77843-haptic";
829			haptic-supply = <&ldo38_reg>;
830			pwms = <&pwm 0 33670 0>;
831			pwm-names = "haptic";
832		};
833	};
834};
835
836&hsi2c_11 {
837	status = "okay";
838};
839
840&i2s0 {
841	status = "okay";
842};
843
844&mshc_0 {
845	status = "okay";
846	mmc-hs200-1_8v;
847	mmc-hs400-1_8v;
848	cap-mmc-highspeed;
849	non-removable;
850	card-detect-delay = <200>;
851	samsung,dw-mshc-ciu-div = <3>;
852	samsung,dw-mshc-sdr-timing = <0 4>;
853	samsung,dw-mshc-ddr-timing = <0 2>;
854	samsung,dw-mshc-hs400-timing = <0 3>;
855	samsung,read-strobe-delay = <90>;
856	fifo-depth = <0x80>;
857	pinctrl-names = "default";
858	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_qrdy &sd0_bus1 &sd0_bus4
859			&sd0_bus8 &sd0_rdqs>;
860	bus-width = <8>;
861	assigned-clocks = <&cmu_top CLK_SCLK_MMC0_FSYS>;
862	assigned-clock-rates = <800000000>;
863};
864
865&mshc_2 {
866	status = "okay";
867	cap-sd-highspeed;
868	disable-wp;
869	cd-gpios = <&gpa2 4 GPIO_ACTIVE_HIGH>;
870	cd-inverted;
871	card-detect-delay = <200>;
872	samsung,dw-mshc-ciu-div = <3>;
873	samsung,dw-mshc-sdr-timing = <0 4>;
874	samsung,dw-mshc-ddr-timing = <0 2>;
875	fifo-depth = <0x80>;
876	pinctrl-names = "default";
877	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus1 &sd2_bus4>;
878	bus-width = <4>;
879};
880
881&ppmu_d0_general {
882	status = "okay";
883	events {
884		ppmu_event0_d0_general: ppmu-event0-d0-general {
885			event-name = "ppmu-event0-d0-general";
886		};
887	};
888};
889
890&ppmu_d1_general {
891	status = "okay";
892	events {
893		ppmu_event0_d1_general: ppmu-event0-d1-general {
894		       event-name = "ppmu-event0-d1-general";
895	       };
896       };
897};
898
899&pinctrl_alive {
900	pinctrl-names = "default";
901	pinctrl-0 = <&initial_alive>;
902
903	initial_alive: initial-state {
904		PIN(INPUT, gpa0-0, DOWN, FAST_SR1);
905		PIN(INPUT, gpa0-1, NONE, FAST_SR1);
906		PIN(INPUT, gpa0-2, DOWN, FAST_SR1);
907		PIN(INPUT, gpa0-3, NONE, FAST_SR1);
908		PIN(INPUT, gpa0-4, NONE, FAST_SR1);
909		PIN(INPUT, gpa0-5, DOWN, FAST_SR1);
910		PIN(INPUT, gpa0-6, NONE, FAST_SR1);
911		PIN(INPUT, gpa0-7, NONE, FAST_SR1);
912
913		PIN(INPUT, gpa1-0, UP, FAST_SR1);
914		PIN(INPUT, gpa1-1, UP, FAST_SR1);
915		PIN(INPUT, gpa1-2, NONE, FAST_SR1);
916		PIN(INPUT, gpa1-3, DOWN, FAST_SR1);
917		PIN(INPUT, gpa1-4, DOWN, FAST_SR1);
918		PIN(INPUT, gpa1-5, NONE, FAST_SR1);
919		PIN(INPUT, gpa1-6, NONE, FAST_SR1);
920		PIN(INPUT, gpa1-7, NONE, FAST_SR1);
921
922		PIN(INPUT, gpa2-0, NONE, FAST_SR1);
923		PIN(INPUT, gpa2-1, NONE, FAST_SR1);
924		PIN(INPUT, gpa2-2, NONE, FAST_SR1);
925		PIN(INPUT, gpa2-3, DOWN, FAST_SR1);
926		PIN(INPUT, gpa2-4, NONE, FAST_SR1);
927		PIN(INPUT, gpa2-5, DOWN, FAST_SR1);
928		PIN(INPUT, gpa2-6, DOWN, FAST_SR1);
929		PIN(INPUT, gpa2-7, NONE, FAST_SR1);
930
931		PIN(INPUT, gpa3-0, DOWN, FAST_SR1);
932		PIN(INPUT, gpa3-1, DOWN, FAST_SR1);
933		PIN(INPUT, gpa3-2, NONE, FAST_SR1);
934		PIN(INPUT, gpa3-3, DOWN, FAST_SR1);
935		PIN(INPUT, gpa3-4, NONE, FAST_SR1);
936		PIN(INPUT, gpa3-5, DOWN, FAST_SR1);
937		PIN(INPUT, gpa3-6, DOWN, FAST_SR1);
938		PIN(INPUT, gpa3-7, DOWN, FAST_SR1);
939
940		PIN(INPUT, gpf1-0, NONE, FAST_SR1);
941		PIN(INPUT, gpf1-1, NONE, FAST_SR1);
942		PIN(INPUT, gpf1-2, DOWN, FAST_SR1);
943		PIN(INPUT, gpf1-4, UP, FAST_SR1);
944		PIN(OUTPUT, gpf1-5, NONE, FAST_SR1);
945		PIN(INPUT, gpf1-6, DOWN, FAST_SR1);
946		PIN(INPUT, gpf1-7, DOWN, FAST_SR1);
947
948		PIN(INPUT, gpf2-0, DOWN, FAST_SR1);
949		PIN(INPUT, gpf2-1, DOWN, FAST_SR1);
950		PIN(INPUT, gpf2-2, DOWN, FAST_SR1);
951		PIN(INPUT, gpf2-3, DOWN, FAST_SR1);
952
953		PIN(INPUT, gpf3-0, DOWN, FAST_SR1);
954		PIN(INPUT, gpf3-1, DOWN, FAST_SR1);
955		PIN(INPUT, gpf3-2, NONE, FAST_SR1);
956		PIN(INPUT, gpf3-3, DOWN, FAST_SR1);
957
958		PIN(INPUT, gpf4-0, DOWN, FAST_SR1);
959		PIN(INPUT, gpf4-1, DOWN, FAST_SR1);
960		PIN(INPUT, gpf4-2, DOWN, FAST_SR1);
961		PIN(INPUT, gpf4-3, DOWN, FAST_SR1);
962		PIN(INPUT, gpf4-4, DOWN, FAST_SR1);
963		PIN(INPUT, gpf4-5, DOWN, FAST_SR1);
964		PIN(INPUT, gpf4-6, DOWN, FAST_SR1);
965		PIN(INPUT, gpf4-7, DOWN, FAST_SR1);
966
967		PIN(INPUT, gpf5-0, DOWN, FAST_SR1);
968		PIN(INPUT, gpf5-1, DOWN, FAST_SR1);
969		PIN(INPUT, gpf5-2, DOWN, FAST_SR1);
970		PIN(INPUT, gpf5-3, DOWN, FAST_SR1);
971		PIN(OUTPUT, gpf5-4, NONE, FAST_SR1);
972		PIN(INPUT, gpf5-5, DOWN, FAST_SR1);
973		PIN(INPUT, gpf5-6, DOWN, FAST_SR1);
974		PIN(INPUT, gpf5-7, DOWN, FAST_SR1);
975	};
976
977	te_irq: te_irq {
978		samsung,pins = "gpf1-3";
979		samsung,pin-function = <0xf>;
980	};
981};
982
983&pinctrl_cpif {
984	pinctrl-names = "default";
985	pinctrl-0 = <&initial_cpif>;
986
987	initial_cpif: initial-state {
988		PIN(INPUT, gpv6-0, DOWN, FAST_SR1);
989		PIN(INPUT, gpv6-1, DOWN, FAST_SR1);
990	};
991};
992
993&pinctrl_ese {
994	pinctrl-names = "default";
995	pinctrl-0 = <&initial_ese>;
996
997	initial_ese: initial-state {
998		PIN(INPUT, gpj2-0, DOWN, FAST_SR1);
999		PIN(INPUT, gpj2-1, DOWN, FAST_SR1);
1000		PIN(INPUT, gpj2-2, DOWN, FAST_SR1);
1001	};
1002};
1003
1004&pinctrl_fsys {
1005	pinctrl-names = "default";
1006	pinctrl-0 = <&initial_fsys>;
1007
1008	initial_fsys: initial-state {
1009		PIN(INPUT, gpr3-0, NONE, FAST_SR1);
1010		PIN(INPUT, gpr3-1, DOWN, FAST_SR1);
1011		PIN(INPUT, gpr3-2, DOWN, FAST_SR1);
1012		PIN(INPUT, gpr3-3, DOWN, FAST_SR1);
1013		PIN(INPUT, gpr3-7, NONE, FAST_SR1);
1014	};
1015};
1016
1017&pinctrl_imem {
1018	pinctrl-names = "default";
1019	pinctrl-0 = <&initial_imem>;
1020
1021	initial_imem: initial-state {
1022		PIN(INPUT, gpf0-0, UP, FAST_SR1);
1023		PIN(INPUT, gpf0-1, UP, FAST_SR1);
1024		PIN(INPUT, gpf0-2, DOWN, FAST_SR1);
1025		PIN(INPUT, gpf0-3, UP, FAST_SR1);
1026		PIN(INPUT, gpf0-4, DOWN, FAST_SR1);
1027		PIN(INPUT, gpf0-5, NONE, FAST_SR1);
1028		PIN(INPUT, gpf0-6, DOWN, FAST_SR1);
1029		PIN(INPUT, gpf0-7, UP, FAST_SR1);
1030	};
1031};
1032
1033&pinctrl_nfc {
1034	pinctrl-names = "default";
1035	pinctrl-0 = <&initial_nfc>;
1036
1037	initial_nfc: initial-state {
1038		PIN(INPUT, gpj0-2, DOWN, FAST_SR1);
1039	};
1040};
1041
1042&pinctrl_peric {
1043	pinctrl-names = "default";
1044	pinctrl-0 = <&initial_peric>;
1045
1046	initial_peric: initial-state {
1047		PIN(INPUT, gpv7-0, DOWN, FAST_SR1);
1048		PIN(INPUT, gpv7-1, DOWN, FAST_SR1);
1049		PIN(INPUT, gpv7-2, NONE, FAST_SR1);
1050		PIN(INPUT, gpv7-3, DOWN, FAST_SR1);
1051		PIN(INPUT, gpv7-4, DOWN, FAST_SR1);
1052		PIN(INPUT, gpv7-5, DOWN, FAST_SR1);
1053
1054		PIN(INPUT, gpb0-4, DOWN, FAST_SR1);
1055
1056		PIN(INPUT, gpc0-2, DOWN, FAST_SR1);
1057		PIN(INPUT, gpc0-5, DOWN, FAST_SR1);
1058		PIN(INPUT, gpc0-7, DOWN, FAST_SR1);
1059
1060		PIN(INPUT, gpc1-1, DOWN, FAST_SR1);
1061
1062		PIN(INPUT, gpc3-4, NONE, FAST_SR1);
1063		PIN(INPUT, gpc3-5, NONE, FAST_SR1);
1064		PIN(INPUT, gpc3-6, NONE, FAST_SR1);
1065		PIN(INPUT, gpc3-7, NONE, FAST_SR1);
1066
1067		PIN(OUTPUT, gpg0-0, NONE, FAST_SR1);
1068		PIN(2, gpg0-1, DOWN, FAST_SR1);
1069
1070		PIN(INPUT, gpd2-5, DOWN, FAST_SR1);
1071
1072		PIN(INPUT, gpd4-0, NONE, FAST_SR1);
1073		PIN(INPUT, gpd4-1, DOWN, FAST_SR1);
1074		PIN(INPUT, gpd4-2, DOWN, FAST_SR1);
1075		PIN(INPUT, gpd4-3, DOWN, FAST_SR1);
1076		PIN(INPUT, gpd4-4, DOWN, FAST_SR1);
1077
1078		PIN(INPUT, gpd6-3, DOWN, FAST_SR1);
1079
1080		PIN(INPUT, gpd8-1, UP, FAST_SR1);
1081
1082		PIN(INPUT, gpg1-0, DOWN, FAST_SR1);
1083		PIN(INPUT, gpg1-1, DOWN, FAST_SR1);
1084		PIN(INPUT, gpg1-2, DOWN, FAST_SR1);
1085		PIN(INPUT, gpg1-3, DOWN, FAST_SR1);
1086		PIN(INPUT, gpg1-4, DOWN, FAST_SR1);
1087
1088		PIN(INPUT, gpg2-0, DOWN, FAST_SR1);
1089		PIN(INPUT, gpg2-1, DOWN, FAST_SR1);
1090
1091		PIN(INPUT, gpg3-0, DOWN, FAST_SR1);
1092		PIN(INPUT, gpg3-1, DOWN, FAST_SR1);
1093		PIN(INPUT, gpg3-5, DOWN, FAST_SR1);
1094	};
1095};
1096
1097&pinctrl_touch {
1098	pinctrl-names = "default";
1099	pinctrl-0 = <&initial_touch>;
1100
1101	initial_touch: initial-state {
1102		PIN(INPUT, gpj1-2, DOWN, FAST_SR1);
1103	};
1104};
1105
1106&pwm {
1107	pinctrl-0 = <&pwm0_out>;
1108	pinctrl-names = "default";
1109	status = "okay";
1110};
1111
1112&mic {
1113	status = "okay";
1114};
1115
1116&pmu_system_controller {
1117	assigned-clocks = <&pmu_system_controller 0>;
1118	assigned-clock-parents = <&xxti>;
1119};
1120
1121&serial_1 {
1122	status = "okay";
1123};
1124
1125&spi_1 {
1126	cs-gpios = <&gpd6 3 GPIO_ACTIVE_HIGH>;
1127	status = "okay";
1128
1129	wm5110: wm5110-codec@0 {
1130		compatible = "wlf,wm5110";
1131		reg = <0x0>;
1132		spi-max-frequency = <20000000>;
1133		interrupt-parent = <&gpa0>;
1134		interrupts = <4 IRQ_TYPE_NONE>;
1135		clocks = <&pmu_system_controller 0>,
1136			<&s2mps13_osc S2MPS11_CLK_BT>;
1137		clock-names = "mclk1", "mclk2";
1138
1139		gpio-controller;
1140		#gpio-cells = <2>;
1141
1142		wlf,micd-detect-debounce = <300>;
1143		wlf,micd-bias-start-time = <0x1>;
1144		wlf,micd-rate = <0x7>;
1145		wlf,micd-dbtime = <0x1>;
1146		wlf,micd-force-micbias;
1147		wlf,micd-configs = <0x0 1 0>;
1148		wlf,hpdet-channel = <1>;
1149		wlf,gpsw = <0x1>;
1150		wlf,inmode = <2 0 2 0>;
1151
1152		wlf,reset = <&gpc0 7 GPIO_ACTIVE_HIGH>;
1153		wlf,ldoena = <&gpf0 0 GPIO_ACTIVE_HIGH>;
1154
1155		/* core supplies */
1156		AVDD-supply = <&ldo18_reg>;
1157		DBVDD1-supply = <&ldo18_reg>;
1158		CPVDD-supply = <&ldo18_reg>;
1159		DBVDD2-supply = <&ldo18_reg>;
1160		DBVDD3-supply = <&ldo18_reg>;
1161
1162		controller-data {
1163			samsung,spi-feedback-delay = <0>;
1164		};
1165	};
1166};
1167
1168&spi_3 {
1169	status = "okay";
1170	no-cs-readback;
1171
1172	irled@0 {
1173		compatible = "ir-spi-led";
1174		reg = <0x0>;
1175		spi-max-frequency = <5000000>;
1176		power-supply = <&irda_regulator>;
1177		duty-cycle = <60>;
1178		led-active-low;
1179
1180		controller-data {
1181			samsung,spi-feedback-delay = <0>;
1182		};
1183	};
1184};
1185
1186&timer {
1187	clock-frequency = <24000000>;
1188};
1189
1190&tmu_atlas0 {
1191	vtmu-supply = <&ldo3_reg>;
1192	status = "okay";
1193};
1194
1195&tmu_apollo {
1196	vtmu-supply = <&ldo3_reg>;
1197	status = "okay";
1198};
1199
1200&tmu_g3d {
1201	vtmu-supply = <&ldo3_reg>;
1202	status = "okay";
1203};
1204
1205&usbdrd30 {
1206	vdd33-supply = <&ldo10_reg>;
1207	vdd10-supply = <&ldo6_reg>;
1208	status = "okay";
1209};
1210
1211&usbdrd_dwc3 {
1212	dr_mode = "otg";
1213	extcon = <&muic>;
1214};
1215
1216&usbdrd30_phy {
1217	vbus-supply = <&safeout1_reg>;
1218	status = "okay";
1219};
1220
1221&xxti {
1222	clock-frequency = <24000000>;
1223};
1224