[PATCH v3] spi: atmel: Implements transfers with bounce buffer

2017-12-19 Thread Radu Pirea
reverted "spi: atmel: fix corrupted data issue on SAM9 family SoCs"(7094576ccdc3acfe1e06a1e2ab547add375baf7f). Signed-off-by: Radu Pirea <radu.pi...@microchip.com> Acked-by: Nicolas Ferre <nicolas.fe...@microchip.com> --- Changes v3: -rebased on top of spi: atmel: fixed

[PATCH] spi: atmel: fixed spin_lock usage inside atmel_spi_remove

2017-12-15 Thread Radu Pirea
can't be inside a spin_lock. Reported-by: Jia-Ju Bai <baijiaju1...@gmail.com> Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/spi/spi-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index f95d

[RFC PATCH 1/2] Revert "spi: atmel: fix corrupted data issue on SAM9 family SoCs"

2017-11-15 Thread Radu Pirea
This reverts commit 7094576ccdc3acfe1e06a1e2ab547add375baf7f. A better fix was found and DMA for SAM9 SoCs must be enabled. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/spi/spi-atmel.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff

[RFC PATCH 2/2] spi: atmel: Fix DMA transfers data corruption

2017-11-15 Thread Radu Pirea
If the cache model is VIVT, DMA data transfers may not be valid and to ensure the validity of the data cache must be flushed and invalidated. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/spi/spi-atmel.c | 20 1 file changed, 20 insertions(+) diff

[RFC PATCH 0/2] Enable DMA transfers for SAM9 and fix cache aliasing

2017-11-15 Thread Radu Pirea
iew this is the best and most simple approach. I based these patches on Russell King idea https://lkml.org/lkml/2017/6/23/509 I welcome any feedback about this solution. Thanks. Radu Pirea (2): Revert "spi: atmel: fix corrupted data issue on SAM9 family SoCs" spi: atmel: Fix DMA t

[PATCH v2] spi: atmel: bounce buffer spi

2017-12-12 Thread Radu Pirea
Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/spi/spi-atmel.c | 112 +++- 1 file changed, 82 insertions(+), 30 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index f95da36..59b59ae 100644 --- a/d

[PATCH v2] spi: atmel: Implements transfers with bounce buffer

2017-12-12 Thread Radu Pirea
reverted "spi: atmel: fix corrupted data issue on SAM9 family SoCs"(7094576ccdc3acfe1e06a1e2ab547add375baf7f). Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- Please ignore the previous version. I messed up with file names. drivers/spi/s

[PATCH v2 1/6] MAINTAINERS: add at91 usart mfd driver

2018-05-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..ca06c6f58299 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9192,6 +9192,1

[PATCH v2 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-04 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea <radu.pi...@microchip.

[PATCH v2 3/6] MAINTAINERS: add at91 usart spi driver

2018-05-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca06c6f58299..9243b9007966 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,1

[PATCH v2 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-04 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 29 +++-- 2 files changed, 16 insertions(

[PATCH v2 2/6] mfd: at91-usart: added mfd driver for usart

2018-05-04 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- d

[PATCH v2 0/6] Driver for at91 usart in spi mode

2018-05-04 Thread Radu Pirea
driver child Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver dt-bindings: add binding for at91-usart in spi mode spi: at91-usart: add driver for at91-usart as spi tty/serial: atmel: changed the driver

[PATCH v2 4/6] dt-bindings: add binding for at91-usart in spi mode

2018-05-04 Thread Radu Pirea
These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- .../bindings/spi/microchip,at91-usart-spi.txt | 28 +++

[PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-04 Thread Radu Pirea
Added geometry description for Microchip 25LC256 memory. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/mtd/devices/m25p80.c | 3 +++ drivers/mtd/spi-nor/spi-nor.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/

[PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-11 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 29 +++-- 2 files changed, 16 insertions(

[PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-11 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea <radu.pi...@microchip.

[PATCH v3 4/6] dt-bindings: add binding for at91-usart in spi mode

2018-05-11 Thread Radu Pirea
These are bindings for at91-usart IP in spi spi mode. There is no support for internal chip select. Only kind of chip selects available are gpio chip selects. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- .../bindings/spi/microchip,at91-usart-spi.txt | 28 +++

[PATCH v3 2/6] mfd: at91-usart: added mfd driver for usart

2018-05-11 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- d

[PATCH v3 3/6] MAINTAINERS: add at91 usart spi driver

2018-05-11 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca06c6f58299..9243b9007966 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,1

[PATCH v3 1/6] MAINTAINERS: add at91 usart mfd driver

2018-05-11 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..ca06c6f58299 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9192,6 +9192,1

[PATCH v3 0/6] Driver for at91 usart in spi mode

2018-05-11 Thread Radu Pirea
driver child Changes in v3: - fixed spi slaves probing Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver dt-bindings: add binding for at91-usart in spi mode spi: at91-usart: add driver for at91-usart

Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-16 Thread Radu Pirea
On Wed, 2018-05-16 at 00:17 +0200, Marek Vasut wrote: > On 05/15/2018 06:22 PM, Radu Pirea wrote: > > On Fri, 2018-05-04 at 20:40 +0200, Boris Brezillon wrote: > > > On Fri, 4 May 2018 18:54:04 +0300 > > > Radu Pirea <radu.pi...@microchip.com> wrote: > >

Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-18 Thread Radu Pirea
On 05/16/2018 04:47 PM, Marek Vasut wrote: On 05/16/2018 12:05 PM, Radu Pirea wrote: On Wed, 2018-05-16 at 00:17 +0200, Marek Vasut wrote: On 05/15/2018 06:22 PM, Radu Pirea wrote: On Fri, 2018-05-04 at 20:40 +0200, Boris Brezillon wrote: On Fri, 4 May 2018 18:54:04 +0300 Radu Pirea

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-15 Thread Radu Pirea
On Mon, 2018-05-14 at 20:38 +0300, Andy Shevchenko wrote: > First of all, do not remove mailing lists from Cc and people if you > are not sure they do not need your stuff. > Sorry. My mistake. > On Mon, May 14, 2018 at 11:11 AM, Radu Pirea > <radu.pi...@microchip.com> wrote

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-15 Thread Radu Pirea
On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: > Hi, > > On 11/05/2018 12:38, Radu Pirea wrote: > > This patch modifies the place where resources and device tree > > properties > > are searched. > > > > Signed-off-by: Radu Pirea <radu.pi.

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-15 Thread Radu Pirea
On Sun, 2018-05-13 at 16:33 +0300, Andy Shevchenko wrote: > On Fri, May 11, 2018 at 1:38 PM, Radu Pirea <radu.pi...@microchip.com > > wrote: > > This is the driver for at91-usart in spi mode. The USART IP can be > > configured > > to work in many modes and one

Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-15 Thread Radu Pirea
On Fri, 2018-05-04 at 20:40 +0200, Boris Brezillon wrote: > On Fri, 4 May 2018 18:54:04 +0300 > Radu Pirea <radu.pi...@microchip.com> wrote: > > > Added geometry description for Microchip 25LC256 memory. > > Same as for the dataflash stuff you posted a few weeks ago:

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-23 Thread Radu Pirea
On 05/17/2018 08:04 AM, Mark Brown wrote: On Fri, May 11, 2018 at 01:38:21PM +0300, Radu Pirea wrote: +config SPI_AT91_USART +tristate "Atmel USART Controller as SPI" + depends on HAS_DMA + depends on (ARCH_AT91 || COMPILE_TEST) +select MFD_AT91_USART +

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-25 Thread Radu Pirea
On 05/15/2018 04:14 PM, Richard Genoud wrote: On 15/05/2018 14:47, Radu Pirea wrote: On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: After your patch, the DMA is not selected anymore: atmel_usart_serial atmel_usart_serial.0.auto: TX channel not available, switch to pio instead

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-25 Thread Radu Pirea
On 05/25/2018 04:35 PM, Richard Genoud wrote: On 25/05/2018 14:17, Radu Pirea wrote: On 05/15/2018 04:14 PM, Richard Genoud wrote: On 15/05/2018 14:47, Radu Pirea wrote: On Mon, 2018-05-14 at 12:57 +0200, Richard Genoud wrote: After your patch, the DMA is not selected anymore

[PATCH v4 0/6] Driver for at91 usart in spi mode

2018-05-25 Thread Radu Pirea
driver child Changes in v3: - fixed spi slaves probing Changes in v4: - modified the spi driver to use cs gpio support form spi subsystem - fixed dma transfers for serial driver - squashed binding for spi and serial and moved them to mfd/atmel-usart.txt Radu Pirea (6): MAINTAINERS: add at91 usart

[PATCH v4 3/6] mfd: at91-usart: added mfd driver for usart

2018-05-25 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- d

[PATCH v4 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-05-25 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- 1 file changed, 23 i

[PATCH v4 1/6] MAINTAINERS: add at91 usart mfd driver

2018-05-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..12203d07c6af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9160,6 +9160,

[PATCH v4 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-25 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 40 +-- 2 files changed, 23 insertions(

[PATCH v4 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-25 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea <radu.pi...@microchip.

[PATCH v4 4/6] MAINTAINERS: add at91 usart spi driver

2018-05-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea <radu.pi...@microchip.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12203d07c6af..dae31df711fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9201,6 +9201,1

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-24 Thread Radu Pirea
On 05/17/2018 07:54 AM, Mark Brown wrote: On Tue, May 15, 2018 at 12:22:24PM +0300, Radu Pirea wrote: On Mon, 2018-05-14 at 20:38 +0300, Andy Shevchenko wrote: So, what is not going as expected in "SPI core takes care of CSs" case? Did you use oscilloscope for that? Yes, I us

Re: [PATCH] mtd: spi-nor: add support for Microchip 25LC256

2018-05-18 Thread Radu Pirea
On 05/18/2018 01:03 PM, Marek Vasut wrote: On 05/18/2018 11:50 AM, Radu Pirea wrote: On 05/16/2018 04:47 PM, Marek Vasut wrote: On 05/16/2018 12:05 PM, Radu Pirea wrote: On Wed, 2018-05-16 at 00:17 +0200, Marek Vasut wrote: On 05/15/2018 06:22 PM, Radu Pirea wrote: On Fri, 2018-05-04

Re: [PATCH v7 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-14 Thread Radu Pirea
On 06/14/2018 10:58 AM, Ludovic Desroches wrote: On Wed, Jun 13, 2018 at 07:36:18PM +0300, Radu Pirea wrote: This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property

[PATCH v8 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-06-18 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Acked-by: Richard Genoud Reviewed-by: Andy Shevchenko --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42 --- 2 files

[PATCH v8 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-18 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko

[PATCH v8 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-18 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..12203d07c6af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9160,6 +9160,7 @@ M:Richard Genoud S

[PATCH v8 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-18 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12203d07c6af..dae31df711fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9201,6 +9201,13 @@ F: drivers/mfd/at91

[PATCH v8 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-18 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

[PATCH v8 0/6] Driver for at91 usart in spi mode

2018-06-18 Thread Radu Pirea
added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver spi: at91-usart: add driver for at91-usart as spi tty/serial: atm

[PATCH v8 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-18 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring Reviewed-by: Andy

[PATCH v7 0/6] Driver for at91 usart in spi mode

2018-06-13 Thread Radu Pirea
slaves probing Changes in v2: - added at91-usart mfd driver - modified spi-at91-usart driver to work as mfd driver child - modified atmel_serial driver to work as mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings

[PATCH v7 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-13 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring Reviewed-by: Andy

[PATCH v7 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-13 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko

[PATCH v7 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-13 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12203d07c6af..dae31df711fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9201,6 +9201,13 @@ F: drivers/mfd/at91

[PATCH v7 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-06-13 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Acked-by: Richard Genoud Reviewed-by: Andy Shevchenko --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42 --- 2 files

[PATCH v7 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-13 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..12203d07c6af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9160,6 +9160,7 @@ M:Richard Genoud S

[PATCH v7 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-13 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

Re: [PATCH v4 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-29 Thread Radu Pirea
On 05/28/2018 01:08 PM, Richard Genoud wrote: On 25/05/2018 19:19, Radu Pirea wrote: This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 40

[PATCH v6 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-07 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..12203d07c6af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9160,6 +9160,7 @@ M:Richard Genoud S

[PATCH v6 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-07 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring --- drivers/mfd

[PATCH v6 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-06-07 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42 --- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git

[PATCH v6 0/6] Driver for at91 usart in spi mode

2018-06-07 Thread Radu Pirea
property with atmel_serial driver Changes in v6: - removed unused compatible strings from serial and spi drivers Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart

[PATCH v6 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-07 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea --- drivers/spi/Kconfig

[PATCH v6 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-07 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12203d07c6af..dae31df711fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9201,6 +9201,13 @@ F: drivers/mfd/at91

[PATCH v6 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-07 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

Re: [PATCH v4 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-29 Thread Radu Pirea
On 05/28/2018 11:21 AM, Andy Shevchenko wrote: On Fri, May 25, 2018 at 8:19 PM, Radu Pirea wrote: This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained

[PATCH v5 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-04 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea --- drivers/spi/Kconfig

[PATCH v5 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-04 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring --- drivers/mfd

[PATCH v5 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-06-04 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 41 ++- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git

[PATCH v5 0/6] Driver for at91 usart in spi mode

2018-06-04 Thread Radu Pirea
property with atmel_serial driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver spi: at91-usart: add driver for at91-usart as spi tty/serial

[PATCH v5 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8e2a2fddbd19..12203d07c6af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9160,6 +9160,7 @@ M:Richard Genoud S

[PATCH v5 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-04 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 12203d07c6af..dae31df711fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9201,6 +9201,13 @@ F: drivers/mfd/at91

[PATCH v5 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-04 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

[PATCH v10 0/6] Driver for at91 usart in spi mode

2018-06-25 Thread Radu Pirea
at91-usart driver to work as mfd driver child - modified atmel_serial driver to work as mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver

[PATCH v10 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9d5eeff51b5f..7ac6e6af5292 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9321,6 +9321,7 @@ M:Richard Genoud S

[PATCH v10 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-06-25 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Acked-by: Richard Genoud Reviewed-by: Andy Shevchenko --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42 --- 2 files

[PATCH v10 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac6e6af5292..f849cc4acbf6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9362,6 +9362,13 @@ F: drivers/mfd/at91

[PATCH v10 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-25 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko

[PATCH v10 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-25 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

[PATCH v10 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-25 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring Reviewed-by: Andy

[PATCH v9 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-06-25 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko

[PATCH v9 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-06-25 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Acked-by: Richard Genoud Reviewed-by: Andy Shevchenko --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42 --- 2 files

[PATCH v9 3/6] mfd: at91-usart: added mfd driver for usart

2018-06-25 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Acked-by: Rob Herring Reviewed-by: Andy

[PATCH v9 4/6] MAINTAINERS: add at91 usart spi driver

2018-06-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac6e6af5292..f849cc4acbf6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9362,6 +9362,13 @@ F: drivers/mfd/at91

[PATCH v9 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-06-25 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- include/dt-bindings/mfd/a

[PATCH v9 0/6] Driver for at91 usart in spi mode

2018-06-25 Thread Radu Pirea
- modified atmel_serial driver to work as mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver

[PATCH v9 1/6] MAINTAINERS: add at91 usart mfd driver

2018-06-25 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9d5eeff51b5f..7ac6e6af5292 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9321,6 +9321,7 @@ M:Richard Genoud S

Re: [PATCH v2 2/2] spi: add SPI controller driver for UniPhier SoC

2018-07-26 Thread Radu Pirea
On 07/26/2018 12:38 PM, Keiji Hayashibara wrote: Hello Andy, Thank you for your check! From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] Sent: Thursday, July 26, 2018 5:46 PM To: Hayashibara, Keiji/ζž—εŽŸ ε•“δΊŒ Subject: Re: [PATCH v2 2/2] spi: add SPI controller driver for UniPhier SoC

Re: [PATCH v11 0/6] Driver for at91 usart in spi mode

2018-08-22 Thread Radu Pirea
be reworked in order to take the patches? On 7/13/18 7:47 PM, Radu Pirea - M19893 wrote: Hello, This is the second version of driver. I added a mfd driver which by default probes atmel_serial driver and if in dt is specified to probe the spi driver, then the spi-at91-usart driver will be probed

[RESEND PATCH v11 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-08-31 Thread Radu Pirea
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko

[RESEND PATCH v11 1/6] MAINTAINERS: add at91 usart mfd driver

2018-08-31 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre Acked-for-MFD-by: Lee Jones --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a5b256b25905..94b37382cd2b 100644 --- a/MAINTAINERS +++ b

[RESEND PATCH v11 0/6] Driver for at91 usart in spi mode

2018-08-31 Thread Radu Pirea
/atmel-usart.txt Changes in v3: - fixed spi slaves probing Changes in v2: - added at91-usart mfd driver - modified spi-at91-usart driver to work as mfd driver child - modified atmel_serial driver to work as mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAI

[RESEND PATCH v11 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-08-31 Thread Radu Pirea
This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones Acked-by: Nicolas Ferre --- .../bindings/{serial => mfd}/atmel-usart.txt |

[RESEND PATCH v11 4/6] MAINTAINERS: add at91 usart spi driver

2018-08-31 Thread Radu Pirea
Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 94b37382cd2b..d58bc2d6bb3d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9542,6 +9542,13 @@ F

[RESEND PATCH v11 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-08-31 Thread Radu Pirea
This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko Acked-by: Richard Genoud Acked-by: Nicolas Ferre Acked-by: Greg Kroah-Hartman --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial

[RESEND PATCH v11 3/6] mfd: at91-usart: added mfd driver for usart

2018-08-31 Thread Radu Pirea
This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko Acked

[PATCH v12 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-09-04 Thread Radu Pirea
From: Radu Pirea This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed

[PATCH v12 0/6] Driver for at91 usart in spi mode

2018-09-04 Thread Radu Pirea
mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver spi: at91-usart: add driver f

[PATCH v12 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-09-04 Thread Radu Pirea
From: Radu Pirea This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones Acked-by: Nicolas Ferre --- .../bindings/{serial =>

[PATCH v12 3/6] mfd: at91-usart: added mfd driver for usart

2018-09-04 Thread Radu Pirea
From: Radu Pirea This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Reviewed-by: Andy

[PATCH v12 4/6] MAINTAINERS: add at91 usart spi driver

2018-09-04 Thread Radu Pirea
From: Radu Pirea Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8aeaa2cc3e14..1bb477aab33b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v12 1/6] MAINTAINERS: add at91 usart mfd driver

2018-09-04 Thread Radu Pirea
From: Radu Pirea Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre Acked-for-MFD-by: Lee Jones --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 544cac829cf4..8aeaa2cc3e14 100644

  1   2   3   >