We are working on imx8mplus we have on the board wifi linked to the som in SDIO.
How to declare the wifi device in the device tree.
We tried as follow to add in device tree but it didn t work :
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc1>;
pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
vmmc-supply = <®_wifi_en>;
max-frequency = <50000000>;
compatible = "cypress,cyw4372-fmac";
// compatible = "brcm,bcm43730-fmac";
// compatible = "brcm,bcm4328-fmac";
firmware = "brcmfmac4373-sdio-prod_v13.10.246.300.bin"; //
wlan-disable-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; /* X is the GPIO controller, Y is the pin number */
reg_wifi_en: regulator-wifi-en {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_wifi>;
compatible = "regulator-fixed";
gpio = <&gpio1 23 GPIO_ACTIVE_LOW>;
startup-delay-us = <70000>;
enable-active-low; /* was active high*/
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
pinctrl_reg_wifi: regwifigrp {
// MX8MP_IOMUXC_NAND_DATA03__GPIO3_IO09 0x110
MX8MP_IOMUXC_GPIO1_IO23__GPIO1_IO23 0x110
loading driver wifi :modprobe cfg80211, we got these kernel messages :
[ 43.484166] compat: loading out-of-tree module taints kernel.
[ 43.491151] Loading modules backported from Summit Linux version LRD-REL-11.39.0.18-0-g5de64d7583da
[ 43.500270] Backport generated by backports.git v11.39.0.18
[ 43.551637] brcmfmac: brcmfmac_module_init: Loading driver v11.39.0.18
[ 43.558796] usbcore: registered new interface driver brcmfmac