50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jernej Skrabec <jernej.skrabec@siol.net>
|
|
Date: Thu, 29 Oct 2020 21:04:24 +0100
|
|
Subject: [PATCH] pineh64 model b - bluetooth wip
|
|
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
|
|
---
|
|
.../dts/allwinner/sun50i-h6-pine-h64-model-b.dts | 16 ++++++++++++++++
|
|
drivers/bluetooth/hci_h5.c | 3 +++
|
|
2 files changed, 19 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts
|
|
index 7fea1e4e2d49..9bff717b3444 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-model-b.dts
|
|
@@ -34,3 +34,19 @@ &mmc1 {
|
|
non-removable;
|
|
status = "okay";
|
|
};
|
|
+
|
|
+&uart1 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
|
|
+ uart-has-rtscts;
|
|
+ status = "okay";
|
|
+
|
|
+ bluetooth {
|
|
+ compatible = "realtek,rtl8723bs-bt";
|
|
+ device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
|
|
+ host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
|
|
+ enable-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
|
|
+ firmware-postfix = "OBDA8723";
|
|
+ max-speed = <1500000>;
|
|
+ };
|
|
+};
|
|
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
|
|
index 996729e78105..35eb58607392 100644
|
|
--- a/drivers/bluetooth/hci_h5.c
|
|
+++ b/drivers/bluetooth/hci_h5.c
|
|
@@ -820,6 +820,9 @@ static int h5_serdev_probe(struct serdev_device *serdev)
|
|
if (!data)
|
|
return -ENODEV;
|
|
|
|
+ of_property_read_string(dev->of_node,
|
|
+ "firmware-postfix", &h5->id);
|
|
+
|
|
h5->vnd = (const struct h5_vnd *)data;
|
|
}
|
|
|