Skip to contentSkip to conversation

arm64: dts: rockchip: add rfkill node for M.2 Key E Bluetooth on Rock 5B

PATCH Applied Alexey Charkov 2 participants 2 messages May 17, 2024 – May 28, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: add rfkill node for M.2 Key E Bluetooth on Rock 5B

By default the BT WAKE signal inside the M.2 key E connector on Radxa Rock 5B is driven low, which results in the Bluetooth function being disabled even if the inserted M.2 card supports it. Expose this signal as an RFKILL device so that it can be enabled by the userspace.

Tested with an Intel AX210 card, which connects a Bluetooth device over the USB 2.0 bus.

---
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +7 -0
index b70313643af8..27dd95f92f33 100644
@@ -65,6 +65,13 @@ rfkill {
 		shutdown-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
 	};
 
+	rfkill-bt {
+		compatible = "rfkill-gpio";
+		label = "rfkill-m2-bt";
+		radio-type = "bluetooth";
+		shutdown-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
+	};
+
 	vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator {
 		compatible = "regulator-fixed";
 		enable-active-high;
Signature · 1 line
2.45.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Alexey Charkov

By default the BT WAKE signal inside the M.2 key E connector on Radxa Rock 5B is driven low, which results in the Bluetooth function being disabled even if the inserted M.2 card supports it. Expose this signal as an RFKILL device so that it can be enabled by the userspace.

Tested with an Intel AX210 card, which connects a Bluetooth device over the USB 2.0 bus.

[...]

Applied, thanks!

[1/1] arm64: dts: rockchip: add rfkill node for M.2 Key E Bluetooth on Rock 5B

      commit: 1d3ac84d6a960baa50da4163160ae82f8dc74af6

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>