From: Chris Morgan <macroalpha82@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: devicetree@vger.kernel.org, alistair@alistair23.me,
anarsoul@gmail.com, krzysztof.kozlowski+dt@linaro.org,
robh+dt@kernel.org, marcel@holtmann.org, johan.hedberg@gmail.com,
luiz.dentz@gmail.com, max.chou@realtek.com, hildawu@realtek.com,
Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH RFC 2/2] Bluetooth: hci_h5: btrtl: Add support for RTL8821CS
Date: Thu, 26 Jan 2023 10:55:29 -0600 [thread overview]
Message-ID: <20230126165529.1452252-3-macroalpha82@gmail.com> (raw)
In-Reply-To: <20230126165529.1452252-1-macroalpha82@gmail.com>
From: Chris Morgan <macromorgan@hotmail.com>
RTL8821CS is a WiFi + Bluetooth combo chip from Realtek that provides
WiFi A/B/G/N/AC over an SDIO interface and Bluetooth 4.2 over a UART
interface.
Note that the firmware this was tested with was firmware version
0xaa9a4e68 as reported by the driver. Attempts at using other
firmware were unsucessful.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
drivers/bluetooth/btrtl.c | 8 ++++++++
drivers/bluetooth/hci_h5.c | 2 ++
2 files changed, 10 insertions(+)
diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
index 69c3fe649ca7..c95e55d8d696 100644
--- a/drivers/bluetooth/btrtl.c
+++ b/drivers/bluetooth/btrtl.c
@@ -128,6 +128,14 @@ static const struct id_table ic_id_table[] = {
.fw_name = "rtl_bt/rtl8821c_fw.bin",
.cfg_name = "rtl_bt/rtl8821c_config" },
+ /* 8821CS */
+ { IC_INFO(RTL_ROM_LMP_8821A, 0xc, 0x8, HCI_UART),
+ .config_needed = true,
+ .has_rom_version = true,
+ .has_msft_ext = true,
+ .fw_name = "rtl_bt/rtl8821cs_fw.bin",
+ .cfg_name = "rtl_bt/rtl8821cs_config" },
+
/* 8761A */
{ IC_INFO(RTL_ROM_LMP_8761A, 0xa, 0x6, HCI_USB),
.config_needed = false,
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 6455bc4fb5bb..9531f092a71a 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -1096,6 +1096,8 @@ static const struct dev_pm_ops h5_serdev_pm_ops = {
static const struct of_device_id rtl_bluetooth_of_match[] = {
#ifdef CONFIG_BT_HCIUART_RTL
+ { .compatible = "realtek,rtl8821cs-bt",
+ .data = (const void *)&h5_data_rtl8822cs },
{ .compatible = "realtek,rtl8822cs-bt",
.data = (const void *)&h5_data_rtl8822cs },
{ .compatible = "realtek,rtl8723bs-bt",
--
2.34.1
prev parent reply other threads:[~2023-01-26 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-26 16:55 [PATCH RFC 0/2] Bluetooth: Add support for RTL8821CS Chris Morgan
2023-01-26 16:55 ` [PATCH RFC 1/2] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Chris Morgan
2023-01-26 17:35 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
2023-01-27 10:24 ` [PATCH RFC 1/2] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Krzysztof Kozlowski
2023-01-27 16:46 ` Chris Morgan
2023-01-27 16:53 ` Krzysztof Kozlowski
2023-01-27 17:00 ` Chris Morgan
2023-01-27 17:02 ` Krzysztof Kozlowski
2023-01-26 16:55 ` Chris Morgan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230126165529.1452252-3-macroalpha82@gmail.com \
--to=macroalpha82@gmail.com \
--cc=alistair@alistair23.me \
--cc=anarsoul@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=hildawu@realtek.com \
--cc=johan.hedberg@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=marcel@holtmann.org \
--cc=max.chou@realtek.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.