Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Samsung's Exynos3250 based Rinato board device tree source
0004  *
0005  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
0006  *              http://www.samsung.com
0007  *
0008  * Device tree source file for Samsung's Rinato board which is based on
0009  * Samsung Exynos3250 SoC.
0010  */
0011 
0012 /dts-v1/;
0013 #include "exynos3250.dtsi"
0014 #include "exynos4412-ppmu-common.dtsi"
0015 #include <dt-bindings/input/input.h>
0016 #include <dt-bindings/gpio/gpio.h>
0017 #include <dt-bindings/clock/samsung,s2mps11.h>
0018 
0019 / {
0020         model = "Samsung Rinato board";
0021         compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
0022         chassis-type = "watch";
0023 
0024         aliases {
0025                 i2c7 = &i2c_max77836;
0026         };
0027 
0028         chosen {
0029                 stdout-path = &serial_1;
0030         };
0031 
0032         memory@40000000 {
0033                 device_type = "memory";
0034                 reg = <0x40000000 0x1ff00000>;
0035         };
0036 
0037         firmware@205f000 {
0038                 compatible = "samsung,secure-firmware";
0039                 reg = <0x0205F000 0x1000>;
0040         };
0041 
0042         gpio-keys {
0043                 compatible = "gpio-keys";
0044 
0045                 power-key {
0046                         gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
0047                         linux,code = <KEY_POWER>;
0048                         label = "power key";
0049                         debounce-interval = <10>;
0050                         wakeup-source;
0051                 };
0052         };
0053 
0054         wlan_pwrseq: mshc1-pwrseq {
0055                 compatible = "mmc-pwrseq-simple";
0056                 reset-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
0057         };
0058 
0059         i2c_max77836: i2c-gpio-0 {
0060                 compatible = "i2c-gpio";
0061                 sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0062                 scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
0063                 #address-cells = <1>;
0064                 #size-cells = <0>;
0065 
0066                 max77836: pmic@25 {
0067                         compatible = "maxim,max77836";
0068                         interrupt-parent = <&gpx1>;
0069                         interrupts = <5 IRQ_TYPE_NONE>;
0070                         reg = <0x25>;
0071                         wakeup-source;
0072 
0073                         extcon {
0074                                 compatible = "maxim,max77836-muic";
0075                         };
0076 
0077                         regulators {
0078                                 compatible = "maxim,max77836-regulator";
0079                                 safeout_reg: SAFEOUT {
0080                                         regulator-name = "SAFEOUT";
0081                                 };
0082 
0083                                 charger_reg: CHARGER {
0084                                         regulator-name = "CHARGER";
0085                                         regulator-min-microamp = <45000>;
0086                                         regulator-max-microamp = <475000>;
0087                                         regulator-boot-on;
0088                                 };
0089 
0090                                 motor_reg: LDO1 {
0091                                         regulator-name = "MOT_2.7V";
0092                                         regulator-min-microvolt = <1100000>;
0093                                         regulator-max-microvolt = <2700000>;
0094                                 };
0095 
0096                                 LDO2 {
0097                                         regulator-name = "UNUSED_LDO2";
0098                                         regulator-min-microvolt = <800000>;
0099                                         regulator-max-microvolt = <3950000>;
0100                                 };
0101                         };
0102 
0103                         charger {
0104                                 compatible = "maxim,max77836-charger";
0105 
0106                                 maxim,constant-uvolt = <4350000>;
0107                                 maxim,fast-charge-uamp = <225000>;
0108                                 maxim,eoc-uamp = <7500>;
0109                                 maxim,ovp-uvolt = <6500000>;
0110                         };
0111                 };
0112         };
0113 
0114         haptics {
0115                 compatible = "regulator-haptic";
0116                 haptic-supply = <&motor_reg>;
0117                 min-microvolt = <1100000>;
0118                 max-microvolt = <2700000>;
0119         };
0120 
0121         thermal-zones {
0122                 cpu_thermal: cpu-thermal {
0123                         cooling-maps {
0124                                 map0 {
0125                                         /* Corresponds to 500MHz */
0126                                         cooling-device = <&cpu0 5 5>,
0127                                                          <&cpu1 5 5>;
0128                                 };
0129                                 map1 {
0130                                         /* Corresponds to 200MHz */
0131                                         cooling-device = <&cpu0 8 8>,
0132                                                          <&cpu1 8 8>;
0133                                 };
0134                         };
0135                 };
0136         };
0137 };
0138 
0139 &adc {
0140         vdd-supply = <&ldo3_reg>;
0141         status = "okay";
0142         assigned-clocks = <&cmu CLK_SCLK_TSADC>;
0143         assigned-clock-rates = <6000000>;
0144 
0145         thermistor-ap {
0146                 compatible = "murata,ncp15wb473";
0147                 pullup-uv = <1800000>;
0148                 pullup-ohm = <100000>;
0149                 pulldown-ohm = <100000>;
0150                 io-channels = <&adc 0>;
0151         };
0152 
0153         thermistor-battery {
0154                 compatible = "murata,ncp15wb473";
0155                 pullup-uv = <1800000>;
0156                 pullup-ohm = <100000>;
0157                 pulldown-ohm = <100000>;
0158                 io-channels = <&adc 1>;
0159         };
0160 };
0161 
0162 &bus_dmc {
0163         devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
0164         vdd-supply = <&buck1_reg>;
0165         status = "okay";
0166 };
0167 
0168 &bus_leftbus {
0169         devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
0170         vdd-supply = <&buck3_reg>;
0171         status = "okay";
0172 };
0173 
0174 &bus_rightbus {
0175         devfreq = <&bus_leftbus>;
0176         status = "okay";
0177 };
0178 
0179 &bus_lcd0 {
0180         devfreq = <&bus_leftbus>;
0181         status = "okay";
0182 };
0183 
0184 &bus_fsys {
0185         devfreq = <&bus_leftbus>;
0186         status = "okay";
0187 };
0188 
0189 &bus_mcuisp {
0190         devfreq = <&bus_leftbus>;
0191         status = "okay";
0192 };
0193 
0194 &bus_isp {
0195         devfreq = <&bus_leftbus>;
0196         status = "okay";
0197 };
0198 
0199 &bus_peril {
0200         devfreq = <&bus_leftbus>;
0201         status = "okay";
0202 };
0203 
0204 &bus_mfc {
0205         devfreq = <&bus_leftbus>;
0206         status = "okay";
0207 };
0208 
0209 &cmu {
0210         clocks = <&xusbxti>;
0211 };
0212 
0213 &cpu0 {
0214         cpu0-supply = <&buck2_reg>;
0215 };
0216 
0217 &exynos_usbphy {
0218         status = "okay";
0219         vbus-supply = <&safeout_reg>;
0220 };
0221 
0222 &hsotg {
0223         vusb_d-supply = <&ldo15_reg>;
0224         vusb_a-supply = <&ldo12_reg>;
0225         dr_mode = "peripheral";
0226         status = "okay";
0227 };
0228 
0229 &dsi_0 {
0230         vddcore-supply = <&ldo6_reg>;
0231         vddio-supply = <&ldo6_reg>;
0232         samsung,burst-clock-frequency = <250000000>;
0233         samsung,esc-clock-frequency = <20000000>;
0234         samsung,pll-clock-frequency = <24000000>;
0235         status = "okay";
0236 
0237         panel@0 {
0238                 compatible = "samsung,s6e63j0x03";
0239                 reg = <0>;
0240                 vdd3-supply = <&ldo16_reg>;
0241                 vci-supply = <&ldo20_reg>;
0242                 reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
0243                 te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
0244         };
0245 };
0246 
0247 &fimd {
0248         status = "okay";
0249 
0250         i80-if-timings {
0251                 cs-setup = <0>;
0252                 wr-setup = <0>;
0253                 wr-act = <1>;
0254                 wr-hold = <0>;
0255         };
0256 };
0257 
0258 &gpu {
0259         mali-supply = <&buck3_reg>;
0260         status = "okay";
0261 };
0262 
0263 &i2c_0 {
0264         #address-cells = <1>;
0265         #size-cells = <0>;
0266         samsung,i2c-sda-delay = <100>;
0267         samsung,i2c-slave-addr = <0x10>;
0268         samsung,i2c-max-bus-freq = <100000>;
0269         status = "okay";
0270 
0271         pmic@66 {
0272                 compatible = "samsung,s2mps14-pmic";
0273                 interrupt-parent = <&gpx0>;
0274                 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
0275                 reg = <0x66>;
0276                 wakeup-source;
0277 
0278                 s2mps14_osc: clocks {
0279                         compatible = "samsung,s2mps14-clk";
0280                         #clock-cells = <1>;
0281                         clock-output-names = "s2mps14_ap", "unused",
0282                                 "s2mps14_bt";
0283                 };
0284 
0285                 regulators {
0286                         ldo1_reg: LDO1 {
0287                                 regulator-name = "VAP_ALIVE_1.0V";
0288                                 regulator-min-microvolt = <1000000>;
0289                                 regulator-max-microvolt = <1000000>;
0290                                 regulator-always-on;
0291 
0292                                 regulator-state-mem {
0293                                         regulator-on-in-suspend;
0294                                 };
0295                         };
0296 
0297                         ldo2_reg: LDO2 {
0298                                 regulator-name = "VAP_M1_1.2V";
0299                                 regulator-min-microvolt = <1200000>;
0300                                 regulator-max-microvolt = <1200000>;
0301                                 regulator-always-on;
0302 
0303                                 regulator-state-mem {
0304                                         regulator-off-in-suspend;
0305                                 };
0306                         };
0307 
0308                         ldo3_reg: LDO3 {
0309                                 regulator-name = "VCC_AP_1.8V";
0310                                 regulator-min-microvolt = <1800000>;
0311                                 regulator-max-microvolt = <1800000>;
0312                                 regulator-always-on;
0313 
0314                                 regulator-state-mem {
0315                                         regulator-off-in-suspend;
0316                                 };
0317                         };
0318 
0319                         ldo4_reg: LDO4 {
0320                                 regulator-name = "VAP_AVDD_PLL1";
0321                                 regulator-min-microvolt = <1800000>;
0322                                 regulator-max-microvolt = <1800000>;
0323                                 regulator-always-on;
0324 
0325                                 regulator-state-mem {
0326                                         regulator-off-in-suspend;
0327                                 };
0328                         };
0329 
0330                         ldo5_reg: LDO5 {
0331                                 regulator-name = "VAP_PLL_ISO_1.0V";
0332                                 regulator-min-microvolt = <1000000>;
0333                                 regulator-max-microvolt = <1000000>;
0334                                 regulator-always-on;
0335 
0336                                 regulator-state-mem {
0337                                         regulator-off-in-suspend;
0338                                 };
0339                         };
0340 
0341                         ldo6_reg: LDO6 {
0342                                 regulator-name = "VAP_VMIPI_1.0V";
0343                                 regulator-min-microvolt = <1000000>;
0344                                 regulator-max-microvolt = <1000000>;
0345                                 regulator-always-on;
0346 
0347                                 regulator-state-mem {
0348                                         regulator-off-in-suspend;
0349                                 };
0350                         };
0351 
0352                         ldo7_reg: LDO7 {
0353                                 regulator-name = "VAP_AVDD_1.8V";
0354                                 regulator-min-microvolt = <1800000>;
0355                                 regulator-max-microvolt = <1800000>;
0356                                 regulator-always-on;
0357 
0358                                 regulator-state-mem {
0359                                         regulator-off-in-suspend;
0360                                 };
0361                         };
0362 
0363                         ldo8_reg: LDO8 {
0364                                 regulator-name = "VAP_USB_3.0V";
0365                                 regulator-min-microvolt = <3000000>;
0366                                 regulator-max-microvolt = <3000000>;
0367                                 regulator-always-on;
0368 
0369                                 regulator-state-mem {
0370                                         regulator-off-in-suspend;
0371                                 };
0372                         };
0373 
0374                         ldo9_reg: LDO9 {
0375                                 regulator-name = "V_LPDDR_1.2V";
0376                                 regulator-min-microvolt = <1200000>;
0377                                 regulator-max-microvolt = <1200000>;
0378                                 regulator-always-on;
0379 
0380                                 regulator-state-mem {
0381                                         regulator-on-in-suspend;
0382                                 };
0383                         };
0384 
0385                         ldo10_reg: LDO10 {
0386                                 regulator-name = "UNUSED_LDO10";
0387                                 regulator-min-microvolt = <1000000>;
0388                                 regulator-max-microvolt = <1000000>;
0389 
0390                                 regulator-state-mem {
0391                                         regulator-off-in-suspend;
0392                                 };
0393                         };
0394 
0395                         ldo11_reg: LDO11 {
0396                                 regulator-name = "V_EMMC_1.8V";
0397                                 regulator-min-microvolt = <1800000>;
0398                                 regulator-max-microvolt = <1800000>;
0399                                 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
0400                         };
0401 
0402                         ldo12_reg: LDO12 {
0403                                 regulator-name = "V_EMMC_2.8V";
0404                                 regulator-min-microvolt = <2800000>;
0405                                 regulator-max-microvolt = <2800000>;
0406                                 samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
0407                         };
0408 
0409                         ldo13_reg: LDO13 {
0410                                 regulator-name = "CAM_AVDD_2.8V";
0411                                 regulator-min-microvolt = <2800000>;
0412                                 regulator-max-microvolt = <2800000>;
0413 
0414                                 regulator-state-mem {
0415                                         regulator-off-in-suspend;
0416                                 };
0417                         };
0418 
0419                         ldo14_reg: LDO14 {
0420                                 regulator-name = "UNUSED_LDO14";
0421                                 regulator-min-microvolt = <2700000>;
0422                                 regulator-max-microvolt = <2700000>;
0423 
0424                                 regulator-state-mem {
0425                                         regulator-off-in-suspend;
0426                                 };
0427                         };
0428 
0429                         ldo15_reg: LDO15 {
0430                                 regulator-name = "TSP_AVDD_3.3V";
0431                                 regulator-min-microvolt = <3300000>;
0432                                 regulator-max-microvolt = <3300000>;
0433 
0434                                 regulator-state-mem {
0435                                         regulator-off-in-suspend;
0436                                 };
0437                         };
0438 
0439                         ldo16_reg: LDO16 {
0440                                 regulator-name = "LCD_VDD_3.3V";
0441                                 regulator-min-microvolt = <3300000>;
0442                                 regulator-max-microvolt = <3300000>;
0443 
0444                                 regulator-state-mem {
0445                                         regulator-off-in-suspend;
0446                                 };
0447                         };
0448 
0449                         ldo17_reg: LDO17 {
0450                                 regulator-name = "V_IRLED_3.3V";
0451                                 regulator-min-microvolt = <3300000>;
0452                                 regulator-max-microvolt = <3300000>;
0453 
0454                                 regulator-state-mem {
0455                                         regulator-off-in-suspend;
0456                                 };
0457                         };
0458 
0459                         ldo18_reg: LDO18 {
0460                                 regulator-name = "CAM_AF_2.8V";
0461                                 regulator-min-microvolt = <2800000>;
0462                                 regulator-max-microvolt = <2800000>;
0463 
0464                                 regulator-state-mem {
0465                                         regulator-off-in-suspend;
0466                                 };
0467                         };
0468 
0469                         ldo19_reg: LDO19 {
0470                                 regulator-name = "TSP_VDD_1.8V";
0471                                 regulator-min-microvolt = <1800000>;
0472                                 regulator-max-microvolt = <1800000>;
0473 
0474                                 regulator-state-mem {
0475                                         regulator-off-in-suspend;
0476                                 };
0477                         };
0478 
0479                         ldo20_reg: LDO20 {
0480                                 regulator-name = "LCD_VDD_1.8V";
0481                                 regulator-min-microvolt = <1800000>;
0482                                 regulator-max-microvolt = <1800000>;
0483 
0484                                 regulator-state-mem {
0485                                         regulator-off-in-suspend;
0486                                 };
0487                         };
0488 
0489                         ldo21_reg: LDO21 {
0490                                 regulator-name = "CAM_IO_1.8V";
0491                                 regulator-min-microvolt = <1800000>;
0492                                 regulator-max-microvolt = <1800000>;
0493 
0494                                 regulator-state-mem {
0495                                         regulator-off-in-suspend;
0496                                 };
0497                         };
0498 
0499                         ldo22_reg: LDO22 {
0500                                 regulator-name = "CAM_DVDD_1.2V";
0501                                 regulator-min-microvolt = <1200000>;
0502                                 regulator-max-microvolt = <1200000>;
0503 
0504                                 regulator-state-mem {
0505                                         regulator-off-in-suspend;
0506                                 };
0507                         };
0508 
0509                         ldo23_reg: LDO23 {
0510                                 regulator-name = "HRM_VCC_1.8V";
0511                                 regulator-min-microvolt = <1800000>;
0512                                 regulator-max-microvolt = <1800000>;
0513                                 regulator-always-on;
0514                         };
0515 
0516                         ldo24_reg: LDO24 {
0517                                 regulator-name = "HRM_VCC_3.3V";
0518                                 regulator-min-microvolt = <3000000>;
0519                                 regulator-max-microvolt = <3000000>;
0520 
0521                                 regulator-state-mem {
0522                                         regulator-off-in-suspend;
0523                                 };
0524                         };
0525 
0526                         ldo25_reg: LDO25 {
0527                                 regulator-name = "UNUSED_LDO25";
0528                                 regulator-min-microvolt = <3000000>;
0529                                 regulator-max-microvolt = <3000000>;
0530 
0531                                 regulator-state-mem {
0532                                         regulator-off-in-suspend;
0533                                 };
0534                         };
0535 
0536                         buck1_reg: BUCK1 {
0537                                 regulator-name = "VAP_MIF_1.0V";
0538                                 regulator-min-microvolt = <800000>;
0539                                 regulator-max-microvolt = <900000>;
0540                                 regulator-always-on;
0541 
0542                                 regulator-state-mem {
0543                                         regulator-off-in-suspend;
0544                                 };
0545                         };
0546 
0547                         buck2_reg: BUCK2 {
0548                                 regulator-name = "VAP_ARM_1.0V";
0549                                 regulator-min-microvolt = <850000>;
0550                                 regulator-max-microvolt = <1150000>;
0551                                 regulator-always-on;
0552 
0553                                 regulator-state-mem {
0554                                         regulator-off-in-suspend;
0555                                 };
0556                         };
0557 
0558                         buck3_reg: BUCK3 {
0559                                 regulator-name = "VAP_INT3D_1.0V";
0560                                 regulator-min-microvolt = <850000>;
0561                                 regulator-max-microvolt = <1000000>;
0562                                 regulator-always-on;
0563 
0564                                 regulator-state-mem {
0565                                         regulator-off-in-suspend;
0566                                 };
0567                         };
0568 
0569                         buck4_reg: BUCK4 {
0570                                 regulator-name = "VCC_SUB_1.95V";
0571                                 regulator-min-microvolt = <1950000>;
0572                                 regulator-max-microvolt = <1950000>;
0573                                 regulator-always-on;
0574 
0575                                 regulator-state-mem {
0576                                         regulator-on-in-suspend;
0577                                 };
0578                         };
0579 
0580                         buck5_reg: BUCK5 {
0581                                 regulator-name = "VCC_SUB_1.35V";
0582                                 regulator-min-microvolt = <1350000>;
0583                                 regulator-max-microvolt = <1350000>;
0584                                 regulator-always-on;
0585 
0586                                 regulator-state-mem {
0587                                         regulator-on-in-suspend;
0588                                 };
0589                         };
0590                 };
0591         };
0592 };
0593 
0594 &i2c_1 {
0595         #address-cells = <1>;
0596         #size-cells = <0>;
0597         samsung,i2c-sda-delay = <100>;
0598         samsung,i2c-slave-addr = <0x10>;
0599         samsung,i2c-max-bus-freq = <400000>;
0600         status = "okay";
0601 
0602         fuelgauge@36 {
0603                 compatible = "maxim,max77836-battery";
0604                 interrupt-parent = <&gpx1>;
0605                 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0606                 reg = <0x36>;
0607         };
0608 };
0609 
0610 &i2s2 {
0611         status = "okay";
0612 };
0613 
0614 &jpeg {
0615         status = "okay";
0616 };
0617 
0618 &mshc_0 {
0619         broken-cd;
0620         non-removable;
0621         cap-mmc-highspeed;
0622         desc-num = <4>;
0623         mmc-hs200-1_8v;
0624         card-detect-delay = <200>;
0625         vmmc-supply = <&ldo12_reg>;
0626         clock-frequency = <100000000>;
0627         max-frequency = <100000000>;
0628         samsung,dw-mshc-ciu-div = <1>;
0629         samsung,dw-mshc-sdr-timing = <0 1>;
0630         samsung,dw-mshc-ddr-timing = <1 2>;
0631         pinctrl-names = "default";
0632         pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
0633         bus-width = <8>;
0634         status = "okay";
0635 };
0636 
0637 &mshc_1 {
0638         status = "okay";
0639 
0640         #address-cells = <1>;
0641         #size-cells = <0>;
0642 
0643         non-removable;
0644         cap-sd-highspeed;
0645         cap-sdio-irq;
0646         keep-power-in-suspend;
0647         samsung,dw-mshc-ciu-div = <1>;
0648         samsung,dw-mshc-sdr-timing = <0 1>;
0649         samsung,dw-mshc-ddr-timing = <1 2>;
0650         pinctrl-names = "default";
0651         pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus1 &sd1_bus4>;
0652         bus-width = <4>;
0653 
0654         mmc-pwrseq = <&wlan_pwrseq>;
0655 
0656         brcmf: wifi@1 {
0657                 compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
0658                 reg = <1>;
0659 
0660                 interrupt-parent = <&gpx1>;
0661                 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
0662                 interrupt-names = "host-wake";
0663         };
0664 };
0665 
0666 &serial_0 {
0667         assigned-clocks = <&cmu CLK_SCLK_UART0>;
0668         assigned-clock-rates = <100000000>;
0669         status = "okay";
0670 
0671         bluetooth {
0672                 compatible = "brcm,bcm4330-bt";
0673                 max-speed = <3000000>;
0674                 shutdown-gpios = <&gpe0 0 GPIO_ACTIVE_HIGH>;
0675                 device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
0676                 host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
0677                 clocks = <&s2mps14_osc S2MPS11_CLK_BT>;
0678         };
0679 };
0680 
0681 &serial_1 {
0682         status = "okay";
0683 };
0684 
0685 &tmu {
0686         vtmu-supply = <&ldo7_reg>;
0687         status = "okay";
0688 };
0689 
0690 &rtc {
0691         clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
0692         clock-names = "rtc", "rtc_src";
0693         status = "okay";
0694 };
0695 
0696 &xusbxti {
0697         clock-frequency = <24000000>;
0698 };
0699 
0700 &pinctrl_0 {
0701         pinctrl-names = "default";
0702         pinctrl-0 = <&initial0 &sleep0>;
0703 
0704         initial0: initial-state {
0705                 PIN_IN(gpa1-4, DOWN, LV1);
0706                 PIN_IN(gpa1-5, DOWN, LV1);
0707 
0708                 PIN_IN(gpc0-0, DOWN, LV1);
0709                 PIN_IN(gpc0-1, DOWN, LV1);
0710                 PIN_IN(gpc0-2, DOWN, LV1);
0711                 PIN_IN(gpc0-3, DOWN, LV1);
0712                 PIN_IN(gpc0-4, DOWN, LV1);
0713 
0714                 PIN_IN(gpd0-0, DOWN, LV1);
0715                 PIN_IN(gpd0-1, DOWN, LV1);
0716         };
0717 
0718         sleep0: sleep-state {
0719                 PIN_SLP(gpa0-0, INPUT, DOWN);
0720                 PIN_SLP(gpa0-1, INPUT, DOWN);
0721                 PIN_SLP(gpa0-2, INPUT, DOWN);
0722                 PIN_SLP(gpa0-3, INPUT, DOWN);
0723                 PIN_SLP(gpa0-4, INPUT, DOWN);
0724                 PIN_SLP(gpa0-5, INPUT, DOWN);
0725                 PIN_SLP(gpa0-6, INPUT, DOWN);
0726                 PIN_SLP(gpa0-7, INPUT, DOWN);
0727 
0728                 PIN_SLP(gpa1-0, INPUT, DOWN);
0729                 PIN_SLP(gpa1-1, INPUT, DOWN);
0730                 PIN_SLP(gpa1-2, INPUT, DOWN);
0731                 PIN_SLP(gpa1-3, INPUT, DOWN);
0732                 PIN_SLP(gpa1-4, INPUT, DOWN);
0733                 PIN_SLP(gpa1-5, INPUT, DOWN);
0734 
0735                 PIN_SLP(gpb-0, PREV, NONE);
0736                 PIN_SLP(gpb-1, PREV, NONE);
0737                 PIN_SLP(gpb-2, PREV, NONE);
0738                 PIN_SLP(gpb-3, PREV, NONE);
0739                 PIN_SLP(gpb-4, INPUT, DOWN);
0740                 PIN_SLP(gpb-5, INPUT, DOWN);
0741                 PIN_SLP(gpb-6, INPUT, DOWN);
0742                 PIN_SLP(gpb-7, INPUT, DOWN);
0743 
0744                 PIN_SLP(gpc0-0, INPUT, DOWN);
0745                 PIN_SLP(gpc0-1, INPUT, DOWN);
0746                 PIN_SLP(gpc0-2, INPUT, DOWN);
0747                 PIN_SLP(gpc0-3, INPUT, DOWN);
0748                 PIN_SLP(gpc0-4, INPUT, DOWN);
0749 
0750                 PIN_SLP(gpc1-0, INPUT, DOWN);
0751                 PIN_SLP(gpc1-1, INPUT, DOWN);
0752                 PIN_SLP(gpc1-2, INPUT, DOWN);
0753                 PIN_SLP(gpc1-3, INPUT, DOWN);
0754                 PIN_SLP(gpc1-4, INPUT, DOWN);
0755 
0756                 PIN_SLP(gpd0-0, INPUT, DOWN);
0757                 PIN_SLP(gpd0-1, INPUT, DOWN);
0758                 PIN_SLP(gpd0-2, INPUT, NONE);
0759                 PIN_SLP(gpd0-3, INPUT, NONE);
0760 
0761                 PIN_SLP(gpd1-0, INPUT, NONE);
0762                 PIN_SLP(gpd1-1, INPUT, NONE);
0763                 PIN_SLP(gpd1-2, INPUT, NONE);
0764                 PIN_SLP(gpd1-3, INPUT, NONE);
0765         };
0766 };
0767 
0768 &pinctrl_1 {
0769         pinctrl-names = "default";
0770         pinctrl-0 = <&initial1 &sleep1>;
0771 
0772         initial1: initial-state {
0773                 PIN_IN(gpe0-6, DOWN, LV1);
0774                 PIN_IN(gpe0-7, DOWN, LV1);
0775 
0776                 PIN_IN(gpe1-0, DOWN, LV1);
0777                 PIN_IN(gpe1-3, DOWN, LV1);
0778                 PIN_IN(gpe1-4, DOWN, LV1);
0779                 PIN_IN(gpe1-5, DOWN, LV1);
0780                 PIN_IN(gpe1-6, DOWN, LV1);
0781 
0782                 PIN_IN(gpk2-0, DOWN, LV1);
0783                 PIN_IN(gpk2-1, DOWN, LV1);
0784                 PIN_IN(gpk2-2, DOWN, LV1);
0785                 PIN_IN(gpk2-3, DOWN, LV1);
0786                 PIN_IN(gpk2-4, DOWN, LV1);
0787                 PIN_IN(gpk2-5, DOWN, LV1);
0788                 PIN_IN(gpk2-6, DOWN, LV1);
0789 
0790                 PIN_IN(gpm0-0, DOWN, LV1);
0791                 PIN_IN(gpm0-1, DOWN, LV1);
0792                 PIN_IN(gpm0-2, DOWN, LV1);
0793                 PIN_IN(gpm0-3, DOWN, LV1);
0794                 PIN_IN(gpm0-4, DOWN, LV1);
0795                 PIN_IN(gpm0-5, DOWN, LV1);
0796                 PIN_IN(gpm0-6, DOWN, LV1);
0797                 PIN_IN(gpm0-7, DOWN, LV1);
0798 
0799                 PIN_IN(gpm1-0, DOWN, LV1);
0800                 PIN_IN(gpm1-1, DOWN, LV1);
0801                 PIN_IN(gpm1-2, DOWN, LV1);
0802                 PIN_IN(gpm1-3, DOWN, LV1);
0803                 PIN_IN(gpm1-4, DOWN, LV1);
0804                 PIN_IN(gpm1-5, DOWN, LV1);
0805                 PIN_IN(gpm1-6, DOWN, LV1);
0806 
0807                 PIN_IN(gpm2-0, DOWN, LV1);
0808                 PIN_IN(gpm2-1, DOWN, LV1);
0809 
0810                 PIN_IN(gpm3-0, DOWN, LV1);
0811                 PIN_IN(gpm3-1, DOWN, LV1);
0812                 PIN_IN(gpm3-2, DOWN, LV1);
0813                 PIN_IN(gpm3-3, DOWN, LV1);
0814                 PIN_IN(gpm3-4, DOWN, LV1);
0815 
0816                 PIN_IN(gpm4-1, DOWN, LV1);
0817                 PIN_IN(gpm4-2, DOWN, LV1);
0818                 PIN_IN(gpm4-3, DOWN, LV1);
0819                 PIN_IN(gpm4-4, DOWN, LV1);
0820                 PIN_IN(gpm4-5, DOWN, LV1);
0821                 PIN_IN(gpm4-6, DOWN, LV1);
0822                 PIN_IN(gpm4-7, DOWN, LV1);
0823         };
0824 
0825         sleep1: sleep-state {
0826                 PIN_SLP(gpe0-0, PREV, NONE);
0827                 PIN_SLP(gpe0-1, PREV, NONE);
0828                 PIN_SLP(gpe0-2, INPUT, DOWN);
0829                 PIN_SLP(gpe0-3, INPUT, UP);
0830                 PIN_SLP(gpe0-4, INPUT, DOWN);
0831                 PIN_SLP(gpe0-5, INPUT, DOWN);
0832                 PIN_SLP(gpe0-6, INPUT, DOWN);
0833                 PIN_SLP(gpe0-7, INPUT, DOWN);
0834 
0835                 PIN_SLP(gpe1-0, INPUT, DOWN);
0836                 PIN_SLP(gpe1-1, PREV, NONE);
0837                 PIN_SLP(gpe1-2, INPUT, DOWN);
0838                 PIN_SLP(gpe1-3, INPUT, DOWN);
0839                 PIN_SLP(gpe1-4, INPUT, DOWN);
0840                 PIN_SLP(gpe1-5, INPUT, DOWN);
0841                 PIN_SLP(gpe1-6, INPUT, DOWN);
0842                 PIN_SLP(gpe1-7, INPUT, NONE);
0843 
0844                 PIN_SLP(gpe2-0, INPUT, NONE);
0845                 PIN_SLP(gpe2-1, INPUT, NONE);
0846                 PIN_SLP(gpe2-2, INPUT, NONE);
0847 
0848                 PIN_SLP(gpk0-0, INPUT, DOWN);
0849                 PIN_SLP(gpk0-1, INPUT, DOWN);
0850                 PIN_SLP(gpk0-2, OUT0, NONE);
0851                 PIN_SLP(gpk0-3, INPUT, DOWN);
0852                 PIN_SLP(gpk0-4, INPUT, DOWN);
0853                 PIN_SLP(gpk0-5, INPUT, DOWN);
0854                 PIN_SLP(gpk0-6, INPUT, DOWN);
0855                 PIN_SLP(gpk0-7, INPUT, DOWN);
0856 
0857                 PIN_SLP(gpk1-0, INPUT, DOWN);
0858                 PIN_SLP(gpk1-1, INPUT, DOWN);
0859                 PIN_SLP(gpk1-2, INPUT, DOWN);
0860                 PIN_SLP(gpk1-3, INPUT, DOWN);
0861                 PIN_SLP(gpk1-4, INPUT, DOWN);
0862                 PIN_SLP(gpk1-5, INPUT, DOWN);
0863                 PIN_SLP(gpk1-6, INPUT, DOWN);
0864 
0865                 PIN_SLP(gpk2-0, INPUT, DOWN);
0866                 PIN_SLP(gpk2-1, INPUT, DOWN);
0867                 PIN_SLP(gpk2-2, INPUT, DOWN);
0868                 PIN_SLP(gpk2-3, INPUT, DOWN);
0869                 PIN_SLP(gpk2-4, INPUT, DOWN);
0870                 PIN_SLP(gpk2-5, INPUT, DOWN);
0871                 PIN_SLP(gpk2-6, INPUT, DOWN);
0872 
0873                 PIN_SLP(gpl0-0, INPUT, DOWN);
0874                 PIN_SLP(gpl0-1, INPUT, DOWN);
0875                 PIN_SLP(gpl0-2, INPUT, DOWN);
0876                 PIN_SLP(gpl0-3, INPUT, DOWN);
0877 
0878                 PIN_SLP(gpm0-0, INPUT, DOWN);
0879                 PIN_SLP(gpm0-1, INPUT, DOWN);
0880                 PIN_SLP(gpm0-2, INPUT, DOWN);
0881                 PIN_SLP(gpm0-3, INPUT, DOWN);
0882                 PIN_SLP(gpm0-4, INPUT, DOWN);
0883                 PIN_SLP(gpm0-5, INPUT, DOWN);
0884                 PIN_SLP(gpm0-6, INPUT, DOWN);
0885                 PIN_SLP(gpm0-7, INPUT, DOWN);
0886 
0887                 PIN_SLP(gpm1-0, INPUT, DOWN);
0888                 PIN_SLP(gpm1-1, INPUT, DOWN);
0889                 PIN_SLP(gpm1-2, INPUT, DOWN);
0890                 PIN_SLP(gpm1-3, INPUT, DOWN);
0891                 PIN_SLP(gpm1-4, INPUT, DOWN);
0892                 PIN_SLP(gpm1-5, INPUT, DOWN);
0893                 PIN_SLP(gpm1-6, INPUT, DOWN);
0894 
0895                 PIN_SLP(gpm2-0, INPUT, DOWN);
0896                 PIN_SLP(gpm2-1, INPUT, DOWN);
0897                 PIN_SLP(gpm2-2, INPUT, DOWN);
0898                 PIN_SLP(gpm2-3, INPUT, DOWN);
0899                 PIN_SLP(gpm2-4, INPUT, DOWN);
0900 
0901                 PIN_SLP(gpm3-0, INPUT, DOWN);
0902                 PIN_SLP(gpm3-1, INPUT, DOWN);
0903                 PIN_SLP(gpm3-2, INPUT, DOWN);
0904                 PIN_SLP(gpm3-3, INPUT, DOWN);
0905                 PIN_SLP(gpm3-4, INPUT, DOWN);
0906                 PIN_SLP(gpm3-5, INPUT, DOWN);
0907                 PIN_SLP(gpm3-6, INPUT, DOWN);
0908                 PIN_SLP(gpm3-7, INPUT, DOWN);
0909 
0910                 PIN_SLP(gpm4-0, INPUT, DOWN);
0911                 PIN_SLP(gpm4-1, INPUT, DOWN);
0912                 PIN_SLP(gpm4-2, INPUT, DOWN);
0913                 PIN_SLP(gpm4-3, INPUT, DOWN);
0914                 PIN_SLP(gpm4-4, INPUT, DOWN);
0915                 PIN_SLP(gpm4-5, INPUT, DOWN);
0916                 PIN_SLP(gpm4-6, INPUT, DOWN);
0917                 PIN_SLP(gpm4-7, INPUT, DOWN);
0918         };
0919 };