arm64: dts: allwinner: a64: enable Bluetooth on Pinebook
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 5 Nov 2022 15:33:19 +0000 (16:33 +0100)
committerJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 7 Nov 2022 19:11:51 +0000 (20:11 +0100)
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>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20221105153319.19345-2-bage@debian.org
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts

index 620cb3ef5f6cb7f1d6608669d42a91761d8bdb87..50ed2e9f10ed0850d8242d4c71fb459ad9ff4edf 100644 (file)
        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";
 };