imx93 A0 EVK + WiFi/BT Module (W374) NXP chip 88Q9098, Bluetooth not work.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx93 A0 EVK + WiFi/BT Module (W374) NXP chip 88Q9098, Bluetooth not work.

1,222件の閲覧回数
lindachang0407
Contributor I

Using imx93 A0 EVK ( Yocto version 6.1.22) connection the WIFI/BT Module (Ublox W374) through SDIO (usdhc2, EVK SD Card) & UART. (LPUART3). 

Bluetooth not working, have below error.

1. Load WIFI/BT combine F/W. 

root@imx93evk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[ 25.344076] mlan: loading out-of-tree module taints kernel.
[ 25.374698] wlan: Loading MWLAN driver
[ 25.381476] wlan: Register to Bus Driver...
[ 25.386572] vendor=0x02DF device=0x914D class=0 function=1
[ 25.392570] Attach moal handle ops, card interface type: 0x106
[ 25.398723] rps set to 0 from module param
[ 25.404717] SD9098: init module param from usr cfg
[ 25.409591] card_type: SD9098, config block: 0
[ 25.414619] cfg80211_wext=0xf
[ 25.417864] max_vir_bss=1
[ 25.420739] cal_data_cfg=none
[ 25.423942] ps_mode = 1
[ 25.426400] auto_ds = 1
[ 25.429285] host_mlme=enable
[ 25.432436] fw_name=nxp/sdiouart9098_combo_v1.bin
[ 25.437411] SDIO: max_segs=128 max_seg_size=65535
[ 25.442379] rx_work=1 cpu_num=2
[ 25.445789] Attach mlan adapter operations.card_type is 0x106.
[ 25.452313] wlan: Enable TX SG mode
[ 25.456251] wlan: Enable RX SG mode
[ 25.463792] Request firmware: nxp/sdiouart9098_combo_v1.bin
[ 25.758523] Wlan: FW download over, firmwarelen=848960 downloaded 697060
[ 26.043803] WLAN FW is active
[ 26.046788] on_time is 25875162886
[ 26.065651] VDLL image: len=151900
[ 26.069303] fw_cap_info=0xc8fcefa3, dev_cap_mask=0xffffffff
[ 26.074912] max_p2p_conn = 8, max_sta_conn = 64
[ 26.104494] Register NXP 802.11 Adapter mlan0
[ 26.109815] wlan: uap%d set max_mtu 2000
[ 26.124404] Register NXP 802.11 Adapter uap0
[ 26.148390] Register NXP 802.11 Adapter wfd0
[ 26.156632] wlan: version = SD9098----17.92.1.p136.24-MM5X17391.p3-GPL-(FP92)
[ 26.169805] vendor=0x02DF device=0x914E class=0 function=2
[ 26.180900] Attach moal handle ops, card interface type: 0x106
[ 26.191716] rps set to 0 from module param
[ 26.207848] SD9098: init module param from usr cfg
[ 26.212737] card_type: SD9098, config block: 1
[ 26.231288] cfg80211_wext=0xf
[ 26.234527] max_vir_bss=1
[ 26.243069] cal_data_cfg=none
[ 26.246126] ps_mode = 1
[ 26.248599] auto_ds = 1
[ 26.251050] host_mlme=enable
[ 26.255013] fw_name=nxp/sdiouart9098_combo_v1.bin
[ 26.259833] SDIO: max_segs=128 max_seg_size=65535
[ 26.265195] rx_work=1 cpu_num=2
[ 26.268447] Attach mlan adapter operations.card_type is 0x106.
[ 26.280025] wlan: Enable TX SG mode
[ 26.283521] wlan: Enable RX SG mode
[ 26.331944] Request firmware: nxp/sdiouart9098_combo_v1.bin
[ 26.342443] WLAN FW already running! Skip FW download
[ 26.350821] WLAN FW is active
[ 26.353842] on_time is 26182217136
[ 26.357685] VDLL image: len=151900
[ 26.361386] fw_cap_info=0x68fcefa3, dev_cap_mask=0xffffffff
[ 26.370296] max_p2p_conn = 8, max_sta_conn = 64
[ 26.387201] Register NXP 802.11 Adapter mmlan0
[ 26.392514] wlan: muap%d set max_mtu 2000
[ 26.401231] Register NXP 802.11 Adapter muap0
[ 26.424070] Register NXP 802.11 Adapter mwfd0
[ 26.428540] wlan: version = SD9098----17.92.1.p136.24-MM5X17391.p3-GPL-(FP92)
[ 26.443031] wlan: Register to Bus Driver Done
[ 26.447505] wlan: Driver loaded successfully

2. modprobe btnxpuart  ==> Fail

Bluetooth: hci0: Opcode 0x c03 failed:-110

Bluetooth: hci0:Setting wake-up method failed(-110)

3. hciconfig hci0 up ==> Fail

Bluetooth: hci0: Opcode 0x c03 failed:-110

Can’t init device hci0: Connection timed out (110)

Bluetooth: hci0:Setting wake-up method failed(-110)

 


 

 

0 件の賞賛
返信
7 返答(返信)

1,165件の閲覧回数
lindachang0407
Contributor I

Hi Weidong,

Thank you for your replay.

The sai3 is masked in our dtsi and still have this problem.

I'll sent the dts file to your personal email for check. Thank you.

Linda

0 件の賞賛
返信

1,155件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @lindachang0407 ,

 

Yes, I got your dts file, and checked your change, no problem.

Let us discuss it in email.

 

Regards,

weidong

0 件の賞賛
返信

1,175件の閲覧回数
lindachang0407
Contributor I

Hi Weidong,

Follow your suggestiveness and have the same problem.
Is the i.mx93 not support W374 (88Q9098) SDIO/UART driver?

1. Current desing follow

            iMX93 side                                                   88Q9098 side
GPIO_IO14(LPUART3_TX)(Ouput)------------------->BT_UART_RX
GPIO_IO15(LPUART3_RX)(Input)<-------------------BT_UART_TX
GPIO_IO16(LPUART3_CTS_B)(Input)<--------------BT_UART_RTS
GPIO_IO17(LPUART3_RTS_B)(Ouput)------------->BT_UART_CTS

2. The NVCC_GPIO = 3.3V & I measure the voltage is 3.3V.
3. The dtsi config is same as yours.

Linda

 
0 件の賞賛
返信

1,172件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @lindachang0407 ,

 

Sorry! forgot to confirm if these 4 GPIO pins are occupied. See below, please!

============================================

......

pinctrl_sai3: sai3grp {
fsl,pins = <
MX93_PAD_GPIO_IO26__SAI3_TX_SYNC 0x31e
MX93_PAD_GPIO_IO16__SAI3_TX_BCLK 0x31e
MX93_PAD_GPIO_IO17__SAI3_MCLK 0x31e
MX93_PAD_GPIO_IO19__SAI3_TX_DATA00 0x31e
MX93_PAD_GPIO_IO20__SAI3_RX_DATA00 0x31e
>;
};
[Note]
GPIO_IO16 & GPIO_IO17 pins are occupied by SAI3 interface. So comment sai3 node like below:
/*
&sai3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clk IMX93_CLK_SAI3>;
assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>;
assigned-clock-rates = <12288000>;
fsl,sai-mclk-direction-output;
status = "okay";
};
*/
============================================
Try it, please!
 
Thanks!
Regards,
weidong
0 件の賞賛
返信

1,190件の閲覧回数
lindachang0407
Contributor I

Hi Weidong,

1. Using Ublox JODY-W374 EVK
2. LPUART3 using GPIO_IO14~17 

Other information is sent to your personal email. Thank you. Please help to check, Thank you.

Linda

0 件の賞賛
返信

1,178件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @lindachang0407 ,

 

See below, please!

================================================================

1. Connections with Bluetooth UART
            iMX93 side                                                   88Q9098 side
GPIO_IO14(LPUART3_TX)(Ouput)------------------->BT_UART_RX
GPIO_IO15(LPUART3_RX)(Input)<-------------------BT_UART_TX
GPIO_IO16(LPUART3_CTS_B)(Input)<--------------BT_UART_RTS
GPIO_IO17(LPUART3_RTS_B)(Ouput)------------->BT_UART_CTS
 
Pay attention to I/O directions when connecting to i.MX93 LPUART3 pins, which is very important!
 
2. IO level (Using 3.3V IO)
     NVCC_GPIO = 3.3V, so on 88Q9098 side, VIO should also be set to 3.3V (ublox EVK, VIO is controled by J102)
 
3. IOMUX in i.mx93 device tree
 
In default device tree, LPUART5 is used for Bluetooth, so we should change code like below, you can change LPUART5 to LPUART3.
--imx93-11x11-evk.dts
......
pinctrl_uart3: uart3grp {
fsl,pins = <
MX93_PAD_GPIO_IO14__LPUART3_TX 0x31e
MX93_PAD_GPIO_IO15__LPUART3_RX 0x31e
MX93_PAD_GPIO_IO17__LPUART4_RTS_B 0x31e
MX93_PAD_GPIO_IO16__LPUART3_CTS_B 0x31e
>;
};
......
 
Then change UART5 node to be UART3
&lpuart3 {
/* BT */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3>;
status = "okay";
 
bluetooth {
compatible = "nxp,88w8987-bt";
};
};
================================================================
 
Try it, please!
 
Thanks!
Regards,
weidong
0 件の賞賛
返信

1,200件の閲覧回数
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @lindachang0407 ,

 

Could you please help to confirm these information?

1. u-blox W374

Is it this one?

weidong_sun_0-1701747344678.png

or this one?

weidong_sun_1-1701747396239.png

If you are using "EVK-JODY-W374 Evaluation kit for JODY-W374" , please send user's guide / datasheet or other materials to me!

Then let us discuss the issue.

 

2. LPUART3 of i.MX93 EVK

please tell me LPUART3 PADS you are using, this can help to check device tree of i.MX93!

Here is my personal email, weidong.sun@nxp.com

 

Materials can be sent to my email directly!

 

Thanks!

Regards,

weidong

 

0 件の賞賛
返信