]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: rockchip: Add Bluetooth support for Khadas Edge 2L
authorGray Huang <gray.huang@wesion.com>
Thu, 7 May 2026 03:35:41 +0000 (11:35 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 1 Jun 2026 09:46:10 +0000 (11:46 +0200)
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 <gray.huang@wesion.com>
Link: https://patch.msgid.link/20260507033541.2576335-3-gray.huang@wesion.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts

index 967a95ce01ded76eab671f74408ec364ec116863..3121a0ba7c7c195ca406f3a25340767de8c8d856 100644 (file)
 };
 
 &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>;
        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 = <RK_PB1 IRQ_TYPE_LEVEL_HIGH>;
+               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";