All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 V3] Bluetooth: Add support for RTL8821CS
@ 2023-02-27 16:30 ` Chris Morgan
  0 siblings, 0 replies; 15+ messages in thread
From: Chris Morgan @ 2023-02-27 16:30 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-rockchip, devicetree, alistair, anarsoul, luiz.dentz,
	johan.hedberg, marcel, heiko, krzysztof.kozlowski+dt, robh+dt,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

This patch series is to add support for the RTL8821CS Bluetooth
controller found on the RTL8821CS WiFi/Bluetooth combo chip.

This has been tested with firmware version 0x75b8f098 which has been
submitted by Realtek for inclusion in linux-firmware.

https://lore.kernel.org/linux-firmware/20230223062453.181239-1-max.chou@realtek.com/

Changes from V2:
 - Corrected devicetree documentation to change compatible from const
   back to enum.
 - Removed "reviewed-by" from Alistair Francis as binding documentation
   updated with changes.

Changes from V1:
 - Switched to use a fallback string for the rtl8822cs so as to not add
   an extra entry to the of_device_id table. The driver is capable of
   selecting the correct firmware blob to load.
 - Updated the messages to note a new version of the firmware was
   tested and that Realtek has submitted this firmware upstream.
 - Updated the devicetree node on the Anbernic RGxx3 series to use the
   fallback string of realtek,rtl8822cs-bt.

Chris Morgan (3):
  dt-bindings: net: realtek-bluetooth: Add RTL8821CS
  Bluetooth: hci_h5: btrtl: Add support for RTL8821CS
  arm64: dts: rockchip: Update compatible for bluetooth

 .../bindings/net/realtek-bluetooth.yaml       | 25 ++++++++++++-------
 .../dts/rockchip/rk3566-anbernic-rgxx3.dtsi   |  2 +-
 drivers/bluetooth/btrtl.c                     |  8 ++++++
 3 files changed, 25 insertions(+), 10 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH 1/3 V5] dt-bindings: net: realtek-bluetooth: Add RTL8821CS
@ 2023-03-15 17:36 Chris Morgan
  2023-03-15 17:39 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
  0 siblings, 1 reply; 15+ messages in thread
From: Chris Morgan @ 2023-03-15 17:36 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-rockchip, devicetree, alistair, anarsoul, luiz.dentz,
	johan.hedberg, marcel, heiko, krzysztof.kozlowski+dt, robh+dt,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add compatible string for RTL8821CS for existing Realtek Bluetooth
driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 .../bindings/net/realtek-bluetooth.yaml       | 24 ++++++++++++-------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
index 143b5667abad..506ea9b17668 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
@@ -4,24 +4,30 @@
 $id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: RTL8723BS/RTL8723CS/RTL8822CS Bluetooth
+title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
 
 maintainers:
   - Vasily Khoruzhick <anarsoul@gmail.com>
   - Alistair Francis <alistair@alistair23.me>
 
 description:
-  RTL8723CS/RTL8723CS/RTL8822CS is 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.
+  RTL8723CS/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
+  module speed.
 
 properties:
   compatible:
-    enum:
-      - realtek,rtl8723bs-bt
-      - realtek,rtl8723cs-bt
-      - realtek,rtl8723ds-bt
-      - realtek,rtl8822cs-bt
+    oneOf:
+      - enum:
+          - realtek,rtl8723bs-bt
+          - realtek,rtl8723cs-bt
+          - realtek,rtl8723ds-bt
+          - realtek,rtl8822cs-bt
+      - items:
+          - enum:
+              - realtek,rtl8821cs-bt
+          - const: realtek,rtl8723bs-bt
 
   device-wake-gpios:
     maxItems: 1
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [PATCH 1/3 V4] dt-bindings: net: realtek-bluetooth: Add RTL8821CS
@ 2023-02-28 15:22 Chris Morgan
  2023-02-28 15:59 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
  0 siblings, 1 reply; 15+ messages in thread
From: Chris Morgan @ 2023-02-28 15:22 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-rockchip, devicetree, alistair, anarsoul, luiz.dentz,
	johan.hedberg, marcel, heiko, krzysztof.kozlowski+dt, robh+dt,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add compatible string for RTL8821CS for existing Realtek Bluetooth
driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 .../bindings/net/realtek-bluetooth.yaml       | 24 ++++++++++++-------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
index 143b5667abad..8cc2b9924680 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
@@ -4,24 +4,30 @@
 $id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: RTL8723BS/RTL8723CS/RTL8822CS Bluetooth
+title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
 
 maintainers:
   - Vasily Khoruzhick <anarsoul@gmail.com>
   - Alistair Francis <alistair@alistair23.me>
 
 description:
-  RTL8723CS/RTL8723CS/RTL8822CS is 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.
+  RTL8723CS/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
+  module speed.
 
 properties:
   compatible:
-    enum:
-      - realtek,rtl8723bs-bt
-      - realtek,rtl8723cs-bt
-      - realtek,rtl8723ds-bt
-      - realtek,rtl8822cs-bt
+    oneOf:
+      - enum:
+          - realtek,rtl8723bs-bt
+          - realtek,rtl8723cs-bt
+          - realtek,rtl8723ds-bt
+          - realtek,rtl8822cs-bt
+      - items:
+          - enum:
+              - realtek,rtl8821cs-bt
+          - const: realtek,rtl8822cs-bt
 
   device-wake-gpios:
     maxItems: 1
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [PATCH 1/3 V2] dt-bindings: net: realtek-bluetooth: Add RTL8821CS
@ 2023-02-24 23:23 Chris Morgan
  2023-02-24 23:57 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
  0 siblings, 1 reply; 15+ messages in thread
From: Chris Morgan @ 2023-02-24 23:23 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: linux-rockchip, devicetree, alistair, anarsoul, luiz.dentz,
	johan.hedberg, marcel, heiko, krzysztof.kozlowski+dt, robh+dt,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add compatible string for RTL8821CS for existing Realtek Bluetooth
driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 .../bindings/net/realtek-bluetooth.yaml       | 23 +++++++++++--------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
index 143b5667abad..f91d06d629b9 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
@@ -4,24 +4,29 @@
 $id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: RTL8723BS/RTL8723CS/RTL8822CS Bluetooth
+title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
 
 maintainers:
   - Vasily Khoruzhick <anarsoul@gmail.com>
   - Alistair Francis <alistair@alistair23.me>
 
 description:
-  RTL8723CS/RTL8723CS/RTL8822CS is 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.
+  RTL8723CS/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
+  module speed.
 
 properties:
   compatible:
-    enum:
-      - realtek,rtl8723bs-bt
-      - realtek,rtl8723cs-bt
-      - realtek,rtl8723ds-bt
-      - realtek,rtl8822cs-bt
+    oneOf:
+      - const: realtek,rtl8723bs-bt
+      - const: realtek,rtl8723cs-bt
+      - const: realtek,rtl8723ds-bt
+      - const: realtek,rtl8822cs-bt
+      - items:
+          - enum:
+              - realtek,rtl8821cs-bt
+          - const: realtek,rtl8822cs-bt
 
   device-wake-gpios:
     maxItems: 1
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [PATCH RFC 1/2] dt-bindings: net: realtek-bluetooth: Add RTL8821CS
@ 2023-01-26 16:55 Chris Morgan
  2023-01-26 17:35 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
  0 siblings, 1 reply; 15+ messages in thread
From: Chris Morgan @ 2023-01-26 16:55 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: devicetree, alistair, anarsoul, krzysztof.kozlowski+dt, robh+dt,
	marcel, johan.hedberg, luiz.dentz, max.chou, hildawu,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add compatible string for RTL8821CS for existing Realtek Bluetooth
driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
index 143b5667abad..5af4731338c0 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
@@ -21,6 +21,7 @@ properties:
       - realtek,rtl8723bs-bt
       - realtek,rtl8723cs-bt
       - realtek,rtl8723ds-bt
+      - realtek,rtl8821cs-bt
       - realtek,rtl8822cs-bt
 
   device-wake-gpios:
-- 
2.34.1


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

end of thread, other threads:[~2023-03-15 17:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-27 16:30 [PATCH 0/3 V3] Bluetooth: Add support for RTL8821CS Chris Morgan
2023-02-27 16:30 ` Chris Morgan
2023-02-27 16:30 ` [PATCH 1/3 V3] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Chris Morgan
2023-02-27 16:30   ` Chris Morgan
2023-02-27 16:39   ` Krzysztof Kozlowski
2023-02-27 16:39     ` Krzysztof Kozlowski
2023-02-27 17:09   ` Bluetooth: Add support for RTL8821CS bluez.test.bot
2023-02-27 16:30 ` [PATCH 2/3 V3] Bluetooth: hci_h5: btrtl: " Chris Morgan
2023-02-27 16:30   ` Chris Morgan
2023-02-27 16:30 ` [PATCH 3/3 V3] arm64: dts: rockchip: Update compatible for bluetooth Chris Morgan
2023-02-27 16:30   ` Chris Morgan
  -- strict thread matches above, loose matches on Subject: below --
2023-03-15 17:36 [PATCH 1/3 V5] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Chris Morgan
2023-03-15 17:39 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
2023-02-28 15:22 [PATCH 1/3 V4] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Chris Morgan
2023-02-28 15:59 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
2023-02-24 23:23 [PATCH 1/3 V2] dt-bindings: net: realtek-bluetooth: Add RTL8821CS Chris Morgan
2023-02-24 23:57 ` Bluetooth: Add support for RTL8821CS bluez.test.bot
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

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.