Android 5.0 UART5 bluetooth issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android 5.0 UART5 bluetooth issue

1,486 Views
waynelou
Contributor I

Hi all,

I am trying to integrate wl18xx wifi&bluetooth to iMX6Q-sabresd board.

I have build for Andorid5.0 lollipop, kernel version is 3.10.53, and followed all steps from below link for both HW and SW changes

processors.wiki.ti.com/.../WL18xx_First_Time_Getting_Started_Guide_(IMX6)

Now wifi is working well, but bluetooth would have issue when enable from UI.

Below is the log when enable bluetooth:

root@sabresd_6dq:/ # period 66 ,timeout is 0, wake up is :0
mma enable setting active
request_suspend_state: wakeup (3->0) at 728639689419 (1970-01-01 00:12:06.377658086 UTC)
(hci_tty): inside hci_tty_open (bcc3a4d8, 936419c0)

(stc): chnl_id list empty :4 (stk) : st_kim_start
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(hci_tty): st_register failed -22
root@sabresd_6dq:/ #

Could you tell me how to solve this problem? It seems to be caused from UART?

But I use the same HW, Android4.4 kitkat(no DT) is working well for bluetooth. So I could make sure HW is no problem, right?

Thanks very much!

BR,

Wayne

Labels (2)
0 Kudos
4 Replies

849 Views
waynelou
Contributor I

Hi Jimmy,

Yes, I have read the post you mentioned. But I use the different pin to configure UART5 in dts:

kim {

                compatible = "kim";

                nshutdown_gpio = <2>;  /* GPIO_2 */

                dev_name = "/dev/ttymxc4";

                flow_cntrl = <1>;

                baud_rate = <3000000>;

        };

        btwilink {

                compatible = "btwilink";

        };

&uart5 {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_uart5_1>;

  status = "okay";

  /* enable rts/cts usage on uart5 */

  fsl,uart-has-rtscts;

};

uart5 {

  pinctrl_uart5_1: uart5grp-1 {

  fsl,pins = <

  MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1

  MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1

  MX6QDL_PAD_KEY_ROW4__UART5_CTS_B   0x1b0b1

  MX6QDL_PAD_KEY_COL4__UART5_RTS_B   0x1b0b1

  >;

  };

UART5 is DCE mode, default settings in BSP.

I could make sure hardware settings is fine because the same hardware works for me in Android4.4(kitkat).

So do you have any ideas about this issue?

Many thanks.

BR,

Wayne

0 Kudos

849 Views
brunochen
Contributor II

Hi, Wayne,

I have the same issue. Have you fixed this issue?

Thanks,

Bruno

0 Kudos

849 Views
jimmychan
NXP TechSupport
NXP TechSupport

seems it is loading the firmware but not success. please check the firmware.

0 Kudos

849 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos