Subject: [PATCH v4 0/5] Enable Bluetooth functionality for WCN6750

These patches enables Bluetooth functionalties for new Qualcomm
Bluetooth SoC wcn6750.

Venkata Lakshmi Narayana Gubba (5):
Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6750
Bluetooth: btqca: Add support for firmware image with mbn type for
WCN6750
Bluetooth: btqca: Moved extracting rom version info to common place
dt-bindings: net: bluetooth: Convert Qualcomm BT binding to DT schema
dt-bindings: net: bluetooth: Add device tree bindings for QTI chip
wcn6750

.../devicetree/bindings/net/qualcomm-bluetooth.txt | 69 --------
.../bindings/net/qualcomm-bluetooth.yaml | 183 +++++++++++++++++++++
drivers/bluetooth/btqca.c | 90 +++++++---
drivers/bluetooth/btqca.h | 14 +-
drivers/bluetooth/hci_qca.c | 114 ++++++++++---
5 files changed, 354 insertions(+), 116 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt
create mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml

--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation



Subject: [PATCH v4 3/5] Bluetooth: btqca: Moved extracting rom version info to common place

Moved extracting rom version info to common place as this code is
common in all if else ladder in qca_uart_setup.

Signed-off-by: Venkata Lakshmi Narayana Gubba <[email protected]>
---
drivers/bluetooth/btqca.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
index 3210283..be04d74 100644
--- a/drivers/bluetooth/btqca.c
+++ b/drivers/bluetooth/btqca.c
@@ -546,24 +546,20 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,

config.user_baud_rate = baudrate;

+ /* Firmware files to download are based on ROM version.
+ * ROM version is derived from last two bytes of soc_ver.
+ */
+ rom_ver = ((soc_ver & 0x00000f00) >> 0x04) | (soc_ver & 0x0000000f);
+
/* Download rampatch file */
config.type = TLV_TYPE_PATCH;
if (qca_is_wcn399x(soc_type)) {
- /* Firmware files to download are based on ROM version.
- * ROM version is derived from last two bytes of soc_ver.
- */
- rom_ver = ((soc_ver & 0x00000f00) >> 0x04) |
- (soc_ver & 0x0000000f);
snprintf(config.fwname, sizeof(config.fwname),
"qca/crbtfw%02x.tlv", rom_ver);
} else if (soc_type == QCA_QCA6390) {
- rom_ver = ((soc_ver & 0x00000f00) >> 0x04) |
- (soc_ver & 0x0000000f);
snprintf(config.fwname, sizeof(config.fwname),
"qca/htbtfw%02x.tlv", rom_ver);
} else if (soc_type == QCA_WCN6750) {
- rom_ver = ((soc_ver & 0x00000f00) >> 0x04) |
- (soc_ver & 0x0000000f);
/* Choose mbn file by default.If mbn file is not found
* then choose tlv file
*/
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


2021-05-21 06:04:27

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH v4 0/5] Enable Bluetooth functionality for WCN6750

Hi Venkata,

> These patches enables Bluetooth functionalties for new Qualcomm
> Bluetooth SoC wcn6750.
>
> Venkata Lakshmi Narayana Gubba (5):
> Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6750
> Bluetooth: btqca: Add support for firmware image with mbn type for
> WCN6750
> Bluetooth: btqca: Moved extracting rom version info to common place
> dt-bindings: net: bluetooth: Convert Qualcomm BT binding to DT schema
> dt-bindings: net: bluetooth: Add device tree bindings for QTI chip
> wcn6750
>
> .../devicetree/bindings/net/qualcomm-bluetooth.txt | 69 --------
> .../bindings/net/qualcomm-bluetooth.yaml | 183 +++++++++++++++++++++
> drivers/bluetooth/btqca.c | 90 +++++++---
> drivers/bluetooth/btqca.h | 14 +-
> drivers/bluetooth/hci_qca.c | 114 ++++++++++---
> 5 files changed, 354 insertions(+), 116 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt
> create mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml

all 5 patches have been applied to bluetooth-next tree.

Regards

Marcel