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

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/at91sam9g45.dtsi | 5 +++-- arch/arm/boot/dts/at91sam9n12.dtsi | 11 ++-

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

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2013-05-30 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

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

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

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- 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 ---

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

2013-03-08 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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 ludovic.desroc...@atmel.com ---

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Use managed resources to ease the cleanup. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/i2c/busses/i2c-at91.c | 85

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Use the id_table to store configuration structures which are depending on SoC. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 +

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/at91sam9260.c | 1 + arch/arm/mach-at91/at91sam9263.c | 1 +

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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 ludovic.desroc...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-12 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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 ludovic.desroc...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Use managed resources to ease the cleanup. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/i2c/busses/i2c-at91.c | 85

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Use the id_table to store configuration structures which are depending on SoC. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 +

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

2012-09-03 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nikolaus Voss n.v...@weinmann.de Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/at91sam9260.c | 1 + arch/arm/mach-at91/at91sam9263.c | 1 +

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../devicetree/bindings/i2c/atmel-i2c.txt | 30 + drivers/i2c/busses/i2c-at91.c | 49 ++ 2 files changed, 79

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

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

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- 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 ++

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

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

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/mach-at91/at91sam9261_devices.c | 18 ++ 1 file changed, 10

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

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

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

2012-08-31 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/mach-at91/at91sam9261_devices.c | 18 ++ 1 file changed, 10

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

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

[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 1/4] ARM: at91: at91 based machines specify their own irq handler at run time

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

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

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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 ludovic.desroc...@atmel.com --- arch/arm/mach-at91/Kconfig

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

2012-06-05 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com 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

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

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

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

2012-05-22 Thread ludovic.desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../devicetree/bindings/mmc/atmel-hsmci.txt| 67 +++ drivers/mmc/host/atmel-mci.c | 89 +++- 2 files changed, 154

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

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

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