Re: [PATCH] ARM: tegra: paz00: configure WiFi rfkill switch through device tree
From: Marc Dietrich <marvin24@gmx.de>
Date: 2026-02-21 14:24:39
Also in:
linux-devicetree, linux-tegra, lkml
Hi Dmitry, On Sat, 14 Feb 2026, Marc Dietrich wrote:
Hi Dmitry, On Fri, 13 Feb 2026, Dmitry Torokhov wrote:quoted
As of d64c732dfc9e ("net: rfkill: gpio: add DT support") rfkill-gpio device can be instantiated via device tree. Add the declaration there and drop board-paz00.c file and relevant Makefile fragments. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> --- This is not tested on real hardware, compile tested only... arch/arm/boot/dts/nvidia/tegra20-paz00.dts | 8 ++++ arch/arm/mach-tegra/Makefile | 2 - arch/arm/mach-tegra/board-paz00.c | 56 ---------------------- arch/arm/mach-tegra/board.h | 2 - arch/arm/mach-tegra/tegra.c | 4 -- 5 files changed, 8 insertions(+), 64 deletions(-)diff --git a/arch/arm/boot/dts/nvidia/tegra20-paz00.dtsb/arch/arm/boot/dts/nvidia/tegra20-paz00.dts index 1408e1e00759..d1093ad569e6 100644--- a/arch/arm/boot/dts/nvidia/tegra20-paz00.dts +++ b/arch/arm/boot/dts/nvidia/tegra20-paz00.dts@@ -706,6 +706,14 @@ vdd_pnl_reg: regulator-3v0 {enable-active-high; }; + rfkill { + compatible = "rfkill-gpio"; + label = "wifi_rfkill"; + radio-type = "wlan"; + reset-gpios = <&gpio TEGRA_GPIO(D, 1) GPIO_ACTIVE_HIGH>;I guess this can be removed, as it should trigger the LED, which is already included elsewhere ....quoted
+ shutdown-gpios = <&gpio TEGRA_GPIO(K, 5) GPIO_ACTIVE_HIGH>; + }; + sound { compatible = "nvidia,tegra-audio-alc5632-paz00", "nvidia,tegra-audio-alc5632";I'll give it a try and report back.
rfkill (and LED) works as expected. With the reset-gpio line mentioned above removed, you can add my Tested-By. Thanks! Marc