WIFI SDIO device tree

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

WIFI SDIO device tree

3,432 次查看
mjaafar
Contributor II

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 :

&usdhc1 {

        pinctrl-names = "default", "state_100mhz", "state_200mhz";

        pinctrl-0 = <&pinctrl_usdhc1>;

        pinctrl-1 = <&pinctrl_usdhc1_100mhz>;

        pinctrl-2 = <&pinctrl_usdhc1_200mhz>;

        bus-width = <4>;

        non-removable;

        vmmc-supply = <&reg_wifi_en>;

        #address-cells = <1>;

        #size-cells = <0>;

        max-frequency = <50000000>;

        cap-power-off-card;

        status = "okay";

 

        wifi@0 {

                compatible = "cypress,cyw4372-fmac";

//              compatible = "brcm,bcm43730-fmac";

//              compatible = "brcm,bcm4328-fmac";

                firmware = "brcmfmac4373-sdio-prod_v13.10.246.300.bin"; //

//              reg = <1>;

                wlan-disable-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; /* X is the GPIO controller, Y is the pin number */

                status = "okay"; //

        };

};

 

        reg_wifi_en: regulator-wifi-en {

                pinctrl-names = "default";

                pinctrl-0 = <&pinctrl_reg_wifi>;

                compatible = "regulator-fixed";

                regulator-name = "wl";

                gpio = <&gpio1 23 GPIO_ACTIVE_LOW>;

                startup-delay-us = <70000>;

                enable-active-low; /* was active high*/

                regulator-always-on;

                regulator-min-microvolt = <3300000>;

                regulator-max-microvolt = <3300000>;

        };

                pinctrl_reg_wifi: regwifigrp {

                fsl,pins = <

//                      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

0 项奖励
回复
2 回复数

3,417 次查看
Chavira
NXP TechSupport
NXP TechSupport

Hi @mjaafar!
Thank you for contacting NXP Support!

The device tree depends on the wifi module that you want to implement in your system.

If you are using an NXP Wi-Fi module, you can get one based on the iMX93 device tree for the IW612 Module (Line 764)

For Another wifi, we do not have examples of use.

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts


Best Regards!
Chavira

0 项奖励
回复

3,400 次查看
mjaafar
Contributor II

The module wifi we are trying to integrate is the laird lwb5+

0 项奖励
回复