linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] spi: bcm2835aux: auxiliary spi improvements
@ 2016-02-09 18:10 stephanolbrich at gmx.de
  2016-02-09 18:10 ` [PATCH 1/4] spi: bcm2835aux: fix bitmask defines stephanolbrich at gmx.de
                   ` (3 more replies)
  0 siblings, 4 replies; 25+ messages in thread
From: stephanolbrich at gmx.de @ 2016-02-09 18:10 UTC (permalink / raw)
  To: linux-arm-kernel

From: Stephan Olbrich <stephanolbrich@gmx.de>

This patch series has some improvements and fixes for the auxiliary spi.

1. fix bitmask defines
 just fixes a typo (needed in 2.)

2. disable tx fifo empty irq
 reduces the numer of interrupts with nothing to do

3. set up spi-mode before asserting cs-gpio
 As Martin Sperl suggested this is done in the same way as in spi-bcm2835.c
 acace73df2c1913a526c1b41e4741a4a6704c863

4. fix CPOL/CPHA setting
 From what I've seen in the documentation [1] and seen on the scope this chip
 doesn't support modes with CPHA=1. With this patch spi mode 0 and 2 should
 work correctly whereas mode 1 and 3 do not. 

[1] https://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf

Stephan Olbrich (4):
  spi: bcm2835aux: fix bitmask defines
  spi: bcm2835aux: disable tx fifo empty irq
  spi: bcm2835aux: set up spi-mode before asserting cs-gpio
  spi: bcm2835aux: fix CPOL/CPHA setting

 drivers/spi/spi-bcm2835aux.c | 64 +++++++++++++++++++++++++++++++-------------
 1 file changed, 46 insertions(+), 18 deletions(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2016-02-11 18:44 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-09 18:10 [PATCH 0/4] spi: bcm2835aux: auxiliary spi improvements stephanolbrich at gmx.de
2016-02-09 18:10 ` [PATCH 1/4] spi: bcm2835aux: fix bitmask defines stephanolbrich at gmx.de
2016-02-09 19:54   ` Stefan Wahren
2016-02-10 20:08     ` Stephan Olbrich
2016-02-09 23:44   ` Eric Anholt
2016-02-09 18:10 ` [PATCH 2/4] spi: bcm2835aux: disable tx fifo empty irq stephanolbrich at gmx.de
2016-02-09 23:45   ` Eric Anholt
2016-02-09 18:10 ` [PATCH 3/4] spi: bcm2835aux: set up spi-mode before asserting cs-gpio stephanolbrich at gmx.de
2016-02-09 23:49   ` Eric Anholt
2016-02-10  8:01     ` Mark Brown
2016-02-10 18:59       ` Eric Anholt
2016-02-10 19:02         ` Mark Brown
2016-02-10 20:26           ` Stephan Olbrich
2016-02-10 23:19             ` Martin Sperl
2016-02-11 12:27             ` Mark Brown
2016-02-11 18:06   ` Martin Sperl
2016-02-09 18:10 ` [PATCH 4/4] spi: bcm2835aux: fix CPOL/CPHA setting stephanolbrich at gmx.de
2016-02-09 20:21   ` Stefan Wahren
2016-02-10  0:13   ` Eric Anholt
2016-02-10 20:45     ` Stephan Olbrich
2016-02-10 21:24       ` Eric Anholt
2016-02-11 15:25     ` Martin Sperl
2016-02-11 16:05       ` Stephan Olbrich
2016-02-11 16:19         ` Martin Sperl
2016-02-11 18:44           ` Martin Sperl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).