arm64: dts: exynos: Add dts file for Exynos5433-based TM2 board
[platform/kernel/linux-exynos.git] / arch / arm64 / boot / dts / exynos / exynos5433-tm2.dts
1 /*
2  * SAMSUNG Exynos5433 TM2 board device tree source
3  *
4  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
5  *
6  * Device tree source file for Samsung's TM2 board which is based on
7  * 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         model = "Samsung TM2 board";
23         compatible = "samsung,tm2", "samsung,exynos5433";
24
25         aliases {
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         };
46
47         chosen {
48                 stdout-path = &serial_1;
49         };
50
51         memory@20000000 {
52                 device_type = "memory";
53                 reg = <0x0 0x20000000 0x0 0xc0000000>;
54         };
55
56         gpio-keys {
57                 compatible = "gpio-keys";
58
59                 power-key {
60                         gpios = <&gpa2 7 GPIO_ACTIVE_LOW>;
61                         linux,code = <KEY_POWER>;
62                         label = "power key";
63                         debounce-interval = <10>;
64                 };
65
66                 volume-up-key {
67                         gpios = <&gpa2 0 GPIO_ACTIVE_LOW>;
68                         linux,code = <KEY_VOLUMEUP>;
69                         label = "volume-up key";
70                         debounce-interval = <10>;
71                 };
72
73                 volume-down-key {
74                         gpios = <&gpa2 1 GPIO_ACTIVE_LOW>;
75                         linux,code = <KEY_VOLUMEDOWN>;
76                         label = "volume-down key";
77                         debounce-interval = <10>;
78                 };
79
80                 homepage-key {
81                         gpios = <&gpa0 3 GPIO_ACTIVE_LOW>;
82                         linux,code = <KEY_MENU>;
83                         label = "homepage key";
84                         debounce-interval = <10>;
85                 };
86         };
87
88         i2c_max98504: i2c-gpio-0 {
89                 compatible = "i2c-gpio";
90                 gpios = <&gpd0 1 GPIO_ACTIVE_HIGH /* SPK_AMP_SDA */
91                          &gpd0 0 GPIO_ACTIVE_HIGH /* SPK_AMP_SCL */ >;
92                 i2c-gpio,delay-us = <2>;
93                 #address-cells = <1>;
94                 #size-cells = <0>;
95                 status = "okay";
96
97                 max98504: max98504@31 {
98                         compatible = "maxim,max98504";
99                         reg = <0x31>;
100                         maxim,rx-path = <1>;
101                         maxim,tx-path = <1>;
102                         maxim,tx-channel-mask = <3>;
103                         maxim,tx-channel-source = <2>;
104                 };
105         };
106
107         sound {
108                 compatible = "samsung,tm2-audio";
109                 audio-codec = <&wm5110>;
110                 i2s-controller = <&i2s0>;
111                 audio-amplifier = <&max98504>;
112                 mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>;
113                 model = "wm5110";
114                 samsung,audio-routing =
115                         /* Headphone */
116                         "HP", "HPOUT1L",
117                         "HP", "HPOUT1R",
118
119                         /* Speaker */
120                         "SPK", "SPKOUT",
121                         "SPKOUT", "HPOUT2L",
122                         "SPKOUT", "HPOUT2R",
123
124                         /* Receiver */
125                         "RCV", "HPOUT3L",
126                         "RCV", "HPOUT3R";
127                 status = "okay";
128         };
129 };
130
131 &adc {
132         vdd-supply = <&ldo3_reg>;
133         status = "okay";
134
135         thermistor-ap {
136                 compatible = "murata,ncp03wf104";
137                 pullup-uv = <1800000>;
138                 pullup-ohm = <100000>;
139                 pulldown-ohm = <0>;
140                 io-channels = <&adc 0>;
141         };
142
143         thermistor-battery {
144                 compatible = "murata,ncp03wf104";
145                 pullup-uv = <1800000>;
146                 pullup-ohm = <100000>;
147                 pulldown-ohm = <0>;
148                 io-channels = <&adc 1>;
149                 #thermal-sensor-cells = <0>;
150         };
151
152         thermistor-charger {
153                 compatible = "murata,ncp03wf104";
154                 pullup-uv = <1800000>;
155                 pullup-ohm = <100000>;
156                 pulldown-ohm = <0>;
157                 io-channels = <&adc 2>;
158         };
159 };
160
161 &cpu0 {
162         cpu-supply = <&buck3_reg>;
163 };
164
165 &cpu4 {
166         cpu-supply = <&buck2_reg>;
167 };
168
169 &decon {
170         status = "okay";
171
172         i80-if-timings {
173         };
174 };
175
176 &dsi {
177         status = "okay";
178         vddcore-supply = <&ldo6_reg>;
179         vddio-supply = <&ldo7_reg>;
180         samsung,pll-clock-frequency = <24000000>;
181         pinctrl-names = "default";
182         pinctrl-0 = <&te_irq>;
183
184         ports {
185                 #address-cells = <1>;
186                 #size-cells = <0>;
187
188                 port@1 {
189                         reg = <1>;
190
191                         dsi_out: endpoint {
192                                 samsung,burst-clock-frequency = <512000000>;
193                                 samsung,esc-clock-frequency = <16000000>;
194                         };
195                 };
196         };
197 };
198
199 &hsi2c_0 {
200         status = "okay";
201         clock-frequency = <2500000>;
202
203         s2mps13-pmic@66 {
204                 compatible = "samsung,s2mps13-pmic";
205                 interrupt-parent = <&gpa0>;
206                 interrupts = <7 IRQ_TYPE_NONE>;
207                 reg = <0x66>;
208                 samsung,s2mps11-wrstbi-ground;
209
210                 s2mps13_osc: clocks {
211                         compatible = "samsung,s2mps13-clk";
212                         #clock-cells = <1>;
213                         clock-output-names = "s2mps13_ap", "s2mps13_cp",
214                                 "s2mps13_bt";
215                 };
216
217                 regulators {
218                         ldo1_reg: LDO1 {
219                                 regulator-name = "VDD_ALIVE_0.9V_AP";
220                                 regulator-min-microvolt = <900000>;
221                                 regulator-max-microvolt = <900000>;
222                                 regulator-always-on;
223                         };
224
225                         ldo2_reg: LDO2 {
226                                 regulator-name = "VDDQ_MMC2_2.8V_AP";
227                                 regulator-min-microvolt = <2800000>;
228                                 regulator-max-microvolt = <2800000>;
229                                 regulator-always-on;
230                                 regulator-state-mem {
231                                         regulator-off-in-suspend;
232                                 };
233                         };
234
235                         ldo3_reg: LDO3 {
236                                 regulator-name = "VDD1_E_1.8V_AP";
237                                 regulator-min-microvolt = <1800000>;
238                                 regulator-max-microvolt = <1800000>;
239                                 regulator-always-on;
240                         };
241
242                         ldo4_reg: LDO4 {
243                                 regulator-name = "VDD10_MIF_PLL_1.0V_AP";
244                                 regulator-min-microvolt = <1300000>;
245                                 regulator-max-microvolt = <1300000>;
246                                 regulator-always-on;
247                                 regulator-state-mem {
248                                         regulator-off-in-suspend;
249                                 };
250                         };
251
252                         ldo5_reg: LDO5 {
253                                 regulator-name = "VDD10_DPLL_1.0V_AP";
254                                 regulator-min-microvolt = <1000000>;
255                                 regulator-max-microvolt = <1000000>;
256                                 regulator-always-on;
257                                 regulator-state-mem {
258                                         regulator-off-in-suspend;
259                                 };
260                         };
261
262                         ldo6_reg: LDO6 {
263                                 regulator-name = "VDD10_MIPI2L_1.0V_AP";
264                                 regulator-min-microvolt = <1000000>;
265                                 regulator-max-microvolt = <1000000>;
266                                 regulator-state-mem {
267                                         regulator-off-in-suspend;
268                                 };
269                         };
270
271                         ldo7_reg: LDO7 {
272                                 regulator-name = "VDD18_MIPI2L_1.8V_AP";
273                                 regulator-min-microvolt = <1800000>;
274                                 regulator-max-microvolt = <1800000>;
275                         };
276
277                         ldo8_reg: LDO8 {
278                                 regulator-name = "VDD18_LLI_1.8V_AP";
279                                 regulator-min-microvolt = <1800000>;
280                                 regulator-max-microvolt = <1800000>;
281                                 regulator-always-on;
282                                 regulator-state-mem {
283                                         regulator-off-in-suspend;
284                                 };
285                         };
286
287                         ldo9_reg: LDO9 {
288                                 regulator-name = "VDD18_ABB_ETC_1.8V_AP";
289                                 regulator-min-microvolt = <1800000>;
290                                 regulator-max-microvolt = <1800000>;
291                                 regulator-always-on;
292                                 regulator-state-mem {
293                                         regulator-off-in-suspend;
294                                 };
295                         };
296
297                         ldo10_reg: LDO10 {
298                                 regulator-name = "VDD33_USB30_3.0V_AP";
299                                 regulator-min-microvolt = <3000000>;
300                                 regulator-max-microvolt = <3000000>;
301                                 regulator-state-mem {
302                                         regulator-off-in-suspend;
303                                 };
304                         };
305
306                         ldo11_reg: LDO11 {
307                                 regulator-name = "VDD_INT_M_1.0V_AP";
308                                 regulator-min-microvolt = <1000000>;
309                                 regulator-max-microvolt = <1000000>;
310                                 regulator-always-on;
311                                 regulator-state-mem {
312                                         regulator-off-in-suspend;
313                                 };
314                         };
315
316                         ldo12_reg: LDO12 {
317                                 regulator-name = "VDD_KFC_M_1.1V_AP";
318                                 regulator-min-microvolt = <800000>;
319                                 regulator-max-microvolt = <1350000>;
320                                 regulator-always-on;
321                         };
322
323                         ldo13_reg: LDO13 {
324                                 regulator-name = "VDD_G3D_M_0.95V_AP";
325                                 regulator-min-microvolt = <950000>;
326                                 regulator-max-microvolt = <950000>;
327                                 regulator-always-on;
328                                 regulator-state-mem {
329                                         regulator-off-in-suspend;
330                                 };
331                         };
332
333                         ldo14_reg: LDO14 {
334                                 regulator-name = "VDDQ_M1_LDO_1.2V_AP";
335                                 regulator-min-microvolt = <1200000>;
336                                 regulator-max-microvolt = <1200000>;
337                                 regulator-always-on;
338                                 regulator-state-mem {
339                                         regulator-off-in-suspend;
340                                 };
341                         };
342
343                         ldo15_reg: LDO15 {
344                                 regulator-name = "VDDQ_M2_LDO_1.2V_AP";
345                                 regulator-min-microvolt = <1200000>;
346                                 regulator-max-microvolt = <1200000>;
347                                 regulator-always-on;
348                                 regulator-state-mem {
349                                         regulator-off-in-suspend;
350                                 };
351                         };
352
353                         ldo16_reg: LDO16 {
354                                 regulator-name = "VDDQ_EFUSE";
355                                 regulator-min-microvolt = <1400000>;
356                                 regulator-max-microvolt = <3400000>;
357                                 regulator-always-on;
358                         };
359
360                         ldo17_reg: LDO17 {
361                                 regulator-name = "V_TFLASH_2.8V_AP";
362                                 regulator-min-microvolt = <2800000>;
363                                 regulator-max-microvolt = <2800000>;
364                         };
365
366                         ldo18_reg: LDO18 {
367                                 regulator-name = "V_CODEC_1.8V_AP";
368                                 regulator-min-microvolt = <1800000>;
369                                 regulator-max-microvolt = <1800000>;
370                         };
371
372                         ldo19_reg: LDO19 {
373                                 regulator-name = "VDDA_1.8V_COMP";
374                                 regulator-min-microvolt = <1800000>;
375                                 regulator-max-microvolt = <1800000>;
376                                 regulator-always-on;
377                         };
378
379                         ldo20_reg: LDO20 {
380                                 regulator-name = "VCC_2.8V_AP";
381                                 regulator-min-microvolt = <2800000>;
382                                 regulator-max-microvolt = <2800000>;
383                                 regulator-always-on;
384                         };
385
386                         ldo21_reg: LDO21 {
387                                 regulator-name = "VT_CAM_1.8V";
388                                 regulator-min-microvolt = <1800000>;
389                                 regulator-max-microvolt = <1800000>;
390                         };
391
392                         ldo22_reg: LDO22 {
393                                 regulator-name = "CAM_IO_1.8V_AP";
394                                 regulator-min-microvolt = <1800000>;
395                                 regulator-max-microvolt = <1800000>;
396                         };
397
398                         ldo23_reg: LDO23 {
399                                 regulator-name = "CAM_SEN_CORE_1.2V_AP";
400                                 regulator-min-microvolt = <1050000>;
401                                 regulator-max-microvolt = <1200000>;
402                         };
403
404                         ldo24_reg: LDO24 {
405                                 regulator-name = "VT_CAM_1.2V";
406                                 regulator-min-microvolt = <1200000>;
407                                 regulator-max-microvolt = <1200000>;
408                         };
409
410                         ldo25_reg: LDO25 {
411                                 regulator-name = "CAM_SEN_A2.8V_AP";
412                                 regulator-min-microvolt = <2800000>;
413                                 regulator-max-microvolt = <2800000>;
414                         };
415
416                         ldo26_reg: LDO26 {
417                                 regulator-name = "CAM_AF_2.8V_AP";
418                                 regulator-min-microvolt = <2800000>;
419                                 regulator-max-microvolt = <2800000>;
420                         };
421
422                         ldo27_reg: LDO27 {
423                                 regulator-name = "VCC_3.0V_LCD_AP";
424                                 regulator-min-microvolt = <3000000>;
425                                 regulator-max-microvolt = <3000000>;
426                         };
427
428                         ldo28_reg: LDO28 {
429                                 regulator-name = "VCC_1.8V_LCD_AP";
430                                 regulator-min-microvolt = <1800000>;
431                                 regulator-max-microvolt = <1800000>;
432                         };
433
434                         ldo29_reg: LDO29 {
435                                 regulator-name = "VT_CAM_2.8V";
436                                 regulator-min-microvolt = <3000000>;
437                                 regulator-max-microvolt = <3000000>;
438                         };
439
440                         ldo30_reg: LDO30 {
441                                 regulator-name = "TSP_AVDD_3.3V_AP";
442                                 regulator-min-microvolt = <3300000>;
443                                 regulator-max-microvolt = <3300000>;
444                         };
445
446                         ldo31_reg: LDO31 {
447                                 regulator-name = "TSP_VDD_1.85V_AP";
448                                 regulator-min-microvolt = <1850000>;
449                                 regulator-max-microvolt = <1850000>;
450                         };
451
452                         ldo32_reg: LDO32 {
453                                 regulator-name = "VTOUCH_1.8V_AP";
454                                 regulator-min-microvolt = <1800000>;
455                                 regulator-max-microvolt = <1800000>;
456                         };
457
458                         ldo33_reg: LDO33 {
459                                 regulator-name = "VTOUCH_LED_3.3V";
460                                 regulator-min-microvolt = <2500000>;
461                                 regulator-max-microvolt = <3300000>;
462                                 regulator-ramp-delay = <12500>;
463                         };
464
465                         ldo34_reg: LDO34 {
466                                 regulator-name = "VCC_1.8V_MHL_AP";
467                                 regulator-min-microvolt = <1000000>;
468                                 regulator-max-microvolt = <2100000>;
469                         };
470
471                         ldo35_reg: LDO35 {
472                                 regulator-name = "OIS_VM_2.8V";
473                                 regulator-min-microvolt = <1800000>;
474                                 regulator-max-microvolt = <2800000>;
475                         };
476
477                         ldo36_reg: LDO36 {
478                                 regulator-name = "VSIL_1.0V";
479                                 regulator-min-microvolt = <1000000>;
480                                 regulator-max-microvolt = <1000000>;
481                         };
482
483                         ldo37_reg: LDO37 {
484                                 regulator-name = "VF_1.8V";
485                                 regulator-min-microvolt = <1800000>;
486                                 regulator-max-microvolt = <1800000>;
487                         };
488
489                         ldo38_reg: LDO38 {
490                                 regulator-name = "VCC_3.0V_MOTOR_AP";
491                                 regulator-min-microvolt = <3000000>;
492                                 regulator-max-microvolt = <3000000>;
493                         };
494
495                         ldo39_reg: LDO39 {
496                                 regulator-name = "V_HRM_1.8V";
497                                 regulator-min-microvolt = <1800000>;
498                                 regulator-max-microvolt = <1800000>;
499                         };
500
501                         ldo40_reg: LDO40 {
502                                 regulator-name = "V_HRM_3.3V";
503                                 regulator-min-microvolt = <3300000>;
504                                 regulator-max-microvolt = <3300000>;
505                         };
506
507                         buck1_reg: BUCK1 {
508                                 regulator-name = "VDD_MIF_0.9V_AP";
509                                 regulator-min-microvolt = <600000>;
510                                 regulator-max-microvolt = <1500000>;
511                                 regulator-always-on;
512                                 regulator-state-mem {
513                                         regulator-off-in-suspend;
514                                 };
515                         };
516
517                         buck2_reg: BUCK2 {
518                                 regulator-name = "VDD_EGL_1.0V_AP";
519                                 regulator-min-microvolt = <900000>;
520                                 regulator-max-microvolt = <1300000>;
521                                 regulator-always-on;
522                                 regulator-state-mem {
523                                         regulator-off-in-suspend;
524                                 };
525                         };
526
527                         buck3_reg: BUCK3 {
528                                 regulator-name = "VDD_KFC_1.0V_AP";
529                                 regulator-min-microvolt = <800000>;
530                                 regulator-max-microvolt = <1200000>;
531                                 regulator-always-on;
532                                 regulator-state-mem {
533                                         regulator-off-in-suspend;
534                                 };
535                         };
536
537                         buck4_reg: BUCK4 {
538                                 regulator-name = "VDD_INT_0.95V_AP";
539                                 regulator-min-microvolt = <600000>;
540                                 regulator-max-microvolt = <1500000>;
541                                 regulator-always-on;
542                                 regulator-state-mem {
543                                         regulator-off-in-suspend;
544                                 };
545                         };
546
547                         buck5_reg: BUCK5 {
548                                 regulator-name = "VDD_DISP_CAM0_0.9V_AP";
549                                 regulator-min-microvolt = <600000>;
550                                 regulator-max-microvolt = <1500000>;
551                                 regulator-always-on;
552                                 regulator-state-mem {
553                                         regulator-off-in-suspend;
554                                 };
555                         };
556
557                         buck6_reg: BUCK6 {
558                                 regulator-name = "VDD_G3D_0.9V_AP";
559                                 regulator-min-microvolt = <600000>;
560                                 regulator-max-microvolt = <1500000>;
561                                 regulator-always-on;
562                                 regulator-state-mem {
563                                         regulator-off-in-suspend;
564                                 };
565                         };
566
567                         buck7_reg: BUCK7 {
568                                 regulator-name = "VDD_MEM1_1.2V_AP";
569                                 regulator-min-microvolt = <1200000>;
570                                 regulator-max-microvolt = <1200000>;
571                                 regulator-always-on;
572                         };
573
574                         buck8_reg: BUCK8 {
575                                 regulator-name = "VDD_LLDO_1.35V_AP";
576                                 regulator-min-microvolt = <1350000>;
577                                 regulator-max-microvolt = <3300000>;
578                                 regulator-always-on;
579                         };
580
581                         buck9_reg: BUCK9 {
582                                 regulator-name = "VDD_MLDO_2.0V_AP";
583                                 regulator-min-microvolt = <1350000>;
584                                 regulator-max-microvolt = <3300000>;
585                                 regulator-always-on;
586                         };
587
588                         buck10_reg: BUCK10 {
589                                 regulator-name = "vdd_mem2";
590                                 regulator-min-microvolt = <550000>;
591                                 regulator-max-microvolt = <1500000>;
592                                 regulator-always-on;
593                         };
594                 };
595         };
596 };
597
598 &hsi2c_8 {
599         status = "okay";
600
601         max77843@66 {
602                 compatible = "maxim,max77843";
603                 interrupt-parent = <&gpa1>;
604                 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
605                 reg = <0x66>;
606
607                 muic: max77843-muic {
608                         compatible = "maxim,max77843-muic";
609                 };
610
611                 regulators {
612                         compatible = "maxim,max77843-regulator";
613                         safeout1_reg: SAFEOUT1 {
614                                 regulator-name = "SAFEOUT1";
615                                 regulator-min-microvolt = <3300000>;
616                                 regulator-max-microvolt = <4950000>;
617                         };
618
619                         safeout2_reg: SAFEOUT2 {
620                                 regulator-name = "SAFEOUT2";
621                                 regulator-min-microvolt = <3300000>;
622                                 regulator-max-microvolt = <4950000>;
623                         };
624
625                         charger_reg: CHARGER {
626                                 regulator-name = "CHARGER";
627                                 regulator-min-microamp = <100000>;
628                                 regulator-max-microamp = <3150000>;
629                         };
630                 };
631
632                 haptic: max77843-haptic {
633                         compatible = "maxim,max77843-haptic";
634                         haptic-supply = <&ldo38_reg>;
635                         pwms = <&pwm 0 33670 0>;
636                         pwm-names = "haptic";
637                 };
638         };
639 };
640
641 &i2s0 {
642         status = "okay";
643 };
644
645 &mshc_0 {
646         status = "okay";
647         num-slots = <1>;
648         non-removable;
649         card-detect-delay = <200>;
650         samsung,dw-mshc-ciu-div = <3>;
651         samsung,dw-mshc-sdr-timing = <0 4>;
652         samsung,dw-mshc-ddr-timing = <0 2>;
653         samsung,dw-mshc-hs400-timing = <0 3>;
654         samsung,read-strobe-delay = <90>;
655         fifo-depth = <0x80>;
656         pinctrl-names = "default";
657         pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_qrdy &sd0_bus1 &sd0_bus4
658                         &sd0_bus8 &sd0_rdqs>;
659         bus-width = <8>;
660         assigned-clocks = <&cmu_top CLK_SCLK_MMC0_FSYS>;
661         assigned-clock-rates = <800000000>;
662 };
663
664 &pinctrl_alive {
665         pinctrl-names = "default";
666         pinctrl-0 = <&initial_alive>;
667
668         initial_alive: initial-state {
669                 PIN(IN, gpa0-0, DOWN, LV1);
670                 PIN(IN, gpa0-1, NONE, LV1);
671                 PIN(IN, gpa0-2, DOWN, LV1);
672                 PIN(IN, gpa0-3, NONE, LV1);
673                 PIN(IN, gpa0-4, NONE, LV1);
674                 PIN(IN, gpa0-5, DOWN, LV1);
675                 PIN(IN, gpa0-6, NONE, LV1);
676                 PIN(IN, gpa0-7, NONE, LV1);
677
678                 PIN(IN, gpa1-0, UP, LV1);
679                 PIN(IN, gpa1-1, NONE, LV1);
680                 PIN(IN, gpa1-2, NONE, LV1);
681                 PIN(IN, gpa1-3, DOWN, LV1);
682                 PIN(IN, gpa1-4, DOWN, LV1);
683                 PIN(IN, gpa1-5, NONE, LV1);
684                 PIN(IN, gpa1-6, NONE, LV1);
685                 PIN(IN, gpa1-7, NONE, LV1);
686
687                 PIN(IN, gpa2-0, NONE, LV1);
688                 PIN(IN, gpa2-1, NONE, LV1);
689                 PIN(IN, gpa2-2, NONE, LV1);
690                 PIN(IN, gpa2-3, DOWN, LV1);
691                 PIN(IN, gpa2-4, NONE, LV1);
692                 PIN(IN, gpa2-5, DOWN, LV1);
693                 PIN(IN, gpa2-6, DOWN, LV1);
694                 PIN(IN, gpa2-7, NONE, LV1);
695
696                 PIN(IN, gpa3-0, DOWN, LV1);
697                 PIN(IN, gpa3-1, DOWN, LV1);
698                 PIN(IN, gpa3-2, NONE, LV1);
699                 PIN(IN, gpa3-3, DOWN, LV1);
700                 PIN(IN, gpa3-4, NONE, LV1);
701                 PIN(IN, gpa3-5, DOWN, LV1);
702                 PIN(IN, gpa3-6, DOWN, LV1);
703                 PIN(IN, gpa3-7, DOWN, LV1);
704
705                 PIN(IN, gpf1-0, NONE, LV1);
706                 PIN(IN, gpf1-1, NONE, LV1);
707                 PIN(IN, gpf1-2, DOWN, LV1);
708                 PIN(IN, gpf1-4, UP, LV1);
709                 PIN(OUT, gpf1-5, NONE, LV1);
710                 PIN(IN, gpf1-6, DOWN, LV1);
711                 PIN(IN, gpf1-7, DOWN, LV1);
712
713                 PIN(IN, gpf2-0, DOWN, LV1);
714                 PIN(IN, gpf2-1, DOWN, LV1);
715                 PIN(IN, gpf2-2, DOWN, LV1);
716                 PIN(IN, gpf2-3, DOWN, LV1);
717
718                 PIN(IN, gpf3-0, DOWN, LV1);
719                 PIN(IN, gpf3-1, DOWN, LV1);
720                 PIN(IN, gpf3-2, NONE, LV1);
721                 PIN(IN, gpf3-3, DOWN, LV1);
722
723                 PIN(IN, gpf4-0, DOWN, LV1);
724                 PIN(IN, gpf4-1, DOWN, LV1);
725                 PIN(IN, gpf4-2, DOWN, LV1);
726                 PIN(IN, gpf4-3, DOWN, LV1);
727                 PIN(IN, gpf4-4, DOWN, LV1);
728                 PIN(IN, gpf4-5, DOWN, LV1);
729                 PIN(IN, gpf4-6, DOWN, LV1);
730                 PIN(IN, gpf4-7, DOWN, LV1);
731
732                 PIN(IN, gpf5-0, DOWN, LV1);
733                 PIN(IN, gpf5-1, DOWN, LV1);
734                 PIN(IN, gpf5-2, DOWN, LV1);
735                 PIN(IN, gpf5-3, DOWN, LV1);
736                 PIN(OUT, gpf5-4, NONE, LV1);
737                 PIN(IN, gpf5-5, DOWN, LV1);
738                 PIN(IN, gpf5-6, DOWN, LV1);
739                 PIN(IN, gpf5-7, DOWN, LV1);
740         };
741
742         te_irq: te_irq {
743                 samsung,pins = "gpf1-3";
744                 samsung,pin-function = <0xf>;
745         };
746 };
747
748 &pinctrl_cpif {
749         pinctrl-names = "default";
750         pinctrl-0 = <&initial_cpif>;
751
752         initial_cpif: initial-state {
753                 PIN(IN, gpv6-0, DOWN, LV1);
754                 PIN(IN, gpv6-1, DOWN, LV1);
755         };
756 };
757
758 &pinctrl_ese {
759         pinctrl-names = "default";
760         pinctrl-0 = <&initial_ese>;
761
762         initial_ese: initial-state {
763                 PIN(IN, gpj2-0, DOWN, LV1);
764                 PIN(IN, gpj2-1, DOWN, LV1);
765                 PIN(IN, gpj2-2, DOWN, LV1);
766         };
767 };
768
769 &pinctrl_fsys {
770         pinctrl-names = "default";
771         pinctrl-0 = <&initial_fsys>;
772
773         initial_fsys: initial-state {
774                 PIN(IN, gpr3-0, NONE, LV1);
775                 PIN(IN, gpr3-1, DOWN, LV1);
776                 PIN(IN, gpr3-2, DOWN, LV1);
777                 PIN(IN, gpr3-3, DOWN, LV1);
778                 PIN(IN, gpr3-7, NONE, LV1);
779         };
780 };
781
782 &pinctrl_imem {
783         pinctrl-names = "default";
784         pinctrl-0 = <&initial_imem>;
785
786         initial_imem: initial-state {
787                 PIN(IN, gpf0-0, UP, LV1);
788                 PIN(IN, gpf0-1, UP, LV1);
789                 PIN(IN, gpf0-2, DOWN, LV1);
790                 PIN(IN, gpf0-3, UP, LV1);
791                 PIN(IN, gpf0-4, DOWN, LV1);
792                 PIN(IN, gpf0-5, NONE, LV1);
793                 PIN(IN, gpf0-6, DOWN, LV1);
794                 PIN(IN, gpf0-7, UP, LV1);
795         };
796 };
797
798 &pinctrl_nfc {
799         pinctrl-names = "default";
800         pinctrl-0 = <&initial_nfc>;
801
802         initial_nfc: initial-state {
803                 PIN(IN, gpj0-2, DOWN, LV1);
804         };
805 };
806
807 &pinctrl_peric {
808         pinctrl-names = "default";
809         pinctrl-0 = <&initial_peric>;
810
811         initial_peric: initial-state {
812                 PIN(IN, gpv7-0, DOWN, LV1);
813                 PIN(IN, gpv7-1, DOWN, LV1);
814                 PIN(IN, gpv7-2, NONE, LV1);
815                 PIN(IN, gpv7-3, DOWN, LV1);
816                 PIN(IN, gpv7-4, DOWN, LV1);
817                 PIN(IN, gpv7-5, DOWN, LV1);
818
819                 PIN(IN, gpb0-4, DOWN, LV1);
820
821                 PIN(IN, gpc0-2, DOWN, LV1);
822                 PIN(IN, gpc0-5, DOWN, LV1);
823                 PIN(IN, gpc0-7, DOWN, LV1);
824
825                 PIN(IN, gpc1-1, DOWN, LV1);
826
827                 PIN(IN, gpc3-4, NONE, LV1);
828                 PIN(IN, gpc3-5, NONE, LV1);
829                 PIN(IN, gpc3-6, NONE, LV1);
830                 PIN(IN, gpc3-7, NONE, LV1);
831
832                 PIN(OUT, gpg0-0, NONE, LV1);
833                 PIN(FUNC1, gpg0-1, DOWN, LV1);
834
835                 PIN(IN, gpd2-5, DOWN, LV1);
836
837                 PIN(IN, gpd4-0, NONE, LV1);
838                 PIN(IN, gpd4-1, DOWN, LV1);
839                 PIN(IN, gpd4-2, DOWN, LV1);
840                 PIN(IN, gpd4-3, DOWN, LV1);
841                 PIN(IN, gpd4-4, DOWN, LV1);
842
843                 PIN(IN, gpd6-3, DOWN, LV1);
844
845                 PIN(IN, gpd8-1, UP, LV1);
846
847                 PIN(IN, gpg1-0, DOWN, LV1);
848                 PIN(IN, gpg1-1, DOWN, LV1);
849                 PIN(IN, gpg1-2, DOWN, LV1);
850                 PIN(IN, gpg1-3, DOWN, LV1);
851                 PIN(IN, gpg1-4, DOWN, LV1);
852
853                 PIN(IN, gpg2-0, DOWN, LV1);
854                 PIN(IN, gpg2-1, DOWN, LV1);
855
856                 PIN(IN, gpg3-0, DOWN, LV1);
857                 PIN(IN, gpg3-1, DOWN, LV1);
858                 PIN(IN, gpg3-5, DOWN, LV1);
859                 PIN(IN, gpg3-7, DOWN, LV1);
860         };
861 };
862
863 &pinctrl_touch {
864         pinctrl-names = "default";
865         pinctrl-0 = <&initial_touch>;
866
867         initial_touch: initial-state {
868                 PIN(IN, gpj1-2, DOWN, LV1);
869         };
870 };
871
872 &pwm {
873         pinctrl-0 = <&pwm0_out>;
874         pinctrl-names = "default";
875         status = "okay";
876 };
877
878 &mic {
879         status = "okay";
880
881         i80-if-timings {
882         };
883 };
884
885 &serial_1 {
886         status = "okay";
887 };
888
889 &serial_3 {
890         assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>;
891         assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>;
892         status = "okay";
893 };
894
895 &spi_1 {
896         cs-gpios = <&gpd6 3 GPIO_ACTIVE_HIGH>;
897         status = "okay";
898
899         wm5110: wm5110-codec@0 {
900                 compatible = "wlf,wm5110";
901                 reg = <0x0>;
902                 spi-max-frequency = <20000000>;
903                 interrupt-parent = <&gpa0>;
904                 interrupts = <4 IRQ_TYPE_NONE>;
905                 clocks = <&pmu_system_controller 0>,
906                         <&s2mps13_osc S2MPS11_CLK_BT>;
907                 clock-names = "mclk1", "mclk2";
908
909                 gpio-controller;
910                 #gpio-cells = <2>;
911
912                 wlf,micd-detect-debounce = <300>;
913                 wlf,micd-bias-start-time = <0x1>;
914                 wlf,micd-rate = <0x7>;
915                 wlf,micd-dbtime = <0x1>;
916                 wlf,micd-force-micbias;
917                 wlf,micd-configs = <0x0 1 0>;
918                 wlf,hpdet-channel = <1>;
919                 wlf,gpsw = <0x1>;
920                 wlf,inmode = <2 0 2 0>;
921
922                 wlf,reset = <&gpc0 7 GPIO_ACTIVE_HIGH>;
923                 wlf,ldoena = <&gpf0 0 GPIO_ACTIVE_HIGH>;
924
925                 /* core supplies */
926                 AVDD-supply = <&ldo18_reg>;
927                 DBVDD1-supply = <&ldo18_reg>;
928                 CPVDD-supply = <&ldo18_reg>;
929                 DBVDD2-supply = <&ldo18_reg>;
930                 DBVDD3-supply = <&ldo18_reg>;
931
932                 controller-data {
933                         samsung,spi-feedback-delay = <0>;
934                 };
935         };
936 };
937
938 &timer {
939         clock-frequency = <24000000>;
940 };
941
942 &tmu_atlas0 {
943         vtmu-supply = <&ldo3_reg>;
944         status = "okay";
945 };
946
947 &tmu_apollo {
948         vtmu-supply = <&ldo3_reg>;
949         status = "okay";
950 };
951
952 &tmu_g3d {
953         vtmu-supply = <&ldo3_reg>;
954         status = "okay";
955 };
956
957 &usbdrd30 {
958         vdd33-supply = <&ldo10_reg>;
959         vdd10-supply = <&ldo6_reg>;
960         status = "okay";
961 };
962
963 &usbdrd_dwc3_0 {
964         dr_mode = "otg";
965 };
966
967 &usbdrd30_phy {
968         vbus-supply = <&safeout1_reg>;
969         status = "okay";
970 };
971
972 &xxti {
973         clock-frequency = <24000000>;
974 };