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 supports up to >>> 3 chip selects but uses

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

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

2015-01-06 Thread Thomas Petazzoni
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 chip selects but uses the same prescaler values and algorithm > > as the basic orion binding. > >

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

2015-01-06 Thread Gregory CLEMENT
Hi Ken, On 06/01/2015 22:30, Ken Wilson wrote: > Create a new dt binding for the Armada 375 that supports up to > 3 chip selects but uses the same prescaler values and algorithm > as the basic orion binding. There was already a patch that have been sent for this:

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

2015-01-06 Thread Ken Wilson
Create a new dt binding for the Armada 375 that supports up to 3 chip selects but uses the same prescaler values and algorithm as the basic orion binding. Update the Armada 370 so that it supports up to 4 chip selects. This has been tested on the Armada 375 with multiple SPI-NOR chips.

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

2015-01-06 Thread Andrew Lunn
Hi Ken > -static const struct orion_spi_dev armada_spi_dev_data = { > +static const struct orion_spi_dev armada_370_spi_dev_data = { > .typ = ARMADA_SPI, > .min_divisor = 1, > .max_divisor = 1920, > .prescale_mask = ARMADA_SPI_CLK_PRESCALE_MASK, > + .num_cs = 4, > +};

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

2015-01-06 Thread Ezequiel Garcia
On 01/06/2015 06:30 PM, Ken Wilson wrote: > Create a new dt binding for the Armada 375 that supports up to > 3 chip selects but uses the same prescaler values and algorithm > as the basic orion binding. > > Update the Armada 370 so that it supports up to 4 chip selects. > > This has been tested

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

2015-01-06 Thread Ezequiel Garcia
On 01/06/2015 06:30 PM, Ken Wilson wrote: Create a new dt binding for the Armada 375 that supports up to 3 chip selects but uses the same prescaler values and algorithm as the basic orion binding. Update the Armada 370 so that it supports up to 4 chip selects. This has been tested on the

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

2015-01-06 Thread Andrew Lunn
Hi Ken -static const struct orion_spi_dev armada_spi_dev_data = { +static const struct orion_spi_dev armada_370_spi_dev_data = { .typ = ARMADA_SPI, .min_divisor = 1, .max_divisor = 1920, .prescale_mask = ARMADA_SPI_CLK_PRESCALE_MASK, + .num_cs = 4, +}; +

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

2015-01-06 Thread Ken Wilson
Create a new dt binding for the Armada 375 that supports up to 3 chip selects but uses the same prescaler values and algorithm as the basic orion binding. Update the Armada 370 so that it supports up to 4 chip selects. This has been tested on the Armada 375 with multiple SPI-NOR chips.

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

2015-01-06 Thread Gregory CLEMENT
Hi Ken, On 06/01/2015 22:30, Ken Wilson wrote: Create a new dt binding for the Armada 375 that supports up to 3 chip selects but uses the same prescaler values and algorithm as the basic orion binding. There was already a patch that have been sent for this:

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

2015-01-06 Thread Thomas Petazzoni
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 chip selects but uses the same prescaler values and algorithm as the basic orion binding. There was