[PATCHv3] spi: orion: Add multiple chip select support to spi-orion

2015-01-15 Thread Ken Wilson
This commit adds support for multiple hardware chip selects to spi-orion. Different SoCs support different number of chip selects (up to 8 on some platforms). The driver allows up to this number, and it is up to the implementer to only use the chip selects that are available. Signed-off-by: Ken

[PATCHv3] spi: orion: Add multiple chip select support to spi-orion

2015-01-15 Thread Ken Wilson
This commit adds support for multiple hardware chip selects to spi-orion. Different SoCs support different number of chip selects (up to 8 on some platforms). The driver allows up to this number, and it is up to the implementer to only use the chip selects that are available. Signed-off-by: Ken

Re: [PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-14 Thread Ken Wilson
On 15/01/15 06:06, Mark Brown wrote: On Mon, Jan 12, 2015 at 01:14:00PM +1000, Ken Wilson wrote: +- num-cs : The total number of chip selects used by this platform. + If unset, this defaults to 1. So, this is intended to be the number of hardware chip selects that can

Re: [PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-14 Thread Ken Wilson
On 15/01/15 06:06, Mark Brown wrote: On Mon, Jan 12, 2015 at 01:14:00PM +1000, Ken Wilson wrote: +- num-cs : The total number of chip selects used by this platform. + If unset, this defaults to 1. So, this is intended to be the number of hardware chip selects that can

[PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-11 Thread Ken Wilson
This commit adds support for multiple hardware chip selects to spi-orion. The number of supported chip selects varies based on the SoC and pin configuration, so it is set using the num-cs device tree binding. Signed-off-by: Ken Wilson --- Documentation/devicetree/bindings/spi/spi-orion.txt | 3

[PATCHv2 0/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-11 Thread Ken Wilson
adds support for multiple chip selects. Currently there is no additional support for gpio chip selects, as I do not have a board to test that with. These patches have been tested on an Armada 375 with 2 SPI-NOR chips. Thanks, Ken Ken Wilson (2): spi: orion: Change spi-orion to use

[PATCHv2 1/2] spi: orion: Change spi-orion to use transfer_one() semantics for SPI transfers

2015-01-11 Thread Ken Wilson
This commit changes spi-orion to provide setup, set_cs, and transfer_one functions instead of transfer_one_message. This allows chip select support for both native and GPIO chip selects to be added. Signed-off-by: Ken Wilson --- drivers/spi/spi-orion.c | 73

[PATCHv2 0/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-11 Thread Ken Wilson
adds support for multiple chip selects. Currently there is no additional support for gpio chip selects, as I do not have a board to test that with. These patches have been tested on an Armada 375 with 2 SPI-NOR chips. Thanks, Ken Ken Wilson (2): spi: orion: Change spi-orion to use

[PATCHv2 1/2] spi: orion: Change spi-orion to use transfer_one() semantics for SPI transfers

2015-01-11 Thread Ken Wilson
This commit changes spi-orion to provide setup, set_cs, and transfer_one functions instead of transfer_one_message. This allows chip select support for both native and GPIO chip selects to be added. Signed-off-by: Ken Wilson ken.wil...@opengear.com --- drivers/spi/spi-orion.c | 73

[PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion

2015-01-11 Thread Ken Wilson
This commit adds support for multiple hardware chip selects to spi-orion. The number of supported chip selects varies based on the SoC and pin configuration, so it is set using the num-cs device tree binding. Signed-off-by: Ken Wilson ken.wil...@opengear.com --- Documentation/devicetree/bindings

Re: [PATCH] spi: orion: Add multiple chip select support for Armada 370 and 375

2015-01-07 Thread Ken Wilson
Hi Thomas, > On 7 Jan 2015, at 4:41 pm, Thomas Petazzoni > wrote: > > Dear Gregory CLEMENT, > > On Tue, 06 Jan 2015 23:00:54 +0100, Gregory CLEMENT wrote: > >> On 06/01/2015 22:30, Ken Wilson wrote: >>> Create a new dt binding for the Armada 375 that suppor

Re: [PATCH] spi: orion: Add multiple chip select support for Armada 370 and 375

2015-01-07 Thread Ken Wilson
Hi Thomas, On 7 Jan 2015, at 4:41 pm, Thomas Petazzoni thomas.petazz...@free-electrons.com wrote: Dear Gregory CLEMENT, On Tue, 06 Jan 2015 23:00:54 +0100, Gregory CLEMENT wrote: On 06/01/2015 22:30, Ken Wilson wrote: Create a new dt binding for the Armada 375 that supports up to 3

[PATCH] spi: orion: Add multiple chip select support for Armada 370 and 375

2015-01-06 Thread Ken Wilson
-off-by: Ken Wilson --- .../devicetree/bindings/spi/spi-orion.txt | 3 ++- arch/arm/boot/dts/armada-375.dtsi | 4 +-- drivers/spi/spi-orion.c| 29 +++--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git

[PATCH] spi: orion: Add multiple chip select support for Armada 370 and 375

2015-01-06 Thread Ken Wilson
-off-by: Ken Wilson ken.wil...@opengear.com --- .../devicetree/bindings/spi/spi-orion.txt | 3 ++- arch/arm/boot/dts/armada-375.dtsi | 4 +-- drivers/spi/spi-orion.c| 29 +++--- 3 files changed, 29 insertions(+), 7 deletions