linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
@ 2022-11-05 15:33 Bastian Germann
  2022-11-05 15:33 ` [PATCH v2 1/1] " Bastian Germann
  0 siblings, 1 reply; 4+ messages in thread
From: Bastian Germann @ 2022-11-05 15:33 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Bastian Germann, Rob Herring, Krzysztof Kozlowski, Chen-Yu Tsai,
	Jernej Skrabec, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel

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(+)

-- 
2.38.1


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

* [PATCH v2 1/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
  2022-11-05 15:33 [PATCH v2 0/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook Bastian Germann
@ 2022-11-05 15:33 ` Bastian Germann
  2022-11-05 15:47   ` Samuel Holland
  2022-11-07 19:12   ` Jernej Škrabec
  0 siblings, 2 replies; 4+ messages in thread
From: Bastian Germann @ 2022-11-05 15:33 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Vasily Khoruzhick, Rob Herring, Krzysztof Kozlowski,
	Chen-Yu Tsai, Jernej Skrabec, devicetree, linux-arm-kernel,
	linux-sunxi, linux-kernel, Bastian Germann

From: Vasily Khoruzhick <anarsoul@gmail.com>

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.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Bastian Germann <bage@debian.org>
---
 .../boot/dts/allwinner/sun50i-a64-pinebook.dts     | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
index 620cb3ef5f6c..50ed2e9f10ed 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
@@ -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";
 };
-- 
2.38.1


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

* Re: [PATCH v2 1/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
  2022-11-05 15:33 ` [PATCH v2 1/1] " Bastian Germann
@ 2022-11-05 15:47   ` Samuel Holland
  2022-11-07 19:12   ` Jernej Škrabec
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Holland @ 2022-11-05 15:47 UTC (permalink / raw)
  To: Bastian Germann
  Cc: Vasily Khoruzhick, Rob Herring, Krzysztof Kozlowski,
	Chen-Yu Tsai, Jernej Skrabec, devicetree, linux-arm-kernel,
	linux-sunxi, linux-kernel

On 11/5/22 10:33, Bastian Germann wrote:
> From: Vasily Khoruzhick <anarsoul@gmail.com>
> 
> 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.
> 
> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
> Signed-off-by: Bastian Germann <bage@debian.org>
> ---
>  .../boot/dts/allwinner/sun50i-a64-pinebook.dts     | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)

Reviewed-by: Samuel Holland <samuel@sholland.org>


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

* Re: [PATCH v2 1/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
  2022-11-05 15:33 ` [PATCH v2 1/1] " Bastian Germann
  2022-11-05 15:47   ` Samuel Holland
@ 2022-11-07 19:12   ` Jernej Škrabec
  1 sibling, 0 replies; 4+ messages in thread
From: Jernej Škrabec @ 2022-11-07 19:12 UTC (permalink / raw)
  To: Samuel Holland, Bastian Germann
  Cc: Vasily Khoruzhick, Rob Herring, Krzysztof Kozlowski,
	Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-sunxi,
	linux-kernel, Bastian Germann

Dne sobota, 05. november 2022 ob 16:33:19 CET je Bastian Germann napisal(a):
> From: Vasily Khoruzhick <anarsoul@gmail.com>
> 
> 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.
> 
> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
> Signed-off-by: Bastian Germann <bage@debian.org>

Applied, thanks!

Best regards,
Jernej



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

end of thread, other threads:[~2022-11-07 19:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05 15:33 [PATCH v2 0/1] arm64: dts: allwinner: a64: enable Bluetooth on Pinebook Bastian Germann
2022-11-05 15:33 ` [PATCH v2 1/1] " Bastian Germann
2022-11-05 15:47   ` Samuel Holland
2022-11-07 19:12   ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).