Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Bluetooth for the RTL8852BS on BPI-F3
@ 2026-11-11  9:45 Frédéric Mahé
  2026-11-11  9:45 ` [PATCH v2 1/2] dt-bindings: net: bluetooth: realtek: Add RTL8852BS Frédéric Mahé
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Frédéric Mahé @ 2026-11-11  9:45 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Yixun Lan
  Cc: Vasily Khoruzhick, Alistair Francis, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Troy Mitchell,
	linux-bluetooth, devicetree, linux-riscv, spacemit, linux-kernel,
	Frédéric Mahé

The BPI-F3 (SpacemiT K1) carries an RTL8852BS Wi-Fi + Bluetooth module.
Wi-Fi (SDIO) has no upstream driver, but Bluetooth on UART works with
the existing hci_h5/btrtl code and linux-firmware's rtl8852bs files.

Patch 1 documents the compatible, with rtl8822cs-bt as fallback, so no
driver change is needed. Patch 2 enables it on the BPI-F3.

GPIO usage was tested one line at a time: GPIO 63 is the power/enable
line and GPIO 64 the device wake line. The vendor DT also drives
GPIO 65 and GPIO 67; Bluetooth works without them (and RSSI is the
same with GPIO 67 high or low), so they are left out.

Changes in v2:
- Patch 2: set slow_uart2 to 48 MHz with assigned-clock-rates instead
  of relying on the bootloader (Troy). Checked that a 24 MHz setting
  is applied, then 48 MHz.
- Patch 1: add Conor's Acked-by and Alistair's Reviewed-by.

Link to v1: https://lore.kernel.org/r/20261110074607.363918-1-frederic.mahe@cirad.fr

Frédéric Mahé (2):
  dt-bindings: net: bluetooth: realtek: Add RTL8852BS
  riscv: dts: spacemit: enable Bluetooth on BPI-F3

 .../net/bluetooth/realtek,bluetooth.yaml        | 11 +++++++----
 arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 17 +++++++++++++++++
 2 files changed, 24 insertions(+), 4 deletions(-)


base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
-- 
2.47.3


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 1/2] dt-bindings: net: bluetooth: realtek: Add RTL8852BS
@ 2026-11-10  7:46 Frédéric Mahé
  2026-11-10 11:12 ` Bluetooth for the RTL8852BS on BPI-F3 bluez.test.bot
  0 siblings, 1 reply; 12+ messages in thread
From: Frédéric Mahé @ 2026-11-10  7:46 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Yixun Lan
  Cc: Vasily Khoruzhick, Alistair Francis, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Alexandre Ghiti, Troy Mitchell,
	linux-bluetooth, devicetree, linux-riscv, spacemit, linux-kernel,
	Frédéric Mahé

The RTL8852BS is a Wi-Fi 6 + Bluetooth 5.2 chip with Wi-Fi on SDIO
and Bluetooth on UART (H5). Its Bluetooth part works with the
RTL8822CS driver data, so use realtek,rtl8822cs-bt as fallback.

This patch was prepared with the help of an AI assistant (Claude),
which also ran the tests.

Signed-off-by: Frédéric Mahé <frederic.mahe@cirad.fr>
---
 .../bindings/net/bluetooth/realtek,bluetooth.yaml     | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
index 7d567122b..ffdf13b05 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
@@ -4,16 +4,16 @@
 $id: http://devicetree.org/schemas/net/bluetooth/realtek,bluetooth.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
+title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS/RTL8852BS Bluetooth
 
 maintainers:
   - Vasily Khoruzhick <anarsoul@gmail.com>
   - Alistair Francis <alistair@alistair23.me>
 
 description:
-  RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS is a WiFi + BT chip. WiFi part
-  is connected over SDIO, while BT is connected over serial. It speaks
-  H5 protocol with few extra commands to upload firmware and change
+  RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS/RTL8852BS is a WiFi + BT chip.
+  WiFi part is connected over SDIO, while BT is connected over serial. It
+  speaks H5 protocol with few extra commands to upload firmware and change
   module speed.
 
 properties:
@@ -28,6 +28,9 @@ properties:
           - enum:
               - realtek,rtl8821cs-bt
           - const: realtek,rtl8723bs-bt
+      - items:
+          - const: realtek,rtl8852bs-bt
+          - const: realtek,rtl8822cs-bt
 
   device-wake-gpios:
     maxItems: 1
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-11-12  9:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11  9:45 [PATCH v2 0/2] Bluetooth for the RTL8852BS on BPI-F3 Frédéric Mahé
2026-11-11  9:45 ` [PATCH v2 1/2] dt-bindings: net: bluetooth: realtek: Add RTL8852BS Frédéric Mahé
2026-11-11  9:51   ` Troy Mitchell
2026-11-11 10:47   ` Bluetooth for the RTL8852BS on BPI-F3 bluez.test.bot
2026-11-11  9:45 ` [PATCH v2 2/2] riscv: dts: spacemit: enable Bluetooth " Frédéric Mahé
2026-11-11  9:52   ` Troy Mitchell
2026-11-11 19:40 ` [PATCH v2 0/2] Bluetooth for the RTL8852BS " patchwork-bot+bluetooth
2026-11-12  1:45   ` Troy Mitchell
2026-11-12  6:19     ` Yixun Lan
2026-11-12  8:56       ` Frédéric Mahé
2026-11-12  9:05         ` Troy Mitchell
  -- strict thread matches above, loose matches on Subject: below --
2026-11-10  7:46 [PATCH 1/2] dt-bindings: net: bluetooth: realtek: Add RTL8852BS Frédéric Mahé
2026-11-10 11:12 ` Bluetooth for the RTL8852BS on BPI-F3 bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox