[PATCH v2] ARM: spi/sun7i: Add Master Sample Data Mode for SPI
Mark Brown
broonie at kernel.org
Mon Feb 13 04:52:39 PST 2017
On Sat, Feb 11, 2017 at 12:54:47AM -0300, Vinicius Maciel wrote:
> In order to work appropriately, the max11043 ADC chip and probably
> others, needs SPI master samples the data at the correct edge. From
> max11043 datasheet: "The data at DIN is latched on the rising edge
> of SCLK". Same to DOUT.
>
> This patch add Master Sample Data Mode bit in normal sample mode.
> It will affect only A20.
This should be controlled by the SPI mode settings, different chips have
different requirements. If the controller supports multiple modes then
it should expose that and let the drivers and system integrations
choose.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170213/aa159db6/attachment.sig>
More information about the linux-arm-kernel
mailing list