From ad81b4fe119c8d10e47fc7aa721f5505103176ea Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Sun, 14 Apr 2019 23:46:47 +0800 Subject: arm64: dts: sun50i-a64-pinetab: enable RTL8723CS bluetooth PineTab has a RTL8723CS Wi-Fi/BT combo chip on board, the bluetooth part of it communicates with A64 via UART, and the power of it is controlled with some GPIO at PL bank. Enable the bluetooth in the device tree. Signed-off-by: Icenowy Zheng --- .../boot/dts/allwinner/sun50i-a64-pinetab.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts index 8c91ed7083d7..419fe19b4a6f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts @@ -511,6 +511,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 = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */ + host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + firmware-postfix = "pinebook"; + }; +}; + &usb_otg { dr_mode = "otg"; status = "okay"; -- 2.35.3