]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: cw1200: Convert to GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 31 Jan 2024 22:37:25 +0000 (23:37 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 5 Feb 2024 18:17:10 +0000 (20:17 +0200)
commit2719a9e7156c4b3983b43db467c1ff96801bda99
tree9b9c8f1eeb610fcf46d4796964ef3890b5b7271b
parentd8da5a213812cb0092854f586aa26735b59be85b
wifi: cw1200: Convert to GPIO descriptors

The CW1200 uses two GPIOs to control the powerup and reset
pins, get these from GPIO descriptors instead of being passed
as platform data from boardfiles.

The RESET line will need to be marked as active low as we will
let gpiolib handle the polarity inversion.

The SDIO case is a bit special since the "card" need to be
powered up before it gets detected on the SDIO bus and
properly probed. Fix this by using board-specific GPIOs
assigned to device "NULL".

There are currently no in-tree users.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240131-descriptors-wireless-v1-6-e1c7c5d68746@linaro.org
drivers/net/wireless/st/cw1200/cw1200_sdio.c
drivers/net/wireless/st/cw1200/cw1200_spi.c
include/linux/platform_data/net-cw1200.h