Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos3250-rinato.dts
1 /*
2  * Samsung's Exynos3250 based Rinato board device tree source
3  *
4  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * Device tree source file for Samsung's Rinato board which is based on
8  * Samsung Exynos3250 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 "exynos3250.dtsi"
17 #include "exynos4412-ppmu-common.dtsi"
18 #include <dt-bindings/input/input.h>
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/clock/samsung,s2mps11.h>
21
22 / {
23         model = "Samsung Rinato board";
24         compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
25
26         aliases {
27                 i2c7 = &i2c_max77836;
28         };
29
30         memory@40000000 {
31                 device_type = "memory";
32                 reg =  <0x40000000 0x1ff00000>;
33         };
34
35         firmware@205f000 {
36                 compatible = "samsung,secure-firmware";
37                 reg = <0x0205F000 0x1000>;
38         };
39
40         gpio_keys {
41                 compatible = "gpio-keys";
42
43                 power_key {
44                         gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
45                         linux,code = <KEY_POWER>;
46                         label = "power key";
47                         debounce-interval = <10>;
48                         wakeup-source;
49                 };
50         };
51
52         i2c_max77836: i2c-gpio-0 {
53                 compatible = "i2c-gpio";
54                 gpios = <&gpd0 2 GPIO_ACTIVE_HIGH>, <&gpd0 3 GPIO_ACTIVE_HIGH>;
55                 #address-cells = <1>;
56                 #size-cells = <0>;
57
58                 max77836: subpmic@25 {
59                         compatible = "maxim,max77836";
60                         interrupt-parent = <&gpx1>;
61                         interrupts = <5 IRQ_TYPE_NONE>;
62                         reg = <0x25>;
63                         wakeup-source;
64
65                         muic: max77836-muic {
66                                 compatible = "maxim,max77836-muic";
67                         };
68
69                         regulators {
70                                 compatible = "maxim,max77836-regulator";
71                                 safeout_reg: SAFEOUT {
72                                         regulator-name = "SAFEOUT";
73                                 };
74
75                                 charger_reg: CHARGER {
76                                         regulator-name = "CHARGER";
77                                         regulator-min-microamp = <45000>;
78                                         regulator-max-microamp = <475000>;
79                                         regulator-boot-on;
80                                 };
81
82                                 motor_reg: LDO1 {
83                                         regulator-name = "MOT_2.7V";
84                                         regulator-min-microvolt = <1100000>;
85                                         regulator-max-microvolt = <2700000>;
86                                 };
87
88                                 LDO2 {
89                                         regulator-name = "UNUSED_LDO2";
90                                         regulator-min-microvolt = <800000>;
91                                         regulator-max-microvolt = <3950000>;
92                                 };
93                         };
94
95                         charger {
96                                 compatible = "maxim,max77836-charger";
97
98                                 maxim,constant-uvolt = <4350000>;
99                                 maxim,fast-charge-uamp = <225000>;
100                                 maxim,eoc-uamp = <7500>;
101                                 maxim,ovp-uvolt = <6500000>;
102                         };
103                 };
104         };
105
106         haptics {
107                 compatible = "regulator-haptic";
108                 haptic-supply = <&motor_reg>;
109                 min-microvolt = <1100000>;
110                 max-microvolt = <2700000>;
111         };
112
113         thermal-zones {
114                 cpu_thermal: cpu-thermal {
115                         cooling-maps {
116                                 map0 {
117                                         /* Corresponds to 500MHz */
118                                         cooling-device = <&cpu0 5 5>;
119                                 };
120                                 map1 {
121                                         /* Corresponds to 200MHz */
122                                         cooling-device = <&cpu0 8 8>;
123                                 };
124                         };
125                 };
126         };
127 };
128
129 &adc {
130         vdd-supply = <&ldo3_reg>;
131         status = "okay";
132         assigned-clocks = <&cmu CLK_SCLK_TSADC>;
133         assigned-clock-rates = <6000000>;
134
135         thermistor-ap {
136                 compatible = "ntc,ncp15wb473";
137                 pullup-uv = <1800000>;
138                 pullup-ohm = <100000>;
139                 pulldown-ohm = <100000>;
140                 io-channels = <&adc 0>;
141         };
142
143         thermistor-battery {
144                 compatible = "ntc,ncp15wb473";
145                 pullup-uv = <1800000>;
146                 pullup-ohm = <100000>;
147                 pulldown-ohm = <100000>;
148                 io-channels = <&adc 1>;
149         };
150 };
151
152 &bus_dmc {
153         devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
154         vdd-supply = <&buck1_reg>;
155         status = "okay";
156 };
157
158 &bus_leftbus {
159         devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
160         vdd-supply = <&buck3_reg>;
161         status = "okay";
162 };
163
164 &bus_rightbus {
165         devfreq = <&bus_leftbus>;
166         status = "okay";
167 };
168
169 &bus_lcd0 {
170         devfreq = <&bus_leftbus>;
171         status = "okay";
172 };
173
174 &bus_fsys {
175         devfreq = <&bus_leftbus>;
176         status = "okay";
177 };
178
179 &bus_mcuisp {
180         devfreq = <&bus_leftbus>;
181         status = "okay";
182 };
183
184 &bus_isp {
185         devfreq = <&bus_leftbus>;
186         status = "okay";
187 };
188
189 &bus_peril {
190         devfreq = <&bus_leftbus>;
191         status = "okay";
192 };
193
194 &bus_mfc {
195         devfreq = <&bus_leftbus>;
196         status = "okay";
197 };
198
199 &cpu0 {
200         cpu0-supply = <&buck2_reg>;
201 };
202
203 &exynos_usbphy {
204         status = "okay";
205         vbus-supply = <&safeout_reg>;
206 };
207
208 &hsotg {
209         vusb_d-supply = <&ldo15_reg>;
210         vusb_a-supply = <&ldo12_reg>;
211         dr_mode = "peripheral";
212         status = "okay";
213 };
214
215 &dsi_0 {
216         vddcore-supply = <&ldo6_reg>;
217         vddio-supply = <&ldo6_reg>;
218         samsung,burst-clock-frequency = <250000000>;
219         samsung,esc-clock-frequency = <20000000>;
220         samsung,pll-clock-frequency = <24000000>;
221         status = "okay";
222
223         panel@0 {
224                 compatible = "samsung,s6e63j0x03";
225                 reg = <0>;
226                 vdd3-supply = <&ldo16_reg>;
227                 vci-supply = <&ldo20_reg>;
228                 reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
229                 te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
230         };
231 };
232
233 &fimd {
234         status = "okay";
235
236         i80-if-timings {
237                 cs-setup = <0>;
238                 wr-setup = <0>;
239                 wr-act = <1>;
240                 wr-hold = <0>;
241         };
242 };
243
244 &i2c_0 {
245         #address-cells = <1>;
246         #size-cells = <0>;
247         samsung,i2c-sda-delay = <100>;
248         samsung,i2c-slave-addr = <0x10>;
249         samsung,i2c-max-bus-freq = <100000>;
250         status = "okay";
251
252         s2mps14_pmic@66 {
253                 compatible = "samsung,s2mps14-pmic";
254                 interrupt-parent = <&gpx0>;
255                 interrupts = <7 IRQ_TYPE_NONE>;
256                 reg = <0x66>;
257                 wakeup-source;
258
259                 s2mps14_osc: clocks {
260                         compatible = "samsung,s2mps14-clk";
261                         #clock-cells = <1>;
262                         clock-output-names = "s2mps14_ap", "unused",
263                                 "s2mps14_bt";
264                 };
265
266                 regulators {
267                         ldo1_reg: LDO1 {
268                                 regulator-name = "VAP_ALIVE_1.0V";
269                                 regulator-min-microvolt = <1000000>;
270                                 regulator-max-microvolt = <1000000>;
271                                 regulator-always-on;
272
273                                 regulator-state-mem {
274                                         regulator-on-in-suspend;
275                                 };
276                         };
277
278                         ldo2_reg: LDO2 {
279                                 regulator-name = "VAP_M1_1.2V";
280                                 regulator-min-microvolt = <1200000>;
281                                 regulator-max-microvolt = <1200000>;
282                                 regulator-always-on;
283
284                                 regulator-state-mem {
285                                         regulator-off-in-suspend;
286                                 };
287                         };
288
289                         ldo3_reg: LDO3 {
290                                 regulator-name = "VCC_AP_1.8V";
291                                 regulator-min-microvolt = <1800000>;
292                                 regulator-max-microvolt = <1800000>;
293                                 regulator-always-on;
294
295                                 regulator-state-mem {
296                                         regulator-off-in-suspend;
297                                 };
298                         };
299
300                         ldo4_reg: LDO4 {
301                                 regulator-name = "VAP_AVDD_PLL1";
302                                 regulator-min-microvolt = <1800000>;
303                                 regulator-max-microvolt = <1800000>;
304                                 regulator-always-on;
305
306                                 regulator-state-mem {
307                                         regulator-off-in-suspend;
308                                 };
309                         };
310
311                         ldo5_reg: LDO5 {
312                                 regulator-name = "VAP_PLL_ISO_1.0V";
313                                 regulator-min-microvolt = <1000000>;
314                                 regulator-max-microvolt = <1000000>;
315                                 regulator-always-on;
316
317                                 regulator-state-mem {
318                                         regulator-off-in-suspend;
319                                 };
320                         };
321
322                         ldo6_reg: LDO6 {
323                                 regulator-name = "VAP_VMIPI_1.0V";
324                                 regulator-min-microvolt = <1000000>;
325                                 regulator-max-microvolt = <1000000>;
326                                 regulator-always-on;
327
328                                 regulator-state-mem {
329                                         regulator-off-in-suspend;
330                                 };
331                         };
332
333                         ldo7_reg: LDO7 {
334                                 regulator-name = "VAP_AVDD_1.8V";
335                                 regulator-min-microvolt = <1800000>;
336                                 regulator-max-microvolt = <1800000>;
337                                 regulator-always-on;
338
339                                 regulator-state-mem {
340                                         regulator-off-in-suspend;
341                                 };
342                         };
343
344                         ldo8_reg: LDO8 {
345                                 regulator-name = "VAP_USB_3.0V";
346                                 regulator-min-microvolt = <3000000>;
347                                 regulator-max-microvolt = <3000000>;
348                                 regulator-always-on;
349
350                                 regulator-state-mem {
351                                         regulator-off-in-suspend;
352                                 };
353                         };
354
355                         ldo9_reg: LDO9 {
356                                 regulator-name = "V_LPDDR_1.2V";
357                                 regulator-min-microvolt = <1200000>;
358                                 regulator-max-microvolt = <1200000>;
359                                 regulator-always-on;
360
361                                 regulator-state-mem {
362                                         regulator-on-in-suspend;
363                                 };
364                         };
365
366                         ldo10_reg: LDO10 {
367                                 regulator-name = "UNUSED_LDO10";
368                                 regulator-min-microvolt = <1000000>;
369                                 regulator-max-microvolt = <1000000>;
370
371                                 regulator-state-mem {
372                                         regulator-off-in-suspend;
373                                 };
374                         };
375
376                         ldo11_reg: LDO11 {
377                                 regulator-name = "V_EMMC_1.8V";
378                                 regulator-min-microvolt = <1800000>;
379                                 regulator-max-microvolt = <1800000>;
380                                 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
381                         };
382
383                         ldo12_reg: LDO12 {
384                                 regulator-name = "V_EMMC_2.8V";
385                                 regulator-min-microvolt = <2800000>;
386                                 regulator-max-microvolt = <2800000>;
387                                 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
388                         };
389
390                         ldo13_reg: LDO13 {
391                                 regulator-name = "CAM_AVDD_2.8V";
392                                 regulator-min-microvolt = <2800000>;
393                                 regulator-max-microvolt = <2800000>;
394
395                                 regulator-state-mem {
396                                         regulator-off-in-suspend;
397                                 };
398                         };
399
400                         ldo14_reg: LDO14 {
401                                 regulator-name = "UNUSED_LDO14";
402                                 regulator-min-microvolt = <2700000>;
403                                 regulator-max-microvolt = <2700000>;
404
405                                 regulator-state-mem {
406                                         regulator-off-in-suspend;
407                                 };
408                         };
409
410                         ldo15_reg: LDO15 {
411                                 regulator-name = "TSP_AVDD_3.3V";
412                                 regulator-min-microvolt = <3300000>;
413                                 regulator-max-microvolt = <3300000>;
414
415                                 regulator-state-mem {
416                                         regulator-off-in-suspend;
417                                 };
418                         };
419
420                         ldo16_reg: LDO16 {
421                                 regulator-name = "LCD_VDD_3.3V";
422                                 regulator-min-microvolt = <3300000>;
423                                 regulator-max-microvolt = <3300000>;
424
425                                 regulator-state-mem {
426                                         regulator-off-in-suspend;
427                                 };
428                         };
429
430                         ldo17_reg: LDO17 {
431                                 regulator-name = "V_IRLED_3.3V";
432                                 regulator-min-microvolt = <3300000>;
433                                 regulator-max-microvolt = <3300000>;
434
435                                 regulator-state-mem {
436                                         regulator-off-in-suspend;
437                                 };
438                         };
439
440                         ldo18_reg: LDO18 {
441                                 regulator-name = "CAM_AF_2.8V";
442                                 regulator-min-microvolt = <2800000>;
443                                 regulator-max-microvolt = <2800000>;
444
445                                 regulator-state-mem {
446                                         regulator-off-in-suspend;
447                                 };
448                         };
449
450                         ldo19_reg: LDO19 {
451                                 regulator-name = "TSP_VDD_1.8V";
452                                 regulator-min-microvolt = <1800000>;
453                                 regulator-max-microvolt = <1800000>;
454
455                                 regulator-state-mem {
456                                         regulator-off-in-suspend;
457                                 };
458                         };
459
460                         ldo20_reg: LDO20 {
461                                 regulator-name = "LCD_VDD_1.8V";
462                                 regulator-min-microvolt = <1800000>;
463                                 regulator-max-microvolt = <1800000>;
464
465                                 regulator-state-mem {
466                                         regulator-off-in-suspend;
467                                 };
468                         };
469
470                         ldo21_reg: LDO21 {
471                                 regulator-name = "CAM_IO_1.8V";
472                                 regulator-min-microvolt = <1800000>;
473                                 regulator-max-microvolt = <1800000>;
474
475                                 regulator-state-mem {
476                                         regulator-off-in-suspend;
477                                 };
478                         };
479
480                         ldo22_reg: LDO22 {
481                                 regulator-name = "CAM_DVDD_1.2V";
482                                 regulator-min-microvolt = <1200000>;
483                                 regulator-max-microvolt = <1200000>;
484
485                                 regulator-state-mem {
486                                         regulator-off-in-suspend;
487                                 };
488                         };
489
490                         ldo23_reg: LDO23 {
491                                 regulator-name = "HRM_VCC_1.8V";
492                                 regulator-min-microvolt = <1800000>;
493                                 regulator-max-microvolt = <1800000>;
494                                 regulator-always-on;
495                         };
496
497                         ldo24_reg: LDO24 {
498                                 regulator-name = "HRM_VCC_3.3V";
499                                 regulator-min-microvolt = <3000000>;
500                                 regulator-max-microvolt = <3000000>;
501
502                                 regulator-state-mem {
503                                         regulator-off-in-suspend;
504                                 };
505                         };
506
507                         ldo25_reg: LDO25 {
508                                 regulator-name = "UNUSED_LDO25";
509                                 regulator-min-microvolt = <3000000>;
510                                 regulator-max-microvolt = <3000000>;
511
512                                 regulator-state-mem {
513                                         regulator-off-in-suspend;
514                                 };
515                         };
516
517                         buck1_reg: BUCK1 {
518                                 regulator-name = "VAP_MIF_1.0V";
519                                 regulator-min-microvolt = <800000>;
520                                 regulator-max-microvolt = <900000>;
521                                 regulator-always-on;
522
523                                 regulator-state-mem {
524                                         regulator-off-in-suspend;
525                                 };
526                         };
527
528                         buck2_reg: BUCK2 {
529                                 regulator-name = "VAP_ARM_1.0V";
530                                 regulator-min-microvolt = <850000>;
531                                 regulator-max-microvolt = <1150000>;
532                                 regulator-always-on;
533
534                                 regulator-state-mem {
535                                         regulator-off-in-suspend;
536                                 };
537                         };
538
539                         buck3_reg: BUCK3 {
540                                 regulator-name = "VAP_INT3D_1.0V";
541                                 regulator-min-microvolt = <850000>;
542                                 regulator-max-microvolt = <1000000>;
543                                 regulator-always-on;
544
545                                 regulator-state-mem {
546                                         regulator-off-in-suspend;
547                                 };
548                         };
549
550                         buck4_reg: BUCK4 {
551                                 regulator-name = "VCC_SUB_1.95V";
552                                 regulator-min-microvolt = <1950000>;
553                                 regulator-max-microvolt = <1950000>;
554                                 regulator-always-on;
555
556                                 regulator-state-mem {
557                                         regulator-on-in-suspend;
558                                 };
559                         };
560
561                         buck5_reg: BUCK5 {
562                                 regulator-name = "VCC_SUB_1.35V";
563                                 regulator-min-microvolt = <1350000>;
564                                 regulator-max-microvolt = <1350000>;
565                                 regulator-always-on;
566
567                                 regulator-state-mem {
568                                         regulator-on-in-suspend;
569                                 };
570                         };
571                 };
572         };
573 };
574
575 &i2c_1 {
576         #address-cells = <1>;
577         #size-cells = <0>;
578         samsung,i2c-sda-delay = <100>;
579         samsung,i2c-slave-addr = <0x10>;
580         samsung,i2c-max-bus-freq = <400000>;
581         status = "okay";
582
583         fuelgauge@36 {
584                 compatible = "maxim,max77836-battery";
585                 interrupt-parent = <&gpx1>;
586                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
587                 reg = <0x36>;
588         };
589 };
590
591 &i2s2 {
592         status = "okay";
593 };
594
595 &jpeg {
596         status = "okay";
597 };
598
599 &mshc_0 {
600         #address-cells = <1>;
601         #size-cells = <0>;
602         broken-cd;
603         non-removable;
604         cap-mmc-highspeed;
605         desc-num = <4>;
606         mmc-hs200-1_8v;
607         card-detect-delay = <200>;
608         vmmc-supply = <&ldo12_reg>;
609         clock-frequency = <100000000>;
610         max-frequency = <100000000>;
611         samsung,dw-mshc-ciu-div = <1>;
612         samsung,dw-mshc-sdr-timing = <0 1>;
613         samsung,dw-mshc-ddr-timing = <1 2>;
614         pinctrl-names = "default";
615         pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
616         bus-width = <8>;
617         status = "okay";
618 };
619
620 &serial_0 {
621         assigned-clocks = <&cmu CLK_SCLK_UART0>;
622         assigned-clock-rates = <100000000>;
623         status = "okay";
624 };
625
626 &serial_1 {
627         status = "okay";
628 };
629
630 &tmu {
631         vtmu-supply = <&ldo7_reg>;
632         status = "okay";
633 };
634
635 &rtc {
636         clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
637         clock-names = "rtc", "rtc_src";
638         status = "okay";
639 };
640
641 &xusbxti {
642         clock-frequency = <24000000>;
643 };
644
645 &pinctrl_0 {
646         pinctrl-names = "default";
647         pinctrl-0 = <&initial0 &sleep0>;
648
649         initial0: initial-state {
650                 PIN_IN(gpa1-4, DOWN, LV1);
651                 PIN_IN(gpa1-5, DOWN, LV1);
652
653                 PIN_IN(gpc0-0, DOWN, LV1);
654                 PIN_IN(gpc0-1, DOWN, LV1);
655                 PIN_IN(gpc0-2, DOWN, LV1);
656                 PIN_IN(gpc0-3, DOWN, LV1);
657                 PIN_IN(gpc0-4, DOWN, LV1);
658
659                 PIN_IN(gpd0-0, DOWN, LV1);
660                 PIN_IN(gpd0-1, DOWN, LV1);
661         };
662
663         sleep0: sleep-state {
664                 PIN_SLP(gpa0-0, INPUT, DOWN);
665                 PIN_SLP(gpa0-1, INPUT, DOWN);
666                 PIN_SLP(gpa0-2, INPUT, DOWN);
667                 PIN_SLP(gpa0-3, INPUT, DOWN);
668                 PIN_SLP(gpa0-4, INPUT, DOWN);
669                 PIN_SLP(gpa0-5, INPUT, DOWN);
670                 PIN_SLP(gpa0-6, INPUT, DOWN);
671                 PIN_SLP(gpa0-7, INPUT, DOWN);
672
673                 PIN_SLP(gpa1-0, INPUT, DOWN);
674                 PIN_SLP(gpa1-1, INPUT, DOWN);
675                 PIN_SLP(gpa1-2, INPUT, DOWN);
676                 PIN_SLP(gpa1-3, INPUT, DOWN);
677                 PIN_SLP(gpa1-4, INPUT, DOWN);
678                 PIN_SLP(gpa1-5, INPUT, DOWN);
679
680                 PIN_SLP(gpb-0, PREV, NONE);
681                 PIN_SLP(gpb-1, PREV, NONE);
682                 PIN_SLP(gpb-2, PREV, NONE);
683                 PIN_SLP(gpb-3, PREV, NONE);
684                 PIN_SLP(gpb-4, INPUT, DOWN);
685                 PIN_SLP(gpb-5, INPUT, DOWN);
686                 PIN_SLP(gpb-6, INPUT, DOWN);
687                 PIN_SLP(gpb-7, INPUT, DOWN);
688
689                 PIN_SLP(gpc0-0, INPUT, DOWN);
690                 PIN_SLP(gpc0-1, INPUT, DOWN);
691                 PIN_SLP(gpc0-2, INPUT, DOWN);
692                 PIN_SLP(gpc0-3, INPUT, DOWN);
693                 PIN_SLP(gpc0-4, INPUT, DOWN);
694
695                 PIN_SLP(gpc1-0, INPUT, DOWN);
696                 PIN_SLP(gpc1-1, INPUT, DOWN);
697                 PIN_SLP(gpc1-2, INPUT, DOWN);
698                 PIN_SLP(gpc1-3, INPUT, DOWN);
699                 PIN_SLP(gpc1-4, INPUT, DOWN);
700
701                 PIN_SLP(gpd0-0, INPUT, DOWN);
702                 PIN_SLP(gpd0-1, INPUT, DOWN);
703                 PIN_SLP(gpd0-2, INPUT, NONE);
704                 PIN_SLP(gpd0-3, INPUT, NONE);
705
706                 PIN_SLP(gpd1-0, INPUT, NONE);
707                 PIN_SLP(gpd1-1, INPUT, NONE);
708                 PIN_SLP(gpd1-2, INPUT, NONE);
709                 PIN_SLP(gpd1-3, INPUT, NONE);
710         };
711 };
712
713 &pinctrl_1 {
714         pinctrl-names = "default";
715         pinctrl-0 = <&initial1 &sleep1>;
716
717         initial1: initial-state {
718                 PIN_IN(gpe0-6, DOWN, LV1);
719                 PIN_IN(gpe0-7, DOWN, LV1);
720
721                 PIN_IN(gpe1-0, DOWN, LV1);
722                 PIN_IN(gpe1-3, DOWN, LV1);
723                 PIN_IN(gpe1-4, DOWN, LV1);
724                 PIN_IN(gpe1-5, DOWN, LV1);
725                 PIN_IN(gpe1-6, DOWN, LV1);
726
727                 PIN_IN(gpk2-0, DOWN, LV1);
728                 PIN_IN(gpk2-1, DOWN, LV1);
729                 PIN_IN(gpk2-2, DOWN, LV1);
730                 PIN_IN(gpk2-3, DOWN, LV1);
731                 PIN_IN(gpk2-4, DOWN, LV1);
732                 PIN_IN(gpk2-5, DOWN, LV1);
733                 PIN_IN(gpk2-6, DOWN, LV1);
734
735                 PIN_IN(gpm0-0, DOWN, LV1);
736                 PIN_IN(gpm0-1, DOWN, LV1);
737                 PIN_IN(gpm0-2, DOWN, LV1);
738                 PIN_IN(gpm0-3, DOWN, LV1);
739                 PIN_IN(gpm0-4, DOWN, LV1);
740                 PIN_IN(gpm0-5, DOWN, LV1);
741                 PIN_IN(gpm0-6, DOWN, LV1);
742                 PIN_IN(gpm0-7, DOWN, LV1);
743
744                 PIN_IN(gpm1-0, DOWN, LV1);
745                 PIN_IN(gpm1-1, DOWN, LV1);
746                 PIN_IN(gpm1-2, DOWN, LV1);
747                 PIN_IN(gpm1-3, DOWN, LV1);
748                 PIN_IN(gpm1-4, DOWN, LV1);
749                 PIN_IN(gpm1-5, DOWN, LV1);
750                 PIN_IN(gpm1-6, DOWN, LV1);
751
752                 PIN_IN(gpm2-0, DOWN, LV1);
753                 PIN_IN(gpm2-1, DOWN, LV1);
754
755                 PIN_IN(gpm3-0, DOWN, LV1);
756                 PIN_IN(gpm3-1, DOWN, LV1);
757                 PIN_IN(gpm3-2, DOWN, LV1);
758                 PIN_IN(gpm3-3, DOWN, LV1);
759                 PIN_IN(gpm3-4, DOWN, LV1);
760
761                 PIN_IN(gpm4-1, DOWN, LV1);
762                 PIN_IN(gpm4-2, DOWN, LV1);
763                 PIN_IN(gpm4-3, DOWN, LV1);
764                 PIN_IN(gpm4-4, DOWN, LV1);
765                 PIN_IN(gpm4-5, DOWN, LV1);
766                 PIN_IN(gpm4-6, DOWN, LV1);
767                 PIN_IN(gpm4-7, DOWN, LV1);
768         };
769
770         sleep1: sleep-state {
771                 PIN_SLP(gpe0-0, PREV, NONE);
772                 PIN_SLP(gpe0-1, PREV, NONE);
773                 PIN_SLP(gpe0-2, INPUT, DOWN);
774                 PIN_SLP(gpe0-3, INPUT, UP);
775                 PIN_SLP(gpe0-4, INPUT, DOWN);
776                 PIN_SLP(gpe0-5, INPUT, DOWN);
777                 PIN_SLP(gpe0-6, INPUT, DOWN);
778                 PIN_SLP(gpe0-7, INPUT, DOWN);
779
780                 PIN_SLP(gpe1-0, INPUT, DOWN);
781                 PIN_SLP(gpe1-1, PREV, NONE);
782                 PIN_SLP(gpe1-2, INPUT, DOWN);
783                 PIN_SLP(gpe1-3, INPUT, DOWN);
784                 PIN_SLP(gpe1-4, INPUT, DOWN);
785                 PIN_SLP(gpe1-5, INPUT, DOWN);
786                 PIN_SLP(gpe1-6, INPUT, DOWN);
787                 PIN_SLP(gpe1-7, INPUT, NONE);
788
789                 PIN_SLP(gpe2-0, INPUT, NONE);
790                 PIN_SLP(gpe2-1, INPUT, NONE);
791                 PIN_SLP(gpe2-2, INPUT, NONE);
792
793                 PIN_SLP(gpk0-0, INPUT, DOWN);
794                 PIN_SLP(gpk0-1, INPUT, DOWN);
795                 PIN_SLP(gpk0-2, OUT0, NONE);
796                 PIN_SLP(gpk0-3, INPUT, DOWN);
797                 PIN_SLP(gpk0-4, INPUT, DOWN);
798                 PIN_SLP(gpk0-5, INPUT, DOWN);
799                 PIN_SLP(gpk0-6, INPUT, DOWN);
800                 PIN_SLP(gpk0-7, INPUT, DOWN);
801
802                 PIN_SLP(gpk1-0, INPUT, DOWN);
803                 PIN_SLP(gpk1-1, INPUT, DOWN);
804                 PIN_SLP(gpk1-2, INPUT, DOWN);
805                 PIN_SLP(gpk1-3, INPUT, DOWN);
806                 PIN_SLP(gpk1-4, INPUT, DOWN);
807                 PIN_SLP(gpk1-5, INPUT, DOWN);
808                 PIN_SLP(gpk1-6, INPUT, DOWN);
809
810                 PIN_SLP(gpk2-0, INPUT, DOWN);
811                 PIN_SLP(gpk2-1, INPUT, DOWN);
812                 PIN_SLP(gpk2-2, INPUT, DOWN);
813                 PIN_SLP(gpk2-3, INPUT, DOWN);
814                 PIN_SLP(gpk2-4, INPUT, DOWN);
815                 PIN_SLP(gpk2-5, INPUT, DOWN);
816                 PIN_SLP(gpk2-6, INPUT, DOWN);
817
818                 PIN_SLP(gpl0-0, INPUT, DOWN);
819                 PIN_SLP(gpl0-1, INPUT, DOWN);
820                 PIN_SLP(gpl0-2, INPUT, DOWN);
821                 PIN_SLP(gpl0-3, INPUT, DOWN);
822
823                 PIN_SLP(gpm0-0, INPUT, DOWN);
824                 PIN_SLP(gpm0-1, INPUT, DOWN);
825                 PIN_SLP(gpm0-2, INPUT, DOWN);
826                 PIN_SLP(gpm0-3, INPUT, DOWN);
827                 PIN_SLP(gpm0-4, INPUT, DOWN);
828                 PIN_SLP(gpm0-5, INPUT, DOWN);
829                 PIN_SLP(gpm0-6, INPUT, DOWN);
830                 PIN_SLP(gpm0-7, INPUT, DOWN);
831
832                 PIN_SLP(gpm1-0, INPUT, DOWN);
833                 PIN_SLP(gpm1-1, INPUT, DOWN);
834                 PIN_SLP(gpm1-2, INPUT, DOWN);
835                 PIN_SLP(gpm1-3, INPUT, DOWN);
836                 PIN_SLP(gpm1-4, INPUT, DOWN);
837                 PIN_SLP(gpm1-5, INPUT, DOWN);
838                 PIN_SLP(gpm1-6, INPUT, DOWN);
839
840                 PIN_SLP(gpm2-0, INPUT, DOWN);
841                 PIN_SLP(gpm2-1, INPUT, DOWN);
842                 PIN_SLP(gpm2-2, INPUT, DOWN);
843                 PIN_SLP(gpm2-3, INPUT, DOWN);
844                 PIN_SLP(gpm2-4, INPUT, DOWN);
845
846                 PIN_SLP(gpm3-0, INPUT, DOWN);
847                 PIN_SLP(gpm3-1, INPUT, DOWN);
848                 PIN_SLP(gpm3-2, INPUT, DOWN);
849                 PIN_SLP(gpm3-3, INPUT, DOWN);
850                 PIN_SLP(gpm3-4, INPUT, DOWN);
851                 PIN_SLP(gpm3-5, INPUT, DOWN);
852                 PIN_SLP(gpm3-6, INPUT, DOWN);
853                 PIN_SLP(gpm3-7, INPUT, DOWN);
854
855                 PIN_SLP(gpm4-0, INPUT, DOWN);
856                 PIN_SLP(gpm4-1, INPUT, DOWN);
857                 PIN_SLP(gpm4-2, INPUT, DOWN);
858                 PIN_SLP(gpm4-3, INPUT, DOWN);
859                 PIN_SLP(gpm4-4, INPUT, DOWN);
860                 PIN_SLP(gpm4-5, INPUT, DOWN);
861                 PIN_SLP(gpm4-6, INPUT, DOWN);
862                 PIN_SLP(gpm4-7, INPUT, DOWN);
863         };
864 };