how to config gpio on i.MX8M EVK

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

how to config gpio on i.MX8M EVK

980 Views
chunfengren
Contributor I

we are adding a sdio wifi module in MX8M EVK, and android 8.1 is installed on evk board.

we plan to add two pins (GPIO4_IO12 ,GPIO4_IO13) , GPIO4_IO12 for WL_WAKE and GPIO4_IO13 is for WL_REGON,

detailed dtsi is below, could you tell how to config these two pins? that is to say, how to add gpio to &iomuxc?

 

regulators {

 

wlreg_on: fixedregulator@100 {

 

compatible = "regulator-fixed";

regulator-name = "wlreg_on";

regulator-min-microvolt = <5000000>;

regulator-max-microvolt = <5000000>;

gpio = <&gpio4 13 0>;

startup-delay-us = <100>;

enable-active-high;

};

 

};

 

bcmdhd_wlan_0: bcmdhd_wlan@0 {

compatible = "android,bcmdhd_wlan";

bcmdhd_fw = "/vendor/firmware/bcm/fw_bcmdhd.bin";

bcmdhd_nv = "/vendor/firmware/bcm/bcmdhd.cal";

gpios = <&gpio4 12 0>; /* WL_HOST_WAKE */

wlreg_on-supply = <&wlreg_on>;

};

 

thanks

Labels (1)
0 Kudos
1 Reply

689 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi chunfeng,

you may find useful this post

https://community.nxp.com/thread/450118

Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos