What are WL_REG_ON and WL_HOST_WAKE on i.MX6 ULL EVK?

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

What are WL_REG_ON and WL_HOST_WAKE on i.MX6 ULL EVK?

Jump to solution
1,465 Views
GeorgeChou
Contributor I

Dear all,

I would like to install AP6236 Wi-Fi module via SDIO interface to my iMX6ULL EVK. The console shows some errors after I insmod bcmdhd.ko such as follows.

      :

      :

[ 91.367280] [dhd] dhd_module_init: in Dongle Host Driver, version 100.10.545.24 (r826445-20210908-3)
[ 91.367280] drivers/net/wireless/bcmdhd compiled on Oct 13 2021 at 14:17:17
[ 91.367280]
[ 91.385246] [dhd] ======== dhd_wlan_init_plat_data ========
[ 91.391072] [dhd] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=-1, oob_irq_flags=0x4
[ 91.398959] [dhd] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 91.403782] [dhd] dhd_wifi_platform_load: Enter
[ 91.408443] [dhd] Power-up adapter 'DHD generic adapter'
[ 91.421613] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 91.427743] [dhd] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 91.751269] [dhd] wifi_platform_bus_enumerate device present 1
[ 91.757679] [dhd] ======== Card detection to detect SDIO card! ========
[ 91.786072] [dhd] bcmsdh_register: register client driver
[ 91.796697] [dhd] bcmsdh_sdmmc_probe: Enter num=1
[ 91.802617] [dhd] bcmsdh_sdmmc_probe: Enter num=2
[ 91.807654] [dhd] bus num (host idx)=0, slot num (rca)=1
[ 91.813013] [dhd] found adapter info 'DHD generic adapter'
[ 91.822076] [dhd] sdioh_attach: set sd_f2_blocksize 256
[ 91.827976] [dhd] sdioh_attach: sd clock rate = 40000000
[ 91.835280] [dhd] bcmsdh_probe: Host OOB irq is not defined
[ 91.841257] [dhd] sdioh_probe: bcmsdh_probe failed
[ 91.847740] bcmsdh_sdmmc: probe of mmc0:0001:2 failed with error -12
[ 91.856718] [dhd] bcmsdh_sdmmc_probe: Enter num=3
[ 104.190496] [dhd] dhd_wifi_platform_load_sdio: sdio_register_driver timeout or error

      :

      :

Then I refer to the AP6236 user guide and it shows there are two GPIO pins must be setup to WL_REG_ON and WL_HOST_WAKE.

What are the numbers of these two GPIOs?

 

George

 

 

 

 

0 Kudos
1 Solution
1,457 Views
igorpadykov
NXP Employee
NXP Employee

Hi George

 

for WL_REG_ON and WL_HOST_WAKE example one can look at

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul-pico.dtsi

 

Best regards
igor

View solution in original post

0 Kudos
2 Replies
1,458 Views
igorpadykov
NXP Employee
NXP Employee

Hi George

 

for WL_REG_ON and WL_HOST_WAKE example one can look at

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/imx6ul-pico.dtsi

 

Best regards
igor

0 Kudos
1,441 Views
GeorgeChou
Contributor I

Hi Igor,

Thanks your reply.

Are these two GPIOs(WL_REG_ON:GPIO 104 and WL_HOST_WAKE:GPIO 102) on i.MX6UL EVK the same as those on i.MX6ULL EVK?

 

Best Regards,

George

0 Kudos