arm64: dts: rockchip: Add bluetooth support to Khadas Edge2
authorJacobe Zang <jacobe.zang@wesion.com>
Thu, 24 Apr 2025 10:14:40 +0000 (18:14 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 28 Apr 2025 12:10:18 +0000 (14:10 +0200)
This commit adds the RTS signal, specifies the compatible Broadcom chip,
its clock source, interrupts, GPIOs for wakeup and shutdown, maximum speed,
pinctrl settings, and power supplies.

Signed-off-by: Muhammed Efe Cetin <efectn@protonmail.com>
Signed-off-by: Jacobe Zang <jacobe.zang@wesion.com>
Link: https://lore.kernel.org/r/20250424-edge-v1-1-314aad01d9ab@wesion.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts

index 88a5e822ed17d4eae555b420f9eb3b75fa5b017e..afa16aacee00257ee99b3684c5ae713808581ce9 100644 (file)
 
 &uart9 {
        pinctrl-names = "default";
-       pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn>;
+       pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn &uart9m2_rtsn>;
        status = "okay";
+
+       bluetooth {
+               compatible = "brcm,bcm43438-bt";
+               clocks = <&hym8563>;
+               clock-names = "lpo";
+               interrupt-parent = <&gpio0>;
+               interrupts = <RK_PD5 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "host-wakeup";
+               device-wakeup-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
+               shutdown-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
+               max-speed = <1500000>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&bt_wake_host_irq &bt_wake_pin &bt_reset_pin>;
+               vbat-supply = <&vcc_3v3_s3>;
+               vddio-supply = <&vcc_1v8_s3>;
+       };
 };
 
 &u2phy2 {