[PATCH] arm64: dts: rockchip: Enable bluetooth of AP6611s on OPI5 Max/Ultra

Jimmy Hon honyuenkwun at gmail.com
Sun Apr 27 11:20:19 PDT 2025


Orange Pi 5 Max and Ultra has onboard AP6611s with Bluetooth 5.3
connected via UART7.

The chip reports as:
[    3.747864] Bluetooth: hci0: BCM: chip id 3
[    3.750021] Bluetooth: hci0: BCM: features 0x0f
[    3.775923] Bluetooth: hci0: SYN43711A0
[    3.775930] Bluetooth: hci0: BCM (001.001.030) build 0000

Signed-off-by: Jimmy Hon <honyuenkwun at gmail.com>
---
 .../rockchip/rk3588-orangepi-5-compact.dtsi   | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-compact.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-compact.dtsi
index f748c6f760d8..ab07a7fd5359 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-compact.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-compact.dtsi
@@ -87,6 +87,20 @@ usb_host_pwren: usb-host-pwren {
 			rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
 	};
+
+	wireless-bluetooth {
+		bt_reg_on: bt-reg-on {
+			rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+
+		bt_wake_host: bt-wake-host {
+			rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
+		};
+
+		host_wake_bt: host-wake-bt {
+			rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
+	};
 };
 
 &pwm4 {
@@ -120,6 +134,28 @@ &u2phy1_otg {
 	phy-supply = <&vcc5v0_usb20>;
 };
 
+&uart7 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart7m0_xfer &uart7m0_ctsn &uart7m0_rtsn>;
+	uart-has-rtscts;
+	status = "okay";
+
+	bluetooth {
+                compatible = "brcm,bcm43438-bt";
+                clocks = <&hym8563>;
+                clock-names = "lpo";
+                device-wakeup-gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
+                interrupt-parent = <&gpio0>;
+                interrupts = <RK_PA0 IRQ_TYPE_EDGE_FALLING>;
+                interrupt-names = "host-wakeup";
+                pinctrl-names = "default";
+                pinctrl-0 = <&bt_reg_on>, <&host_wake_bt>, <&bt_wake_host>;
+                shutdown-gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
+                vbat-supply = <&vcc_3v3_s3>;
+                vddio-supply = <&vcc_1v8_s3>;
+        };
+};
+
 &usb_host0_xhci {
 	dr_mode = "host";
 };
-- 
2.49.0




More information about the Linux-rockchip mailing list