Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Copyright 2012 ST-Ericsson AB
0004  *
0005  * Device Tree for the HREF version 60 or later with the TVK1281618 R2 UIB
0006  */
0007 
0008 /dts-v1/;
0009 #include "ste-db8500.dtsi"
0010 #include "ste-hrefv60plus.dtsi"
0011 #include "ste-href-tvk1281618-r2.dtsi"
0012 
0013 / {
0014         model = "ST-Ericsson HREF (v60+) and TVK1281618 R2 UIB";
0015         compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
0016 
0017         /* ST6G3244ME level translator for 1.8/2.9 V */
0018         vmmci: regulator-gpio {
0019                 compatible = "regulator-gpio";
0020 
0021                 regulator-min-microvolt = <1800000>;
0022                 regulator-max-microvolt = <2900000>;
0023                 regulator-name = "mmci-reg";
0024                 regulator-type = "voltage";
0025 
0026                 startup-delay-us = <100>;
0027 
0028                 states = <1800000 0x1
0029                           2900000 0x0>;
0030 
0031                 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
0032                 enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
0033                 enable-active-high;
0034 
0035                 pinctrl-names = "default";
0036                 pinctrl-0 = <&vmmci_default_mode>;
0037         };
0038 };
0039 
0040 &pinctrl {
0041         vmmci {
0042                 vmmci_default_mode: vmmc_default {
0043                         /* VMMCI level-shifter enable */
0044                         default_hrefv60_cfg2 {
0045                                 pins = "GPIO169_D22";
0046                                 ste,config = <&gpio_out_hi>;
0047                         };
0048                         /* VMMCI level-shifter voltage select */
0049                         default_hrefv60_cfg3 {
0050                                 pins = "GPIO5_AG6";
0051                                 ste,config = <&gpio_out_hi>;
0052                         };
0053                 };
0054         };
0055 };