]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: hci_uart: Add support for Amlogic HCI UART
authorYang Li <yang.li@amlogic.com>
Fri, 9 Aug 2024 05:42:25 +0000 (13:42 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 16:44:10 +0000 (12:44 -0400)
commit37bac77e4649e8158698a60addc22ec4faf5649a
tree211361912774aa3c32ad2827f9d2b53198cf087c
parente5e465a1ae62d146f9652756289aae9b6453dc90
Bluetooth: hci_uart: Add support for Amlogic HCI UART

Add a new HCI protocol HCI_UART_AML for the Amlogic Bluetooth
controller. It works on the standard H4 protocol via a 4-wire UART
interface, with baud rates up to 4 Mbps.

The controller supports two types of commands: the TCI commands and the
vendor command. The former is for initial setup including setting baud
rates, downloading fw, starting chip and etc, while the latter is for
dumping firmware versions and setting public address after firmware
updates and normal startup.

It was verified on board of T602 (S905X4 + W265S2).

dmesg:
..
[    5.313450] Bluetooth: HCI UART protocol AML registered
[    6.506052] Bluetooth: hci0: fw_version: date = 42.28, number = 0xb2fd
...

Co-developed-by: Ye He <ye.he@amlogic.com>
Signed-off-by: Ye He <ye.he@amlogic.com>
Signed-off-by: Yang Li <yang.li@amlogic.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/Kconfig
drivers/bluetooth/Makefile
drivers/bluetooth/hci_aml.c [new file with mode: 0644]
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_uart.h