ARM: tegra: paz00: configure WiFi rfkill switch through device tree
PATCH v2 1/1 ARM: tegra: paz00: configure WiFi rfkill switch through device tree
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.
---
V2:
- added Marc's Tested-by
V1:
- https://lore.kernel.org/r/[email protected]
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(-)
arch/arm/boot/dts/nvidia/tegra20-paz00.dts +8 -0
@@ -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>; + shutdown-gpios = <&gpio TEGRA_GPIO(K, 5) GPIO_ACTIVE_HIGH>; + }; + sound { compatible = "nvidia,tegra-audio-alc5632-paz00", "nvidia,tegra-audio-alc5632";
arch/arm/mach-tegra/Makefile +0 -2
@@ -15,5 +15,3 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o obj-$(CONFIG_ARCH_TEGRA_114_SOC) += pm-tegra30.o obj-$(CONFIG_ARCH_TEGRA_124_SOC) += pm-tegra30.o - -obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-paz00.o
arch/arm/mach-tegra/board-paz00.c deleted +0 -56
56 lines not on this page · raw message
arch/arm/mach-tegra/board.h +0 -2
@@ -19,6 +19,4 @@void __init tegra_map_common_io (void );void __init tegra_init_irq (void ); -void __init tegra_paz00_wifikill_init (void ); -#endif
arch/arm/mach-tegra/tegra.c +0 -4
@@ -83,10 +83,6 @@ static void __init tegra_dt_init(void)static void __init tegra_dt_init_late (void ) { -if (IS_ENABLED (CONFIG_ARCH_TEGRA_2x_SOC) && -of_machine_is_compatible ("compal,paz00" )) -tegra_paz00_wifikill_init (); -if (IS_ENABLED (CONFIG_ARCH_TEGRA_2x_SOC) &&of_machine_is_compatible ("nvidia,tegra20" ))platform_device_register_simple ("tegra20-cpufreq" ,-1 ,NULL ,0 );
Signature · 5 lines
2.53.0.1018.g2bb0e51243-goog -- Dmitry
Quoted 9 lines · Dmitry Torokhov
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.cfile and relevantMakefilefragments.Tested-by Marc Dietrich <[email protected]>Signed-off-by Dmitry Torokhov <[email protected]>---
But now I need to find another victim of my auto secondary fwnode experiments for OF systems. :)
Quoted 16 lines · Dmitry Torokhov
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.cfile and relevantMakefilefragments.Tested-by Marc Dietrich <[email protected]>Signed-off-by Dmitry Torokhov <[email protected]>---
V2:
- added Marc's Tested-by
Quoted 6 lines
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(-)
Applied, thanks.
Thierry