This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/CC2564MODA: CC2564 bluetooth ti-st driver is not working linux-4.1 kernel

Part Number: CC2564MODA
Other Parts Discussed in Thread: WL1837

Tool/software: Linux

Dear Team,

I am using CC2564MODA module in iMX7D custom board with linux-4.1.

I have copied the driver form below link.
git.ti.com/.../ti-linux-4.1.y-wlcore

It is not working with ti-st and btwlink driver.

It is working with with below command with out ti-st driver.
"hciattch /dev/ttymxc5 texas 115200"

I have added below line in linux device tree:

_______________________________________________

        kim {
                compatible = "kim";
                nshutdown_gpio = <59>;
                dev_name = "/dev/ttymxc5";
                flow_cntrl = <1>;
                baud_rate = <115200>;
                status = "okay";
        };

        btwilink {
                compatible = "btwilink";
                status = "okay";
        };

_____________________________________________


Thanks,
Shravan.

  • Hi , This query has been assigned to BT expert. We will get back to you shortly .

    Thanks
    Saurabh
  • Our recommendation is to move away from shared transport and use 'hci_tty' driver..

    Kernel Part :
    a) Build kernel BT module without TI ST driver.. Use plain linux UART driver with HCI.. For K4.4, we use below kernel config options:
    CONFIG_BT_RFCOMM
    CONFIG_BT_HCIUART
    CONFIG_BT_HCIUART_H4
    CONFIG_BT_HCIUART_LL
    CONFIG_BT_HCIUART_3WIRE


    User space/File system Part:
    b) Take a note of the UART and GPIO (BT Enable) wired to the WL1837 for Bluetooth.
    After, kernel has booted..
    i) Toggle the BT EN GPIO lines to reset the device.
    ex:
    echo <bt_en> /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio<bt_en>/direction
    echo 0 > /sys/class/gpio/gpio<bt_en>/value
    echo 1 > /sys/class/gpio/gpio<bt_en>/value

    ii) If, you are using Bluez, use hciattach, to load the firmware as below :
    #hciattach <uart dev port> texas <baudrate>
    for ex:
    #hciattach /dev/ttyS1 texas 3000000
  • Hi,

    But i wanted to use this in android bluedroid blue-tooth stack in that they are using 'hci_tty' driver...
    Can i get any alternate for this ..
    Android HAL or library or something work with android marsmellow .
    Or
    How can i use hciattach to work with android.


    Thanks,
    Shravan kumar.
  • 1) As such, shared transport driver should work on K4.1 kernel. I suggest, you take and compare the shared transport from TI K4.1 processor release : SDK release 02_00_02_11 (software-dl.ti.com/.../index_FDS.html )
    2) We, do not have marsmellow HAL for 'hci_tty' driver. You would need to develop/build your own HAL for hci_tty driver.

    Thanks
  • Hi,

    Thanks for the info. i will try with PROCESSOR-SDK-LINUX-AM335X  02_00_02_11 "hci_tty" driver

    Please tel me know any plan to release BT HAL for Marshmallow.

    Thanks,
    Shravan.

  • At this time, there are no plans to release a BT HAL for marshmallow..