[PATCH 3/3] at_hdmac: add FIFO configuration parameter to DMA DT binding

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches For most devices the FIFO configuration is the same i.e. when half FIFO size is available/filled, a source/destination request is serviced. But USART devices have to do it when there is enough space/data available to perform a single AHB access so the ASAP configuration.

[PATCH 0/3] at_hdmac: dt dma bindings update

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches Hi, This set of patches update the dt dma binding for at_hdmac since we need one more parameter. In order to keep backward compatibility, an existing cell will be used to add this parameter. Since the content of that cell will become a magic value due to the concatenation

[PATCH 1/3] ARM: at91: dt: add header to define at_hdmac configuration

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches DMA-cell content is a concatenation of several values. In order to keep this stuff human readable, macros are introduced. The values for the FIFO configuration are not the same as the ones used in the configuration register in order to keep backward compatibility. Most de

[PATCH 2/3] ARM: at91: dt: switch DMA DT bindings to pre-processor

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches Acked-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91sam9g45.dtsi | 5 +++-- arch/arm/boot/dts/at91sam9n12.dtsi | 11 ++- arch/arm/boot/dts/at91sam9x5.dtsi | 17 + arch/arm/boot/dts/sama5d3.dtsi

[PATCH v2 2/2] can: Kconfig: CAN_AT91 depends on ARM

2013-03-11 Thread ludovic.desroches
From: Ludovic Desroches SAMA5D3 devices also embed CAN feature. Moreover if we want to produce a single kernel image it is not useful to be too restrictive. Signed-off-by: Ludovic Desroches --- Changes in v2: - depends on ARM instead of ARCH_AT91 (compilation tested with exynos4_defconfig and i

[PATCH v2 1/2] can: at91_can: add dt support

2013-03-11 Thread ludovic.desroches
From: Ludovic Desroches Add device tree support. Signed-off-by: Ludovic Desroches --- Changes in v2: - code cleanup - correct typo .../devicetree/bindings/net/can/atmel-can.txt | 14 drivers/net/can/at91_can.c | 74 -- 2 files changed, 69

[PATCH 3/3] can: Kconfig: CAN_AT91 depends on ARCH_AT91

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches SAMA5D3 devices also embed CAN feature. Moreover if we want to produce a single kernel image (at least for Atmel devices) it is not useful to be too restrictive. Signed-off-by: Ludovic Desroches --- drivers/net/can/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 2/3] can: at91_can: add pinctrl support

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- drivers/net/can/at91_can.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index c7f70d4..56fb2aa 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_

[PATCH 1/3] can: at91_can: add dt support

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches Add device tree support. Signed-off-by: Ludovic Desroches --- .../devicetree/bindings/net/can/atmel-can.txt | 14 drivers/net/can/at91_can.c | 75 -- 2 files changed, 70 insertions(+), 19 deletions(-) create mode 10

[PATCH 0/3] dt and pinctrl support for at91_can

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches Hi, This set of patches add device tree and pinctrl support to the at91_can driver. Regards Ludovic Desroches (3): can: at91_can: add dt support can: at91_can: add pinctrl support can: Kconfig: CAN_AT91 depends on ARCH_AT91 .../devicetree/bindings/net/can/atmel

[PATCH v3 8/8] ARM: dts: add twi nodes for atmel boards

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Still use i2c-gpio on boards which have a SoC with a TWI IP which doesn't have clock stretching in transmission mode. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9g25ek.dts| 12 arch/arm/boot/dts/at91sam9m10g45

[PATCH v3 7/8] ARM: dts: add twi nodes for atmel SoCs

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Add TWI nodes for atmel SoCs but keep i2c-gpio ones in order to let the choice to the user in dts files. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9260.dtsi | 10 ++ arch/arm/boot/dts/at91sam9263.dtsi | 10 ++

[PATCH v3 6/8] ARM: at91: add clocks for I2C DT entries

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9260.c | 1 + arch/arm/mach-at91/at91sam9263.c | 1 + arch/arm/mach-at91/at91sam9g45.c | 2 ++ arch/arm/mach-at91/at91sam9n12.c | 2 ++ arch/arm/mach-at91/at9

[PATCH v3 5/8] i2c: at91: add dt support to i2c-at91

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 + drivers/i2c/busses/i2c-at91.c | 49 ++ 2 files changed, 79 insertions(+)

[PATCH v3 4/8] ARM: at91: do not configure at91sam9g10 twi pio as open-drain

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9261_devices.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH v3 3/8] i2c: at91: use an id table for SoC dependent parameters

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Use the id_table to store configuration structures which are depending on SoC. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91rm9200_devices.c | 11 + a

[PATCH v3 2/8] i2c: at91: add warning about transmission issues for some devices

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Some devices don't have clock streching in transmission mode. It can lead to premature stop sendings if the latency to write data in the transmission register is too long. In this case, prefer the i2c-gpio driver. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss

[PATCH v3 1/8] i2c: at91: use managed resources

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Use managed resources to ease the cleanup. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- drivers/i2c/busses/i2c-at91.c | 85 +-- 1 file changed, 25 insertions(+), 60 deletions(-) diff --gi

[PATCH v3 0/8] i2c: at91: cleanup and dt support

2012-09-11 Thread ludovic.desroches
From: Ludovic Desroches Hi, This set of patches is based on Nikolaus at91_i2c driver. Changes: v3: - only put multi-drive lines in the if...else statement (suggested by Warner Losh) v2: - change driver name from xxx_i2c to i2c-xxx - keep i2c-gpio nodes in dtsi files - don't enable TWI

[PATCH v2 8/8] ARM: dts: add twi nodes for atmel boards

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Still use i2c-gpio on boards which have a SoC with a TWI IP which doesn't have clock stretching in transmission mode. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9g25ek.dts| 12 arch/arm/boot/dts/at91sam9m10g45

[PATCH v2 7/8] ARM: dts: add twi nodes for atmel SoCs

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Add TWI nodes for atmel SoCs but keep i2c-gpio ones in order to let the choice to the user in dts files. Signed-off-by: Ludovic Desroches Acked-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9260.dtsi | 10 ++ arch/arm/boot/dts/at91sam9263.dtsi | 10 ++

[PATCH v2 6/8] ARM: at91: add clocks for I2C DT entries

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9260.c | 1 + arch/arm/mach-at91/at91sam9263.c | 1 + arch/arm/mach-at91/at91sam9g45.c | 2 ++ arch/arm/mach-at91/at91sam9n12.c | 2 ++ arch/arm/mach-at91/at9

[PATCH v2 5/8] i2c: at91: add dt support to i2c-at91

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 + drivers/i2c/busses/i2c-at91.c | 49 ++ 2 files changed, 79 insertions(+)

[PATCH v2 4/8] ARM: at91: do not configure at91sam9g10 twi pio as open-drain

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91sam9261_devices.c | 18 ++ 1 file changed, 10 insertions(+), 8

[PATCH v2 3/8] i2c: at91: use an id table for SoC dependent parameters

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Use the id_table to store configuration structures which are depending on SoC. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91rm9200_devices.c | 11 + a

[PATCH v2 2/8] i2c: at91: add warning about transmission issues for some devices

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Some devices don't have clock streching in transmission mode. It can lead to premature stop sendings if the latency to write data in the transmission register is too long. In this case, prefer the i2c-gpio driver. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss

[PATCH v2 1/8] i2c: at91: use managed resources

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Use managed resources to ease the cleanup. Signed-off-by: Ludovic Desroches Acked-by: Nikolaus Voss Acked-by: Nicolas Ferre --- drivers/i2c/busses/i2c-at91.c | 85 +-- 1 file changed, 25 insertions(+), 60 deletions(-) diff --gi

[PATCH v2 0/8] i2c: at91: cleanup and dt support

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches Hi, This set of patches is based on Nikolaus at91_i2c driver. Changes: v2: - change driver name from xxx_i2c to i2c-xxx - keep i2c-gpio nodes in dtsi files - don't enable TWI on boards whose TWI IP doesn't support clock stretching in tranmission mode Ludovic Des

[PATCH 8/8] ARM: dts: add twi nodes for atmel boards

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Use the atmel twi instead of gpio for i2c stuff. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91sam9263ek.dts | 20 ++-- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 28 ++-- arch/arm/boot/dts/at91sam9g25ek.dt

[PATCH 4/8] ARM: at91: do not configure at91sam9g10 twi pio as open-drain

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/at91sam9261_devices.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-at91/at9

[PATCH 7/8] ARM: dts: add twi nodes for atmel SOCs

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Add twi nodes for atmel SOCs and remove i2c-gpio ones. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91sam9260.dtsi | 23 ++--- arch/arm/boot/dts/at91sam9263.dtsi | 23 ++--- arch/arm/boot/dts/at91sam9g20.dtsi | 4 +++ arch/arm/boot/dts/at91s

[PATCH 4/8] ARM: at91: do not configure at91sam9g10 twi pio as open-drain

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/at91sam9261_devices.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-at91/at9

[PATCH 0/8] i2c: at91: cleanup and dt support

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Hi, This set of patches is based on Nikolaus at91_i2c driver. Ludovic Desroches (8): i2c: at91: use managed resources i2c: at91: add warning about transmission issues for some devices i2c: at91: use an id table for SoC dependent parameters ARM: at91: do not confi

[PATCH 1/8] i2c: at91: use managed resources

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Use managed resources to ease the cleanup. Signed-off-by: Ludovic Desroches --- drivers/i2c/busses/i2c-at91.c | 85 +-- 1 file changed, 25 insertions(+), 60 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/bu

[PATCH 2/8] i2c: at91: add warning about transmission issues for some devices

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Some devices don't have clock streching in transmission mode. It can lead to premature stop sendings if the latency to write data in the transmission register is too long. In this case, prefer the i2c-gpio driver. Signed-off-by: Ludovic Desroches --- drivers/i2c/busses/

[PATCH 6/8] ARM: at91: add clocks for I2C DT entries

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/at91sam9260.c | 1 + arch/arm/mach-at91/at91sam9263.c | 1 + arch/arm/mach-at91/at91sam9g45.c | 2 ++ arch/arm/mach-at91/at91sam9n12.c | 2 ++ arch/arm/mach-at91/at91sam9x5.c | 6 +++--- 5 files changed, 9 insertio

[PATCH 3/8] i2c: at91: use an id table for SoC dependent parameters

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Use the id_table to store configuration structures which are depending on SoC. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91rm9200_devices.c | 11 + arch/arm/mach-at91/at91sam9260.c | 3 +- a

[PATCH 5/8] i2c: at91: add dt support to i2c-at91

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 + drivers/i2c/busses/i2c-at91.c | 49 ++ 2 files changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bind

[PATCH 4/4] ARM: at91: add AIC5 support

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches The number of lines of AIC5 has increased from 32 to 128. Due to this increase, a source select register has been introduced for the interrupt line selection. Moreover, register mapping has been changed. For that reasons, we need some dedicated callbacks for AIC5. Power ma

[PATCH 3/4] ARM: at91: enable use of sparse irq

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches If we want to have one kernel for all atmel SOCs, nr_irqs has to be set at runtime since the number of irqs managed by AIC depends on its version. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/Kconfig |1 + arch/arm/mach-at91/at91rm9200.c

[PATCH 2/4] ARM: at91: fix irq_alloc_descs parameters for sparse irq

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches When SPARSE_IRQ is enabled, all NR_IRQS or mach_desc->nr_irqs will be allocated by arch_probe_nr_irqs(). This caused irq_alloc_descs to allocate irq_descs after the pre-allocated space. Make irq_alloc_descs search for an exact irq range in order to get an error when it has

[PATCH 1/4] ARM: at91: at91 based machines specify their own irq handler at run time

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches SOC_AT91SAM9 selects MULTI_IRQ_HANDLER in order to let machines specify their own IRQ handler at run time. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/Kconfig|1 + arch/arm/mach-at91/board-1arm.c |1 + arch/arm/mach-

[PATCH 0/4] ARM: at91: introduce AIC5 support

2012-06-05 Thread ludovic.desroches
Hi, This set of patches introduces AIC5 support with the goal to have only one kernel image for all SOCs. AIC5 can manage up to 128 irq lines and introduces a new register map and a source select register to select the IRQ line we want to configure. Regards Ludovic _

[PATCH v4 3/3] ARM: dts: add nodes for atmel hsmci controllers for atmel platforms

2012-05-23 Thread ludovic.desroches
From: Ludovic Desroches Add nodes for mci controllers. Signed-off-by: Ludovic Desroches --- v4: add new chips and boards arch/arm/boot/dts/at91sam9260.dtsi |9 + arch/arm/boot/dts/at91sam9263.dtsi | 18 ++ arch/arm/boot/dts/at91sam9263ek.dts

[PATCH v4 2/3] ARM: at91: add clocks for DT entries

2012-05-23 Thread ludovic.desroches
From: Ludovic Desroches Add clocks to clock lookup table for DT entries. Signed-off-by: Ludovic Desroches --- v4: add new chips arch/arm/mach-at91/at91sam9260.c |1 + arch/arm/mach-at91/at91sam9263.c |2 ++ arch/arm/mach-at91/at91sam9g45.c |2 ++ arch/arm/mach-at91/at91sam9n12.c |

[PATCH v4 1/3] mmc: atmel-mci: add device tree support

2012-05-23 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- .../devicetree/bindings/mmc/atmel-hsmci.txt| 67 +++ drivers/mmc/host/atmel-mci.c | 87 +++- 2 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 Document

[PATCH v3 3/3] ARM: dts: add nodes for atmel hsmci controllers for atmel platforms

2012-05-22 Thread ludovic.desroches
From: Ludovic Desroches Add nodes for mci controllers. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91sam9g20.dtsi | 12 arch/arm/boot/dts/at91sam9g25ek.dts| 16 arch/arm/boot/dts/at91sam9g45.dtsi | 24 arch/a

[PATCH v3 0/3] atmel-mci device tree support

2012-05-22 Thread ludovic.desroches
Hi, This patch-set adds device tree support for atmel-mci. Regards Ludovic v3: - use cd-inverted instead of cd-invert to follow mmc common binding. - don't assign a pointer to pdev->dev.platform. - add mci controller nodes to other chips and boards. - put all dts file changes together. v2: - s

[PATCH v3 1/3] mmc: atmel-mci: add device tree support

2012-05-22 Thread ludovic.desroches
From: Ludovic Desroches Signed-off-by: Ludovic Desroches --- .../devicetree/bindings/mmc/atmel-hsmci.txt| 67 +++ drivers/mmc/host/atmel-mci.c | 89 +++- 2 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 Document

[PATCH v3 2/3] ARM: at91: add clocks for DT entries

2012-05-22 Thread ludovic.desroches
From: Ludovic Desroches Add clocks to clock lookup table for DT entries. Signed-off-by: Ludovic Desroches --- arch/arm/mach-at91/at91sam9260.c |1 + arch/arm/mach-at91/at91sam9g45.c |2 ++ arch/arm/mach-at91/at91sam9x5.c |2 ++ 3 files changed, 5 insertions(+), 0 deletions(-) dif