Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-08-04 Thread Rich Felker
On Thu, Aug 04, 2016 at 03:05:16PM +0200, Geert Uytterhoeven wrote: > Hi Rich, > > On Sat, Jul 30, 2016 at 5:34 AM, Rich Felker wrote: > > On Thu, Jul 28, 2016 at 08:51:25PM +0100, Mark Brown wrote: > >> On Thu, Jul 28, 2016 at 03:40:45PM -0400, Rich Felker wrote: > >> > On Thu, Jul 28, 2016 at 0

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-08-04 Thread Geert Uytterhoeven
Hi Rich, On Sat, Jul 30, 2016 at 5:34 AM, Rich Felker wrote: > On Thu, Jul 28, 2016 at 08:51:25PM +0100, Mark Brown wrote: >> On Thu, Jul 28, 2016 at 03:40:45PM -0400, Rich Felker wrote: >> > On Thu, Jul 28, 2016 at 08:11:53PM +0100, Mark Brown wrote: >> > > Why are you not using the clock API fo

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-08-02 Thread Rob Landley
On 08/01/2016 08:45 PM, Rich Felker wrote: > Yes. 50 MHz is the natural default frequency, but I found out at the > last minute from the hardware engineers that clocking the current SoC > up to 62.5 MHz (for faster cpu) will require the SPI timing to be > programmed based on the faster reference cl

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-08-01 Thread Rich Felker
On Mon, Aug 01, 2016 at 07:12:45PM +0100, Mark Brown wrote: > On Fri, Jul 29, 2016 at 11:34:41PM -0400, Rich Felker wrote: > > > I was able to get it working via the clk api and I'll include support > > for this in the next version of the patch, but to actually use it > > depends on changing arch/

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-08-01 Thread Mark Brown
On Fri, Jul 29, 2016 at 11:34:41PM -0400, Rich Felker wrote: > I was able to get it working via the clk api and I'll include support > for this in the next version of the patch, but to actually use it > depends on changing arch/sh to use the common clk framework; otherwise > there's no way to prov

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-29 Thread Rich Felker
On Thu, Jul 28, 2016 at 08:51:25PM +0100, Mark Brown wrote: > On Thu, Jul 28, 2016 at 03:40:45PM -0400, Rich Felker wrote: > > On Thu, Jul 28, 2016 at 08:11:53PM +0100, Mark Brown wrote: > > > > An architecture or SoC dependency with || COMPILE_TEST would be useful > > > for avoiding cluttering Kc

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-28 Thread Mark Brown
On Thu, Jul 28, 2016 at 03:40:45PM -0400, Rich Felker wrote: > On Thu, Jul 28, 2016 at 08:11:53PM +0100, Mark Brown wrote: > > An architecture or SoC dependency with || COMPILE_TEST would be useful > > for avoiding cluttering Kconfig for other users. Though as this is in a > > FPGA it's perhaps l

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-28 Thread Rich Felker
On Thu, Jul 28, 2016 at 08:11:53PM +0100, Mark Brown wrote: > On Sun, Apr 03, 2016 at 05:12:45AM +, Rich Felker wrote: > > > +config SPI_JCORE > > + tristate "J-Core SPI Master" > > + depends on OF > > + > > An architecture or SoC dependency with || COMPILE_TEST would be useful > for avoi

Re: [PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-28 Thread Mark Brown
On Sun, Apr 03, 2016 at 05:12:45AM +, Rich Felker wrote: > +config SPI_JCORE > + tristate "J-Core SPI Master" > + depends on OF > + An architecture or SoC dependency with || COMPILE_TEST would be useful for avoiding cluttering Kconfig for other users. Though as this is in a FPGA it's

[PATCH v4 2/2] spi: add driver for J-Core SPI controller

2016-07-27 Thread Rich Felker
The J-Core "spi2" device is a PIO-based SPI master controller. It differs from "bitbang" devices in that that it's clocked in hardware rather than via soft clock modulation over gpio, and performs byte-at-a-time transfers between the cpu and SPI controller. This driver will be extended to support