AnsweredAssumed Answered

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

Question asked by Bandaru Lavanya on Jul 13, 2016
Latest reply on Jul 28, 2016 by Bandaru Lavanya

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

Outcomes