blob: d8bf4afb8bd9bb8cfa4cdc4fe11eb34f3a45ba72 [file] [log] [blame]
Tomasz Figa15dfdfa2013-07-24 13:41:45 +09001/*
2 * Samsung's Exynos4412 based Trats 2 board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 *
7 * Device tree source file for Samsung's Trats 2 board which is based on
8 * Samsung's Exynos4412 SoC.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13*/
14
15/dts-v1/;
16#include "exynos4412.dtsi"
Krzysztof Kozlowski7eec1262014-09-24 01:22:49 +090017#include <dt-bindings/gpio/gpio.h>
Krzysztof Kozlowskie8614292015-02-04 07:43:44 +090018#include <dt-bindings/interrupt-controller/irq.h>
Krzysztof Kozlowskice9940a2015-05-02 14:40:08 +090019#include <dt-bindings/clock/maxim,max77686.h>
Tomasz Figa15dfdfa2013-07-24 13:41:45 +090020
21/ {
22 model = "Samsung Trats 2 based on Exynos4412";
Sachin Kamat8bdb31b2014-03-21 02:17:22 +090023 compatible = "samsung,trats2", "samsung,exynos4412", "samsung,exynos4";
Tomasz Figa15dfdfa2013-07-24 13:41:45 +090024
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +090025 aliases {
Tomasz Stanislawski6af2ba92014-05-09 05:58:59 +090026 i2c9 = &i2c_ak8975;
Beomho Seo85cb4e02014-05-22 07:56:53 +090027 i2c10 = &i2c_cm36651;
Krzysztof Kozlowski7eec1262014-09-24 01:22:49 +090028 i2c11 = &i2c_max77693;
Krzysztof Kozlowskie8614292015-02-04 07:43:44 +090029 i2c12 = &i2c_max77693_fuel;
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +090030 };
31
Tomasz Figa15dfdfa2013-07-24 13:41:45 +090032 memory {
33 reg = <0x40000000 0x40000000>;
34 };
35
36 chosen {
37 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
Tomasz Figa62d38092015-01-23 14:47:42 +010038 stdout-path = &serial_2;
Tomasz Figa15dfdfa2013-07-24 13:41:45 +090039 };
40
41 firmware@0204F000 {
42 compatible = "samsung,secure-firmware";
43 reg = <0x0204F000 0x1000>;
44 };
45
46 fixed-rate-clocks {
47 xxti {
48 compatible = "samsung,clock-xxti", "fixed-clock";
49 clock-frequency = <0>;
50 };
51
52 xusbxti {
53 compatible = "samsung,clock-xusbxti", "fixed-clock";
54 clock-frequency = <24000000>;
55 };
56 };
57
58 regulators {
59 compatible = "simple-bus";
60 #address-cells = <1>;
61 #size-cells = <0>;
62
Sylwester Nawrockib4fec642013-08-06 02:49:44 +090063 cam_io_reg: voltage-regulator-1 {
64 compatible = "regulator-fixed";
65 regulator-name = "CAM_SENSOR_A";
66 regulator-min-microvolt = <2800000>;
67 regulator-max-microvolt = <2800000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090068 gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>;
Sylwester Nawrockib4fec642013-08-06 02:49:44 +090069 enable-active-high;
70 };
71
Andrzej Hajda420ae842014-03-28 12:52:45 +010072 lcd_vdd3_reg: voltage-regulator-2 {
73 compatible = "regulator-fixed";
74 regulator-name = "LCD_VDD_2.2V";
75 regulator-min-microvolt = <2200000>;
76 regulator-max-microvolt = <2200000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090077 gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
Andrzej Hajda420ae842014-03-28 12:52:45 +010078 enable-active-high;
79 };
80
Sylwester Nawrocki4cb37862014-05-09 06:01:40 +090081 cam_af_reg: voltage-regulator-3 {
82 compatible = "regulator-fixed";
83 regulator-name = "CAM_AF";
84 regulator-min-microvolt = <2800000>;
85 regulator-max-microvolt = <2800000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090086 gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>;
Sylwester Nawrocki4cb37862014-05-09 06:01:40 +090087 enable-active-high;
88 };
89
Beomho Seo85cb4e02014-05-22 07:56:53 +090090 ps_als_reg: voltage-regulator-5 {
91 compatible = "regulator-fixed";
92 regulator-name = "LED_A_3.0V";
93 regulator-min-microvolt = <3000000>;
94 regulator-max-microvolt = <3000000>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090095 gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>;
Beomho Seo85cb4e02014-05-22 07:56:53 +090096 enable-active-high;
97 };
Tomasz Figa15dfdfa2013-07-24 13:41:45 +090098 };
99
100 gpio-keys {
101 compatible = "gpio-keys";
102
103 key-down {
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900104 gpios = <&gpx3 3 GPIO_ACTIVE_LOW>;
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900105 linux,code = <114>;
106 label = "volume down";
107 debounce-interval = <10>;
108 };
109
110 key-up {
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900111 gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900112 linux,code = <115>;
113 label = "volume up";
114 debounce-interval = <10>;
115 };
116
117 key-power {
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900118 gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900119 linux,code = <116>;
120 label = "power";
121 debounce-interval = <10>;
122 gpio-key,wakeup;
123 };
Beomho Seo172ff6c2014-05-22 07:57:39 +0900124
125 key-ok {
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900126 gpios = <&gpx0 1 GPIO_ACTIVE_LOW>;
Beomho Seo172ff6c2014-05-22 07:57:39 +0900127 linux,code = <139>;
128 label = "ok";
129 debounce-inteval = <10>;
130 gpio-key,wakeup;
131 };
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900132 };
133
Krzysztof Kozlowski7eec1262014-09-24 01:22:49 +0900134 i2c_max77693: i2c-gpio-1 {
135 compatible = "i2c-gpio";
136 gpios = <&gpm2 0 GPIO_ACTIVE_HIGH>, <&gpm2 1 GPIO_ACTIVE_HIGH>;
137 i2c-gpio,delay-us = <2>;
138 #address-cells = <1>;
139 #size-cells = <0>;
140 status = "okay";
141
142 max77693@66 {
143 compatible = "maxim,max77693";
144 interrupt-parent = <&gpx1>;
145 interrupts = <5 2>;
146 reg = <0x66>;
147
148 regulators {
149 esafeout1_reg: ESAFEOUT1@1 {
150 regulator-name = "ESAFEOUT1";
151 };
152 esafeout2_reg: ESAFEOUT2@2 {
153 regulator-name = "ESAFEOUT2";
154 };
155 charger_reg: CHARGER@0 {
156 regulator-name = "CHARGER";
157 regulator-min-microamp = <60000>;
158 regulator-max-microamp = <2580000>;
159 };
160 };
Jaewon Kimd9c68082014-11-22 23:19:22 +0900161
162 max77693_haptic {
163 compatible = "maxim,max77693-haptic";
164 haptic-supply = <&ldo26_reg>;
165 pwms = <&pwm 0 38022 0>;
166 };
Krzysztof Kozlowski043ef142015-02-04 07:47:39 +0900167
168 charger {
169 compatible = "maxim,max77693-charger";
170
171 maxim,constant-microvolt = <4350000>;
172 maxim,min-system-microvolt = <3600000>;
173 maxim,thermal-regulation-celsius = <100>;
174 maxim,battery-overcurrent-microamp = <3500000>;
175 maxim,charge-input-threshold-microvolt = <4300000>;
176 };
Krzysztof Kozlowski7eec1262014-09-24 01:22:49 +0900177 };
178 };
179
Krzysztof Kozlowskie8614292015-02-04 07:43:44 +0900180 i2c_max77693_fuel: i2c-gpio-3 {
181 compatible = "i2c-gpio";
182 gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>, <&gpf1 4 GPIO_ACTIVE_HIGH>;
183 i2c-gpio,delay-us = <2>;
184 #address-cells = <1>;
185 #size-cells = <0>;
186 status = "okay";
187
188 max77693-fuel-gauge@36 {
189 compatible = "maxim,max17047";
190 interrupt-parent = <&gpx2>;
191 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
192 reg = <0x36>;
Krzysztof Kozlowski82449f22015-06-07 13:21:00 +0900193
194 maxim,over-heat-temp = <700>;
195 maxim,over-volt = <4500>;
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900196 };
197 };
198
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +0900199 i2c_ak8975: i2c-gpio-0 {
200 compatible = "i2c-gpio";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900201 gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>;
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +0900202 i2c-gpio,delay-us = <2>;
203 #address-cells = <1>;
204 #size-cells = <0>;
205 status = "okay";
206
207 ak8975@0c {
Beomho Seo30cc7982014-05-20 01:12:50 +0900208 compatible = "asahi-kasei,ak8975";
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +0900209 reg = <0x0c>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900210 gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>;
Jacek Anaszewski9f1eaef2013-08-06 02:49:44 +0900211 };
212 };
Sylwester Nawrockib4fec642013-08-06 02:49:44 +0900213
Beomho Seo85cb4e02014-05-22 07:56:53 +0900214 i2c_cm36651: i2c-gpio-2 {
215 compatible = "i2c-gpio";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900216 gpios = <&gpf0 0 GPIO_ACTIVE_LOW>, <&gpf0 1 GPIO_ACTIVE_LOW>;
Beomho Seo85cb4e02014-05-22 07:56:53 +0900217 i2c-gpio,delay-us = <2>;
218 #address-cells = <1>;
219 #size-cells = <0>;
220
221 cm36651@18 {
222 compatible = "capella,cm36651";
223 reg = <0x18>;
224 interrupt-parent = <&gpx0>;
225 interrupts = <2 2>;
226 vled-supply = <&ps_als_reg>;
227 };
228 };
229
Sylwester Nawrocki4cb37862014-05-09 06:01:40 +0900230 camera: camera {
231 pinctrl-0 = <&cam_port_a_clk_active &cam_port_b_clk_active>;
Sylwester Nawrockib4fec642013-08-06 02:49:44 +0900232 pinctrl-names = "default";
233 status = "okay";
Sylwester Nawrocki0357a442014-11-22 23:13:03 +0900234 assigned-clocks = <&clock CLK_MOUT_CAM0>,
235 <&clock CLK_MOUT_CAM1>;
Sylwester Nawrockicfe3b892015-02-04 07:49:49 +0900236 assigned-clock-parents = <&clock CLK_XUSBXTI>,
237 <&clock CLK_XUSBXTI>;
Sylwester Nawrockib4fec642013-08-06 02:49:44 +0900238
Sylwester Nawrockib4fec642013-08-06 02:49:44 +0900239
Inha Song440e5ae2015-02-04 07:51:38 +0900240 };
241
242 sound {
243 compatible = "samsung,trats2-audio";
244 samsung,i2s-controller = <&i2s0>;
245 samsung,model = "Trats2";
246 samsung,audio-codec = <&wm1811>;
247 samsung,audio-routing =
248 "SPK", "SPKOUTLN",
249 "SPK", "SPKOUTLP",
250 "SPK", "SPKOUTRN",
251 "SPK", "SPKOUTRP";
252 };
253
Chanwoo Choi4f423782014-03-18 06:25:59 +0900254 thermistor-ap@0 {
255 compatible = "ntc,ncp15wb473";
256 pullup-uv = <1800000>; /* VCC_1.8V_AP */
257 pullup-ohm = <100000>; /* 100K */
258 pulldown-ohm = <100000>; /* 100K */
259 io-channels = <&adc 1>; /* AP temperature */
260 };
261
262 thermistor-battery@1 {
263 compatible = "ntc,ncp15wb473";
264 pullup-uv = <1800000>; /* VCC_1.8V_AP */
265 pullup-ohm = <100000>; /* 100K */
266 pulldown-ohm = <100000>; /* 100K */
267 io-channels = <&adc 2>; /* Battery temperature */
268 };
Lukasz Majewskibf4a0be2015-01-30 08:26:02 +0900269
270 thermal-zones {
271 cpu_thermal: cpu-thermal {
272 cooling-maps {
273 map0 {
274 /* Corresponds to 800MHz at freq_table */
275 cooling-device = <&cpu0 7 7>;
276 };
277 map1 {
278 /* Corresponds to 200MHz at freq_table */
279 cooling-device = <&cpu0 13 13>;
280 };
281 };
282 };
283 };
Tomasz Figa15dfdfa2013-07-24 13:41:45 +0900284};
Tomasz Figa09918a92014-09-24 01:20:03 +0900285
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200286&adc {
287 vdd-supply = <&ldo3_reg>;
288 status = "okay";
289};
290
Bartlomiej Zolnierkiewiczf4499742015-08-12 07:38:45 +0900291&cpu0 {
292 cpu0-supply = <&buck2_reg>;
293};
294
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200295&csis_0 {
296 status = "okay";
297 vddcore-supply = <&ldo8_reg>;
298 vddio-supply = <&ldo10_reg>;
299 assigned-clocks = <&clock CLK_MOUT_CSIS0>,
300 <&clock CLK_SCLK_CSIS0>;
301 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
302 assigned-clock-rates = <0>, <176000000>;
303
304 /* Camera C (3) MIPI CSI-2 (CSIS0) */
305 port@3 {
306 reg = <3>;
307 csis0_ep: endpoint {
308 remote-endpoint = <&s5c73m3_ep>;
309 data-lanes = <1 2 3 4>;
310 samsung,csis-hs-settle = <12>;
311 };
312 };
313};
314
315&csis_1 {
316 status = "okay";
317 vddcore-supply = <&ldo8_reg>;
318 vddio-supply = <&ldo10_reg>;
319 assigned-clocks = <&clock CLK_MOUT_CSIS1>,
320 <&clock CLK_SCLK_CSIS1>;
321 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
322 assigned-clock-rates = <0>, <176000000>;
323
324 /* Camera D (4) MIPI CSI-2 (CSIS1) */
325 port@4 {
326 reg = <4>;
327 csis1_ep: endpoint {
328 remote-endpoint = <&is_s5k6a3_ep>;
329 data-lanes = <1>;
330 samsung,csis-hs-settle = <18>;
331 samsung,csis-wclk;
332 };
333 };
334};
335
336&dsi_0 {
337 vddcore-supply = <&ldo8_reg>;
338 vddio-supply = <&ldo10_reg>;
339 samsung,pll-clock-frequency = <24000000>;
340 status = "okay";
341
342 ports {
343 #address-cells = <1>;
344 #size-cells = <0>;
345
346 port@1 {
347 reg = <1>;
348
349 dsi_out: endpoint {
350 remote-endpoint = <&dsi_in>;
351 samsung,burst-clock-frequency = <500000000>;
352 samsung,esc-clock-frequency = <20000000>;
353 };
354 };
355 };
356
357 panel@0 {
358 compatible = "samsung,s6e8aa0";
359 reg = <0>;
360 vdd3-supply = <&lcd_vdd3_reg>;
361 vci-supply = <&ldo25_reg>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900362 reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200363 power-on-delay= <50>;
364 reset-delay = <100>;
365 init-delay = <100>;
366 flip-horizontal;
367 flip-vertical;
368 panel-width-mm = <58>;
369 panel-height-mm = <103>;
370
371 display-timings {
372 timing-0 {
373 clock-frequency = <57153600>;
374 hactive = <720>;
375 vactive = <1280>;
376 hfront-porch = <5>;
377 hback-porch = <5>;
378 hsync-len = <5>;
379 vfront-porch = <13>;
380 vback-porch = <1>;
381 vsync-len = <2>;
382 };
383 };
384
385 port {
386 dsi_in: endpoint {
387 remote-endpoint = <&dsi_out>;
388 };
389 };
390 };
391};
392
393&exynos_usbphy {
394 status = "okay";
395};
396
397&fimc_0 {
398 status = "okay";
399 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
400 <&clock CLK_SCLK_FIMC0>;
401 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
402 assigned-clock-rates = <0>, <176000000>;
403};
404
405&fimc_1 {
406 status = "okay";
407 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
408 <&clock CLK_SCLK_FIMC1>;
409 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
410 assigned-clock-rates = <0>, <176000000>;
411};
412
413&fimc_2 {
414 status = "okay";
415 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
416 <&clock CLK_SCLK_FIMC2>;
417 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
418 assigned-clock-rates = <0>, <176000000>;
419};
420
421&fimc_3 {
422 status = "okay";
423 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
424 <&clock CLK_SCLK_FIMC3>;
425 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
426 assigned-clock-rates = <0>, <176000000>;
427};
428
429&fimc_is {
430 pinctrl-0 = <&fimc_is_uart>;
431 pinctrl-names = "default";
432 status = "okay";
433
434 i2c1_isp: i2c-isp@12140000 {
435 pinctrl-0 = <&fimc_is_i2c1>;
436 pinctrl-names = "default";
437
438 s5k6a3@10 {
439 compatible = "samsung,s5k6a3";
440 reg = <0x10>;
441 svdda-supply = <&cam_io_reg>;
442 svddio-supply = <&ldo19_reg>;
443 afvdd-supply = <&ldo19_reg>;
444 clock-frequency = <24000000>;
445 /* CAM_B_CLKOUT */
446 clocks = <&camera 1>;
447 clock-names = "extclk";
448 samsung,camclk-out = <1>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900449 gpios = <&gpm1 6 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200450
451 port {
452 is_s5k6a3_ep: endpoint {
453 remote-endpoint = <&csis1_ep>;
454 data-lanes = <1>;
455 };
456 };
457 };
458 };
459};
460
461&fimc_lite_0 {
462 status = "okay";
463};
464
465&fimc_lite_1 {
466 status = "okay";
467};
468
469&fimd {
470 status = "okay";
471};
472
473&hsotg {
474 vusb_d-supply = <&ldo15_reg>;
475 vusb_a-supply = <&ldo12_reg>;
476 dr_mode = "peripheral";
477 status = "okay";
478};
479
480&i2c_0 {
481 samsung,i2c-sda-delay = <100>;
482 samsung,i2c-slave-addr = <0x10>;
483 samsung,i2c-max-bus-freq = <400000>;
484 pinctrl-0 = <&i2c0_bus>;
485 pinctrl-names = "default";
486 status = "okay";
487
488 s5c73m3@3c {
489 compatible = "samsung,s5c73m3";
490 reg = <0x3c>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900491 standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */
492 xshutdown-gpios = <&gpf1 3 GPIO_ACTIVE_LOW>; /* ISP_RESET */
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200493 vdd-int-supply = <&buck9_reg>;
494 vddio-cis-supply = <&ldo9_reg>;
495 vdda-supply = <&ldo17_reg>;
496 vddio-host-supply = <&ldo18_reg>;
497 vdd-af-supply = <&cam_af_reg>;
498 vdd-reg-supply = <&cam_io_reg>;
499 clock-frequency = <24000000>;
500 /* CAM_A_CLKOUT */
501 clocks = <&camera 0>;
502 clock-names = "cis_extclk";
503 port {
504 s5c73m3_ep: endpoint {
505 remote-endpoint = <&csis0_ep>;
506 data-lanes = <1 2 3 4>;
507 };
508 };
509 };
510};
511
512&i2c_3 {
513 samsung,i2c-sda-delay = <100>;
514 samsung,i2c-slave-addr = <0x10>;
515 samsung,i2c-max-bus-freq = <400000>;
516 pinctrl-0 = <&i2c3_bus>;
517 pinctrl-names = "default";
518 status = "okay";
519
520 mms114-touchscreen@48 {
521 compatible = "melfas,mms114";
522 reg = <0x48>;
523 interrupt-parent = <&gpm2>;
524 interrupts = <3 2>;
525 x-size = <720>;
526 y-size = <1280>;
527 avdd-supply = <&ldo23_reg>;
528 vdd-supply = <&ldo24_reg>;
529 };
530};
531
532&i2c_4 {
533 samsung,i2c-sda-delay = <100>;
534 samsung,i2c-slave-addr = <0x10>;
535 samsung,i2c-max-bus-freq = <100000>;
536 pinctrl-0 = <&i2c4_bus>;
537 pinctrl-names = "default";
538 status = "okay";
539
540 wm1811: wm1811@1a {
541 compatible = "wlf,wm1811";
542 reg = <0x1a>;
543 clocks = <&pmu_system_controller 0>;
544 clock-names = "MCLK1";
545 DCVDD-supply = <&ldo3_reg>;
546 DBVDD1-supply = <&ldo3_reg>;
547 wlf,ldo1ena = <&gpj0 4 0>;
548 };
549};
550
551&i2c_7 {
552 samsung,i2c-sda-delay = <100>;
553 samsung,i2c-slave-addr = <0x10>;
554 samsung,i2c-max-bus-freq = <100000>;
555 pinctrl-0 = <&i2c7_bus>;
556 pinctrl-names = "default";
557 status = "okay";
558
559 max77686: max77686_pmic@09 {
560 compatible = "maxim,max77686";
561 interrupt-parent = <&gpx0>;
562 interrupts = <7 0>;
563 reg = <0x09>;
564 #clock-cells = <1>;
565
566 voltage-regulators {
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200567 ldo1_reg: LDO1 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200568 regulator-name = "VALIVE_1.0V_AP";
569 regulator-min-microvolt = <1000000>;
570 regulator-max-microvolt = <1000000>;
571 regulator-always-on;
572 };
573
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200574 ldo2_reg: LDO2 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200575 regulator-name = "VM1M2_1.2V_AP";
576 regulator-min-microvolt = <1200000>;
577 regulator-max-microvolt = <1200000>;
578 regulator-always-on;
579 regulator-state-mem {
580 regulator-on-in-suspend;
581 };
582 };
583
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200584 ldo3_reg: LDO3 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200585 regulator-name = "VCC_1.8V_AP";
586 regulator-min-microvolt = <1800000>;
587 regulator-max-microvolt = <1800000>;
588 regulator-always-on;
589 };
590
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200591 ldo4_reg: LDO4 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200592 regulator-name = "VCC_2.8V_AP";
593 regulator-min-microvolt = <2800000>;
594 regulator-max-microvolt = <2800000>;
595 regulator-always-on;
596 };
597
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200598 ldo5_reg: LDO5 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200599 regulator-name = "VCC_1.8V_IO";
600 regulator-min-microvolt = <1800000>;
601 regulator-max-microvolt = <1800000>;
602 regulator-always-on;
603 };
604
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200605 ldo6_reg: LDO6 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200606 regulator-name = "VMPLL_1.0V_AP";
607 regulator-min-microvolt = <1000000>;
608 regulator-max-microvolt = <1000000>;
609 regulator-always-on;
610 regulator-state-mem {
611 regulator-on-in-suspend;
612 };
613 };
614
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200615 ldo7_reg: LDO7 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200616 regulator-name = "VPLL_1.0V_AP";
617 regulator-min-microvolt = <1000000>;
618 regulator-max-microvolt = <1000000>;
619 regulator-always-on;
620 regulator-state-mem {
621 regulator-on-in-suspend;
622 };
623 };
624
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200625 ldo8_reg: LDO8 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200626 regulator-name = "VMIPI_1.0V";
627 regulator-min-microvolt = <1000000>;
628 regulator-max-microvolt = <1000000>;
629 regulator-state-mem {
630 regulator-off-in-suspend;
631 };
632 };
633
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200634 ldo9_reg: LDO9 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200635 regulator-name = "CAM_ISP_MIPI_1.2V";
636 regulator-min-microvolt = <1200000>;
637 regulator-max-microvolt = <1200000>;
638 };
639
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200640 ldo10_reg: LDO10 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200641 regulator-name = "VMIPI_1.8V";
642 regulator-min-microvolt = <1800000>;
643 regulator-max-microvolt = <1800000>;
644 regulator-state-mem {
645 regulator-off-in-suspend;
646 };
647 };
648
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200649 ldo11_reg: LDO11 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200650 regulator-name = "VABB1_1.95V";
651 regulator-min-microvolt = <1950000>;
652 regulator-max-microvolt = <1950000>;
653 regulator-always-on;
654 regulator-state-mem {
655 regulator-off-in-suspend;
656 };
657 };
658
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200659 ldo12_reg: LDO12 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200660 regulator-name = "VUOTG_3.0V";
661 regulator-min-microvolt = <3000000>;
662 regulator-max-microvolt = <3000000>;
663 regulator-state-mem {
664 regulator-off-in-suspend;
665 };
666 };
667
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200668 ldo13_reg: LDO13 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200669 regulator-name = "NFC_AVDD_1.8V";
670 regulator-min-microvolt = <1800000>;
671 regulator-max-microvolt = <1800000>;
672 };
673
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200674 ldo14_reg: LDO14 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200675 regulator-name = "VABB2_1.95V";
676 regulator-min-microvolt = <1950000>;
677 regulator-max-microvolt = <1950000>;
678 regulator-always-on;
679 regulator-state-mem {
680 regulator-off-in-suspend;
681 };
682 };
683
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200684 ldo15_reg: LDO15 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200685 regulator-name = "VHSIC_1.0V";
686 regulator-min-microvolt = <1000000>;
687 regulator-max-microvolt = <1000000>;
688 regulator-state-mem {
689 regulator-on-in-suspend;
690 };
691 };
692
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200693 ldo16_reg: LDO16 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200694 regulator-name = "VHSIC_1.8V";
695 regulator-min-microvolt = <1800000>;
696 regulator-max-microvolt = <1800000>;
697 regulator-state-mem {
698 regulator-on-in-suspend;
699 };
700 };
701
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200702 ldo17_reg: LDO17 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200703 regulator-name = "CAM_SENSOR_CORE_1.2V";
704 regulator-min-microvolt = <1200000>;
705 regulator-max-microvolt = <1200000>;
706 };
707
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200708 ldo18_reg: LDO18 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200709 regulator-name = "CAM_ISP_SEN_IO_1.8V";
710 regulator-min-microvolt = <1800000>;
711 regulator-max-microvolt = <1800000>;
712 };
713
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200714 ldo19_reg: LDO19 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200715 regulator-name = "VT_CAM_1.8V";
716 regulator-min-microvolt = <1800000>;
717 regulator-max-microvolt = <1800000>;
718 };
719
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200720 ldo20_reg: LDO20 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200721 regulator-name = "VDDQ_PRE_1.8V";
722 regulator-min-microvolt = <1800000>;
723 regulator-max-microvolt = <1800000>;
724 };
725
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200726 ldo21_reg: LDO21 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200727 regulator-name = "VTF_2.8V";
728 regulator-min-microvolt = <2800000>;
729 regulator-max-microvolt = <2800000>;
730 maxim,ena-gpios = <&gpy2 0 GPIO_ACTIVE_HIGH>;
731 };
732
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200733 ldo22_reg: LDO22 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200734 regulator-name = "VMEM_VDD_2.8V";
735 regulator-min-microvolt = <2800000>;
736 regulator-max-microvolt = <2800000>;
737 maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
738 };
739
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200740 ldo23_reg: LDO23 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200741 regulator-name = "TSP_AVDD_3.3V";
742 regulator-min-microvolt = <3300000>;
743 regulator-max-microvolt = <3300000>;
744 };
745
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200746 ldo24_reg: LDO24 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200747 regulator-name = "TSP_VDD_1.8V";
748 regulator-min-microvolt = <1800000>;
749 regulator-max-microvolt = <1800000>;
750 };
751
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200752 ldo25_reg: LDO25 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200753 regulator-name = "LCD_VCC_3.3V";
754 regulator-min-microvolt = <2800000>;
755 regulator-max-microvolt = <2800000>;
756 };
757
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200758 ldo26_reg: LDO26 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200759 regulator-name = "MOTOR_VCC_3.0V";
760 regulator-min-microvolt = <3000000>;
761 regulator-max-microvolt = <3000000>;
762 };
763
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200764 buck1_reg: BUCK1 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200765 regulator-name = "vdd_mif";
766 regulator-min-microvolt = <850000>;
767 regulator-max-microvolt = <1100000>;
768 regulator-always-on;
769 regulator-boot-on;
770 regulator-state-mem {
771 regulator-off-in-suspend;
772 };
773 };
774
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200775 buck2_reg: BUCK2 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200776 regulator-name = "vdd_arm";
777 regulator-min-microvolt = <850000>;
778 regulator-max-microvolt = <1500000>;
779 regulator-always-on;
780 regulator-boot-on;
781 regulator-state-mem {
782 regulator-on-in-suspend;
783 };
784 };
785
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200786 buck3_reg: BUCK3 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200787 regulator-name = "vdd_int";
788 regulator-min-microvolt = <850000>;
789 regulator-max-microvolt = <1150000>;
790 regulator-always-on;
791 regulator-boot-on;
792 regulator-state-mem {
793 regulator-off-in-suspend;
794 };
795 };
796
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200797 buck4_reg: BUCK4 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200798 regulator-name = "vdd_g3d";
799 regulator-min-microvolt = <850000>;
800 regulator-max-microvolt = <1150000>;
801 regulator-boot-on;
802 regulator-state-mem {
803 regulator-off-in-suspend;
804 };
805 };
806
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200807 buck5_reg: BUCK5 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200808 regulator-name = "VMEM_1.2V_AP";
809 regulator-min-microvolt = <1200000>;
810 regulator-max-microvolt = <1200000>;
811 regulator-always-on;
812 };
813
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200814 buck6_reg: BUCK6 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200815 regulator-name = "VCC_SUB_1.35V";
816 regulator-min-microvolt = <1350000>;
817 regulator-max-microvolt = <1350000>;
818 regulator-always-on;
819 };
820
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200821 buck7_reg: BUCK7 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200822 regulator-name = "VCC_SUB_2.0V";
823 regulator-min-microvolt = <2000000>;
824 regulator-max-microvolt = <2000000>;
825 regulator-always-on;
826 };
827
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200828 buck8_reg: BUCK8 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200829 regulator-name = "VMEM_VDDF_3.0V";
830 regulator-min-microvolt = <2850000>;
831 regulator-max-microvolt = <2850000>;
832 maxim,ena-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
833 };
834
Javier Martinez Canillasc21dbcfe2015-09-28 12:38:34 +0200835 buck9_reg: BUCK9 {
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +0200836 regulator-name = "CAM_ISP_CORE_1.2V";
837 regulator-min-microvolt = <1000000>;
838 regulator-max-microvolt = <1200000>;
839 maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>;
840 };
841 };
842 };
843};
844
845&i2s0 {
846 pinctrl-0 = <&i2s0_bus>;
847 pinctrl-names = "default";
848 status = "okay";
849};
850
851&mshc_0 {
852 num-slots = <1>;
853 broken-cd;
854 non-removable;
855 card-detect-delay = <200>;
856 vmmc-supply = <&ldo22_reg>;
857 clock-frequency = <400000000>;
858 samsung,dw-mshc-ciu-div = <0>;
859 samsung,dw-mshc-sdr-timing = <2 3>;
860 samsung,dw-mshc-ddr-timing = <1 2>;
861 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
862 pinctrl-names = "default";
863 status = "okay";
864 bus-width = <8>;
865 cap-mmc-highspeed;
866};
867
Inha Song440e5ae2015-02-04 07:51:38 +0900868&pmu_system_controller {
869 assigned-clocks = <&pmu_system_controller 0>;
870 assigned-clock-parents = <&clock CLK_XUSBXTI>;
871};
872
Chanwoo Choi7808cae2015-02-04 08:11:52 +0900873&ppmu_dmc0 {
874 status = "okay";
875
876 events {
877 ppmu_dmc0_3: ppmu-event3-dmc0 {
878 event-name = "ppmu-event3-dmc0";
879 };
880 };
881};
882
883&ppmu_dmc1 {
884 status = "okay";
885
886 events {
887 ppmu_dmc1_3: ppmu-event3-dmc1 {
888 event-name = "ppmu-event3-dmc1";
889 };
890 };
891};
892
893&ppmu_leftbus {
894 status = "okay";
895
896 events {
897 ppmu_leftbus_3: ppmu-event3-leftbus {
898 event-name = "ppmu-event3-leftbus";
899 };
900 };
901};
902
903&ppmu_rightbus {
904 status = "okay";
905
906 events {
907 ppmu_rightbus_3: ppmu-event3-rightbus {
908 event-name = "ppmu-event3-rightbus";
909 };
910 };
911};
912
Tomasz Figa09918a92014-09-24 01:20:03 +0900913&pinctrl_0 {
914 pinctrl-names = "default";
915 pinctrl-0 = <&sleep0>;
916
917 sleep0: sleep-states {
918 PIN_SLP(gpa0-0, INPUT, NONE);
919 PIN_SLP(gpa0-1, OUT0, NONE);
920 PIN_SLP(gpa0-2, INPUT, NONE);
921 PIN_SLP(gpa0-3, INPUT, UP);
922 PIN_SLP(gpa0-4, INPUT, NONE);
923 PIN_SLP(gpa0-5, INPUT, DOWN);
924 PIN_SLP(gpa0-6, INPUT, DOWN);
925 PIN_SLP(gpa0-7, INPUT, UP);
926
927 PIN_SLP(gpa1-0, INPUT, DOWN);
928 PIN_SLP(gpa1-1, INPUT, DOWN);
929 PIN_SLP(gpa1-2, INPUT, DOWN);
930 PIN_SLP(gpa1-3, INPUT, DOWN);
931 PIN_SLP(gpa1-4, INPUT, DOWN);
932 PIN_SLP(gpa1-5, INPUT, DOWN);
933
934 PIN_SLP(gpb-0, INPUT, NONE);
935 PIN_SLP(gpb-1, INPUT, NONE);
936 PIN_SLP(gpb-2, INPUT, NONE);
937 PIN_SLP(gpb-3, INPUT, NONE);
938 PIN_SLP(gpb-4, INPUT, DOWN);
939 PIN_SLP(gpb-5, INPUT, UP);
940 PIN_SLP(gpb-6, INPUT, DOWN);
941 PIN_SLP(gpb-7, INPUT, DOWN);
942
943 PIN_SLP(gpc0-0, INPUT, DOWN);
944 PIN_SLP(gpc0-1, INPUT, DOWN);
945 PIN_SLP(gpc0-2, INPUT, DOWN);
946 PIN_SLP(gpc0-3, INPUT, DOWN);
947 PIN_SLP(gpc0-4, INPUT, DOWN);
948
949 PIN_SLP(gpc1-0, INPUT, NONE);
950 PIN_SLP(gpc1-1, PREV, NONE);
951 PIN_SLP(gpc1-2, INPUT, NONE);
952 PIN_SLP(gpc1-3, INPUT, NONE);
953 PIN_SLP(gpc1-4, INPUT, NONE);
954
955 PIN_SLP(gpd0-0, INPUT, DOWN);
956 PIN_SLP(gpd0-1, INPUT, DOWN);
957 PIN_SLP(gpd0-2, INPUT, NONE);
958 PIN_SLP(gpd0-3, INPUT, NONE);
959
960 PIN_SLP(gpd1-0, INPUT, DOWN);
961 PIN_SLP(gpd1-1, INPUT, DOWN);
962 PIN_SLP(gpd1-2, INPUT, NONE);
963 PIN_SLP(gpd1-3, INPUT, NONE);
964
965 PIN_SLP(gpf0-0, INPUT, NONE);
966 PIN_SLP(gpf0-1, INPUT, NONE);
967 PIN_SLP(gpf0-2, INPUT, DOWN);
968 PIN_SLP(gpf0-3, INPUT, DOWN);
969 PIN_SLP(gpf0-4, INPUT, NONE);
970 PIN_SLP(gpf0-5, INPUT, DOWN);
971 PIN_SLP(gpf0-6, INPUT, NONE);
972 PIN_SLP(gpf0-7, INPUT, DOWN);
973
974 PIN_SLP(gpf1-0, INPUT, DOWN);
975 PIN_SLP(gpf1-1, INPUT, DOWN);
976 PIN_SLP(gpf1-2, INPUT, DOWN);
977 PIN_SLP(gpf1-3, INPUT, DOWN);
978 PIN_SLP(gpf1-4, INPUT, NONE);
979 PIN_SLP(gpf1-5, INPUT, NONE);
980 PIN_SLP(gpf1-6, INPUT, DOWN);
981 PIN_SLP(gpf1-7, PREV, NONE);
982
983 PIN_SLP(gpf2-0, PREV, NONE);
984 PIN_SLP(gpf2-1, INPUT, DOWN);
985 PIN_SLP(gpf2-2, INPUT, DOWN);
986 PIN_SLP(gpf2-3, INPUT, DOWN);
987 PIN_SLP(gpf2-4, INPUT, DOWN);
988 PIN_SLP(gpf2-5, INPUT, DOWN);
989 PIN_SLP(gpf2-6, INPUT, NONE);
990 PIN_SLP(gpf2-7, INPUT, NONE);
991
992 PIN_SLP(gpf3-0, INPUT, NONE);
993 PIN_SLP(gpf3-1, PREV, NONE);
994 PIN_SLP(gpf3-2, PREV, NONE);
995 PIN_SLP(gpf3-3, PREV, NONE);
996 PIN_SLP(gpf3-4, OUT1, NONE);
997 PIN_SLP(gpf3-5, INPUT, DOWN);
998
999 PIN_SLP(gpj0-0, PREV, NONE);
1000 PIN_SLP(gpj0-1, PREV, NONE);
1001 PIN_SLP(gpj0-2, PREV, NONE);
1002 PIN_SLP(gpj0-3, INPUT, DOWN);
1003 PIN_SLP(gpj0-4, PREV, NONE);
1004 PIN_SLP(gpj0-5, PREV, NONE);
1005 PIN_SLP(gpj0-6, INPUT, DOWN);
1006 PIN_SLP(gpj0-7, INPUT, DOWN);
1007
1008 PIN_SLP(gpj1-0, INPUT, DOWN);
1009 PIN_SLP(gpj1-1, PREV, NONE);
1010 PIN_SLP(gpj1-2, PREV, NONE);
1011 PIN_SLP(gpj1-3, INPUT, DOWN);
1012 PIN_SLP(gpj1-4, INPUT, DOWN);
1013 };
1014};
1015
1016&pinctrl_1 {
1017 pinctrl-names = "default";
1018 pinctrl-0 = <&sleep1>;
1019
1020 sleep1: sleep-states {
1021 PIN_SLP(gpk0-0, PREV, NONE);
1022 PIN_SLP(gpk0-1, PREV, NONE);
1023 PIN_SLP(gpk0-2, OUT0, NONE);
1024 PIN_SLP(gpk0-3, PREV, NONE);
1025 PIN_SLP(gpk0-4, PREV, NONE);
1026 PIN_SLP(gpk0-5, PREV, NONE);
1027 PIN_SLP(gpk0-6, PREV, NONE);
1028
1029 PIN_SLP(gpk1-0, INPUT, DOWN);
1030 PIN_SLP(gpk1-1, INPUT, DOWN);
1031 PIN_SLP(gpk1-2, INPUT, DOWN);
1032 PIN_SLP(gpk1-3, PREV, NONE);
1033 PIN_SLP(gpk1-4, PREV, NONE);
1034 PIN_SLP(gpk1-5, PREV, NONE);
1035 PIN_SLP(gpk1-6, PREV, NONE);
1036
1037 PIN_SLP(gpk2-0, INPUT, DOWN);
1038 PIN_SLP(gpk2-1, INPUT, DOWN);
1039 PIN_SLP(gpk2-2, INPUT, DOWN);
1040 PIN_SLP(gpk2-3, INPUT, DOWN);
1041 PIN_SLP(gpk2-4, INPUT, DOWN);
1042 PIN_SLP(gpk2-5, INPUT, DOWN);
1043 PIN_SLP(gpk2-6, INPUT, DOWN);
1044
1045 PIN_SLP(gpk3-0, OUT0, NONE);
1046 PIN_SLP(gpk3-1, INPUT, NONE);
1047 PIN_SLP(gpk3-2, INPUT, DOWN);
1048 PIN_SLP(gpk3-3, INPUT, NONE);
1049 PIN_SLP(gpk3-4, INPUT, NONE);
1050 PIN_SLP(gpk3-5, INPUT, NONE);
1051 PIN_SLP(gpk3-6, INPUT, NONE);
1052
1053 PIN_SLP(gpl0-0, INPUT, DOWN);
1054 PIN_SLP(gpl0-1, INPUT, DOWN);
1055 PIN_SLP(gpl0-2, INPUT, DOWN);
1056 PIN_SLP(gpl0-3, INPUT, DOWN);
1057 PIN_SLP(gpl0-4, PREV, NONE);
1058 PIN_SLP(gpl0-6, PREV, NONE);
1059
1060 PIN_SLP(gpl1-0, INPUT, DOWN);
1061 PIN_SLP(gpl1-1, INPUT, DOWN);
1062 PIN_SLP(gpl2-0, INPUT, DOWN);
1063 PIN_SLP(gpl2-1, INPUT, DOWN);
1064 PIN_SLP(gpl2-2, INPUT, DOWN);
1065 PIN_SLP(gpl2-3, INPUT, DOWN);
1066 PIN_SLP(gpl2-4, INPUT, DOWN);
1067 PIN_SLP(gpl2-5, INPUT, DOWN);
1068 PIN_SLP(gpl2-6, PREV, NONE);
1069 PIN_SLP(gpl2-7, INPUT, DOWN);
1070
1071 PIN_SLP(gpm0-0, INPUT, DOWN);
1072 PIN_SLP(gpm0-1, INPUT, DOWN);
1073 PIN_SLP(gpm0-2, INPUT, DOWN);
1074 PIN_SLP(gpm0-3, INPUT, DOWN);
1075 PIN_SLP(gpm0-4, INPUT, DOWN);
1076 PIN_SLP(gpm0-5, INPUT, DOWN);
1077 PIN_SLP(gpm0-6, INPUT, DOWN);
1078 PIN_SLP(gpm0-7, INPUT, DOWN);
1079
1080 PIN_SLP(gpm1-0, INPUT, DOWN);
1081 PIN_SLP(gpm1-1, INPUT, DOWN);
1082 PIN_SLP(gpm1-2, INPUT, NONE);
1083 PIN_SLP(gpm1-3, INPUT, NONE);
1084 PIN_SLP(gpm1-4, INPUT, NONE);
1085 PIN_SLP(gpm1-5, INPUT, NONE);
1086 PIN_SLP(gpm1-6, INPUT, DOWN);
1087
1088 PIN_SLP(gpm2-0, INPUT, NONE);
1089 PIN_SLP(gpm2-1, INPUT, NONE);
1090 PIN_SLP(gpm2-2, INPUT, DOWN);
1091 PIN_SLP(gpm2-3, INPUT, DOWN);
1092 PIN_SLP(gpm2-4, INPUT, DOWN);
1093
1094 PIN_SLP(gpm3-0, PREV, NONE);
1095 PIN_SLP(gpm3-1, PREV, NONE);
1096 PIN_SLP(gpm3-2, PREV, NONE);
1097 PIN_SLP(gpm3-3, OUT1, NONE);
1098 PIN_SLP(gpm3-4, INPUT, DOWN);
1099 PIN_SLP(gpm3-5, INPUT, DOWN);
1100 PIN_SLP(gpm3-6, INPUT, DOWN);
1101 PIN_SLP(gpm3-7, INPUT, DOWN);
1102
1103 PIN_SLP(gpm4-0, INPUT, DOWN);
1104 PIN_SLP(gpm4-1, INPUT, DOWN);
1105 PIN_SLP(gpm4-2, INPUT, DOWN);
1106 PIN_SLP(gpm4-3, INPUT, DOWN);
1107 PIN_SLP(gpm4-4, INPUT, DOWN);
1108 PIN_SLP(gpm4-5, INPUT, DOWN);
1109 PIN_SLP(gpm4-6, INPUT, DOWN);
1110 PIN_SLP(gpm4-7, INPUT, DOWN);
1111
1112 PIN_SLP(gpy0-0, INPUT, DOWN);
1113 PIN_SLP(gpy0-1, INPUT, DOWN);
1114 PIN_SLP(gpy0-2, INPUT, DOWN);
1115 PIN_SLP(gpy0-3, INPUT, DOWN);
1116 PIN_SLP(gpy0-4, INPUT, DOWN);
1117 PIN_SLP(gpy0-5, INPUT, DOWN);
1118
1119 PIN_SLP(gpy1-0, INPUT, DOWN);
1120 PIN_SLP(gpy1-1, INPUT, DOWN);
1121 PIN_SLP(gpy1-2, INPUT, DOWN);
1122 PIN_SLP(gpy1-3, INPUT, DOWN);
1123
1124 PIN_SLP(gpy2-0, PREV, NONE);
1125 PIN_SLP(gpy2-1, INPUT, DOWN);
1126 PIN_SLP(gpy2-2, INPUT, NONE);
1127 PIN_SLP(gpy2-3, INPUT, NONE);
1128 PIN_SLP(gpy2-4, INPUT, NONE);
1129 PIN_SLP(gpy2-5, INPUT, NONE);
1130
1131 PIN_SLP(gpy3-0, INPUT, DOWN);
1132 PIN_SLP(gpy3-1, INPUT, DOWN);
1133 PIN_SLP(gpy3-2, INPUT, DOWN);
1134 PIN_SLP(gpy3-3, INPUT, DOWN);
1135 PIN_SLP(gpy3-4, INPUT, DOWN);
1136 PIN_SLP(gpy3-5, INPUT, DOWN);
1137 PIN_SLP(gpy3-6, INPUT, DOWN);
1138 PIN_SLP(gpy3-7, INPUT, DOWN);
1139
1140 PIN_SLP(gpy4-0, INPUT, DOWN);
1141 PIN_SLP(gpy4-1, INPUT, DOWN);
1142 PIN_SLP(gpy4-2, INPUT, DOWN);
1143 PIN_SLP(gpy4-3, INPUT, DOWN);
1144 PIN_SLP(gpy4-4, INPUT, DOWN);
1145 PIN_SLP(gpy4-5, INPUT, DOWN);
1146 PIN_SLP(gpy4-6, INPUT, DOWN);
1147 PIN_SLP(gpy4-7, INPUT, DOWN);
1148
1149 PIN_SLP(gpy5-0, INPUT, DOWN);
1150 PIN_SLP(gpy5-1, INPUT, DOWN);
1151 PIN_SLP(gpy5-2, INPUT, DOWN);
1152 PIN_SLP(gpy5-3, INPUT, DOWN);
1153 PIN_SLP(gpy5-4, INPUT, DOWN);
1154 PIN_SLP(gpy5-5, INPUT, DOWN);
1155 PIN_SLP(gpy5-6, INPUT, DOWN);
1156 PIN_SLP(gpy5-7, INPUT, DOWN);
1157
1158 PIN_SLP(gpy6-0, INPUT, DOWN);
1159 PIN_SLP(gpy6-1, INPUT, DOWN);
1160 PIN_SLP(gpy6-2, INPUT, DOWN);
1161 PIN_SLP(gpy6-3, INPUT, DOWN);
1162 PIN_SLP(gpy6-4, INPUT, DOWN);
1163 PIN_SLP(gpy6-5, INPUT, DOWN);
1164 PIN_SLP(gpy6-6, INPUT, DOWN);
1165 PIN_SLP(gpy6-7, INPUT, DOWN);
1166 };
1167};
1168
1169&pinctrl_2 {
1170 pinctrl-names = "default";
1171 pinctrl-0 = <&sleep2>;
1172
1173 sleep2: sleep-states {
1174 PIN_SLP(gpz-0, INPUT, DOWN);
1175 PIN_SLP(gpz-1, INPUT, DOWN);
1176 PIN_SLP(gpz-2, INPUT, DOWN);
1177 PIN_SLP(gpz-3, INPUT, DOWN);
1178 PIN_SLP(gpz-4, INPUT, DOWN);
1179 PIN_SLP(gpz-5, INPUT, DOWN);
1180 PIN_SLP(gpz-6, INPUT, DOWN);
1181 };
1182};
1183
1184&pinctrl_3 {
1185 pinctrl-names = "default";
1186 pinctrl-0 = <&sleep3>;
1187
1188 sleep3: sleep-states {
1189 PIN_SLP(gpv0-0, INPUT, DOWN);
1190 PIN_SLP(gpv0-1, INPUT, DOWN);
1191 PIN_SLP(gpv0-2, INPUT, DOWN);
1192 PIN_SLP(gpv0-3, INPUT, DOWN);
1193 PIN_SLP(gpv0-4, INPUT, DOWN);
1194 PIN_SLP(gpv0-5, INPUT, DOWN);
1195 PIN_SLP(gpv0-6, INPUT, DOWN);
1196 PIN_SLP(gpv0-7, INPUT, DOWN);
1197
1198 PIN_SLP(gpv1-0, INPUT, DOWN);
1199 PIN_SLP(gpv1-1, INPUT, DOWN);
1200 PIN_SLP(gpv1-2, INPUT, DOWN);
1201 PIN_SLP(gpv1-3, INPUT, DOWN);
1202 PIN_SLP(gpv1-4, INPUT, DOWN);
1203 PIN_SLP(gpv1-5, INPUT, DOWN);
1204 PIN_SLP(gpv1-6, INPUT, DOWN);
1205 PIN_SLP(gpv1-7, INPUT, DOWN);
1206
1207 PIN_SLP(gpv2-0, INPUT, DOWN);
1208 PIN_SLP(gpv2-1, INPUT, DOWN);
1209 PIN_SLP(gpv2-2, INPUT, DOWN);
1210 PIN_SLP(gpv2-3, INPUT, DOWN);
1211 PIN_SLP(gpv2-4, INPUT, DOWN);
1212 PIN_SLP(gpv2-5, INPUT, DOWN);
1213 PIN_SLP(gpv2-6, INPUT, DOWN);
1214 PIN_SLP(gpv2-7, INPUT, DOWN);
1215
1216 PIN_SLP(gpv3-0, INPUT, DOWN);
1217 PIN_SLP(gpv3-1, INPUT, DOWN);
1218 PIN_SLP(gpv3-2, INPUT, DOWN);
1219 PIN_SLP(gpv3-3, INPUT, DOWN);
1220 PIN_SLP(gpv3-4, INPUT, DOWN);
1221 PIN_SLP(gpv3-5, INPUT, DOWN);
1222 PIN_SLP(gpv3-6, INPUT, DOWN);
1223 PIN_SLP(gpv3-7, INPUT, DOWN);
1224
1225 PIN_SLP(gpv4-0, INPUT, DOWN);
1226 };
1227};
Krzysztof Kozlowskice9940a2015-05-02 14:40:08 +09001228
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +02001229&pwm {
1230 pinctrl-0 = <&pwm0_out>;
1231 pinctrl-names = "default";
1232 samsung,pwm-outputs = <0>;
1233 status = "okay";
1234};
1235
Krzysztof Kozlowskice9940a2015-05-02 14:40:08 +09001236&rtc {
1237 status = "okay";
1238 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
1239 clock-names = "rtc", "rtc_src";
1240};
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +02001241
1242&sdhci_2 {
1243 bus-width = <4>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +09001244 cd-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +02001245 cd-inverted;
1246 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
1247 pinctrl-names = "default";
1248 vmmc-supply = <&ldo21_reg>;
1249 status = "okay";
1250};
1251
1252&serial_0 {
1253 status = "okay";
1254};
1255
1256&serial_1 {
1257 status = "okay";
1258};
1259
1260&serial_2 {
1261 status = "okay";
1262};
1263
1264&serial_3 {
1265 status = "okay";
1266};
1267
1268&spi_1 {
1269 pinctrl-names = "default";
1270 pinctrl-0 = <&spi1_bus>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +09001271 cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski1fe9a942015-04-06 21:07:42 +02001272 status = "okay";
1273
1274 s5c73m3_spi: s5c73m3 {
1275 compatible = "samsung,s5c73m3";
1276 spi-max-frequency = <50000000>;
1277 reg = <0>;
1278 controller-data {
1279 samsung,spi-feedback-delay = <2>;
1280 };
1281 };
1282};
1283
1284&tmu {
1285 vtmu-supply = <&ldo10_reg>;
1286 status = "okay";
1287};