Message ID | 20230620-topic-sm8550-upstream-bt-v1-0-4728564f8872@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3755472vqr; Tue, 20 Jun 2023 08:39:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vZ9ESh4p7UQRxVuGSq1hFSsKH7eU2u0M5duXwn7GrW5RtWgcwEPwYLlSFpFkLeRiVzRvR X-Received: by 2002:a17:902:f811:b0:1b3:c924:95b6 with SMTP id ix17-20020a170902f81100b001b3c92495b6mr11870468plb.43.1687275580473; Tue, 20 Jun 2023 08:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687275580; cv=none; d=google.com; s=arc-20160816; b=nNGhh3vdRI6nNOcoArbRHEr+v1smb1KAQ+JixFWAmqCha0lZ3mpiujDye8iBICjbII 0+4+/l0jW8xab+saSX6tS47ENnfWLmWFvUk0GBVpNN5itH83NByL3VB0ZyN2on2//qJN z69YF+7zc+Nh2xVcqxrn7YY2bKaPVu8B5RXCxsHyJMBlgDkKqfZm54T6R4QANT5/lhvm p61q4zBfeOoyFobs8U+Kdr6GuK1JCdDIUJkETYv4XWPqeMzL0P1I3avSXRKdmkX8ynCW ZGQImONUzBgaHcRHNpZcZrM0HBKXF9d8fksCwQO0S5uCbzX/w6msayXhCY8Kni5hPztt 0hJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=7D3/27sIAlZ3B7J/QryMAK6yu8lmX5V348NUxdNvxQQ=; b=QiZ6RJrVfhMN9hoaUyB1SrDEh2M174dQLf1usKXygD7yp3X+6tVZaI8RGUuB6OtB2e UwkPO0/ZI609IEMRyvj9GOpZsf7b5wbJi0uqvz6L5Lwy7y6WV/7SfPpEe/DEZqFMzGX9 wdi27tl8u2Yl9d7vI64jeQ02I7sHW6En5fW1RaLHBglckkfAsy8V1JlV+B8PDYMvi7mu Hgf03P7GPGTKX0i6JxA+YTbZ9L8iZZAtb+viZHzIewm3kPRwsN/zk7KWwVY6/qtCYgHt IyMpVC8psNEyJL7+cH5V8v8L9EMwXI5wYjquPXI65bFH6umOyA91QstSDpFEY1xj/6le bd2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3JN4eIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kw5-20020a170902f90500b001b3c66afaaesi2057190plb.185.2023.06.20.08.39.25; Tue, 20 Jun 2023 08:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T3JN4eIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233371AbjFTPTp (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Tue, 20 Jun 2023 11:19:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232691AbjFTPTn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2023 11:19:43 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFD2F198 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 08:19:41 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f90b8acefeso28657395e9.0 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2023 08:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687274380; x=1689866380; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=7D3/27sIAlZ3B7J/QryMAK6yu8lmX5V348NUxdNvxQQ=; b=T3JN4eITlACkWl8gXWGi47T/9zkxomuMTzVr8hsCUJSp0mg47P1wmb6xdEJOukJ1j9 YYitI/FH95lauoEgU6VuAoj7EO7/MBOKHXbGXrXEKccBBHWraAK6gN3i/lwagjAfKAXo qP7Th0tc10vrPT+dWXBYJYgFlw+8haaEVNJhQsIKH9P+5mnLsUtBwT4qL0IYcpQ52ocv eUkWc6XBFLvuBi+LQWVZmbf7DXq/n1J9kCvfKQYVPxZGDwO9LBsp3ur3y85qvBwpLgld rrEjAGiLk8ew/bkBmLoj9b5EoNZzwUzMaXfNesX+Ehlv4+obv81tg3fmshED56aww2b1 fCMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687274380; x=1689866380; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7D3/27sIAlZ3B7J/QryMAK6yu8lmX5V348NUxdNvxQQ=; b=dbQLa83ogOmLVaMNyi0YPcydzyjhfIRvkMV3z+rxjvon6VJYDrl6MbFRrCve9Nqg7V la68JosJVT8E+iGbsPs3lahVWQ6VFWl4gEYEQWl1aKYXwhjvdeCgv19E6iZOAPMAGXcb XPeeGj5zof+5wmAU2o5Lb919Naxve9GiZ9yqLkpFF94/8H3AkinyeBEi0aohuYHOEr8F J4EtdyvfAl1D6+ZvkAw887KakRQkMOHFRrUU0j0/nfWjSgCdkturMq1zLXap+In+gEHY aiRDTH45KPrYQD1HkE30QWtXyagCRHqUUP/4kjlXtqBDqAJuluqxfeX6Nvk00m5ge561 srkg== X-Gm-Message-State: AC+VfDwzlgb7b6sKQlYFuWoIt+3PhdBjVLXIy4T/JuemkLL2ichQyQHM PhFbw6cPBpVuQ768jrH/ye45ZQ== X-Received: by 2002:a05:600c:2650:b0:3f8:1f52:f3a9 with SMTP id 16-20020a05600c265000b003f81f52f3a9mr9007202wmy.23.1687274380277; Tue, 20 Jun 2023 08:19:40 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id x23-20020a05600c21d700b003f427687ba7sm2518659wmj.41.2023.06.20.08.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 08:19:39 -0700 (PDT) From: Neil Armstrong <neil.armstrong@linaro.org> Subject: [PATCH 0/4] bluetooth: qca: enable WCN7850 support Date: Tue, 20 Jun 2023 17:19:35 +0200 Message-Id: <20230620-topic-sm8550-upstream-bt-v1-0-4728564f8872@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIfDkWQC/x2NQQqDMBBFryKz7kCMprS9SukiiZM6oDHMxFIQ7 97Q5fvw/jtASZgUHt0BQh9W3nKD/tJBnH1+E/LUGKyxg7lag3UrHFHXm3MG96JVyK8YKk4pjoN x6R77EZoevBIG8TnO7SDvy9LGIpT4++89X+f5A2FYjpR/AAAA To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Balakrishna Godavarthi <bgodavar@codeaurora.org>, Rocky Liao <rjliao@codeaurora.org>, Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org> Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, Neil Armstrong <neil.armstrong@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1135; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=dAwRJxxbreKqEKaekZVrwh5wN7D21C7UA5pt8IQY/gQ=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkkcOJY+FgDQyIt7WU5ufoqKJkGhZXSpCTNxc6fDaK ieUBekmJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZJHDiQAKCRB33NvayMhJ0c6ND/ 91iUCwBa+20G/uH51adrYkI1+xCCln5H4zhRoVgupJmgZfD57fmhPQtRKbmZs1yF8gmUmvUFmobGWF 7UaqZFfqsD02h/fo0/nUkDh9co+0LzUMJGNk8DZ2OzutTZYftxiT54Mb3BllHgMBmzzq2XbClC2EeC bWZD3Ig1MEU8p2B+v3AHNQzm0nzaMI/fEOAn1o4DmehAraInI5hRh1UJXc2+Zv/2LbruJwiC9xxdVa Cj93P54ixPC4839DkRXFe1l9U6S+jivbWvMxGdcYFMo9eu2L5vlYYZwGLd5d5/BYZPyng0NhMSVyA6 rktiBYZen9p7lJA1gIgZi06dVZUK8DTdSSyPDzNvcLxrWxL718JgmEsLEKh/MByQGjZy67t3tOwZNN Gwlanl2O9fvKys9FsdO0qGy9sL5aPMqq+D6bpWYlx+sOTwncta3zVccsY8v9AnU/LKM/6auDxTiNou kI+iP2AK/mjnqX3sI3U1iwy/wVCUxEn/25a5TbUVpgC2vVa7pRzZHh0YKZXnYwHNliJgTv9R28SX5O 7HkZeAVoNAcbXFkQsmdNLO5gWqai5oPg/r+oLradIoJUnhxi9Wx0JuwmMNJ/yIafw+mipHTLt3v6JF o2MUNX/dAxv9aUGnG3hUO+5Gy8fi++pT42CUTNPi6bydEQNBmX1a9o0ZnJOg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769236679098165314?= X-GMAIL-MSGID: =?utf-8?q?1769236679098165314?= |
Series | bluetooth: qca: enable WCN7850 support | |
Message
Neil Armstrong
June 20, 2023, 3:19 p.m. UTC
This serie enables WCN7850 on the Qualcomm SM8550 QRD
reference platform.
The WCN7850 is close to the WCN6855 but uses different
firmware names.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Neil Armstrong (4):
dt-bindings: net: bluetooth: qualcomm: document WCN7850 chipset
bluetooth: qca: add support for WCN7850
arm64: dts: qcom: sm8550: add UART14 nodes
arm64: dts: qcom: sm8550-qrd: add bluetooth support
.../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 23 +++++++++++
arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 43 +++++++++++++++++++
arch/arm64/boot/dts/qcom/sm8550.dtsi | 30 ++++++++++++++
drivers/bluetooth/btqca.c | 7 ++++
drivers/bluetooth/btqca.h | 10 +++++
drivers/bluetooth/hci_qca.c | 48 +++++++++++++++++-----
6 files changed, 150 insertions(+), 11 deletions(-)
---
base-commit: 9dbf40840551df336c95ce2a3adbdd25ed53c0ef
change-id: 20230620-topic-sm8550-upstream-bt-dfc4305f9c14
Best regards,
Comments
On 20.06.2023 17:19, Neil Armstrong wrote: > Add support for the WCN7850 Bluetooth chipset. > > Tested on the SM8550 QRD platform. > > Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> > --- I don't have comments for this patch specifically, but: > drivers/bluetooth/btqca.c | 7 +++++++ > drivers/bluetooth/btqca.h | 10 ++++++++++ > drivers/bluetooth/hci_qca.c | 48 ++++++++++++++++++++++++++++++++++----------- > 3 files changed, 54 insertions(+), 11 deletions(-) > > diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c > index e7e58a956d15..037146b476ff 100644 > --- a/drivers/bluetooth/btqca.c > +++ b/drivers/bluetooth/btqca.c > @@ -617,6 +617,9 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, > } else if (soc_type == QCA_WCN6855) { > snprintf(config.fwname, sizeof(config.fwname), > "qca/hpbtfw%02x.tlv", rom_ver); > + } else if (soc_type == QCA_WCN7850) { > + snprintf(config.fwname, sizeof(config.fwname), > + "qca/hmtbtfw%02x.tlv", rom_ver); > } else { > snprintf(config.fwname, sizeof(config.fwname), > "qca/rampatch_%08x.bin", soc_ver); > @@ -654,6 +657,9 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, > else if (soc_type == QCA_WCN6855) > snprintf(config.fwname, sizeof(config.fwname), > "qca/hpnv%02x.bin", rom_ver); > + else if (soc_type == QCA_WCN7850) > + snprintf(config.fwname, sizeof(config.fwname), > + "qca/hmtnv%02x.bin", rom_ver); > else > snprintf(config.fwname, sizeof(config.fwname), > "qca/nvm_%08x.bin", soc_ver); The above changes should probably be made switch statements as well > @@ -695,6 +701,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, > case QCA_WCN3991: > case QCA_WCN6750: > case QCA_WCN6855: > + case QCA_WCN7850: > /* get fw build info */ > err = qca_read_fw_build_info(hdev); > if (err < 0) > diff --git a/drivers/bluetooth/btqca.h b/drivers/bluetooth/btqca.h > index b884095bcd9d..ff1850e984fe 100644 > --- a/drivers/bluetooth/btqca.h > +++ b/drivers/bluetooth/btqca.h > @@ -148,6 +148,7 @@ enum qca_btsoc_type { > QCA_QCA6390, > QCA_WCN6750, > QCA_WCN6855, > + QCA_WCN7850, > }; > > #if IS_ENABLED(CONFIG_BT_QCA) > @@ -173,6 +174,10 @@ static inline bool qca_is_wcn6855(enum qca_btsoc_type soc_type) > { > return soc_type == QCA_WCN6855; > } > +static inline bool qca_is_wcn7850(enum qca_btsoc_type soc_type) > +{ > + return soc_type == QCA_WCN7850; > +} > > #else > > @@ -216,6 +221,11 @@ static inline bool qca_is_wcn6855(enum qca_btsoc_type soc_type) > return false; > } > > +static inline bool qca_is_wcn7850(enum qca_btsoc_type soc_type) > +{ > + return false; > +} > + > static inline int qca_send_pre_shutdown_cmd(struct hci_dev *hdev) > { > return -EOPNOTSUPP; > diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c > index e30c979535b1..49b8d75d271e 100644 > --- a/drivers/bluetooth/hci_qca.c > +++ b/drivers/bluetooth/hci_qca.c > @@ -1322,7 +1322,8 @@ static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate) > /* Give the controller time to process the request */ > if (qca_is_wcn399x(qca_soc_type(hu)) || > qca_is_wcn6750(qca_soc_type(hu)) || > - qca_is_wcn6855(qca_soc_type(hu))) > + qca_is_wcn6855(qca_soc_type(hu)) || > + qca_is_wcn7850(qca_soc_type(hu))) > usleep_range(1000, 10000); Separate topic, but I see usages of the helper and raw comparisons everywhere.. I'd vote for switch everywhere Konrad > else > msleep(300); > @@ -1400,7 +1401,8 @@ static int qca_check_speeds(struct hci_uart *hu) > { > if (qca_is_wcn399x(qca_soc_type(hu)) || > qca_is_wcn6750(qca_soc_type(hu)) || > - qca_is_wcn6855(qca_soc_type(hu))) { > + qca_is_wcn6855(qca_soc_type(hu)) || > + qca_is_wcn7850(qca_soc_type(hu))) { > if (!qca_get_speed(hu, QCA_INIT_SPEED) && > !qca_get_speed(hu, QCA_OPER_SPEED)) > return -EINVAL; > @@ -1435,7 +1437,8 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type) > */ > if (qca_is_wcn399x(soc_type) || > qca_is_wcn6750(soc_type) || > - qca_is_wcn6855(soc_type)) > + qca_is_wcn6855(soc_type) || > + qca_is_wcn7850(soc_type)) > hci_uart_set_flow_control(hu, true); > > if (soc_type == QCA_WCN3990) { > @@ -1454,7 +1457,8 @@ static int qca_set_speed(struct hci_uart *hu, enum qca_speed_type speed_type) > error: > if (qca_is_wcn399x(soc_type) || > qca_is_wcn6750(soc_type) || > - qca_is_wcn6855(soc_type)) > + qca_is_wcn6855(soc_type) || > + qca_is_wcn7850(soc_type)) > hci_uart_set_flow_control(hu, false); > > if (soc_type == QCA_WCN3990) { > @@ -1691,7 +1695,8 @@ static int qca_power_on(struct hci_dev *hdev) > > if (qca_is_wcn399x(soc_type) || > qca_is_wcn6750(soc_type) || > - qca_is_wcn6855(soc_type)) { > + qca_is_wcn6855(soc_type) || > + qca_is_wcn7850(soc_type)) { > ret = qca_regulator_init(hu); > } else { > qcadev = serdev_device_get_drvdata(hu->serdev); > @@ -1733,7 +1738,8 @@ static int qca_setup(struct hci_uart *hu) > bt_dev_info(hdev, "setting up %s", > qca_is_wcn399x(soc_type) ? "wcn399x" : > (soc_type == QCA_WCN6750) ? "wcn6750" : > - (soc_type == QCA_WCN6855) ? "wcn6855" : "ROME/QCA6390"); > + (soc_type == QCA_WCN6855) ? "wcn6855" : > + (soc_type == QCA_WCN7850) ? "wcn7850" : "ROME/QCA6390"); > > qca->memdump_state = QCA_MEMDUMP_IDLE; > > @@ -1746,7 +1752,8 @@ static int qca_setup(struct hci_uart *hu) > > if (qca_is_wcn399x(soc_type) || > qca_is_wcn6750(soc_type) || > - qca_is_wcn6855(soc_type)) { > + qca_is_wcn6855(soc_type) || > + qca_is_wcn7850(soc_type)) { > set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks); > hci_set_aosp_capable(hdev); > > @@ -1769,7 +1776,8 @@ static int qca_setup(struct hci_uart *hu) > > if (!(qca_is_wcn399x(soc_type) || > qca_is_wcn6750(soc_type) || > - qca_is_wcn6855(soc_type))) { > + qca_is_wcn6855(soc_type) || > + qca_is_wcn7850(soc_type))) { > /* Get QCA version information */ > ret = qca_read_soc_version(hdev, &ver, soc_type); > if (ret) > @@ -1909,6 +1917,20 @@ static const struct qca_device_data qca_soc_data_wcn6855 __maybe_unused = { > .capabilities = QCA_CAP_WIDEBAND_SPEECH | QCA_CAP_VALID_LE_STATES, > }; > > +static const struct qca_device_data qca_soc_data_wcn7850 __maybe_unused = { > + .soc_type = QCA_WCN7850, > + .vregs = (struct qca_vreg []) { > + { "vddio", 5000 }, > + { "vddaon", 26000 }, > + { "vdddig", 126000 }, > + { "vddrfa0p8", 102000 }, > + { "vddrfa1p2", 257000 }, > + { "vddrfa1p9", 302000 }, > + }, > + .num_vregs = 6, > + .capabilities = QCA_CAP_WIDEBAND_SPEECH | QCA_CAP_VALID_LE_STATES, > +}; > + > static void qca_power_shutdown(struct hci_uart *hu) > { > struct qca_serdev *qcadev; > @@ -2074,7 +2096,8 @@ static int qca_serdev_probe(struct serdev_device *serdev) > if (data && > (qca_is_wcn399x(data->soc_type) || > qca_is_wcn6750(data->soc_type) || > - qca_is_wcn6855(data->soc_type))) { > + qca_is_wcn6855(data->soc_type) || > + qca_is_wcn7850(data->soc_type))) { > qcadev->btsoc_type = data->soc_type; > qcadev->bt_power = devm_kzalloc(&serdev->dev, > sizeof(struct qca_power), > @@ -2105,7 +2128,8 @@ static int qca_serdev_probe(struct serdev_device *serdev) > GPIOD_IN); > if (IS_ERR_OR_NULL(qcadev->sw_ctrl) && > (data->soc_type == QCA_WCN6750 || > - data->soc_type == QCA_WCN6855)) > + data->soc_type == QCA_WCN6855 || > + data->soc_type == QCA_WCN7850)) > dev_warn(&serdev->dev, "failed to acquire SW_CTRL gpio\n"); > > qcadev->susclk = devm_clk_get_optional(&serdev->dev, NULL); > @@ -2182,7 +2206,8 @@ static void qca_serdev_remove(struct serdev_device *serdev) > > if ((qca_is_wcn399x(qcadev->btsoc_type) || > qca_is_wcn6750(qcadev->btsoc_type) || > - qca_is_wcn6855(qcadev->btsoc_type)) && > + qca_is_wcn6855(qcadev->btsoc_type) || > + qca_is_wcn7850(qcadev->btsoc_type)) && > power->vregs_on) > qca_power_shutdown(&qcadev->serdev_hu); > else if (qcadev->susclk) > @@ -2368,6 +2393,7 @@ static const struct of_device_id qca_bluetooth_of_match[] = { > { .compatible = "qcom,wcn3998-bt", .data = &qca_soc_data_wcn3998}, > { .compatible = "qcom,wcn6750-bt", .data = &qca_soc_data_wcn6750}, > { .compatible = "qcom,wcn6855-bt", .data = &qca_soc_data_wcn6855}, > + { .compatible = "qcom,wcn7850-bt", .data = &qca_soc_data_wcn7850}, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, qca_bluetooth_of_match); >