Skip to content

Commit ef81db2

Browse files
WesionGraymmind
authored andcommitted
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 <gray.huang@wesion.com> Link: https://patch.msgid.link/20260507033541.2576335-3-gray.huang@wesion.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 720fe68 commit ef81db2

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3576-khadas-edge-2l.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,20 @@
552552
};
553553

554554
&pinctrl {
555+
bluetooth {
556+
bt_reg_on: bt-reg-on {
557+
rockchip,pins = <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
558+
};
559+
560+
bt_wake_host: bt-wake-host {
561+
rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>;
562+
};
563+
564+
host_wake_bt: host-wake-bt {
565+
rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
566+
};
567+
};
568+
555569
pcie0 {
556570
pcie0_rst: pcie0-rst {
557571
rockchip,pins = <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -598,6 +612,27 @@
598612
status = "okay";
599613
};
600614

615+
&uart5 {
616+
pinctrl-0 = <&uart5m1_xfer &uart5m1_ctsn &uart5m1_rtsn>;
617+
pinctrl-names = "default";
618+
uart-has-rtscts;
619+
status = "okay";
620+
621+
bluetooth {
622+
compatible = "brcm,bcm43438-bt";
623+
clocks = <&hym8563>;
624+
clock-names = "lpo";
625+
device-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
626+
interrupt-parent = <&gpio0>;
627+
interrupts = <RK_PB1 IRQ_TYPE_LEVEL_HIGH>;
628+
pinctrl-0 = <&bt_reg_on &bt_wake_host &host_wake_bt>;
629+
pinctrl-names = "default";
630+
shutdown-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
631+
vbat-supply = <&vcc_3v3_s3>;
632+
vddio-supply = <&vcc_1v8_s3>;
633+
};
634+
};
635+
601636
&usb_drd1_dwc3 {
602637
dr_mode = "host";
603638
status = "okay";

0 commit comments

Comments
 (0)