build/patch/kernel/archive/sunxi-5.10/megous/arm64-dts-sun50i-a64-pinephone-Add-Bluetooth-support.patch

42 lines
1.3 KiB
Diff

From b35da18a4ca93e49b0aa46af8045614ac8a5ade1 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Wed, 8 Apr 2020 14:08:20 +0200
Subject: [PATCH 099/351] arm64: dts: sun50i-a64-pinephone: Add Bluetooth
support
Pinephone has a Realtek rtl8723cs bluetooth controller.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
.../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index c6788b223d66..9a924c9475fe 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -443,6 +443,20 @@ &uart0 {
status = "okay";
};
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
+ status = "okay";
+
+ bluetooth {
+ compatible = "realtek,rtl8723cs-bt";
+ reset-gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>; /* PL4 */
+ device-wake-gpios = <&pio 7 6 GPIO_ACTIVE_LOW>; /* PH6 */
+ host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
+ firmware-postfix = "pinephone";
+ };
+};
+
/* Connected to the modem (hardware flow control can't be used) */
&uart3 {
pinctrl-names = "default";
--
2.34.0