Message ID | 20241209133941.4750-1-naoki@radxa.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] arm64: dts: rockchip: add rfkill for wireless modules for Radxa ROCK 5A | expand |
diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 095e1f5f7786..278d372e9b16 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -19,4 +19,18 @@ regulator-vbus-typec { regulator-min-microvolt = <12000000>; regulator-max-microvolt = <12000000>; }; + + rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-m2-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; + }; + + rfkill-bt { + compatible = "rfkill-gpio"; + label = "rfkill-m2-bt"; + radio-type = "bluetooth"; + shutdown-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; + }; };
Radxa ROCK 5A has a M.2 E key slot which can be used for wireless modules. there are two enable/disable switch pins, one for Wi-Fi, another for Bluetooth. these pins are connected to GPIO. add rfkill and rfkill-bt to control these pins via GPIO. Signed-off-by: FUKAUMI Naoki <naoki@radxa.com> --- this patch depends on [1] which depends on [2]. [1] https://patchwork.kernel.org/project/linux-rockchip/cover/20241209132406.4232-1-naoki@radxa.com/ [2] https://patchwork.kernel.org/project/linux-rockchip/cover/20241209125131.4101-1-naoki@radxa.com/ --- Changes in v2 - put rfkill nodes correct place --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)