Re: [PATCH v4 2/2] Bluetooth: qca: add QCC2072 support
From: Dmitry Baryshkov
Date: Tue Feb 17 2026 - 01:36:36 EST
On Tue, Feb 17, 2026 at 11:17:31AM +0530, Vivek Sahu wrote:
> QCC2072 is a family of WiFi/BT connectivity chip.
> It requires different firmware files and has different
> configurations , so add it as a separate SoC type.
>
> The firmware for these chips has been recently added to the
> linux-firmware repository and will be a part of the upcoming
> release.
>
> Signed-off-by: Vivek Sahu <vivek.sahu@xxxxxxxxxxxxxxxx>
> ---
> drivers/bluetooth/btqca.c | 8 ++++++++
> drivers/bluetooth/btqca.h | 1 +
> drivers/bluetooth/hci_qca.c | 18 ++++++++++++++++++
> 3 files changed, 27 insertions(+)
>
> diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c
> index 9f7e13fcb20e..65c8d2978956 100644
> --- a/drivers/bluetooth/btqca.c
> +++ b/drivers/bluetooth/btqca.c
> @@ -807,6 +807,10 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
> snprintf(config.fwname, sizeof(config.fwname),
> "qca/htbtfw%02x.tlv", rom_ver);
> break;
> + case QCA_QCC2072:
> + snprintf(config.fwname, sizeof(config.fwname),
> + "qca/ornbtfw%02x.tlv", rom_ver);
> + break;
> case QCA_WCN3950:
> snprintf(config.fwname, sizeof(config.fwname),
> "qca/cmbtfw%02x.tlv", rom_ver);
> @@ -900,6 +904,10 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
> snprintf(config.fwname, sizeof(config.fwname),
> "qca/htnv%02x.bin", rom_ver);
> break;
> + case QCA_QCC2072:
> + snprintf(config.fwname, sizeof(config.fwname),
> + "qca/ornnv%02x.bin", rom_ver);
> + break;
> case QCA_WCN3950:
> if (le32_to_cpu(ver.soc_id) == QCA_WCN3950_SOC_ID_T)
> variant = "t";
> diff --git a/drivers/bluetooth/btqca.h b/drivers/bluetooth/btqca.h
> index 8f3c1b1c77b3..a175ac31e7b2 100644
> --- a/drivers/bluetooth/btqca.h
> +++ b/drivers/bluetooth/btqca.h
> @@ -158,6 +158,7 @@ enum qca_btsoc_type {
> QCA_WCN6750,
> QCA_WCN6855,
> QCA_WCN7850,
> + QCA_QCC2072,
Why not keep it sorted?
> };
>
> #if IS_ENABLED(CONFIG_BT_QCA)
> diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
> index 8e035b7c6f3e..7786ced0bbbb 100644
> --- a/drivers/bluetooth/hci_qca.c
> +++ b/drivers/bluetooth/hci_qca.c
> @@ -625,6 +625,7 @@ static int qca_open(struct hci_uart *hu)
> qcadev = serdev_device_get_drvdata(hu->serdev);
>
> switch (qcadev->btsoc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -1500,6 +1501,7 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type)
> * changing the baudrate of chip and host.
> */
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -1516,6 +1518,7 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type)
> }
>
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3990:
> reinit_completion(&qca->drop_ev_comp);
> set_bit(QCA_DROP_VENDOR_EVENT, &qca->flags);
> @@ -1535,6 +1538,7 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type)
>
> error:
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -1551,6 +1555,7 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type)
> }
>
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3990:
> /* Wait for the controller to send the vendor event
> * for the baudrate change command.
> @@ -1935,6 +1940,10 @@ static int qca_setup(struct hci_uart *hu)
> soc_name = "qca2066";
> break;
>
> + case QCA_QCC2072:
> + soc_name = "qcc2072";
> + break;
> +
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -1970,6 +1979,7 @@ static int qca_setup(struct hci_uart *hu)
> clear_bit(QCA_SSR_TRIGGERED, &qca->flags);
>
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -2003,6 +2013,7 @@ static int qca_setup(struct hci_uart *hu)
> }
>
> switch (soc_type) {
> + case QCA_QCC2072:
> case QCA_WCN3950:
> case QCA_WCN3988:
> case QCA_WCN3990:
> @@ -2108,6 +2119,12 @@ static const struct qca_device_data qca_soc_data_qca6390 __maybe_unused = {
> .num_vregs = 0,
> };
>
> +static const struct qca_device_data qca_soc_data_qcc2072 __maybe_unused = {
> + .soc_type = QCA_QCC2072,
> + .num_vregs = 0,
> + .capabilities = QCA_CAP_WIDEBAND_SPEECH | QCA_CAP_VALID_LE_STATES,
No regulators? How is it powered on?
> +};
> +
> static const struct qca_device_data qca_soc_data_wcn3950 __maybe_unused = {
> .soc_type = QCA_WCN3950,
> .vregs = (struct qca_vreg []) {
> @@ -2758,6 +2775,7 @@ static const struct of_device_id qca_bluetooth_of_match[] = {
> { .compatible = "qcom,qca6174-bt" },
> { .compatible = "qcom,qca6390-bt", .data = &qca_soc_data_qca6390},
> { .compatible = "qcom,qca9377-bt" },
> + { .compatible = "qcom,qcc2072-bt", .data = &qca_soc_data_qcc2072},
> { .compatible = "qcom,wcn3950-bt", .data = &qca_soc_data_wcn3950},
> { .compatible = "qcom,wcn3988-bt", .data = &qca_soc_data_wcn3988},
> { .compatible = "qcom,wcn3990-bt", .data = &qca_soc_data_wcn3990},
> --
> 2.34.1
>
--
With best wishes
Dmitry