From ef81db2fdd5a75e3834a4726dc7837f6d2a7229d Mon Sep 17 00:00:00 2001 From: Gray Huang Date: Thu, 7 May 2026 11:35:41 +0800 Subject: [PATCH] arm64: dts: rockchip: Add Bluetooth support for Khadas Edge 2L Enable Bluetooth support for the Ampak AP6275P module on the Khadas Edge 2L. This involves enabling the UART5 interface for HCI communication and defining the required regulators and power-sequence pins. Signed-off-by: Gray Huang Link: https://patch.msgid.link/20260507033541.2576335-3-gray.huang@wesion.com Signed-off-by: Heiko Stuebner --- .../dts/rockchip/rk3576-khadas-edge-2l.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts b/arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts index 967a95ce01de..3121a0ba7c7c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts +++ b/arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts @@ -552,6 +552,20 @@ }; &pinctrl { + bluetooth { + bt_reg_on: bt-reg-on { + rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + bt_wake_host: bt-wake-host { + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>; + }; + + host_wake_bt: host-wake-bt { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + pcie0 { pcie0_rst: pcie0-rst { rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; @@ -598,6 +612,27 @@ status = "okay"; }; +&uart5 { + pinctrl-0 = <&uart5m1_xfer &uart5m1_ctsn &uart5m1_rtsn>; + pinctrl-names = "default"; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&hym8563>; + clock-names = "lpo"; + device-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio0>; + interrupts = ; + pinctrl-0 = <&bt_reg_on &bt_wake_host &host_wake_bt>; + pinctrl-names = "default"; + shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; + vbat-supply = <&vcc_3v3_s3>; + vddio-supply = <&vcc_1v8_s3>; + }; +}; + &usb_drd1_dwc3 { dr_mode = "host"; status = "okay";