How to change GPIO out lo to out hi in dts file ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change GPIO out lo to out hi in dts file ?

Jump to solution
2,245 Views
bandarulavanya
Contributor V

Hi All,

I am trying wl12xx wifi enable in dts files

wlan_en_reg: fixedregulator {

               compatible = "regulator-fixed";

               regulator-min-microvolt = <1800000>;

               regulator-max-microvolt = <1800000>;

               regulator-name = "wlan_enable_regulator";

               gpios = <&gpio1 15 0>;      //active high

               startup-delay-us = <70000>;

               enable-active-high;

       };

&usdhc1 {

        pinctrl-names = "default";

        pinctrl-0 = <&pinctrl_usdhc1>;

        bus-width = <4>;

        always_present;

        cd-permanent;

        cap-power-off-card;

        status = "okay";

        vmmc-supply = <&wlan_en_reg>;

        non-removable;    /* non-removable is not a variable, the fact it is */

                         /* listed is all that is used by driver  */

        enable-sdio-wakeup;

        status = "okay";

        #address-cells = <1>;

        #size-cells = <0>;

        wlcore: wlcore@0 {

               compatible = "ti,wl1271";

               interrupt-parent = <&gpio1>;

               interrupts = <14 IRQ_TYPE_LEVEL_HIGH>;

               clocks = <&refclock>;

               clock-names = "refclock";

                refclock: refclock {

                        compatible = "ti,wilink-clock";

                        #clock-cells = <0>;

                        clock-frequency = <38400000>;

                };

        };

};

  pinctrl_usdhc1: usdhc1grp {

                        fsl,pins = <

                                MX6QDL_PAD_SD1_CMD__SD1_CMD             0x17059

                                MX6QDL_PAD_SD1_CLK__SD1_CLK             0x10059

                                MX6QDL_PAD_SD1_DAT0__SD1_DATA0          0x17059

                                MX6QDL_PAD_SD1_DAT1__SD1_DATA1          0x17059

                                MX6QDL_PAD_SD1_DAT2__SD1_DATA2          0x17059

                                MX6QDL_PAD_SD1_DAT3__SD1_DATA3          0x17059

                                MX6QDL_PAD_SD2_DAT0__GPIO1_IO15         0x80000000

                                MX6QDL_PAD_SD2_DAT1__GPIO1_IO14         0x80000000

                        >;

                };

In this case i got

gpio-15  (wlan_enable_regulato) out lo

in cat /sys/kernel/debug/gpio

After changing

gpios = <&gpio1 15 0>;  //active high

in to

gpios = <&gpio1 15 1>//active high

also i am getting same as above in sysfs entries but i want out hi instead of out lo  how can i get it .

i am using wifi_r8.6 compat wireless.


And 

here   vmmc-supply = <&wlan_en_reg>; is for io or for wifi module.

i have 2 power supplies 1) 3.3v for wifi module and 2) 1.8 for i/o lines hopw can i configure those two things in sdhc1.

what is vmmc-supply and vqmmc-supply in sdhc or mmc dts properties, if any one knows kindly help me i am new to the dts files.

Thanks & Regards,

Lavanya

Labels (4)
0 Kudos
1 Solution
1,354 Views
bandarulavanya
Contributor V

HI All,

If we want to change out lo to out hi for gpio in 3.14 kernel version we need to enable SION bit in iomux pad settings.

SION is Software Input ON Feild. which allows us to read the value for GPIO .

After enabling SION i can able to see the changes in my Gpio value in /sys/kernel/debug/gpio.

View solution in original post

0 Kudos
3 Replies
1,355 Views
bandarulavanya
Contributor V

HI All,

If we want to change out lo to out hi for gpio in 3.14 kernel version we need to enable SION bit in iomux pad settings.

SION is Software Input ON Feild. which allows us to read the value for GPIO .

After enabling SION i can able to see the changes in my Gpio value in /sys/kernel/debug/gpio.

0 Kudos
1,354 Views
jimmychan
NXP TechSupport
NXP TechSupport

please try this:

MX6QDL_PAD_SD2_DAT0__GPIO1_IO15    0x1b0b0

0 Kudos
1,354 Views
bandarulavanya
Contributor V

Hijimmychan ,

I tried what you mentioned but no use still it is showing output low only.

Is there any other why to do that. what about vmmc and vqmmc supplies.

Thanks & Regards,

Lavanya

0 Kudos