31ca0b84797bab1a1b2358702c41fad44c647ada
[openwrt/staging/pepe2k.git] /
1 From 82d40b141a4c7ab6608a84a5ce0c58b747cb7163 Mon Sep 17 00:00:00 2001
2 From: Alexey Charkov <alchark@gmail.com>
3 Date: Sun, 7 Jan 2024 00:26:45 +0400
4 Subject: [PATCH] arm64: dts: rockchip: add rfkill node for M.2 Key E WiFi on rock-5b
5
6 By default the GPIO pin that connects to the WiFi enable signal
7 inside the M.2 Key E slot is driven low, resulting in impossibility
8 to connect to any network. Add a DT node to expose it as an RFKILL
9 device, which lets the WiFi driver or userspace toggle it as
10 required.
11
12 Signed-off-by: Alexey Charkov <alchark@gmail.com>
13 Link: https://lore.kernel.org/r/20240106202650.22310-1-alchark@gmail.com
14 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
15 ---
16 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts | 7 +++++++
17 1 file changed, 7 insertions(+)
18
19 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
20 +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts
21 @@ -58,6 +58,13 @@
22 #cooling-cells = <2>;
23 };
24
25 + rfkill {
26 + compatible = "rfkill-gpio";
27 + label = "rfkill-pcie-wlan";
28 + radio-type = "wlan";
29 + shutdown-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
30 + };
31 +
32 vcc3v3_pcie2x1l0: vcc3v3-pcie2x1l0-regulator {
33 compatible = "regulator-fixed";
34 enable-active-high;