staging: wfx: add infrastructure for new driver
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Thu, 19 Sep 2019 14:25:36 +0000 (14:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 08:26:51 +0000 (10:26 +0200)
commita7a91ca5a23dbcc68f04d18ef7e765b1e4f64c7f
tree2e4acd3fbf7ece6d96bee5f1c77f6a3d16f1960c
parentd98bb9c2fec01254d2e04e1eed51dde9ae611314
staging: wfx: add infrastructure for new driver

Instantiate build infrastructure WFx driver. This driver provides support
for Wifi chipset Silicon Labs WF200 and further:

   https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf

This chip support SPI and SDIO bus.

SDIO interface has two particularities:
    1. Some parameters may be useful for end user (I will talk about
       gpio_wakeup later).
    2. The SDIO VID and PID of WF200 are 0000:0001 which are too much
       generic to rely on.

So, current code checks VID/PID and looks for a node in DT (since WF200
targets embedded platforms, I don't think it is a problem to rely on
DT). DT can also be used to define to parameters for driver. Currently,
if no node is found, a warning is emitted, but it could be changed in
error.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20190919142527.31797-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
MAINTAINERS
drivers/staging/Kconfig
drivers/staging/Makefile
drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/siliabs,wfx.txt [new file with mode: 0644]
drivers/staging/wfx/Kconfig [new file with mode: 0644]
drivers/staging/wfx/Makefile [new file with mode: 0644]
drivers/staging/wfx/TODO [new file with mode: 0644]
drivers/staging/wfx/bus.h [new file with mode: 0644]
drivers/staging/wfx/bus_sdio.c [new file with mode: 0644]
drivers/staging/wfx/bus_spi.c [new file with mode: 0644]
drivers/staging/wfx/main.c [new file with mode: 0644]
drivers/staging/wfx/wfx_version.h [new file with mode: 0644]