]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/exynos3250-rinato.dts
0c65155ff59ec6098dfe053efa997045f8856caf
[karo-tx-linux.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 <dt-bindings/input/input.h>
18 #include <dt-bindings/gpio/gpio.h>
19
20 / {
21         model = "Samsung Rinato board";
22         compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
23
24         aliases {
25                 i2c7 = &i2c_max77836;
26         };
27
28         memory {
29                 reg =  <0x40000000 0x1ff00000>;
30         };
31
32         firmware@0205F000 {
33                 compatible = "samsung,secure-firmware";
34                 reg = <0x0205F000 0x1000>;
35         };
36
37         gpio_keys {
38                 compatible = "gpio-keys";
39
40                 power_key {
41                         gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
42                         linux,code = <KEY_POWER>;
43                         label = "power key";
44                         debounce-interval = <10>;
45                         gpio-key,wakeup;
46                 };
47         };
48
49         i2c_max77836: i2c-gpio-0 {
50                 compatible = "i2c-gpio";
51                 gpios = <&gpd0 2 0>, <&gpd0 3 0>;
52                 #address-cells = <1>;
53                 #size-cells = <0>;
54
55                 max77836: subpmic@25 {
56                         compatible = "maxim,max77836";
57                         interrupt-parent = <&gpx1>;
58                         interrupts = <5 0>;
59                         reg = <0x25>;
60                         wakeup;
61
62                         muic: max77836-muic {
63                                 compatible = "maxim,max77836-muic";
64                         };
65
66                         regulators {
67                                 compatible = "maxim,max77836-regulator";
68                                 safeout_reg: SAFEOUT {
69                                         regulator-name = "SAFEOUT";
70                                 };
71
72                                 charger_reg: CHARGER {
73                                         regulator-name = "CHARGER";
74                                         regulator-min-microamp = <45000>;
75                                         regulator-max-microamp = <475000>;
76                                         regulator-boot-on;
77                                 };
78
79                                 motor_reg: LDO1 {
80                                         regulator-name = "MOT_2.7V";
81                                         regulator-min-microvolt = <1100000>;
82                                         regulator-max-microvolt = <2700000>;
83                                 };
84
85                                 LDO2 {
86                                         regulator-name = "UNUSED_LDO2";
87                                         regulator-min-microvolt = <800000>;
88                                         regulator-max-microvolt = <3950000>;
89                                 };
90                         };
91
92                         charger {
93                                 compatible = "maxim,max77836-charger";
94
95                                 maxim,constant-uvolt = <4350000>;
96                                 maxim,fast-charge-uamp = <225000>;
97                                 maxim,eoc-uamp = <7500>;
98                                 maxim,ovp-uvolt = <6500000>;
99                         };
100                 };
101         };
102 };
103
104 &adc {
105         vdd-supply = <&ldo3_reg>;
106         status = "okay";
107         assigned-clocks = <&cmu CLK_SCLK_TSADC>;
108         assigned-clock-rates = <6000000>;
109
110         thermistor-ap {
111                 compatible = "ntc,ncp15wb473";
112                 pullup-uv = <1800000>;
113                 pullup-ohm = <100000>;
114                 pulldown-ohm = <100000>;
115                 io-channels = <&adc 0>;
116         };
117
118         thermistor-battery {
119                 compatible = "ntc,ncp15wb473";
120                 pullup-uv = <1800000>;
121                 pullup-ohm = <100000>;
122                 pulldown-ohm = <100000>;
123                 io-channels = <&adc 1>;
124         };
125 };
126
127 &exynos_usbphy {
128         status = "okay";
129 };
130
131 &hsotg {
132         vusb_d-supply = <&ldo15_reg>;
133         vusb_a-supply = <&ldo12_reg>;
134         status = "okay";
135 };
136
137 &i2c_0 {
138         #address-cells = <1>;
139         #size-cells = <0>;
140         samsung,i2c-sda-delay = <100>;
141         samsung,i2c-slave-addr = <0x10>;
142         samsung,i2c-max-bus-freq = <100000>;
143         status = "okay";
144
145         s2mps14_pmic@66 {
146                 compatible = "samsung,s2mps14-pmic";
147                 interrupt-parent = <&gpx0>;
148                 interrupts = <7 0>;
149                 reg = <0x66>;
150                 wakeup;
151
152                 s2mps14_osc: clocks {
153                         compatible = "samsung,s2mps14-clk";
154                         #clock-cells = <1>;
155                         clock-output-names = "s2mps14_ap", "unused",
156                                 "s2mps14_bt";
157                 };
158
159                 regulators {
160                         ldo1_reg: LDO1 {
161                                 regulator-name = "VAP_ALIVE_1.0V";
162                                 regulator-min-microvolt = <1000000>;
163                                 regulator-max-microvolt = <1000000>;
164                                 regulator-always-on;
165
166                                 regulator-state-mem {
167                                         regulator-on-in-suspend;
168                                 };
169                         };
170
171                         ldo2_reg: LDO2 {
172                                 regulator-name = "VAP_M1_1.2V";
173                                 regulator-min-microvolt = <1200000>;
174                                 regulator-max-microvolt = <1200000>;
175                                 regulator-always-on;
176
177                                 regulator-state-mem {
178                                         regulator-off-in-suspend;
179                                 };
180                         };
181
182                         ldo3_reg: LDO3 {
183                                 regulator-name = "VCC_AP_1.8V";
184                                 regulator-min-microvolt = <1800000>;
185                                 regulator-max-microvolt = <1800000>;
186                                 regulator-always-on;
187
188                                 regulator-state-mem {
189                                         regulator-off-in-suspend;
190                                 };
191                         };
192
193                         ldo4_reg: LDO4 {
194                                 regulator-name = "VAP_AVDD_PLL1";
195                                 regulator-min-microvolt = <1800000>;
196                                 regulator-max-microvolt = <1800000>;
197                                 regulator-always-on;
198
199                                 regulator-state-mem {
200                                         regulator-off-in-suspend;
201                                 };
202                         };
203
204                         ldo5_reg: LDO5 {
205                                 regulator-name = "VAP_PLL_ISO_1.0V";
206                                 regulator-min-microvolt = <1000000>;
207                                 regulator-max-microvolt = <1000000>;
208                                 regulator-always-on;
209
210                                 regulator-state-mem {
211                                         regulator-off-in-suspend;
212                                 };
213                         };
214
215                         ldo6_reg: LDO6 {
216                                 regulator-name = "VAP_VMIPI_1.0V";
217                                 regulator-min-microvolt = <1000000>;
218                                 regulator-max-microvolt = <1000000>;
219                                 regulator-always-on;
220
221                                 regulator-state-mem {
222                                         regulator-off-in-suspend;
223                                 };
224                         };
225
226                         ldo7_reg: LDO7 {
227                                 regulator-name = "VAP_AVDD_1.8V";
228                                 regulator-min-microvolt = <1800000>;
229                                 regulator-max-microvolt = <1800000>;
230                                 regulator-always-on;
231
232                                 regulator-state-mem {
233                                         regulator-off-in-suspend;
234                                 };
235                         };
236
237                         ldo8_reg: LDO8 {
238                                 regulator-name = "VAP_USB_3.0V";
239                                 regulator-min-microvolt = <3000000>;
240                                 regulator-max-microvolt = <3000000>;
241                                 regulator-always-on;
242
243                                 regulator-state-mem {
244                                         regulator-off-in-suspend;
245                                 };
246                         };
247
248                         ldo9_reg: LDO9 {
249                                 regulator-name = "V_LPDDR_1.2V";
250                                 regulator-min-microvolt = <1200000>;
251                                 regulator-max-microvolt = <1200000>;
252                                 regulator-always-on;
253
254                                 regulator-state-mem {
255                                         regulator-on-in-suspend;
256                                 };
257                         };
258
259                         ldo10_reg: LDO10 {
260                                 regulator-name = "UNUSED_LDO10";
261                                 regulator-min-microvolt = <1000000>;
262                                 regulator-max-microvolt = <1000000>;
263
264                                 regulator-state-mem {
265                                         regulator-off-in-suspend;
266                                 };
267                         };
268
269                         ldo11_reg: LDO11 {
270                                 regulator-name = "V_EMMC_1.8V";
271                                 regulator-min-microvolt = <1800000>;
272                                 regulator-max-microvolt = <1800000>;
273                                 samsung,ext-control-gpios = <&gpk0 2 0>;
274                         };
275
276                         ldo12_reg: LDO12 {
277                                 regulator-name = "V_EMMC_2.8V";
278                                 regulator-min-microvolt = <2800000>;
279                                 regulator-max-microvolt = <2800000>;
280                                 samsung,ext-control-gpios = <&gpk0 2 0>;
281                         };
282
283                         ldo13_reg: LDO13 {
284                                 regulator-name = "CAM_AVDD_2.8V";
285                                 regulator-min-microvolt = <2800000>;
286                                 regulator-max-microvolt = <2800000>;
287
288                                 regulator-state-mem {
289                                         regulator-off-in-suspend;
290                                 };
291                         };
292
293                         ldo14_reg: LDO14 {
294                                 regulator-name = "UNUSED_LDO14";
295                                 regulator-min-microvolt = <2700000>;
296                                 regulator-max-microvolt = <2700000>;
297
298                                 regulator-state-mem {
299                                         regulator-off-in-suspend;
300                                 };
301                         };
302
303                         ldo15_reg: LDO15 {
304                                 regulator-name = "TSP_AVDD_3.3V";
305                                 regulator-min-microvolt = <3300000>;
306                                 regulator-max-microvolt = <3300000>;
307
308                                 regulator-state-mem {
309                                         regulator-off-in-suspend;
310                                 };
311                         };
312
313                         ldo16_reg: LDO16 {
314                                 regulator-name = "LCD_VDD_3.3V";
315                                 regulator-min-microvolt = <3300000>;
316                                 regulator-max-microvolt = <3300000>;
317
318                                 regulator-state-mem {
319                                         regulator-off-in-suspend;
320                                 };
321                         };
322
323                         ldo17_reg: LDO17 {
324                                 regulator-name = "V_IRLED_3.3V";
325                                 regulator-min-microvolt = <3300000>;
326                                 regulator-max-microvolt = <3300000>;
327
328                                 regulator-state-mem {
329                                         regulator-off-in-suspend;
330                                 };
331                         };
332
333                         ldo18_reg: LDO18 {
334                                 regulator-name = "CAM_AF_2.8V";
335                                 regulator-min-microvolt = <2800000>;
336                                 regulator-max-microvolt = <2800000>;
337
338                                 regulator-state-mem {
339                                         regulator-off-in-suspend;
340                                 };
341                         };
342
343                         ldo19_reg: LDO19 {
344                                 regulator-name = "TSP_VDD_1.8V";
345                                 regulator-min-microvolt = <1800000>;
346                                 regulator-max-microvolt = <1800000>;
347
348                                 regulator-state-mem {
349                                         regulator-off-in-suspend;
350                                 };
351                         };
352
353                         ldo20_reg: LDO20 {
354                                 regulator-name = "LCD_VDD_1.8V";
355                                 regulator-min-microvolt = <1800000>;
356                                 regulator-max-microvolt = <1800000>;
357
358                                 regulator-state-mem {
359                                         regulator-off-in-suspend;
360                                 };
361                         };
362
363                         ldo21_reg: LDO21 {
364                                 regulator-name = "CAM_IO_1.8V";
365                                 regulator-min-microvolt = <1800000>;
366                                 regulator-max-microvolt = <1800000>;
367
368                                 regulator-state-mem {
369                                         regulator-off-in-suspend;
370                                 };
371                         };
372
373                         ldo22_reg: LDO22 {
374                                 regulator-name = "CAM_DVDD_1.2V";
375                                 regulator-min-microvolt = <1200000>;
376                                 regulator-max-microvolt = <1200000>;
377
378                                 regulator-state-mem {
379                                         regulator-off-in-suspend;
380                                 };
381                         };
382
383                         ldo23_reg: LDO23 {
384                                 regulator-name = "HRM_VCC_1.8V";
385                                 regulator-min-microvolt = <1800000>;
386                                 regulator-max-microvolt = <1800000>;
387                                 regulator-always-on;
388                         };
389
390                         ldo24_reg: LDO24 {
391                                 regulator-name = "HRM_VCC_3.3V";
392                                 regulator-min-microvolt = <3000000>;
393                                 regulator-max-microvolt = <3000000>;
394
395                                 regulator-state-mem {
396                                         regulator-off-in-suspend;
397                                 };
398                         };
399
400                         ldo25_reg: LDO25 {
401                                 regulator-name = "UNUSED_LDO25";
402                                 regulator-min-microvolt = <3000000>;
403                                 regulator-max-microvolt = <3000000>;
404
405                                 regulator-state-mem {
406                                         regulator-off-in-suspend;
407                                 };
408                         };
409
410                         buck1_reg: BUCK1 {
411                                 regulator-name = "VAP_MIF_1.0V";
412                                 regulator-min-microvolt = <800000>;
413                                 regulator-max-microvolt = <900000>;
414                                 regulator-always-on;
415
416                                 regulator-state-mem {
417                                         regulator-off-in-suspend;
418                                 };
419                         };
420
421                         buck2_reg: BUCK2 {
422                                 regulator-name = "VAP_ARM_1.0V";
423                                 regulator-min-microvolt = <850000>;
424                                 regulator-max-microvolt = <1150000>;
425                                 regulator-always-on;
426
427                                 regulator-state-mem {
428                                         regulator-off-in-suspend;
429                                 };
430                         };
431
432                         buck3_reg: BUCK3 {
433                                 regulator-name = "VAP_INT3D_1.0V";
434                                 regulator-min-microvolt = <850000>;
435                                 regulator-max-microvolt = <1000000>;
436                                 regulator-always-on;
437
438                                 regulator-state-mem {
439                                         regulator-off-in-suspend;
440                                 };
441                         };
442
443                         buck4_reg: BUCK4 {
444                                 regulator-name = "VCC_SUB_1.95V";
445                                 regulator-min-microvolt = <1950000>;
446                                 regulator-max-microvolt = <1950000>;
447                                 regulator-always-on;
448
449                                 regulator-state-mem {
450                                         regulator-on-in-suspend;
451                                 };
452                         };
453
454                         buck5_reg: BUCK5 {
455                                 regulator-name = "VCC_SUB_1.35V";
456                                 regulator-min-microvolt = <1350000>;
457                                 regulator-max-microvolt = <1350000>;
458                                 regulator-always-on;
459
460                                 regulator-state-mem {
461                                         regulator-on-in-suspend;
462                                 };
463                         };
464                 };
465         };
466 };
467
468 &i2c_1 {
469         #address-cells = <1>;
470         #size-cells = <0>;
471         samsung,i2c-sda-delay = <100>;
472         samsung,i2c-slave-addr = <0x10>;
473         samsung,i2c-max-bus-freq = <400000>;
474         status = "okay";
475
476         fuelgauge@36 {
477                 compatible = "maxim,max77836-battery";
478                 interrupt-parent = <&gpx1>;
479                 interrupts = <2 8>;
480                 reg = <0x36>;
481         };
482 };
483
484 &i2s2 {
485         status = "okay";
486 };
487
488 &mfc {
489         status = "okay";
490 };
491
492 &mshc_0 {
493         #address-cells = <1>;
494         #size-cells = <0>;
495         num-slots = <1>;
496         broken-cd;
497         non-removable;
498         cap-mmc-highspeed;
499         desc-num = <4>;
500         mmc-hs200-1_8v;
501         card-detect-delay = <200>;
502         vmmc-supply = <&ldo12_reg>;
503         clock-frequency = <100000000>;
504         clock-freq-min-max = <400000 100000000>;
505         samsung,dw-mshc-ciu-div = <1>;
506         samsung,dw-mshc-sdr-timing = <0 1>;
507         samsung,dw-mshc-ddr-timing = <1 2>;
508         pinctrl-names = "default";
509         pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
510         bus-width = <8>;
511         status = "okay";
512 };
513
514 &serial_0 {
515         assigned-clocks = <&cmu CLK_SCLK_UART0>;
516         assigned-clock-rates = <100000000>;
517         status = "okay";
518 };
519
520 &serial_1 {
521         status = "okay";
522 };
523
524 &tmu {
525         vtmu-supply = <&ldo7_reg>;
526         status = "okay";
527 };
528
529 &rtc {
530         clocks = <&cmu CLK_RTC>, <&s2mps14_osc 0>;
531         clock-names = "rtc", "rtc_src";
532         status = "okay";
533 };
534
535 &xusbxti {
536         clock-frequency = <24000000>;
537 };
538
539 &pinctrl_0 {
540         pinctrl-names = "default";
541         pinctrl-0 = <&sleep0>;
542
543         sleep0: sleep-state {
544                 PIN_SLP(gpa0-0, INPUT, DOWN);
545                 PIN_SLP(gpa0-1, INPUT, DOWN);
546                 PIN_SLP(gpa0-2, INPUT, DOWN);
547                 PIN_SLP(gpa0-3, INPUT, DOWN);
548                 PIN_SLP(gpa0-4, INPUT, DOWN);
549                 PIN_SLP(gpa0-5, INPUT, DOWN);
550                 PIN_SLP(gpa0-6, INPUT, DOWN);
551                 PIN_SLP(gpa0-7, INPUT, DOWN);
552
553                 PIN_SLP(gpa1-0, INPUT, DOWN);
554                 PIN_SLP(gpa1-1, INPUT, DOWN);
555                 PIN_SLP(gpa1-2, INPUT, DOWN);
556                 PIN_SLP(gpa1-3, INPUT, DOWN);
557                 PIN_SLP(gpa1-4, INPUT, DOWN);
558                 PIN_SLP(gpa1-5, INPUT, DOWN);
559
560                 PIN_SLP(gpb-0, PREV, NONE);
561                 PIN_SLP(gpb-1, PREV, NONE);
562                 PIN_SLP(gpb-2, PREV, NONE);
563                 PIN_SLP(gpb-3, PREV, NONE);
564                 PIN_SLP(gpb-4, INPUT, DOWN);
565                 PIN_SLP(gpb-5, INPUT, DOWN);
566                 PIN_SLP(gpb-6, INPUT, DOWN);
567                 PIN_SLP(gpb-7, INPUT, DOWN);
568
569                 PIN_SLP(gpc0-0, INPUT, DOWN);
570                 PIN_SLP(gpc0-1, INPUT, DOWN);
571                 PIN_SLP(gpc0-2, INPUT, DOWN);
572                 PIN_SLP(gpc0-3, INPUT, DOWN);
573                 PIN_SLP(gpc0-4, INPUT, DOWN);
574
575                 PIN_SLP(gpc1-0, INPUT, DOWN);
576                 PIN_SLP(gpc1-1, INPUT, DOWN);
577                 PIN_SLP(gpc1-2, INPUT, DOWN);
578                 PIN_SLP(gpc1-3, INPUT, DOWN);
579                 PIN_SLP(gpc1-4, INPUT, DOWN);
580
581                 PIN_SLP(gpd0-0, INPUT, DOWN);
582                 PIN_SLP(gpd0-1, INPUT, DOWN);
583                 PIN_SLP(gpd0-2, INPUT, NONE);
584                 PIN_SLP(gpd0-3, INPUT, NONE);
585
586                 PIN_SLP(gpd1-0, INPUT, NONE);
587                 PIN_SLP(gpd1-1, INPUT, NONE);
588                 PIN_SLP(gpd1-2, INPUT, NONE);
589                 PIN_SLP(gpd1-3, INPUT, NONE);
590         };
591 };
592
593 &pinctrl_1 {
594         pinctrl-names = "default";
595         pinctrl-0 = <&sleep1>;
596
597         sleep1: sleep-state {
598                 PIN_SLP(gpe0-0, PREV, NONE);
599                 PIN_SLP(gpe0-1, PREV, NONE);
600                 PIN_SLP(gpe0-2, INPUT, DOWN);
601                 PIN_SLP(gpe0-3, INPUT, UP);
602                 PIN_SLP(gpe0-4, INPUT, DOWN);
603                 PIN_SLP(gpe0-5, INPUT, DOWN);
604                 PIN_SLP(gpe0-6, INPUT, DOWN);
605                 PIN_SLP(gpe0-7, INPUT, DOWN);
606
607                 PIN_SLP(gpe1-0, INPUT, DOWN);
608                 PIN_SLP(gpe1-1, PREV, NONE);
609                 PIN_SLP(gpe1-2, INPUT, DOWN);
610                 PIN_SLP(gpe1-3, INPUT, DOWN);
611                 PIN_SLP(gpe1-4, INPUT, DOWN);
612                 PIN_SLP(gpe1-5, INPUT, DOWN);
613                 PIN_SLP(gpe1-6, INPUT, DOWN);
614                 PIN_SLP(gpe1-7, INPUT, NONE);
615
616                 PIN_SLP(gpe2-0, INPUT, NONE);
617                 PIN_SLP(gpe2-1, INPUT, NONE);
618                 PIN_SLP(gpe2-2, INPUT, NONE);
619
620                 PIN_SLP(gpk0-0, INPUT, DOWN);
621                 PIN_SLP(gpk0-1, INPUT, DOWN);
622                 PIN_SLP(gpk0-2, OUT0, NONE);
623                 PIN_SLP(gpk0-3, INPUT, DOWN);
624                 PIN_SLP(gpk0-4, INPUT, DOWN);
625                 PIN_SLP(gpk0-5, INPUT, DOWN);
626                 PIN_SLP(gpk0-6, INPUT, DOWN);
627                 PIN_SLP(gpk0-7, INPUT, DOWN);
628
629                 PIN_SLP(gpk1-0, INPUT, DOWN);
630                 PIN_SLP(gpk1-1, INPUT, DOWN);
631                 PIN_SLP(gpk1-2, INPUT, DOWN);
632                 PIN_SLP(gpk1-3, INPUT, DOWN);
633                 PIN_SLP(gpk1-4, INPUT, DOWN);
634                 PIN_SLP(gpk1-5, INPUT, DOWN);
635                 PIN_SLP(gpk1-6, INPUT, DOWN);
636
637                 PIN_SLP(gpk2-0, INPUT, DOWN);
638                 PIN_SLP(gpk2-1, INPUT, DOWN);
639                 PIN_SLP(gpk2-2, INPUT, DOWN);
640                 PIN_SLP(gpk2-3, INPUT, DOWN);
641                 PIN_SLP(gpk2-4, INPUT, DOWN);
642                 PIN_SLP(gpk2-5, INPUT, DOWN);
643                 PIN_SLP(gpk2-6, INPUT, DOWN);
644
645                 PIN_SLP(gpl0-0, INPUT, DOWN);
646                 PIN_SLP(gpl0-1, INPUT, DOWN);
647                 PIN_SLP(gpl0-2, INPUT, DOWN);
648                 PIN_SLP(gpl0-3, INPUT, DOWN);
649
650                 PIN_SLP(gpm0-0, INPUT, DOWN);
651                 PIN_SLP(gpm0-1, INPUT, DOWN);
652                 PIN_SLP(gpm0-2, INPUT, DOWN);
653                 PIN_SLP(gpm0-3, INPUT, DOWN);
654                 PIN_SLP(gpm0-4, INPUT, DOWN);
655                 PIN_SLP(gpm0-5, INPUT, DOWN);
656                 PIN_SLP(gpm0-6, INPUT, DOWN);
657                 PIN_SLP(gpm0-7, INPUT, DOWN);
658
659                 PIN_SLP(gpm1-0, INPUT, DOWN);
660                 PIN_SLP(gpm1-1, INPUT, DOWN);
661                 PIN_SLP(gpm1-2, INPUT, DOWN);
662                 PIN_SLP(gpm1-3, INPUT, DOWN);
663                 PIN_SLP(gpm1-4, INPUT, DOWN);
664                 PIN_SLP(gpm1-5, INPUT, DOWN);
665                 PIN_SLP(gpm1-6, INPUT, DOWN);
666
667                 PIN_SLP(gpm2-0, INPUT, DOWN);
668                 PIN_SLP(gpm2-1, INPUT, DOWN);
669                 PIN_SLP(gpm2-2, INPUT, DOWN);
670                 PIN_SLP(gpm2-3, INPUT, DOWN);
671                 PIN_SLP(gpm2-4, INPUT, DOWN);
672
673                 PIN_SLP(gpm3-0, INPUT, DOWN);
674                 PIN_SLP(gpm3-1, INPUT, DOWN);
675                 PIN_SLP(gpm3-2, INPUT, DOWN);
676                 PIN_SLP(gpm3-3, INPUT, DOWN);
677                 PIN_SLP(gpm3-4, INPUT, DOWN);
678                 PIN_SLP(gpm3-5, INPUT, DOWN);
679                 PIN_SLP(gpm3-6, INPUT, DOWN);
680                 PIN_SLP(gpm3-7, INPUT, DOWN);
681
682                 PIN_SLP(gpm4-0, INPUT, DOWN);
683                 PIN_SLP(gpm4-1, INPUT, DOWN);
684                 PIN_SLP(gpm4-2, INPUT, DOWN);
685                 PIN_SLP(gpm4-3, INPUT, DOWN);
686                 PIN_SLP(gpm4-4, INPUT, DOWN);
687                 PIN_SLP(gpm4-5, INPUT, DOWN);
688                 PIN_SLP(gpm4-6, INPUT, DOWN);
689                 PIN_SLP(gpm4-7, INPUT, DOWN);
690         };
691 };