Skip to contentSkip to conversation

arm64: dts: allwinner: a64: enable Bluetooth on Pinebook

PATCH Applied Bastian Germann 3 participants 4 messages Nov 5, 2022 – Nov 7, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: allwinner: a64: enable Bluetooth on Pinebook

Pinebook uses RTL8723CS for WiFi and Bluetooth. Enable BT in the device tree. This was part of a patch series adding RTL8723CS Bluetooth support to btrtl.

Changelog:
v2: Fix subject
Drop misleading I2C sentence
Add enable-gpios to bluetooth device tree node

Vasily Khoruzhick (1):
arm64: dts: allwinner: a64: enable Bluetooth on Pinebook

 .../boot/dts/allwinner/sun50i-a64-pinebook.dts     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Signature · 1 line
2.38.1
#1 lore raw

PATCH v2 1/1 arm64: dts: allwinner: a64: enable Bluetooth on Pinebook

From: Vasily Khoruzhick <[email protected]>

Pinebook has an RTL8723CS WiFi + BT chip. BT is connected to UART1 and uses PL5 as device wake GPIO and PL6 as host wake GPIO.

Enable it in the device tree.

---
 .../boot/dts/allwinner/sun50i-a64-pinebook.dts     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +14 -0
index 620cb3ef5f6c..50ed2e9f10ed 100644
@@ -406,6 +406,20 @@ &uart0 {
 	status = "okay";
 };
 
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+		compatible = "realtek,rtl8723cs-bt";
+		device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */
+		enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+		host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+	};
+};
+
 &usb_otg {
 	dr_mode = "host";
 };
Signature · 1 line
2.38.1
maintainer Reviewed-by on v2 1/1
#2 lore raw
Quoted 5 lines · Bastian Germann

From: Vasily Khoruzhick <[email protected]>

Pinebook has an RTL8723CS WiFi + BT chip. BT is connected to UART1 and uses PL5 as device wake GPIO and PL6 as host wake GPIO.

Quoted 7 lines

Enable it in the device tree.

---
 .../boot/dts/allwinner/sun50i-a64-pinebook.dts     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
maintainer Applied
#3 lore raw
In reply to Bastian Germann

Dne sobota, 05. november 2022 ob 16:33:19 CET je Bastian Germann napisal(a):

Quoted 9 lines

From: Vasily Khoruzhick <[email protected]>

Pinebook has an RTL8723CS WiFi + BT chip. BT is connected to UART1 and uses PL5 as device wake GPIO and PL6 as host wake GPIO.

Enable it in the device tree.

Applied, thanks!

Best regards,
Jernej