[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 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 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 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 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 v11 0/6] Driver for at91 usart in spi mode

2018-08-22 Thread Radu Pirea
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. The

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 O

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

2018-07-13 Thread Radu Pirea
On 07/10/2018 09:15 PM, Mark Brown wrote: On Mon, Jun 25, 2018 at 08:22:29PM +0300, Radu Pirea wrote: This is mostly good, just a couple of small things: +config SPI_AT91_USART + tristate "Atmel USART Controller SPI driver" + depends on HAS_DMA + depends on

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

2018-07-13 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 9d5eeff51b5f..7ac6e6af5292 100644 --- a/MAINTAINERS +++ b

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

2018-07-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 Reviewed-by: Andy Shevchenko Acked-by

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

2018-07-13 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 7ac6e6af5292..f849cc4acbf6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9362,6 +9362,13 @@ F

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

2018-07-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 v11 0/6] Driver for at91 usart in spi mode

2018-07-13 Thread Radu Pirea
ges 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: add binding for a

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

2018-07-13 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 --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 42

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

2018-07-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 Acked-for-MFD-by: Lee Jones Acked-by: Nicolas Ferre --- .../bindings/{serial => mfd}/atmel-usart.txt |

[PATCH 1/3] spi: at91-usart: add power management support

2018-11-21 Thread Radu Pirea
This patch implements power management callback function for USART as SPI driver. Signed-off-by: Radu Pirea --- drivers/spi/spi-at91-usart.c | 61 1 file changed, 61 insertions(+) diff --git a/drivers/spi/spi-at91-usart.c b/drivers/spi/spi-at91-usart.c

[PATCH 0/3] Add PM and DMA support for AT91 USART as SPI

2018-11-21 Thread Radu Pirea
transfers. Radu Pirea (3): spi: at91-usart: add power management support dt-bindings: mfd: atmel-usart: add DMA bindings for SPI mode spi: at91-usart: add DMA support .../devicetree/bindings/mfd/atmel-usart.txt | 15 +- drivers/spi/spi-at91-usart.c | 284

[PATCH 3/3] spi: at91-usart: add DMA support

2018-11-21 Thread Radu Pirea
This patch adds support for DMA. Transfers are done with dma only if they are longer than 16 bytes in order to achieve a better performance. DMA setup introduces a little overhead and for transfers shorter than 16 bytes there is no performance improvement. Signed-off-by: Radu Pirea --- drivers

[PATCH 2/3] dt-bindings: mfd: atmel-usart: add DMA bindings for SPI mode

2018-11-21 Thread Radu Pirea
The bindings for DMA are now common for both drivers of the USART IP. The node given as an example for USART in SPI mode has been updated in order to include DMA bindings. Signed-off-by: Radu Pirea --- .../devicetree/bindings/mfd/atmel-usart.txt | 15 ++- 1 file changed, 10

[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 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 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 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 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

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 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 of

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 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 --- 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 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 --- drivers/mfd/Kconfig

[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 --- .../bindings/{serial => mfd}/atmel-usart.txt | 25 +-- 1 file changed, 23 insertions(+), 2 deletions(-) ren

[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 --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 40 +-- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a

[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 --- 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 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 --- drivers/spi/Kconfig

[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 --- drivers/tty/serial/Kconfig| 1 + drivers/tty/serial/atmel_serial.c | 29 +++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a

[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 --- drivers/spi/Kconfig

[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 --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ca06c6f58299..9243b9007966 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9199,6 +9199,13 @@ S: Supported F

[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 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 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 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 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 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: atmel:

[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 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 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 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 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 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 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 is not

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 wrote

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 at

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 +

[PATCH] spi-nor: Add support for Atmel Dataflash memories

2018-02-28 Thread Radu Pirea
This patch add support in spi-nor for allmost all dataflash memories supported by old mtd_dataflash driver. Signed-off-by: Radu Pirea --- drivers/mtd/spi-nor/spi-nor.c | 150 +- include/linux/mtd/spi-nor.h | 10 +++ 2 files changed, 158 insertions

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

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 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 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 a

[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 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 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 a

[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 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 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 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 > wrote: > > On Sun, 2018-05-13

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 > 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. > > +#includ

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 > > --

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 wrote: > > > Added geometry description for Microchip 25LC256 memory. > > Same as for the dataflash stuff you posted a few weeks ago: I don't > think this

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 wrote: > > > > > > > Added g

[PATCH v2 2/2] spi: at91-usart: add DMA support

2019-05-05 Thread Radu Pirea
This patch adds support for DMA. Transfers are done with dma only if they are longer than 16 bytes in order to achieve a better performance. DMA setup introduces a little overhead and for transfers shorter than 16 bytes there is no performance improvement. Signed-off-by: Radu Pirea --- drivers

[PATCH v2 1/2] dt-bindings: mfd: atmel-usart: add DMA bindings for USART in SPI mode

2019-05-05 Thread Radu Pirea
The bindings for DMA are now common for both drivers of the USART IP. The node given as an example for USART in SPI mode has been updated in order to include DMA bindings. Signed-off-by: Radu Pirea --- .../devicetree/bindings/mfd/atmel-usart.txt | 20 ++- 1 file changed, 15

[PATCH v2 0/2] DMA support for AT91 USART in SPI mode

2019-05-05 Thread Radu Pirea
: - added DMA support Radu Pirea (2): dt-bindings: mfd: atmel-usart: add DMA bindings for USART in SPI mode spi: at91-usart: add DMA support .../devicetree/bindings/mfd/atmel-usart.txt | 20 +- drivers/spi/spi-at91-usart.c | 221 +- 2 files changed, 234 insertions

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

2018-09-12 Thread Radu Pirea
On Wed, 2018-09-12 at 14:12 +0100, Lee Jones wrote: > On Wed, 12 Sep 2018, Alexandre Belloni wrote: > > > On 12/09/2018 12:43:52+0100, Lee Jones wrote: > > > > > But ... we can't have it both ways. *Either* it's a true > > > > > MFD, in > > > > > which case it can/should have 2 separate compatibl

[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-by

[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 --- a

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

2018-09-04 Thread Radu Pirea
From: 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

[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 =>

[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 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 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-by

[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

  1   2   >