Bluetooth: btbcm: Add entry for BCM4335A0 UART bluetooth
authorMohammad Rasim <mohammad.rasim96@gmail.com>
Wed, 20 Nov 2019 11:02:35 +0000 (14:02 +0300)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 10 Jul 2020 08:48:17 +0000 (17:48 +0900)
commit 1199ab4c9e1d4cdfbabd70b4aadbc8e72c691f65 upstream.

This patch adds the device ID for the BCM4335A0 module
(part of the AMPAK AP6335 WIFI/Bluetooth combo)

hciconfig output:
```
hci1:   Type: Primary  Bus: UART
        BD Address: 43:35:B0:07:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:5079 acl:0 sco:0 events:567 errors:0
        TX bytes:69065 acl:0 sco:0 commands:567 errors:0
        Features: 0xbf 0xfe 0xcf 0xff 0xdf 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH SNIFF
        Link mode: SLAVE ACCEPT
        Name: 'alarm'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Version: 4.0 (0x6)  Revision: 0x161
        LMP Version: 4.0 (0x6)  Subversion: 0x4106
        Manufacturer: Broadcom Corporation (15)
```

Signed-off-by: Mohammad Rasim <mohammad.rasim96@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btbcm.c
drivers/bluetooth/hci_bcm.c

index dd29d68..15b7caf 100644 (file)
@@ -340,6 +340,7 @@ static const struct bcm_subver_table bcm_uart_subver_table[] = {
        { 0x220e, "BCM20702A1"  },      /* 001.002.014 */
        { 0x4217, "BCM4329B1"   },      /* 002.002.023 */
        { 0x6106, "BCM4359C0"   },      /* 003.001.006 */
+       { 0x4106, "BCM4335A0"   },      /* 002.001.006 */
        { }
 };
 
index 3194389..d5b6467 100644 (file)
@@ -1428,6 +1428,7 @@ static const struct of_device_id bcm_bluetooth_of_match[] = {
        { .compatible = "brcm,bcm4330-bt" },
        { .compatible = "brcm,bcm43438-bt" },
        { .compatible = "brcm,bcm43540-bt" },
+       { .compatible = "brcm,bcm4335a0" },
        { },
 };
 MODULE_DEVICE_TABLE(of, bcm_bluetooth_of_match);