Re: [PATCH v4] wlcore: spi: add wl18xx support
From: Rob Herring
Date: Tue Jun 28 2016 - 16:57:12 EST
On Sun, Jun 26, 2016 at 10:10:54AM +0000, Reizer, Eyal wrote:
> Add support for using with both wl12xx and wl18xx.
>
> - all wilink family needs special init command for entering wspi mode.
> extra clock cycles should be sent after the spi init command while the
> cs pin is high.
> - Use inverted chip select for sending a dummy 4 bytes command that
> completes the init stage.
>
> Signed-off-by: Eyal Reizer <eyalr@xxxxxx>
> ---
> v1->v2:update device tree bindings configuration
> v2->v3:revert from manual gpio manipulation. use inverted chip select instead
> for sending the extra init cycle which, achieves the same hardware purpose.
> update device tree bindings docucmentation accordingly
> v3->v4: Remove redundant data form binding documentation and fix chip select
> number mismatch in wl1271 example
>
> .../bindings/net/wireless/ti,wlcore,spi.txt | 41 +++++--
Acked-by: Rob Herring <robh@xxxxxxxxxx>
> drivers/net/wireless/ti/wlcore/spi.c | 124 +++++++++++++++++----
> 2 files changed, 137 insertions(+), 28 deletions(-)