[PATCH v2 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2016-01-06 Thread Ludovic Desroches
This driver supports the new version of the Atmel ADC device introduced with the SAMA5D2 SoC family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- .../devicetree/bindings/iio/adc/at91_adc8xx.txt| 28 ++ drivers/iio/adc/Kconfig| 11 + d

[PATCH v2 3/5] ARM: at91/dt: sama5d2: add adc device

2016-01-06 Thread Ludovic Desroches
Add the ADC device, and remove the adc_op_clk which is useless since the adc sampling frequency is configured with sysfs. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 18 -- 1 file changed, 12 insertions(+), 6 del

[PATCH v2 4/5] ARM: at91/dt: sama5d2 Xplained: enable the adc device

2016-01-06 Thread Ludovic Desroches
Enable the adc on the sama5d2 Xplained board. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/ar

[PATCH v2 5/5] ARM: at91/defconfig: add sama5d2 adc support in sama5_defconfig

2016-01-06 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index c11bab7..37aa085 100644 --- a/arch/arm/configs/sama5_defconfig

[PATCH v2 2/5] MAINTAINERS: add entry for Atmel ADC 8xx driver

2016-01-06 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 248828d..827bc83 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1945,6 +1945,12 @@ M: Nicolas Ferre <n

[PATCH v2 0/5] Introduce at91_adc8xx driver

2016-01-06 Thread Ludovic Desroches
. Ludovic Desroches (5): iio:adc:at91_adc8xx: introduce new atmel adc driver MAINTAINERS: add entry for Atmel ADC 8xx driver ARM: at91/dt: sama5d2: add adc device ARM: at91/dt: sama5d2 Xplained: enable the adc device ARM: at91/defconfig: add sama5d2 adc support in sama5_defconfig

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2016-01-05 Thread Ludovic Desroches
On Wed, Dec 23, 2015 at 05:21:25PM +, Jonathan Cameron wrote: > > > On 23 December 2015 10:48:33 GMT+00:00, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > >On Wed, Dec 23, 2015 at 11:27:00AM +0100, Ludovic Desroches wrote: > >> On Tue, Dec 22, 2

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2015-12-23 Thread Ludovic Desroches
On Tue, Dec 22, 2015 at 06:34:00PM +, Jonathan Cameron wrote: > On 21/12/15 09:24, Ludovic Desroches wrote: > > This driver supports the new version of the Atmel ADC device introduced > > with the SAMA5D2 SoC family. > > > > Signed-off-by: Ludovic Desroches &

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2015-12-23 Thread Ludovic Desroches
On Tue, Dec 22, 2015 at 06:51:18PM -0600, Rob Herring wrote: > On Mon, Dec 21, 2015 at 10:24:08AM +0100, Ludovic Desroches wrote: > > This driver supports the new version of the Atmel ADC device introduced > > with the SAMA5D2 SoC family. > > > > Signed-off-by: Ludovi

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2015-12-23 Thread Ludovic Desroches
On Wed, Dec 23, 2015 at 11:27:00AM +0100, Ludovic Desroches wrote: > On Tue, Dec 22, 2015 at 06:34:00PM +, Jonathan Cameron wrote: > > On 21/12/15 09:24, Ludovic Desroches wrote: > > > This driver supports the new version of the Atmel ADC device introduced > > >

[PATCH 5/5] ARM: at91/defconfig: add sama5d2 adc support in sama5_defconfig

2015-12-21 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/sama5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index c11bab7..afbda41 100644 --- a/arch/arm/configs/sama5_defconfig

[PATCH 4/5] ARM: at91/dt: sama5d2 Xplained: enable the adc device

2015-12-21 Thread Ludovic Desroches
Enable the adc on the sama5d2 Xplained board. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/ar

[PATCH 0/5] Introduce at91_adc8xx driver

2015-12-21 Thread Ludovic Desroches
, differential channels, hardware triggers, dma support, touchscreen support, and others. Ludovic Desroches (5): iio:adc:at91_adc8xx: introduce new atmel adc driver MAINTAINERS: add entry for Atmel ADC 8xx driver ARM: at91/dt: sama5d2: add adc device ARM: at91/dt: sama5d2 Xplained: enable

[PATCH 3/5] ARM: at91/dt: sama5d2: add adc device

2015-12-21 Thread Ludovic Desroches
Add the ADC device. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 545264b..91c6e42

[PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

2015-12-21 Thread Ludovic Desroches
This driver supports the new version of the Atmel ADC device introduced with the SAMA5D2 SoC family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- .../devicetree/bindings/iio/adc/at91_adc8xx.txt| 27 ++ drivers/iio/adc/Kconfig| 11 + d

[PATCH 2/5] MAINTAINERS: add entry for Atmel ADC 8xx driver

2015-12-21 Thread Ludovic Desroches
Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a27c660..5971c25 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1927,6 +1927,12 @@ M: Nicolas Ferre <n

[PATCH v2 3/4] ARM: at91/dt: sama5d4: update i2c compatible string

2015-12-03 Thread Ludovic Desroches
A new compatible string has been introduced: atmel,sama5d4-i2c. It allows to use the i2c-sda-hold-time-ns property if needed. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d4.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v2 2/4] i2c: at91: update bindings documention

2015-12-03 Thread Ludovic Desroches
The i2c-sda-hold-time-ns property is supported from atmel,sama5d4-i2c. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/i2c/i2c-at91.txt | 5 - 1 file changed, 4 insertions(+), 1 delet

[PATCH v2 4/4] ARM: at91/dt: sama5d2 Xplained: pmic needs a specific sda hold time

2015-12-03 Thread Ludovic Desroches
Data have to be held longer for the PMIC device. The ACT8945A datasheet claims that minimum SDA data hold time is about 300 ns. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2 1/4] i2c: at91: add upport for the HOLD field

2015-12-03 Thread Ludovic Desroches
Sorry forget this one, I have sent an old version. On Thu, Dec 03, 2015 at 10:53:51AM +0100, Ludovic Desroches wrote: > The hold field allows to configure the data hold time which can be set > with the help of the generic binding 'i2c-sda-hold-time-ns'. This > feature has been i

[PATCH v2 1/4] i2c: at91: add upport for the HOLD field

2015-12-03 Thread Ludovic Desroches
The hold field allows to configure the data hold time which can be set with the help of the generic binding 'i2c-sda-hold-time-ns'. This feature has been introduced with SAMA5D4 SoC family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/i2c/busses/i2c-at91.

[PATCH v2 0/4] i2c: at91: add support for SDA HOLD

2015-12-03 Thread Ludovic Desroches
Changes: - from v1: - fix typos, - change MAX_HOLD macro to follow Nicolas' advice, - make it clear that sama5d2 also support i2c-sda-hold-time-ns. Ludovic Desroches (4): i2c: at91: add support for the HOLD field i2c: at91: update bindings documention ARM: at91/dt: sama5d4: update i2c

[PATCH v2 1/4] i2c: at91: add support for the HOLD field

2015-12-03 Thread Ludovic Desroches
The hold field allows to configure the data hold time which can be set with the help of the generic binding 'i2c-sda-hold-time-ns'. This feature has been introduced with SAMA5D4 SoC family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/i2c/busses/i2c-at91.

[PATCH 1/4] i2c: at91: add upport for the HOLD field

2015-12-02 Thread Ludovic Desroches
The hold field allows to configure the data hold time which can be set with the help of the generic binding 'i2c-sda-hold-time-ns'. This feature has been introduced with SAMA5D4 SoC family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/i2c/busses/i2c-at91.

[PATCH 2/4] i2c: at91: update bindings documention

2015-12-02 Thread Ludovic Desroches
The i2c-sda-hold-time-ns property is supported from atmel,sama5d4-i2c. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- Documentation/devicetree/bindings/i2c/i2c-at91.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bi

[PATCH 3/4] ARM: at91/dt: sama5d4: update i2c compatible string

2015-12-02 Thread Ludovic Desroches
A new compatible string has been introduced: atmel,sama5d4-i2c. It allows to use the i2c-sda-hold-time-ns property if needed. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d4.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 4/4] ARM: at91/dt: sama5d2 Xplained: pmic needs a specific sda hold time

2015-12-02 Thread Ludovic Desroches
Data have to been hold longer for the PMIC device. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dt

Re: [PATCH 1/3] i2c: at91: add setting HOLD field of TWIHS_CWGR via DT

2015-11-30 Thread Ludovic Desroches
On Mon, Nov 30, 2015 at 04:13:20PM +0100, Wolfram Sang wrote: > On Tue, Nov 24, 2015 at 02:47:40PM +0100, Ludovic Desroches wrote: > > From: Wenyou Yang <wenyou.y...@atmel.com> > > > > Add the HOLD field management. Some i2c devices need a longer data hold > > t

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-24 Thread Ludovic Desroches
Hi Ulf, On Mon, Nov 09, 2015 at 05:30:26PM +0100, Ludovic Desroches wrote: > On Mon, Nov 09, 2015 at 05:00:46PM +0100, Ulf Hansson wrote: [...] > > Now, this discussion was interesting, but I forgot what problem you > > actually where trying to solve? :-) > > There is th

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-24 Thread Ludovic Desroches
On Tue, Nov 24, 2015 at 02:56:21PM +0100, Ulf Hansson wrote: > On 24 November 2015 at 14:12, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > > On Tue, Nov 24, 2015 at 12:01:53PM +0100, Ulf Hansson wrote: > >> On 24 November 2015 at 10:23, Ludovic Des

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-24 Thread Ludovic Desroches
On Tue, Nov 24, 2015 at 12:01:53PM +0100, Ulf Hansson wrote: > On 24 November 2015 at 10:23, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > > Hi Ulf, > > > > On Mon, Nov 09, 2015 at 05:30:26PM +0100, Ludovic Desroches wrote: > >> On Mon, Nov 09

[PATCH 2/3] i2c: at91: add DT property "atmel,twd-hold-cycles" to binding

2015-11-24 Thread Ludovic Desroches
From: Wenyou Yang <wenyou.y...@atmel.com> Add a DT property "atmel,twd-hold-cycles" to specify the HOLD filed of TWIHS_CWGR register to increase the TWD hold time. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atme

[PATCH 3/3] ARM: dts: at91: specify DT property "atmel,twd-hold-cycles"

2015-11-24 Thread Ludovic Desroches
From: Wenyou Yang Specify the device tree property "atmel,twd-hold-cycles" to 25 to adapt to the PMIC ACT8945A. Signed-off-by: Wenyou Yang --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/3] i2c: at91: add setting HOLD field of TWIHS_CWGR via DT

2015-11-24 Thread Ludovic Desroches
hold-cycles". Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/i2c/busses/i2c-at91.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers

Re: [PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

2015-11-17 Thread Ludovic Desroches
M, Linus Walleij > >> <linus.wall...@linaro.org> wrote: > >>> On Wed, Sep 16, 2015 at 8:37 AM, Ludovic Desroches > >>> <ludovic.desroc...@atmel.com> wrote: > >>> > >>>> Add pio4 controller node to enable pinmux and gpi

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-09 Thread Ludovic Desroches
On Fri, Nov 06, 2015 at 04:59:29PM +0100, Ludovic Desroches wrote: > When there is a vmmc regulator, only SD Bus Power is set to 1 in the > Power Control Register. It means SD Bus Voltage Select field is set to 0 > that is a reserved value. The SD Host Controller specification says:

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-09 Thread Ludovic Desroches
On Mon, Nov 09, 2015 at 03:12:46PM +0100, Ulf Hansson wrote: > On 9 November 2015 at 14:23, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > > On Fri, Nov 06, 2015 at 04:59:29PM +0100, Ludovic Desroches wrote: > >> When there is a vmmc regulator, on

Re: [PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-09 Thread Ludovic Desroches
On Mon, Nov 09, 2015 at 11:50:50AM +0100, Ulf Hansson wrote: > [...] > > >> > >> This doesn't seems like a case where a gpio regulator should be used > >> and I am not sure what problem it would solve. Beside to suppress the > >> log warnings (actually those aren't warnings but informations). >

Re: [PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-09 Thread Ludovic Desroches
On Mon, Nov 09, 2015 at 05:00:46PM +0100, Ulf Hansson wrote: > On 9 November 2015 at 15:40, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > > On Mon, Nov 09, 2015 at 03:12:46PM +0100, Ulf Hansson wrote: > >> On 9 November 2015 at 14:23, Ludovic Des

Re: [PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-09 Thread Ludovic Desroches
On Mon, Nov 09, 2015 at 10:38:03AM +0100, Ulf Hansson wrote: > [...] > > >> > Is the regulator-gpio usage the right thing to do for vqmmc? In my case > >> > it is > >> > not really driven by a gpio but by a pio from the sdhci device. In the > >> > binding, > >> > >> What's a "pio"? > >> > >>

Re: [PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-08 Thread Ludovic Desroches
Hi Ulf, Thanks for your answer. On Fri, Nov 06, 2015 at 05:42:51PM +0100, Ulf Hansson wrote: > On 6 November 2015 at 16:59, Ludovic Desroches > <ludovic.desroc...@atmel.com> wrote: > > Hi, > > > > I would like to have some feedback for these two patches. I have

[PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-06 Thread Ludovic Desroches
llows the specification then we need to set a valid value. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/mmc/host/sdhci.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ac97b46..0cfd7b2 100644 --

[PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-06 Thread Ludovic Desroches
ase it is not really driven by a gpio but by a pio from the sdhci device. In the binding, declaring the gpio is an option so I thought using this regulator fits my need. P.S. patch 2 is based on another patch not yet in next: http://www.spinics.net/lists/arm-kernel/msg453447.html Thanks Ludovic Ludo

[PATCH 2/2] ARM: at91/dt: sama5d2 Xplained: add regulators for sdhci devices

2015-11-06 Thread Ludovic Desroches
Add vmmc and vqmmc regulators for sdhci devices. The voltage for sdmmc0 vqmmc is selected by a signal from coming from the sdhci device. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 14 ++ 1 file chang

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-16 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 05:42:53PM +0200, Nicolas Ferre wrote: > Le 15/10/2015 17:31, Ludovic Desroches a écrit : > > On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: > >> Hi, > >> > >> On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrot

[PATCH v2 0/8] Enable several devices for Atmel SAMA5D2

2015-10-16 Thread Ludovic Desroches
Hi, This set of patches enables several devices for the freshly introduced SAMA5D2 SoC. dts and defconfig files are updated to enable SAMA5D2 and its new devices such as Flexcom and AT91 SDHCI. Changes: - v2: - update whole Atmel defconfigs - update multi_v7_defconfig Ludovic Desroches (8

[PATCH v2 5/8] ARM: at91/defconfig: add sama5d2 and its new devices to sama5 defconfig

2015-10-16 Thread Ludovic Desroches
Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/sama5_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig

[PATCH v2 1/8] ARM: at91/dt: sama5d2: add missing devices

2015-10-16 Thread Ludovic Desroches
Big update of the sama5d2.dtsi file since many patches have reached te mainline: - add generated clocks - enable crypto devices - add flexcom devices - add tdes device - add sdmmc devices Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Signed-off-by: Nicolas Ferre <n

[PATCH v2 7/8] ARM: multi_v7_defconfig: Add Atmel Flexcom device

2015-10-16 Thread Ludovic Desroches
The Flexcom device has been introduced with Atmel SAMA5D2 SoC. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_def

[PATCH v2 8/8] ARM: multi_v7_defconfig: Add Atmel SDHCI device

2015-10-16 Thread Ludovic Desroches
The AT91 SDHCI device has been introduced with Atmel SAMA5D2 SoC. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_def

[PATCH v2 2/8] ARM: at91/dt: sama5d2 Xplained: add several devices

2015-10-16 Thread Ludovic Desroches
Add sdmmc and flexcom devices Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 106 1 file changed, 106 insertions(+) diff --gi

[PATCH v2 4/8] ARM: at91/defconfig: update at91_dt defconfig

2015-10-16 Thread Ludovic Desroches
Trivial savedefconfig update. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/at91_dt_defconfig | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 090c5b2..1

[PATCH v2 3/8] ARM: at91/defconfig: update sama5 defconfig

2015-10-16 Thread Ludovic Desroches
Trivial savedefconfig update. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/sama5_defconfig | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/configs/sama5_defconfig index 3

[PATCH v2 6/8] ARM: multi_v7_defconfig: Add Atmel SAMA5D2 SoC

2015-10-16 Thread Ludovic Desroches
Add Atmel SAMA5D2 SoC family to multi_v7 image. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index b

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: > Hi, > > On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrote : > > Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. > > > > Signed-off-by: Ludovic Desroches <ludovic.desroc...@at

[PATCH 1/3] ARM: at91/dt: sama5d2: add missing devices

2015-10-14 Thread Ludovic Desroches
Big update of the sama5d2.dtsi file since many patches have reached te mainline: - add generated clocks - enable crypto devices - add flexcom devices - add tdes device - add sdmmc devices Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Signed-off-by: Nicolas Ferre <n

[PATCH 2/3] ARM: at91/dt: sama5d2 Xplained: add several devices

2015-10-14 Thread Ludovic Desroches
Add sdmmc and flexcom devices Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Signed-off-by: Cyrille Pitchen <cyrille.pitc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 106 1 file changed, 106 insertions(+) diff --gi

[PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-14 Thread Ludovic Desroches
Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/configs/sama5_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/sama5_defconfig b/arch/arm/c

[PATCH 1/2] i2c: at91: add DT property for the HOLD field of TWIHS_CWGR

2015-09-30 Thread Ludovic Desroches
eld. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/i2c/busses/i2c-at91.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/bus

[PATCH 2/2] i2c: at91: update documentation for new "atmel,twd-hold-cycles" property

2015-09-30 Thread Ludovic Desroches
From: Wenyou Yang <wenyou.y...@atmel.com> Add a DT property "atmel,twd-hold-cycles" to specify the HOLD field of TWIHS_CWGR register to increase the TWD hold time. Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Signed-off-by: Ludovic Desroches <ludovic.desroc...@atme

Re: [PATCH v2 1/2] regulator: act8865: support output voltage by VSET2[] bits

2015-09-30 Thread Ludovic Desroches
> output voltage is programmed by VSET2[] bits. > > The DT property "active-semi,vsel-high" is used to specify > the VSEL pin at high on the board. > > Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Minor comment below, it's only my point of view. Anyway, Rev

Re: [PATCH v2 2/2] regulator: act8865: add DT binding for property "active-semi, vsel-high"

2015-09-30 Thread Ludovic Desroches
On Wed, Sep 30, 2015 at 03:25:50PM +0800, Wenyou Yang wrote: > Add a DT property "active-semi,vsel-high" to indicate the VSEL pin > is high. If this property is missing, then assume the VSEL pin is > low(0). > > Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com>

[PATCH v2 6/7] ARM: at91/dt: add sama5d2 pinmux

2015-09-16 Thread Ludovic Desroches
Add sama5d2 pin descriptions. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2-pinfunc.h | 880 1 file changed, 880 insertions(+) create mode 100644 arch/arm/boot/dts/sama5d2-pinfunc.h diff --git a/arch/ar

[PATCH v2 5/7] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-09-16 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/ar

[PATCH v2 0/7] New Atmel PIO4 pinctrl/gpio driver

2015-09-16 Thread Ludovic Desroches
, gpio_disable_free and gpio_set_direction). - code styling fixes. - add sama5d2 pin description and device pin muxing. Ludovic Desroches (7): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4 MAINTAINERS: Add an entry for pinctrl-at91-pio4

[PATCH v2 3/7] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-09-16 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 169ad39..ec41bfe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH v2 1/7] pinctrl: introduce driver for Atmel PIO4 controller

2015-09-16 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c

[PATCH v2 2/7] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-09-16 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> Acked-by: Sascha Hauer <s.ha...@pengutronix.de> --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1

[PATCH v2 4/7] ARM: at91/dt: sama5d2: add pio controller node

2015-09-16 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 0

[PATCH v2 7/7] ARM: at91/dt: sama5d2 Xplained: add device pin muxing

2015-09-16 Thread Ludovic Desroches
Add device pin muxing for the sama5d2 Xplained board. Signed-off-by: Ludovic Desroches <ludovic.desroc...@atmel.com> --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-15 Thread Ludovic Desroches
Hi Sascha, On Tue, Sep 15, 2015 at 10:57:03AM +0200, Sascha Hauer wrote: > Hi Ludovic, > > On Mon, Sep 07, 2015 at 03:12:10PM +0200, Ludovic Desroches wrote: > > Hi Sascha, > > > > Any comments about this version? Maybe you missed it since you answered > > me o

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-07 Thread Ludovic Desroches
+0200, Ludovic Desroches wrote: > Hi, > > The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This > drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek > pinctrl driver. > > Ludovic Desroches (5): > pinctrl: introduce driver f

Re: [PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-08-18 Thread Ludovic Desroches
Hi, On Wed, Jul 29, 2015 at 04:22:45PM +0200, Ludovic Desroches wrote: Hi, This set of patches introduce a driver for the new Atmel SDMMC device avaible on SAMA5D2 SoC. There is also a resend of an old patch which has not been taken. Ulf asked for some reviews since it could impact all

[PATCH 1/5] pinctrl: introduce driver for Atmel PIO4 controller

2015-08-11 Thread Ludovic Desroches
Add a pinctrl/gpio driver for Atmel PIO4 controller available on SAMA5D2 chip family. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile|1 + drivers/pinctrl/pinctrl-at91-pio4.c | 1063

[PATCH 4/5] ARM: at91/dt: sama5d2: add pio controller node

2015-08-11 Thread Ludovic Desroches
Add pio4 controller node to enable pinmux and gpio. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/sama5d2.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index f39258f

[PATCH 3/5] MAINTAINERS: Add an entry for pinctrl-at91-pio4

2015-08-11 Thread Ludovic Desroches
Add an entry for the Atmel PIO4 controller driver. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8b37fdf..62c243a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8041,6

[PATCH 5/5] ARM: at91/defconfig: sama5: add PIO4 controller support

2015-08-11 Thread Ludovic Desroches
SAMA5D2 chip family has a new PIO controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 89a755b..9e4067c 100644 --- a/arch/arm/mach

[PATCH 2/5] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-08-11 Thread Ludovic Desroches
Add documentation for the Atmel PIO4 controller introduced with SAMA5D2 chip family. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 90 ++ 1 file changed, 90 insertions(+) create mode 100644

[PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-08-11 Thread Ludovic Desroches
Hi, The Atmel PIO4 controller has been introduced with SAMA5D2 chip family. This drivers manages both pinmux/pinconf and gpio stuff. It is inspired by Mediatek pinctrl driver. Ludovic Desroches (5): pinctrl: introduce driver for Atmel PIO4 controller pinctrl: dt-binding: Add DT binding

[PATCH v2 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
Introduce driver for he Atmel SDMMC available on sama5d2. It is a sdhci compliant controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../devicetree/bindings/mmc/sdhci-atmel.txt| 21 +++ drivers/mmc/host/Kconfig | 8 + drivers/mmc

[PATCH v2 3/3] MAINTAINERS: add entry for Atmel sdhci-of-at91 driver

2015-07-29 Thread Ludovic Desroches
Add an entry for Atmel SDMMC device. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e7bdbac..6480ce9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1880,6 +1880,12 @@ L

[PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-07-29 Thread Ludovic Desroches
. It only fixes a special use case. If there are objections about it, drop it, I don't want to delay the Atmel SDMMC driver inclusion only for this patch. Changes: - from v1: - update license Ludovic Desroches (3): mmc: sdhci: switch from programmable clock mode to divided one if needed mmc

[PATCH v2 1/3] mmc: sdhci: switch from programmable clock mode to divided one if needed

2015-07-29 Thread Ludovic Desroches
In programmable mode, if the clock frequency is too high, the divider can be too small to meet the clock frequency requirement especially to init the SD card. In this case, switch to the divided clock mode. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/sdhci.c

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-07-27 Thread Ludovic Desroches
On Mon, Jul 27, 2015 at 11:43:52AM +0200, Linus Walleij wrote: On Wed, Jul 15, 2015 at 9:46 AM, Ludovic Desroches ludovic.desroc...@atmel.com wrote: On Tue, Jul 14, 2015 at 07:57:49AM +0200, Sascha Hauer wrote: Note that in the recently introduced Mediatek pinctrl driver we used 'pinmux

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-07-15 Thread Ludovic Desroches
On Tue, Jul 14, 2015 at 07:57:49AM +0200, Sascha Hauer wrote: On Thu, Jun 18, 2015 at 02:33:48PM +0200, Ludovic Desroches wrote: On Wed, Jun 17, 2015 at 09:55:56AM -0600, Stephen Warren wrote: On 06/17/2015 06:38 AM, Ludovic Desroches wrote: Hi Stephen, On Mon, Jun 15, 2015 at 09

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-07-15 Thread Ludovic Desroches
On Wed, Jul 15, 2015 at 09:46:42AM +0200, Ludovic Desroches wrote: This driver fits most of my needs but I didn't do it in this way for the two previous reasons. If it is not an issue to add a new dt_node_to_map() implementation which should be quite close to the mediatek one, let's do

Re: [RESEND PATCH 2/2] pinctrl: introduce complex pin description

2015-07-15 Thread Ludovic Desroches
On Tue, Jul 14, 2015 at 08:13:59AM +0200, Sascha Hauer wrote: On Wed, Jun 10, 2015 at 05:04:57PM +0200, Ludovic Desroches wrote: Using a string to describe a pin in the device tree can be not enough. Some controllers may need extra information to fully describe a pin. It concerns mainly

Re: [RESEND PATCH 2/2] pinctrl: introduce complex pin description

2015-07-15 Thread Ludovic Desroches
On Wed, Jul 15, 2015 at 12:05:25PM +0200, Sascha Hauer wrote: On Wed, Jul 15, 2015 at 10:45:42AM +0200, Ludovic Desroches wrote: On Tue, Jul 14, 2015 at 08:13:59AM +0200, Sascha Hauer wrote: On Wed, Jun 10, 2015 at 05:04:57PM +0200, Ludovic Desroches wrote: Using a string to describe

Re: [PATCH 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-06 Thread Ludovic Desroches
On Sat, Jul 04, 2015 at 10:06:49PM +0200, Arnd Bergmann wrote: On Friday 03 July 2015 16:17:16 Ludovic Desroches wrote: Introduce driver for he Atmel SDMMC available on sama5d2. It is a sdhci compliant controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com

Re: [PATCH 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-06 Thread Ludovic Desroches
On Sat, Jul 04, 2015 at 10:30:28AM +0200, Paul Bolle wrote: A nit only: a license mismatch. Thanks Paul, I'll correct it. On vr, 2015-07-03 at 16:17 +0200, Ludovic Desroches wrote: --- /dev/null +++ b/drivers/mmc/host/sdhci-of-at91.c + * This program is free software; you can

[PATCH 3/3] MAINTAINERS: add entry for Atmel sdhci-of-at91 driver

2015-07-03 Thread Ludovic Desroches
Add an entry for Atmel SDMMC device. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e7bdbac..6480ce9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1880,6 +1880,12 @@ L

[PATCH 1/3] mmc: sdhci: switch from programmable clock mode to divided one if needed

2015-07-03 Thread Ludovic Desroches
In programmable mode, if the clock frequency is too high, the divider can be too small to meet the clock frequency requirement especially to init the SD card. In this case, switch to the divided clock mode. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/sdhci.c

[PATCH 2/3] mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC

2015-07-03 Thread Ludovic Desroches
Introduce driver for he Atmel SDMMC available on sama5d2. It is a sdhci compliant controller. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- .../devicetree/bindings/mmc/sdhci-atmel.txt| 21 +++ drivers/mmc/host/Kconfig | 8 + drivers/mmc

[PATCH 0/3] introduce driver for the Atmel SDMMC

2015-07-03 Thread Ludovic Desroches
Hi, This set of patches introduce a driver for the new Atmel SDMMC device avaible on SAMA5D2 SoC. There is also a resend of an old patch which has not been taken. Ulf asked for some reviews since it could impact all sdhci devices but nobody did it... Regards Ludovic Desroches (3): mmc

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-06-18 Thread Ludovic Desroches
On Wed, Jun 17, 2015 at 09:55:56AM -0600, Stephen Warren wrote: On 06/17/2015 06:38 AM, Ludovic Desroches wrote: Hi Stephen, On Mon, Jun 15, 2015 at 09:58:05AM -0600, Stephen Warren wrote: On 06/10/2015 09:04 AM, Ludovic Desroches wrote: When having a controller which allows per pin muxing

Re: [RESEND PATCH 2/2] pinctrl: introduce complex pin description

2015-06-17 Thread Ludovic Desroches
On Mon, Jun 15, 2015 at 10:01:29AM -0600, Stephen Warren wrote: On 06/10/2015 09:04 AM, Ludovic Desroches wrote: Using a string to describe a pin in the device tree can be not enough. Some controllers may need extra information to fully describe a pin. It concerns mainly controllers which have

Re: [RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-06-17 Thread Ludovic Desroches
Hi Stephen, On Mon, Jun 15, 2015 at 09:58:05AM -0600, Stephen Warren wrote: On 06/10/2015 09:04 AM, Ludovic Desroches wrote: When having a controller which allows per pin muxing, declaring with which groups a function can be used is a useless constraint since groups are something virtual

Re: [PATCH v6 5/6] i2c: at91: print hardware version

2015-06-10 Thread Ludovic Desroches
On Tue, Jun 09, 2015 at 10:46:20PM +0300, Sergei Shtylyov wrote: Hello. On 06/09/2015 07:22 PM, Cyrille Pitchen wrote: The probe() function now prints the hardware version of the I2C controller. Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com ---

[RESEND PATCH 1/2] pinctrl: change function behavior for per pin muxing controllers

2015-06-10 Thread Ludovic Desroches
When having a controller which allows per pin muxing, declaring with which groups a function can be used is a useless constraint since groups are something virtual. Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/pinctrl/pinmux.c | 58

[RESEND PATCH 0/2] get pinctrl more flexible for per pin muxing controllers

2015-06-10 Thread Ludovic Desroches
of a pin controller and device tree to show the way I want to use these changes. I couldn't test it on boards using generic pinconf so I am not sure that I don't break something... Ludovic Desroches (4): pinctrl: change function behavior for per pin muxing controllers pinctrl: introduce complex

  1   2   3   >