Hello @frank8888 ,
>> re-apply power and clock to the device and then assert PERST#, is it correct?
No, it is not.
what you want to do is wifi wakeup host, not host wakeup wifi. WHY re-apply power and clock to wifi card? you know, wifi is not in sleep mode now.
--what PERST?
The function of the PIN is used to RESET wifi card. when system is running, if your CPU PCIe doesn't support Hotplug, and RESET operation is done, unpredictable errors will be caused.
SO if linux system is running , don't do the operation.
In additon, below is mass market driver, you can get 'wifi-wake-host' in source code, for your platform, refter it, please!
weidong@ubuntu:~/wifi-drivers/mwifiex/mxm_wifiex/wlan_src$ grep -r -n 'wifi-wake-host' ./
./mlinux/moal_main.c:8769: node = of_find_compatible_node(NULL, NULL, "nxp,wifi-wake-host");
weidong@ubuntu:~/wifi-drivers/mwifiex/mxm_wifiex/wlan_src$
--driver
#git clone http://source.codeaurora.org/external/imx/mwifiex.git
#cd mwifiex
#git tag
#git checkout lf-5.10.y-1.0.0
--firmware
https://github.com/NXP/imx-firmware/tree/lf-5.10.y_1.0.0/nxp
Have a good day!
Regards,
weidong