Hello,
We are using custom designed board using i.MX6UL SoC.
If we need to set GPIO for wifi enable pin as output high to 3.3V, how should we config the detail settings in DTS?
We have enabled GPIO3_21 as below iomux and used for sd-mmc:
pinctrl_wifi_bt: wifi_bt_grp {
fsl,pins = <
/* wifi wakeup host */
MX6ULL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x1b0b0
/* wifi enable */
MX6UL_PAD_LCD_DATA16__GPIO3_IO21 0x1b0b0
/* BT enable */
MX6UL_PAD_LCD_DATA15__GPIO3_IO20 0x1b0b0
>;
};
reg_sd1_vmmc: regulator-sd1 {
compatible = "regulator-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wifi_bt>;
regulator-name = "SD1_REG";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-type = "voltage";
regulator-boot-on;
enable-active-high;
wlan_en = <&gpio3 21 GPIO_ACTIVE_HIGH GPIO_DIR_OUT>;
bt_en = <&gpio3 20 GPIO_ACTIVE_HIGH GPIO_DIR_OUT>;
gpios-states = <1>;
states = <1800000 0x1>, <3300000 0x0>;
};
&usdhc1 {
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc1>;
pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
bus-width = <4>;
keep-power-in-suspend;
enable-sdio-wakeup;
non-removable;
pm-ignore-notify;
wifi-host;
vmmc-supply = <®_sd1_vmmc>;
status = "okay";
};
Thanks & best regards,
Wayne