WL_REG_ON and how to reset or power off CYW43455 in Linux

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
franck
Level 1
Level 1
First reply posted First question asked Welcome!

Hi,

our host is iMX8 and we are using the FMAC backport 5.10.9. The device tree defines mmc_pwrseq for the control of WL_REG_ON. Do you have any documentation explaining how we can switch on or off WiFi or reset the IC from a user application?

Thanks

0 Likes
1 Solution
Lakhera
Moderator
Moderator
Moderator
First like received First solution authored 5 replies posted

Hello,

Please refer the attached app note.
https://www.infineon.com/dgdl/Infineon-AN232689_-_Wi-Fi_software_user_guide-ApplicationNotes-v01_00-...

You can follow the following sequence for power-on and power-off Wifi -

Power on :
insmod compat.ko
insmod cfg80211.ko
insmod brcmutil.ko
insmod brcmfmac.ko

Power off-
rmmod brcmfmac.ko
rmmod brcmutil.ko
rmmod cfg80211.ko
rmmod compat.ko

Thanks,
Ambika

View solution in original post

0 Likes
5 Replies
Lakhera
Moderator
Moderator
Moderator
First like received First solution authored 5 replies posted

Hello,

Please refer the attached app note.
https://www.infineon.com/dgdl/Infineon-AN232689_-_Wi-Fi_software_user_guide-ApplicationNotes-v01_00-...

You can follow the following sequence for power-on and power-off Wifi -

Power on :
insmod compat.ko
insmod cfg80211.ko
insmod brcmutil.ko
insmod brcmfmac.ko

Power off-
rmmod brcmfmac.ko
rmmod brcmutil.ko
rmmod cfg80211.ko
rmmod compat.ko

Thanks,
Ambika

0 Likes
Lakhera
Moderator
Moderator
Moderator
First like received First solution authored 5 replies posted

Hello, 

Please use wl up and wl down for turning on and off the wifi radio, respectively. 

In case you don't have the WL Tool, please contact your vendor. 

 

Thanks, 
Ambika

0 Likes
franck
Level 1
Level 1
First reply posted First question asked Welcome!

Thank you Ambika for your reply.  In some device tree files from Murata (module 1MW) the wlreg_on regulator has been replaced by mmc-pwrseq-simple which is controlled by mmc core. Does it means that we have to go through some mmc PM interface to control wlreg_on? I'm not so familiar with the Linux PM system yet so I'm a bit lost but then I would expect we could power on/off or reset the mmc interface assigned to the Wi-Fi and by doing so also power on/off or reset the IC?

0 Likes
Lakhera
Moderator
Moderator
Moderator
First like received First solution authored 5 replies posted

Please modify the  .config of the kernel source by setting CONFIG_DEBUG_FS=y as explained in - https://community.infineon.com/t5/Resource-Library/FMAC-Debugging/ta-p/246042

' echo 1 > /sys/kernel/debug/ieee80211/phy0/reset ' will reset the radio 

0 Likes
franck
Level 1
Level 1
First reply posted First question asked Welcome!

rmmod brcmfmac and modprobe brcmfmac are working for me. Thanks a lot for your time.

 

0 Likes