61e59eb68c01f76f8af090870b5eb7d04b08e195
[deliverable/linux.git] / arch / arm / boot / dts / exynos4412-trats2.dts
1 /*
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"
17
18 / {
19 model = "Samsung Trats 2 based on Exynos4412";
20 compatible = "samsung,trats2", "samsung,exynos4412", "samsung,exynos4";
21
22 aliases {
23 i2c9 = &i2c_ak8975;
24 i2c10 = &i2c_cm36651;
25 };
26
27 memory {
28 reg = <0x40000000 0x40000000>;
29 };
30
31 chosen {
32 bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5";
33 };
34
35 firmware@0204F000 {
36 compatible = "samsung,secure-firmware";
37 reg = <0x0204F000 0x1000>;
38 };
39
40 fixed-rate-clocks {
41 xxti {
42 compatible = "samsung,clock-xxti", "fixed-clock";
43 clock-frequency = <0>;
44 };
45
46 xusbxti {
47 compatible = "samsung,clock-xusbxti", "fixed-clock";
48 clock-frequency = <24000000>;
49 };
50 };
51
52 regulators {
53 compatible = "simple-bus";
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 vemmc_reg: regulator-0 {
58 compatible = "regulator-fixed";
59 regulator-name = "VMEM_VDD_2.8V";
60 regulator-min-microvolt = <2800000>;
61 regulator-max-microvolt = <2800000>;
62 gpio = <&gpk0 2 0>;
63 enable-active-high;
64 };
65
66 cam_io_reg: voltage-regulator-1 {
67 compatible = "regulator-fixed";
68 regulator-name = "CAM_SENSOR_A";
69 regulator-min-microvolt = <2800000>;
70 regulator-max-microvolt = <2800000>;
71 gpio = <&gpm0 2 0>;
72 enable-active-high;
73 };
74
75 lcd_vdd3_reg: voltage-regulator-2 {
76 compatible = "regulator-fixed";
77 regulator-name = "LCD_VDD_2.2V";
78 regulator-min-microvolt = <2200000>;
79 regulator-max-microvolt = <2200000>;
80 gpio = <&gpc0 1 0>;
81 enable-active-high;
82 };
83
84 cam_af_reg: voltage-regulator-3 {
85 compatible = "regulator-fixed";
86 regulator-name = "CAM_AF";
87 regulator-min-microvolt = <2800000>;
88 regulator-max-microvolt = <2800000>;
89 gpio = <&gpm0 4 0>;
90 enable-active-high;
91 };
92
93 cam_isp_core_reg: voltage-regulator-4 {
94 compatible = "regulator-fixed";
95 regulator-name = "CAM_ISP_CORE_1.2V_EN";
96 regulator-min-microvolt = <1200000>;
97 regulator-max-microvolt = <1200000>;
98 gpio = <&gpm0 3 0>;
99 enable-active-high;
100 regulator-always-on;
101 };
102
103 ps_als_reg: voltage-regulator-5 {
104 compatible = "regulator-fixed";
105 regulator-name = "LED_A_3.0V";
106 regulator-min-microvolt = <3000000>;
107 regulator-max-microvolt = <3000000>;
108 gpio = <&gpj0 5 0>;
109 enable-active-high;
110 };
111 };
112
113 gpio-keys {
114 compatible = "gpio-keys";
115
116 key-down {
117 gpios = <&gpx3 3 1>;
118 linux,code = <114>;
119 label = "volume down";
120 debounce-interval = <10>;
121 };
122
123 key-up {
124 gpios = <&gpx2 2 1>;
125 linux,code = <115>;
126 label = "volume up";
127 debounce-interval = <10>;
128 };
129
130 key-power {
131 gpios = <&gpx2 7 1>;
132 linux,code = <116>;
133 label = "power";
134 debounce-interval = <10>;
135 gpio-key,wakeup;
136 };
137
138 key-ok {
139 gpios = <&gpx0 1 1>;
140 linux,code = <139>;
141 label = "ok";
142 debounce-inteval = <10>;
143 gpio-key,wakeup;
144 };
145 };
146
147 adc: adc@126C0000 {
148 vdd-supply = <&ldo3_reg>;
149 status = "okay";
150 };
151
152 i2c@13890000 {
153 samsung,i2c-sda-delay = <100>;
154 samsung,i2c-slave-addr = <0x10>;
155 samsung,i2c-max-bus-freq = <400000>;
156 pinctrl-0 = <&i2c3_bus>;
157 pinctrl-names = "default";
158 status = "okay";
159
160 mms114-touchscreen@48 {
161 compatible = "melfas,mms114";
162 reg = <0x48>;
163 interrupt-parent = <&gpm2>;
164 interrupts = <3 2>;
165 x-size = <720>;
166 y-size = <1280>;
167 avdd-supply = <&ldo23_reg>;
168 vdd-supply = <&ldo24_reg>;
169 };
170 };
171
172 i2c_0: i2c@13860000 {
173 samsung,i2c-sda-delay = <100>;
174 samsung,i2c-slave-addr = <0x10>;
175 samsung,i2c-max-bus-freq = <400000>;
176 pinctrl-0 = <&i2c0_bus>;
177 pinctrl-names = "default";
178 status = "okay";
179
180 s5c73m3@3c {
181 compatible = "samsung,s5c73m3";
182 reg = <0x3c>;
183 standby-gpios = <&gpm0 1 1>; /* ISP_STANDBY */
184 xshutdown-gpios = <&gpf1 3 1>; /* ISP_RESET */
185 vdd-int-supply = <&buck9_reg>;
186 vddio-cis-supply = <&ldo9_reg>;
187 vdda-supply = <&ldo17_reg>;
188 vddio-host-supply = <&ldo18_reg>;
189 vdd-af-supply = <&cam_af_reg>;
190 vdd-reg-supply = <&cam_io_reg>;
191 clock-frequency = <24000000>;
192 /* CAM_A_CLKOUT */
193 clocks = <&camera 0>;
194 clock-names = "cis_extclk";
195 port {
196 s5c73m3_ep: endpoint {
197 remote-endpoint = <&csis0_ep>;
198 data-lanes = <1 2 3 4>;
199 };
200 };
201 };
202 };
203
204 i2c@138D0000 {
205 samsung,i2c-sda-delay = <100>;
206 samsung,i2c-slave-addr = <0x10>;
207 samsung,i2c-max-bus-freq = <100000>;
208 pinctrl-0 = <&i2c7_bus>;
209 pinctrl-names = "default";
210 status = "okay";
211
212 max77686_pmic@09 {
213 compatible = "maxim,max77686";
214 interrupt-parent = <&gpx0>;
215 interrupts = <7 0>;
216 reg = <0x09>;
217 #clock-cells = <1>;
218
219 voltage-regulators {
220 ldo1_reg: ldo1 {
221 regulator-compatible = "LDO1";
222 regulator-name = "VALIVE_1.0V_AP";
223 regulator-min-microvolt = <1000000>;
224 regulator-max-microvolt = <1000000>;
225 regulator-always-on;
226 regulator-mem-on;
227 };
228
229 ldo2_reg: ldo2 {
230 regulator-compatible = "LDO2";
231 regulator-name = "VM1M2_1.2V_AP";
232 regulator-min-microvolt = <1200000>;
233 regulator-max-microvolt = <1200000>;
234 regulator-always-on;
235 regulator-mem-on;
236 };
237
238 ldo3_reg: ldo3 {
239 regulator-compatible = "LDO3";
240 regulator-name = "VCC_1.8V_AP";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
243 regulator-always-on;
244 regulator-mem-on;
245 };
246
247 ldo4_reg: ldo4 {
248 regulator-compatible = "LDO4";
249 regulator-name = "VCC_2.8V_AP";
250 regulator-min-microvolt = <2800000>;
251 regulator-max-microvolt = <2800000>;
252 regulator-always-on;
253 regulator-mem-on;
254 };
255
256 ldo5_reg: ldo5 {
257 regulator-compatible = "LDO5";
258 regulator-name = "VCC_1.8V_IO";
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <1800000>;
261 regulator-always-on;
262 regulator-mem-on;
263 };
264
265 ldo6_reg: ldo6 {
266 regulator-compatible = "LDO6";
267 regulator-name = "VMPLL_1.0V_AP";
268 regulator-min-microvolt = <1000000>;
269 regulator-max-microvolt = <1000000>;
270 regulator-always-on;
271 regulator-mem-on;
272 };
273
274 ldo7_reg: ldo7 {
275 regulator-compatible = "LDO7";
276 regulator-name = "VPLL_1.0V_AP";
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
279 regulator-always-on;
280 regulator-mem-on;
281 };
282
283 ldo8_reg: ldo8 {
284 regulator-compatible = "LDO8";
285 regulator-name = "VMIPI_1.0V";
286 regulator-min-microvolt = <1000000>;
287 regulator-max-microvolt = <1000000>;
288 regulator-mem-off;
289 };
290
291 ldo9_reg: ldo9 {
292 regulator-compatible = "LDO9";
293 regulator-name = "CAM_ISP_MIPI_1.2V";
294 regulator-min-microvolt = <1200000>;
295 regulator-max-microvolt = <1200000>;
296 regulator-mem-idle;
297 };
298
299 ldo10_reg: ldo10 {
300 regulator-compatible = "LDO10";
301 regulator-name = "VMIPI_1.8V";
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
304 regulator-mem-off;
305 };
306
307 ldo11_reg: ldo11 {
308 regulator-compatible = "LDO11";
309 regulator-name = "VABB1_1.95V";
310 regulator-min-microvolt = <1950000>;
311 regulator-max-microvolt = <1950000>;
312 regulator-always-on;
313 regulator-mem-off;
314 };
315
316 ldo12_reg: ldo12 {
317 regulator-compatible = "LDO12";
318 regulator-name = "VUOTG_3.0V";
319 regulator-min-microvolt = <3000000>;
320 regulator-max-microvolt = <3000000>;
321 regulator-mem-off;
322 };
323
324 ldo13_reg: ldo13 {
325 regulator-compatible = "LDO13";
326 regulator-name = "NFC_AVDD_1.8V";
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <1800000>;
329 regulator-mem-idle;
330 };
331
332 ldo14_reg: ldo14 {
333 regulator-compatible = "LDO14";
334 regulator-name = "VABB2_1.95V";
335 regulator-min-microvolt = <1950000>;
336 regulator-max-microvolt = <1950000>;
337 regulator-always-on;
338 regulator-mem-off;
339 };
340
341 ldo15_reg: ldo15 {
342 regulator-compatible = "LDO15";
343 regulator-name = "VHSIC_1.0V";
344 regulator-min-microvolt = <1000000>;
345 regulator-max-microvolt = <1000000>;
346 regulator-mem-off;
347 };
348
349 ldo16_reg: ldo16 {
350 regulator-compatible = "LDO16";
351 regulator-name = "VHSIC_1.8V";
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
354 regulator-mem-off;
355 };
356
357 ldo17_reg: ldo17 {
358 regulator-compatible = "LDO17";
359 regulator-name = "CAM_SENSOR_CORE_1.2V";
360 regulator-min-microvolt = <1200000>;
361 regulator-max-microvolt = <1200000>;
362 regulator-mem-idle;
363 };
364
365 ldo18_reg: ldo18 {
366 regulator-compatible = "LDO18";
367 regulator-name = "CAM_ISP_SEN_IO_1.8V";
368 regulator-min-microvolt = <1800000>;
369 regulator-max-microvolt = <1800000>;
370 regulator-mem-idle;
371 };
372
373 ldo19_reg: ldo19 {
374 regulator-compatible = "LDO19";
375 regulator-name = "VT_CAM_1.8V";
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <1800000>;
378 regulator-mem-idle;
379 };
380
381 ldo20_reg: ldo20 {
382 regulator-compatible = "LDO20";
383 regulator-name = "VDDQ_PRE_1.8V";
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1800000>;
386 regulator-mem-idle;
387 };
388
389 ldo21_reg: ldo21 {
390 regulator-compatible = "LDO21";
391 regulator-name = "VTF_2.8V";
392 regulator-min-microvolt = <2800000>;
393 regulator-max-microvolt = <2800000>;
394 regulator-mem-idle;
395 };
396
397 ldo22_reg: ldo22 {
398 regulator-compatible = "LDO22";
399 regulator-name = "VMEM_VDD_2.8V";
400 regulator-min-microvolt = <2800000>;
401 regulator-max-microvolt = <2800000>;
402 };
403
404 ldo23_reg: ldo23 {
405 regulator-compatible = "LDO23";
406 regulator-name = "TSP_AVDD_3.3V";
407 regulator-min-microvolt = <3300000>;
408 regulator-max-microvolt = <3300000>;
409 regulator-mem-idle;
410 };
411
412 ldo24_reg: ldo24 {
413 regulator-compatible = "LDO24";
414 regulator-name = "TSP_VDD_1.8V";
415 regulator-min-microvolt = <1800000>;
416 regulator-max-microvolt = <1800000>;
417 regulator-mem-idle;
418 };
419
420 ldo25_reg: ldo25 {
421 regulator-compatible = "LDO25";
422 regulator-name = "LCD_VCC_3.3V";
423 regulator-min-microvolt = <2800000>;
424 regulator-max-microvolt = <2800000>;
425 regulator-mem-idle;
426 };
427
428 ldo26_reg: ldo26 {
429 regulator-compatible = "LDO26";
430 regulator-name = "MOTOR_VCC_3.0V";
431 regulator-min-microvolt = <3000000>;
432 regulator-max-microvolt = <3000000>;
433 regulator-mem-idle;
434 };
435
436 buck1_reg: buck1 {
437 regulator-compatible = "BUCK1";
438 regulator-name = "vdd_mif";
439 regulator-min-microvolt = <850000>;
440 regulator-max-microvolt = <1100000>;
441 regulator-always-on;
442 regulator-boot-on;
443 regulator-mem-off;
444 };
445
446 buck2_reg: buck2 {
447 regulator-compatible = "BUCK2";
448 regulator-name = "vdd_arm";
449 regulator-min-microvolt = <850000>;
450 regulator-max-microvolt = <1500000>;
451 regulator-always-on;
452 regulator-boot-on;
453 regulator-mem-off;
454 };
455
456 buck3_reg: buck3 {
457 regulator-compatible = "BUCK3";
458 regulator-name = "vdd_int";
459 regulator-min-microvolt = <850000>;
460 regulator-max-microvolt = <1150000>;
461 regulator-always-on;
462 regulator-boot-on;
463 regulator-mem-off;
464 };
465
466 buck4_reg: buck4 {
467 regulator-compatible = "BUCK4";
468 regulator-name = "vdd_g3d";
469 regulator-min-microvolt = <850000>;
470 regulator-max-microvolt = <1150000>;
471 regulator-boot-on;
472 regulator-mem-off;
473 };
474
475 buck5_reg: buck5 {
476 regulator-compatible = "BUCK5";
477 regulator-name = "VMEM_1.2V_AP";
478 regulator-min-microvolt = <1200000>;
479 regulator-max-microvolt = <1200000>;
480 regulator-always-on;
481 };
482
483 buck6_reg: buck6 {
484 regulator-compatible = "BUCK6";
485 regulator-name = "VCC_SUB_1.35V";
486 regulator-min-microvolt = <1350000>;
487 regulator-max-microvolt = <1350000>;
488 regulator-always-on;
489 };
490
491 buck7_reg: buck7 {
492 regulator-compatible = "BUCK7";
493 regulator-name = "VCC_SUB_2.0V";
494 regulator-min-microvolt = <2000000>;
495 regulator-max-microvolt = <2000000>;
496 regulator-always-on;
497 };
498
499 buck8_reg: buck8 {
500 regulator-compatible = "BUCK8";
501 regulator-name = "VMEM_VDDF_3.0V";
502 regulator-min-microvolt = <2850000>;
503 regulator-max-microvolt = <2850000>;
504 };
505
506 buck9_reg: buck9 {
507 regulator-compatible = "BUCK9";
508 regulator-name = "CAM_ISP_CORE_1.2V";
509 regulator-min-microvolt = <1000000>;
510 regulator-max-microvolt = <1200000>;
511 regulator-mem-off;
512 };
513 };
514 };
515 };
516
517 mmc@12550000 {
518 num-slots = <1>;
519 broken-cd;
520 non-removable;
521 card-detect-delay = <200>;
522 vmmc-supply = <&vemmc_reg>;
523 clock-frequency = <400000000>;
524 samsung,dw-mshc-ciu-div = <0>;
525 samsung,dw-mshc-sdr-timing = <2 3>;
526 samsung,dw-mshc-ddr-timing = <1 2>;
527 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
528 pinctrl-names = "default";
529 status = "okay";
530 bus-width = <8>;
531 cap-mmc-highspeed;
532 };
533
534 serial@13800000 {
535 status = "okay";
536 };
537
538 serial@13810000 {
539 status = "okay";
540 };
541
542 serial@13820000 {
543 status = "okay";
544 };
545
546 serial@13830000 {
547 status = "okay";
548 };
549
550 i2c_ak8975: i2c-gpio-0 {
551 compatible = "i2c-gpio";
552 gpios = <&gpy2 4 0>, <&gpy2 5 0>;
553 i2c-gpio,delay-us = <2>;
554 #address-cells = <1>;
555 #size-cells = <0>;
556 status = "okay";
557
558 ak8975@0c {
559 compatible = "asahi-kasei,ak8975";
560 reg = <0x0c>;
561 gpios = <&gpj0 7 0>;
562 };
563 };
564
565 i2c_cm36651: i2c-gpio-2 {
566 compatible = "i2c-gpio";
567 gpios = <&gpf0 0 1>, <&gpf0 1 1>;
568 i2c-gpio,delay-us = <2>;
569 #address-cells = <1>;
570 #size-cells = <0>;
571
572 cm36651@18 {
573 compatible = "capella,cm36651";
574 reg = <0x18>;
575 interrupt-parent = <&gpx0>;
576 interrupts = <2 2>;
577 vled-supply = <&ps_als_reg>;
578 };
579 };
580
581 spi_1: spi@13930000 {
582 pinctrl-names = "default";
583 pinctrl-0 = <&spi1_bus>;
584 cs-gpios = <&gpb 5 0>;
585 status = "okay";
586
587 s5c73m3_spi: s5c73m3 {
588 compatible = "samsung,s5c73m3";
589 spi-max-frequency = <50000000>;
590 reg = <0>;
591 controller-data {
592 samsung,spi-feedback-delay = <2>;
593 };
594 };
595 };
596
597 dsi_0: dsi@11C80000 {
598 vddcore-supply = <&ldo8_reg>;
599 vddio-supply = <&ldo10_reg>;
600 samsung,pll-clock-frequency = <24000000>;
601 status = "okay";
602
603 ports {
604 #address-cells = <1>;
605 #size-cells = <0>;
606
607 port@1 {
608 reg = <1>;
609
610 dsi_out: endpoint {
611 remote-endpoint = <&dsi_in>;
612 samsung,burst-clock-frequency = <500000000>;
613 samsung,esc-clock-frequency = <20000000>;
614 };
615 };
616 };
617
618 panel@0 {
619 compatible = "samsung,s6e8aa0";
620 reg = <0>;
621 vdd3-supply = <&lcd_vdd3_reg>;
622 vci-supply = <&ldo25_reg>;
623 reset-gpios = <&gpy4 5 0>;
624 power-on-delay= <50>;
625 reset-delay = <100>;
626 init-delay = <100>;
627 flip-horizontal;
628 flip-vertical;
629 panel-width-mm = <58>;
630 panel-height-mm = <103>;
631
632 display-timings {
633 timing-0 {
634 clock-frequency = <0>;
635 hactive = <720>;
636 vactive = <1280>;
637 hfront-porch = <5>;
638 hback-porch = <5>;
639 hsync-len = <5>;
640 vfront-porch = <13>;
641 vback-porch = <1>;
642 vsync-len = <2>;
643 };
644 };
645
646 port {
647 dsi_in: endpoint {
648 remote-endpoint = <&dsi_out>;
649 };
650 };
651 };
652 };
653
654 fimd@11c00000 {
655 status = "okay";
656 };
657
658 camera: camera {
659 pinctrl-0 = <&cam_port_a_clk_active &cam_port_b_clk_active>;
660 pinctrl-names = "default";
661 status = "okay";
662
663 fimc_0: fimc@11800000 {
664 status = "okay";
665 };
666
667 fimc_1: fimc@11810000 {
668 status = "okay";
669 };
670
671 fimc_2: fimc@11820000 {
672 status = "okay";
673 };
674
675 fimc_3: fimc@11830000 {
676 status = "okay";
677 };
678
679 csis_0: csis@11880000 {
680 status = "okay";
681 vddcore-supply = <&ldo8_reg>;
682 vddio-supply = <&ldo10_reg>;
683 clock-frequency = <176000000>;
684
685 /* Camera C (3) MIPI CSI-2 (CSIS0) */
686 port@3 {
687 reg = <3>;
688 csis0_ep: endpoint {
689 remote-endpoint = <&s5c73m3_ep>;
690 data-lanes = <1 2 3 4>;
691 samsung,csis-hs-settle = <12>;
692 };
693 };
694 };
695
696 csis_1: csis@11890000 {
697 vddcore-supply = <&ldo8_reg>;
698 vddio-supply = <&ldo10_reg>;
699 clock-frequency = <160000000>;
700 status = "okay";
701
702 /* Camera D (4) MIPI CSI-2 (CSIS1) */
703 port@4 {
704 reg = <4>;
705 csis1_ep: endpoint {
706 remote-endpoint = <&is_s5k6a3_ep>;
707 data-lanes = <1>;
708 samsung,csis-hs-settle = <18>;
709 samsung,csis-wclk;
710 };
711 };
712 };
713
714 fimc_lite_0: fimc-lite@12390000 {
715 status = "okay";
716 };
717
718 fimc_lite_1: fimc-lite@123A0000 {
719 status = "okay";
720 };
721
722 fimc-is@12000000 {
723 pinctrl-0 = <&fimc_is_uart>;
724 pinctrl-names = "default";
725 status = "okay";
726
727 i2c1_isp: i2c-isp@12140000 {
728 pinctrl-0 = <&fimc_is_i2c1>;
729 pinctrl-names = "default";
730
731 s5k6a3@10 {
732 compatible = "samsung,s5k6a3";
733 reg = <0x10>;
734 svdda-supply = <&cam_io_reg>;
735 svddio-supply = <&ldo19_reg>;
736 afvdd-supply = <&ldo19_reg>;
737 clock-frequency = <24000000>;
738 /* CAM_B_CLKOUT */
739 clocks = <&camera 1>;
740 clock-names = "extclk";
741 samsung,camclk-out = <1>;
742 gpios = <&gpm1 6 0>;
743
744 port {
745 is_s5k6a3_ep: endpoint {
746 remote-endpoint = <&csis1_ep>;
747 data-lanes = <1>;
748 };
749 };
750 };
751 };
752 };
753 };
754
755 exynos-usbphy@125B0000 {
756 status = "okay";
757 };
758
759 hsotg@12480000 {
760 vusb_d-supply = <&ldo15_reg>;
761 vusb_a-supply = <&ldo12_reg>;
762 status = "okay";
763 };
764
765 thermistor-ap@0 {
766 compatible = "ntc,ncp15wb473";
767 pullup-uv = <1800000>; /* VCC_1.8V_AP */
768 pullup-ohm = <100000>; /* 100K */
769 pulldown-ohm = <100000>; /* 100K */
770 io-channels = <&adc 1>; /* AP temperature */
771 };
772
773 thermistor-battery@1 {
774 compatible = "ntc,ncp15wb473";
775 pullup-uv = <1800000>; /* VCC_1.8V_AP */
776 pullup-ohm = <100000>; /* 100K */
777 pulldown-ohm = <100000>; /* 100K */
778 io-channels = <&adc 2>; /* Battery temperature */
779 };
780 };
781
782 &pinctrl_0 {
783 pinctrl-names = "default";
784 pinctrl-0 = <&sleep0>;
785
786 sleep0: sleep-states {
787 PIN_SLP(gpa0-0, INPUT, NONE);
788 PIN_SLP(gpa0-1, OUT0, NONE);
789 PIN_SLP(gpa0-2, INPUT, NONE);
790 PIN_SLP(gpa0-3, INPUT, UP);
791 PIN_SLP(gpa0-4, INPUT, NONE);
792 PIN_SLP(gpa0-5, INPUT, DOWN);
793 PIN_SLP(gpa0-6, INPUT, DOWN);
794 PIN_SLP(gpa0-7, INPUT, UP);
795
796 PIN_SLP(gpa1-0, INPUT, DOWN);
797 PIN_SLP(gpa1-1, INPUT, DOWN);
798 PIN_SLP(gpa1-2, INPUT, DOWN);
799 PIN_SLP(gpa1-3, INPUT, DOWN);
800 PIN_SLP(gpa1-4, INPUT, DOWN);
801 PIN_SLP(gpa1-5, INPUT, DOWN);
802
803 PIN_SLP(gpb-0, INPUT, NONE);
804 PIN_SLP(gpb-1, INPUT, NONE);
805 PIN_SLP(gpb-2, INPUT, NONE);
806 PIN_SLP(gpb-3, INPUT, NONE);
807 PIN_SLP(gpb-4, INPUT, DOWN);
808 PIN_SLP(gpb-5, INPUT, UP);
809 PIN_SLP(gpb-6, INPUT, DOWN);
810 PIN_SLP(gpb-7, INPUT, DOWN);
811
812 PIN_SLP(gpc0-0, INPUT, DOWN);
813 PIN_SLP(gpc0-1, INPUT, DOWN);
814 PIN_SLP(gpc0-2, INPUT, DOWN);
815 PIN_SLP(gpc0-3, INPUT, DOWN);
816 PIN_SLP(gpc0-4, INPUT, DOWN);
817
818 PIN_SLP(gpc1-0, INPUT, NONE);
819 PIN_SLP(gpc1-1, PREV, NONE);
820 PIN_SLP(gpc1-2, INPUT, NONE);
821 PIN_SLP(gpc1-3, INPUT, NONE);
822 PIN_SLP(gpc1-4, INPUT, NONE);
823
824 PIN_SLP(gpd0-0, INPUT, DOWN);
825 PIN_SLP(gpd0-1, INPUT, DOWN);
826 PIN_SLP(gpd0-2, INPUT, NONE);
827 PIN_SLP(gpd0-3, INPUT, NONE);
828
829 PIN_SLP(gpd1-0, INPUT, DOWN);
830 PIN_SLP(gpd1-1, INPUT, DOWN);
831 PIN_SLP(gpd1-2, INPUT, NONE);
832 PIN_SLP(gpd1-3, INPUT, NONE);
833
834 PIN_SLP(gpf0-0, INPUT, NONE);
835 PIN_SLP(gpf0-1, INPUT, NONE);
836 PIN_SLP(gpf0-2, INPUT, DOWN);
837 PIN_SLP(gpf0-3, INPUT, DOWN);
838 PIN_SLP(gpf0-4, INPUT, NONE);
839 PIN_SLP(gpf0-5, INPUT, DOWN);
840 PIN_SLP(gpf0-6, INPUT, NONE);
841 PIN_SLP(gpf0-7, INPUT, DOWN);
842
843 PIN_SLP(gpf1-0, INPUT, DOWN);
844 PIN_SLP(gpf1-1, INPUT, DOWN);
845 PIN_SLP(gpf1-2, INPUT, DOWN);
846 PIN_SLP(gpf1-3, INPUT, DOWN);
847 PIN_SLP(gpf1-4, INPUT, NONE);
848 PIN_SLP(gpf1-5, INPUT, NONE);
849 PIN_SLP(gpf1-6, INPUT, DOWN);
850 PIN_SLP(gpf1-7, PREV, NONE);
851
852 PIN_SLP(gpf2-0, PREV, NONE);
853 PIN_SLP(gpf2-1, INPUT, DOWN);
854 PIN_SLP(gpf2-2, INPUT, DOWN);
855 PIN_SLP(gpf2-3, INPUT, DOWN);
856 PIN_SLP(gpf2-4, INPUT, DOWN);
857 PIN_SLP(gpf2-5, INPUT, DOWN);
858 PIN_SLP(gpf2-6, INPUT, NONE);
859 PIN_SLP(gpf2-7, INPUT, NONE);
860
861 PIN_SLP(gpf3-0, INPUT, NONE);
862 PIN_SLP(gpf3-1, PREV, NONE);
863 PIN_SLP(gpf3-2, PREV, NONE);
864 PIN_SLP(gpf3-3, PREV, NONE);
865 PIN_SLP(gpf3-4, OUT1, NONE);
866 PIN_SLP(gpf3-5, INPUT, DOWN);
867
868 PIN_SLP(gpj0-0, PREV, NONE);
869 PIN_SLP(gpj0-1, PREV, NONE);
870 PIN_SLP(gpj0-2, PREV, NONE);
871 PIN_SLP(gpj0-3, INPUT, DOWN);
872 PIN_SLP(gpj0-4, PREV, NONE);
873 PIN_SLP(gpj0-5, PREV, NONE);
874 PIN_SLP(gpj0-6, INPUT, DOWN);
875 PIN_SLP(gpj0-7, INPUT, DOWN);
876
877 PIN_SLP(gpj1-0, INPUT, DOWN);
878 PIN_SLP(gpj1-1, PREV, NONE);
879 PIN_SLP(gpj1-2, PREV, NONE);
880 PIN_SLP(gpj1-3, INPUT, DOWN);
881 PIN_SLP(gpj1-4, INPUT, DOWN);
882 };
883 };
884
885 &pinctrl_1 {
886 pinctrl-names = "default";
887 pinctrl-0 = <&sleep1>;
888
889 sleep1: sleep-states {
890 PIN_SLP(gpk0-0, PREV, NONE);
891 PIN_SLP(gpk0-1, PREV, NONE);
892 PIN_SLP(gpk0-2, OUT0, NONE);
893 PIN_SLP(gpk0-3, PREV, NONE);
894 PIN_SLP(gpk0-4, PREV, NONE);
895 PIN_SLP(gpk0-5, PREV, NONE);
896 PIN_SLP(gpk0-6, PREV, NONE);
897
898 PIN_SLP(gpk1-0, INPUT, DOWN);
899 PIN_SLP(gpk1-1, INPUT, DOWN);
900 PIN_SLP(gpk1-2, INPUT, DOWN);
901 PIN_SLP(gpk1-3, PREV, NONE);
902 PIN_SLP(gpk1-4, PREV, NONE);
903 PIN_SLP(gpk1-5, PREV, NONE);
904 PIN_SLP(gpk1-6, PREV, NONE);
905
906 PIN_SLP(gpk2-0, INPUT, DOWN);
907 PIN_SLP(gpk2-1, INPUT, DOWN);
908 PIN_SLP(gpk2-2, INPUT, DOWN);
909 PIN_SLP(gpk2-3, INPUT, DOWN);
910 PIN_SLP(gpk2-4, INPUT, DOWN);
911 PIN_SLP(gpk2-5, INPUT, DOWN);
912 PIN_SLP(gpk2-6, INPUT, DOWN);
913
914 PIN_SLP(gpk3-0, OUT0, NONE);
915 PIN_SLP(gpk3-1, INPUT, NONE);
916 PIN_SLP(gpk3-2, INPUT, DOWN);
917 PIN_SLP(gpk3-3, INPUT, NONE);
918 PIN_SLP(gpk3-4, INPUT, NONE);
919 PIN_SLP(gpk3-5, INPUT, NONE);
920 PIN_SLP(gpk3-6, INPUT, NONE);
921
922 PIN_SLP(gpl0-0, INPUT, DOWN);
923 PIN_SLP(gpl0-1, INPUT, DOWN);
924 PIN_SLP(gpl0-2, INPUT, DOWN);
925 PIN_SLP(gpl0-3, INPUT, DOWN);
926 PIN_SLP(gpl0-4, PREV, NONE);
927 PIN_SLP(gpl0-6, PREV, NONE);
928
929 PIN_SLP(gpl1-0, INPUT, DOWN);
930 PIN_SLP(gpl1-1, INPUT, DOWN);
931 PIN_SLP(gpl2-0, INPUT, DOWN);
932 PIN_SLP(gpl2-1, INPUT, DOWN);
933 PIN_SLP(gpl2-2, INPUT, DOWN);
934 PIN_SLP(gpl2-3, INPUT, DOWN);
935 PIN_SLP(gpl2-4, INPUT, DOWN);
936 PIN_SLP(gpl2-5, INPUT, DOWN);
937 PIN_SLP(gpl2-6, PREV, NONE);
938 PIN_SLP(gpl2-7, INPUT, DOWN);
939
940 PIN_SLP(gpm0-0, INPUT, DOWN);
941 PIN_SLP(gpm0-1, INPUT, DOWN);
942 PIN_SLP(gpm0-2, INPUT, DOWN);
943 PIN_SLP(gpm0-3, INPUT, DOWN);
944 PIN_SLP(gpm0-4, INPUT, DOWN);
945 PIN_SLP(gpm0-5, INPUT, DOWN);
946 PIN_SLP(gpm0-6, INPUT, DOWN);
947 PIN_SLP(gpm0-7, INPUT, DOWN);
948
949 PIN_SLP(gpm1-0, INPUT, DOWN);
950 PIN_SLP(gpm1-1, INPUT, DOWN);
951 PIN_SLP(gpm1-2, INPUT, NONE);
952 PIN_SLP(gpm1-3, INPUT, NONE);
953 PIN_SLP(gpm1-4, INPUT, NONE);
954 PIN_SLP(gpm1-5, INPUT, NONE);
955 PIN_SLP(gpm1-6, INPUT, DOWN);
956
957 PIN_SLP(gpm2-0, INPUT, NONE);
958 PIN_SLP(gpm2-1, INPUT, NONE);
959 PIN_SLP(gpm2-2, INPUT, DOWN);
960 PIN_SLP(gpm2-3, INPUT, DOWN);
961 PIN_SLP(gpm2-4, INPUT, DOWN);
962
963 PIN_SLP(gpm3-0, PREV, NONE);
964 PIN_SLP(gpm3-1, PREV, NONE);
965 PIN_SLP(gpm3-2, PREV, NONE);
966 PIN_SLP(gpm3-3, OUT1, NONE);
967 PIN_SLP(gpm3-4, INPUT, DOWN);
968 PIN_SLP(gpm3-5, INPUT, DOWN);
969 PIN_SLP(gpm3-6, INPUT, DOWN);
970 PIN_SLP(gpm3-7, INPUT, DOWN);
971
972 PIN_SLP(gpm4-0, INPUT, DOWN);
973 PIN_SLP(gpm4-1, INPUT, DOWN);
974 PIN_SLP(gpm4-2, INPUT, DOWN);
975 PIN_SLP(gpm4-3, INPUT, DOWN);
976 PIN_SLP(gpm4-4, INPUT, DOWN);
977 PIN_SLP(gpm4-5, INPUT, DOWN);
978 PIN_SLP(gpm4-6, INPUT, DOWN);
979 PIN_SLP(gpm4-7, INPUT, DOWN);
980
981 PIN_SLP(gpy0-0, INPUT, DOWN);
982 PIN_SLP(gpy0-1, INPUT, DOWN);
983 PIN_SLP(gpy0-2, INPUT, DOWN);
984 PIN_SLP(gpy0-3, INPUT, DOWN);
985 PIN_SLP(gpy0-4, INPUT, DOWN);
986 PIN_SLP(gpy0-5, INPUT, DOWN);
987
988 PIN_SLP(gpy1-0, INPUT, DOWN);
989 PIN_SLP(gpy1-1, INPUT, DOWN);
990 PIN_SLP(gpy1-2, INPUT, DOWN);
991 PIN_SLP(gpy1-3, INPUT, DOWN);
992
993 PIN_SLP(gpy2-0, PREV, NONE);
994 PIN_SLP(gpy2-1, INPUT, DOWN);
995 PIN_SLP(gpy2-2, INPUT, NONE);
996 PIN_SLP(gpy2-3, INPUT, NONE);
997 PIN_SLP(gpy2-4, INPUT, NONE);
998 PIN_SLP(gpy2-5, INPUT, NONE);
999
1000 PIN_SLP(gpy3-0, INPUT, DOWN);
1001 PIN_SLP(gpy3-1, INPUT, DOWN);
1002 PIN_SLP(gpy3-2, INPUT, DOWN);
1003 PIN_SLP(gpy3-3, INPUT, DOWN);
1004 PIN_SLP(gpy3-4, INPUT, DOWN);
1005 PIN_SLP(gpy3-5, INPUT, DOWN);
1006 PIN_SLP(gpy3-6, INPUT, DOWN);
1007 PIN_SLP(gpy3-7, INPUT, DOWN);
1008
1009 PIN_SLP(gpy4-0, INPUT, DOWN);
1010 PIN_SLP(gpy4-1, INPUT, DOWN);
1011 PIN_SLP(gpy4-2, INPUT, DOWN);
1012 PIN_SLP(gpy4-3, INPUT, DOWN);
1013 PIN_SLP(gpy4-4, INPUT, DOWN);
1014 PIN_SLP(gpy4-5, INPUT, DOWN);
1015 PIN_SLP(gpy4-6, INPUT, DOWN);
1016 PIN_SLP(gpy4-7, INPUT, DOWN);
1017
1018 PIN_SLP(gpy5-0, INPUT, DOWN);
1019 PIN_SLP(gpy5-1, INPUT, DOWN);
1020 PIN_SLP(gpy5-2, INPUT, DOWN);
1021 PIN_SLP(gpy5-3, INPUT, DOWN);
1022 PIN_SLP(gpy5-4, INPUT, DOWN);
1023 PIN_SLP(gpy5-5, INPUT, DOWN);
1024 PIN_SLP(gpy5-6, INPUT, DOWN);
1025 PIN_SLP(gpy5-7, INPUT, DOWN);
1026
1027 PIN_SLP(gpy6-0, INPUT, DOWN);
1028 PIN_SLP(gpy6-1, INPUT, DOWN);
1029 PIN_SLP(gpy6-2, INPUT, DOWN);
1030 PIN_SLP(gpy6-3, INPUT, DOWN);
1031 PIN_SLP(gpy6-4, INPUT, DOWN);
1032 PIN_SLP(gpy6-5, INPUT, DOWN);
1033 PIN_SLP(gpy6-6, INPUT, DOWN);
1034 PIN_SLP(gpy6-7, INPUT, DOWN);
1035 };
1036 };
1037
1038 &pinctrl_2 {
1039 pinctrl-names = "default";
1040 pinctrl-0 = <&sleep2>;
1041
1042 sleep2: sleep-states {
1043 PIN_SLP(gpz-0, INPUT, DOWN);
1044 PIN_SLP(gpz-1, INPUT, DOWN);
1045 PIN_SLP(gpz-2, INPUT, DOWN);
1046 PIN_SLP(gpz-3, INPUT, DOWN);
1047 PIN_SLP(gpz-4, INPUT, DOWN);
1048 PIN_SLP(gpz-5, INPUT, DOWN);
1049 PIN_SLP(gpz-6, INPUT, DOWN);
1050 };
1051 };
1052
1053 &pinctrl_3 {
1054 pinctrl-names = "default";
1055 pinctrl-0 = <&sleep3>;
1056
1057 sleep3: sleep-states {
1058 PIN_SLP(gpv0-0, INPUT, DOWN);
1059 PIN_SLP(gpv0-1, INPUT, DOWN);
1060 PIN_SLP(gpv0-2, INPUT, DOWN);
1061 PIN_SLP(gpv0-3, INPUT, DOWN);
1062 PIN_SLP(gpv0-4, INPUT, DOWN);
1063 PIN_SLP(gpv0-5, INPUT, DOWN);
1064 PIN_SLP(gpv0-6, INPUT, DOWN);
1065 PIN_SLP(gpv0-7, INPUT, DOWN);
1066
1067 PIN_SLP(gpv1-0, INPUT, DOWN);
1068 PIN_SLP(gpv1-1, INPUT, DOWN);
1069 PIN_SLP(gpv1-2, INPUT, DOWN);
1070 PIN_SLP(gpv1-3, INPUT, DOWN);
1071 PIN_SLP(gpv1-4, INPUT, DOWN);
1072 PIN_SLP(gpv1-5, INPUT, DOWN);
1073 PIN_SLP(gpv1-6, INPUT, DOWN);
1074 PIN_SLP(gpv1-7, INPUT, DOWN);
1075
1076 PIN_SLP(gpv2-0, INPUT, DOWN);
1077 PIN_SLP(gpv2-1, INPUT, DOWN);
1078 PIN_SLP(gpv2-2, INPUT, DOWN);
1079 PIN_SLP(gpv2-3, INPUT, DOWN);
1080 PIN_SLP(gpv2-4, INPUT, DOWN);
1081 PIN_SLP(gpv2-5, INPUT, DOWN);
1082 PIN_SLP(gpv2-6, INPUT, DOWN);
1083 PIN_SLP(gpv2-7, INPUT, DOWN);
1084
1085 PIN_SLP(gpv3-0, INPUT, DOWN);
1086 PIN_SLP(gpv3-1, INPUT, DOWN);
1087 PIN_SLP(gpv3-2, INPUT, DOWN);
1088 PIN_SLP(gpv3-3, INPUT, DOWN);
1089 PIN_SLP(gpv3-4, INPUT, DOWN);
1090 PIN_SLP(gpv3-5, INPUT, DOWN);
1091 PIN_SLP(gpv3-6, INPUT, DOWN);
1092 PIN_SLP(gpv3-7, INPUT, DOWN);
1093
1094 PIN_SLP(gpv4-0, INPUT, DOWN);
1095 };
1096 };
This page took 0.052674 seconds and 4 git commands to generate.