Troubleshooting WLAN brcmfmac43430 firmware load failure on STM32MP1:Hardware vs Config
Hi there,
I am working on a custom board based on OSD32MP157F. The pinout is very similar to the stm32mp157f-dk2 with the main difference that the Murata LBEE5kL1BX-883 is connected to sdmmc3 instead of sdmmc2 and that there is no ethernet peripheral on the board. I used the stm32mp157f-dk2.dts as a starting point and modified the pinctl to match the pinout of the board. The image is made with buildroot. I configured the sdmmc3 according to this and this guides. Although all tested peripherals work as intended, including an eMMC connected to sdmmc2 the wifi module is not responsive and returns a firmware load error on the bootlog
1.933870] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 1.942625] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.st,stm32mp157f-dk2.bin fa2
[ 1.942926] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 1.953593] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2
[ 1.967219] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1.979848] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.987085] cfg80211: failed to load regulatory.dbBy looking to troubleshoot the issue I found this older post which is very similar to the behavior I am facing. In my case the firmware files are correctly placed in /lib/firmware/brcm and have the right permissions to load. Ifconfig -a returns no wlan0 interface either. What troubles me most is that at only one boot out of several dozens or hundreds the wlan0 interface appeared which made me worry that the issue could be hardware related.
I was wondering if there are any suggested guidelines or ideas to investigate if the issue is hardware or software related. I am uploading the dtb, bootlog and part of the schematic in case it helps. Any suggestions are highly appreciated.
