Re: [PATCH 2/4] pwm: atmel-tcb: Add .owner to struct pwm_ops

2013-04-02 Thread Boris BREZILLON
On 31/03/2013 05:15, Axel Lin wrote: Add missing .owner of struct pwm_ops. This prevents the module from being removed from underneath its users. Signed-off-by: Axel Lin Acked-by: Boris BREZILLON --- drivers/pwm/pwm-atmel-tcb.c |1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH] ARM: at91/tc: fix clock source id for tc block > 1

2013-04-02 Thread Boris BREZILLON
This patch fixes wrong clock request for TC block 2. The second block was using t0_clk, t1_clk and t2_clk clks instead of t3_clk, t4_clk and t5_clk clks. Signed-off-by: Boris BREZILLON --- drivers/misc/atmel_tclib.c | 24 1 file changed, 16 insertions(+), 8 deletions

[PATCH RESEND] pwm: pwm-atmel-tcb: pinctrl support

2013-04-02 Thread Boris BREZILLON
Setup tcb pins using pinctrl subsystem. Signed-off-by: Boris BREZILLON --- drivers/pwm/pwm-atmel-tcb.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c index 16cb530..985b7bf 100644 --- a/drivers/pwm/pwm-atmel-tcb.c +++ b

Re: [PATCH] ARM: at91/tc: fix clock source id for tc block > 1

2013-04-03 Thread Boris BREZILLON
On 03/04/2013 09:26, Nicolas Ferre wrote: On 04/03/2013 06:45 AM, Jean-Christophe PLAGNIOL-VILLARD : On 18:46 Tue 02 Apr , Boris BREZILLON wrote: This patch fixes wrong clock request for TC block 2. The second block was using t0_clk, t1_clk and t2_clk clks instead of t3_clk, t4_clk and

[RFC PATCH 0/3] pinctrl: at91: add support for generic pinconf

2013-08-24 Thread Boris BREZILLON
think ? The third patch migrate sama5 dt boards to the new generic config syntax. Please feel free to share your thoughts. Best Regards, Boris Boris BREZILLON (3): pinctrl: add new generic pinconf config for deglitch filter pinctrl: at91: add support for generic pinconf ARM: at91/dt: move sam

[RFC PATCH 1/3] pinctrl: add new generic pinconf config for deglitch filter

2013-08-24 Thread Boris BREZILLON
Add a new parameter to support deglitch filter configuration. A deglitch filter works like a debounce filter but with a smaller delay (nanoseconds). Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/pinctrl-bindings.txt |1 + drivers/pinctrl/pinconf-generic.c

[RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-24 Thread Boris BREZILLON
Add support for generic pin configuration to pinctrl-at91 driver. Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/atmel,at91-pinctrl.txt| 43 +++- drivers/pinctrl/Kconfig|2 +- drivers/pinctrl/pinctrl-at91.c | 265

[RFC PATCH 3/3] ARM: at91/dt: move sama5 to generic pinconf

2013-08-24 Thread Boris BREZILLON
Add generic pinconf definitions and reference appropriate configs in atmel,pins properties. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3.dtsi| 363 +++-- arch/arm/boot/dts/sama5d3xdm.dtsi |2 +- arch/arm/boot/dts/sama5d3xmb.dtsi | 12

Re: [RFC PATCH 0/3] pinctrl: at91: add support for generic pinconf

2013-08-24 Thread boris brezillon
On 24/08/2013 23:32, Boris BREZILLON wrote: Hello, This patch series is an attempt to add support for generic pin config syntax to at91 pinctrl driver. My primary goal is to add support for output configuration from dt definition. This is needed to fully move at91rm9200ek board to dt (other

Re: [PATCH v4 2/5] mmc: atmel-mci: prepare clk before calling enable

2013-08-24 Thread boris brezillon
Hello Chris, On 25/08/2013 05:18, Chris Ball wrote: Hi, On Thu, Jul 18 2013, Boris BREZILLON wrote: Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Ludovic Desroches Okay, pushed to mmc

Re: [PATCH] net/cadence/macb: fix kernel Oops if no PHY were discovered during probe

2013-08-26 Thread boris brezillon
Hello Bo, On 26/08/2013 11:09, Bo Shen wrote: Hi Boris, On 08/25/2013 03:21 AM, Boris BREZILLON wrote: Test the presence of a PHY device before printing attached PHY informations. Signed-off-by: Boris BREZILLON --- drivers/net/ethernet/cadence/macb.c |6 -- 1 file changed, 4

[PATCH v2 0/2] net/cadence/macb: add support for dt phy definition

2013-08-26 Thread Boris BREZILLON
discovered Boris BREZILLON (2): net/cadence/macb: add support for dt phy definition ARM: at91/dt: define phy available on sama5d3 mother board arch/arm/boot/dts/sama5d3xmb.dtsi |8 ++ drivers/net/ethernet/cadence/macb.c | 47 +++ 2 files changed, 45

[PATCH v2 2/2] ARM: at91/dt: define phy available on sama5d3 mother board

2013-08-26 Thread Boris BREZILLON
This patch describe the phy used on atmel sama5d3 mother board: - phy address - phy interrupt pin Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xmb.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

[PATCH v2 1/2] net/cadence/macb: add support for dt phy definition

2013-08-26 Thread Boris BREZILLON
autoscan procedure is added in case there is no phy devices defined in dt. Signed-off-by: Boris BREZILLON --- drivers/net/ethernet/cadence/macb.c | 47 +++ 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers

Re: [PATCH v2 2/4] watchdog: at91sam9_wdt: update device tree doc

2013-08-26 Thread boris brezillon
Hello, I missed Grant's ack on this patch: Acked-by: Grant Likely Best Regards, Boris On 21/06/2013 09:23, Boris BREZILLON wrote: Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/watchdog/atmel-wdt.txt |

Re: [PATCH v2 0/4] watchdog: at91sam9_wdt: handle already configured wdt

2013-08-26 Thread boris brezillon
Hello Yang, Did you test/review this series ? If you did, could you add your Acked, Reviewed and/or Tested-by. I'd really like to get this series merged to mainline. Thanks. Best Regards, Boris On 21/06/2013 09:19, Boris BREZILLON wrote: Hello, This patch series is a porposal to en

Re: [PATCH v2 2/2] ARM: at91/dt: define phy available on sama5d3 mother board

2013-08-26 Thread boris brezillon
Hello Sergei, On 26/08/2013 15:21, Sergei Shtylyov wrote: Hello. On 26-08-2013 16:35, Boris BREZILLON wrote: This patch describe the phy used on atmel sama5d3 mother board: - phy address - phy interrupt pin Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xmb.dtsi |8

Re: [RFC PATCH 1/3] pinctrl: add new generic pinconf config for deglitch filter

2013-08-26 Thread boris brezillon
Hello Stephen, On 26/08/2013 18:50, Stephen Warren wrote: On 08/24/2013 03:35 PM, Boris BREZILLON wrote: Add a new parameter to support deglitch filter configuration. A deglitch filter works like a debounce filter but with a smaller delay (nanoseconds). Why not use the existing debounce

Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-26 Thread boris brezillon
On 26/08/2013 18:53, Stephen Warren wrote: On 08/24/2013 03:37 PM, Boris BREZILLON wrote: Add support for generic pin configuration to pinctrl-at91 driver. diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91

Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-26 Thread boris brezillon
Hello Jean-Christophe, Le 26/08/2013 19:53, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 23:37 Sat 24 Aug , Boris BREZILLON wrote: Add support for generic pin configuration to pinctrl-at91 driver. Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/atmel,at91-pinctrl.txt

Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-26 Thread boris brezillon
Le 26/08/2013 21:18, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 20:45 Mon 26 Aug , boris brezillon wrote: Hello Jean-Christophe, Le 26/08/2013 19:53, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 23:37 Sat 24 Aug , Boris BREZILLON wrote: Add support for generic pin configuration

Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-26 Thread boris brezillon
On 27/08/2013 05:54, Stephen Warren wrote: On 08/26/2013 12:45 PM, boris brezillon wrote: Hello Jean-Christophe, Le 26/08/2013 19:53, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 23:37 Sat 24 Aug , Boris BREZILLON wrote: Add support for generic pin configuration to pinctrl-at91 driver

Re: [RFC PATCH 1/3] pinctrl: add new generic pinconf config for deglitch filter

2013-08-26 Thread boris brezillon
On 27/08/2013 05:55, Stephen Warren wrote: On 08/26/2013 11:01 AM, boris brezillon wrote: Hello Stephen, On 26/08/2013 18:50, Stephen Warren wrote: On 08/24/2013 03:35 PM, Boris BREZILLON wrote: Add a new parameter to support deglitch filter configuration. A deglitch filter works like a

Re: [RFC PATCH 2/3] pinctrl: at91: add support for generic pinconf

2013-08-26 Thread boris brezillon
On 27/08/2013 05:57, Stephen Warren wrote: On 08/26/2013 11:17 AM, boris brezillon wrote: On 26/08/2013 18:53, Stephen Warren wrote: On 08/24/2013 03:37 PM, Boris BREZILLON wrote: Add support for generic pin configuration to pinctrl-at91 driver. diff --git a/Documentation/devicetree/bindings

[PATCH v3 0/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread Boris BREZILLON
wrong macb_mii_init return code when no PHY device is discovered Boris BREZILLON (2): net/cadence/macb: add support for dt phy definition ARM: at91/dt: define phy available on sama5d3 mother board arch/arm/boot/dts/sama5d3xmb.dtsi |8 ++ drivers/net/ethernet/cadence/macb.c | 48

[PATCH v3 1/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread Boris BREZILLON
autoscan procedure is added in case there is no phy devices defined in dt. Signed-off-by: Boris BREZILLON --- drivers/net/ethernet/cadence/macb.c | 48 +++ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers

[PATCH v3 2/2] ARM: at91/dt: define phy available on sama5d3 mother board

2013-08-27 Thread Boris BREZILLON
This patch describe the phy used on atmel sama5d3 mother board: - phy address - phy interrupt pin Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xmb.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

Re: [PATCH 0/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread boris brezillon
Hello Dave, On 26/08/2013 22:04, David Miller wrote: From: Boris BREZILLON Date: Thu, 22 Aug 2013 17:56:20 +0200 This patch series adds support for ethernet phy definition using device tree. This may help in moving some at91 boards to dt (some of them define an interrupt pin). Tested on

Re: [PATCH v3 0/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread boris brezillon
Hello David, Sorry, I forgot to add your email in the cc list. Do you want me to send you the whole series ? Best Regards, Boris On 27/08/2013 09:36, Boris BREZILLON wrote: Hello, This patch series adds support for ethernet phy definition using device tree. This may help in moving some

Re: [RFC PATCH 1/3] pinctrl: add new generic pinconf config for deglitch filter

2013-08-27 Thread boris brezillon
On 27/08/2013 09:42, Nicolas Ferre wrote: On 27/08/2013 08:16, boris brezillon : On 27/08/2013 05:55, Stephen Warren wrote: On 08/26/2013 11:01 AM, boris brezillon wrote: Hello Stephen, On 26/08/2013 18:50, Stephen Warren wrote: On 08/24/2013 03:35 PM, Boris BREZILLON wrote: Add a new

Re: [PATCH 0/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread boris brezillon
On 27/08/2013 11:07, Florian Fainelli wrote: Hello Boris, 2013/8/27 boris brezillon : Hello Dave, On 26/08/2013 22:04, David Miller wrote: From: Boris BREZILLON Date: Thu, 22 Aug 2013 17:56:20 +0200 This patch series adds support for ethernet phy definition using device tree. This may

[PATCH] ARM: at91/dt: fix phy address to match the reg register

2013-08-27 Thread Boris BREZILLON
Fix phy0 address to match the reg porperty defined in phy0 node. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d3xmb.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

[PATCH] net/cadence/macb: fix invalid 0 return if no phy is discovered on mii init

2013-08-27 Thread Boris BREZILLON
Replace misleading -1 (-EPERM) by a more appropriate return code (-ENXIO) in macb_mii_probe function. Save macb_mii_probe return before branching to err_out_unregister to avoid erronous 0 return. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/net/ethernet/cadence/macb.c

[PATCH v2] ARM: at91/dt: fix phy address in sama5xmb to match the reg property

2013-08-27 Thread Boris BREZILLON
Fix phy0 address to match the reg property defined in phy0 node. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- Changes since v1: - better commit message arch/arm/boot/dts/sama5d3xmb.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

Re: [PATCH v2] ARM: at91/dt: fix phy address in sama5xmb to match the reg property

2013-08-27 Thread boris brezillon
Sorry for the noise, but the previous commit message was not clear enough. On 27/08/2013 14:41, Boris BREZILLON wrote: Fix phy0 address to match the reg property defined in phy0 node. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- Changes since v1: - better commit message

[PATCH] pinctrl: at91: fix get_pullup/down function return

2013-08-27 Thread Boris BREZILLON
In PIO_PUSR and PIO_PPDSR register if a given bit is set 1 this means the pullup/down for this pin (pin is represented as a bit position) is disabled. Signed-off-by: Boris BREZILLON --- drivers/pinctrl/pinctrl-at91.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH] ARM: at91/at91-pinctrl documentation: add missing sam9x5 compatible string

2013-08-27 Thread Boris BREZILLON
Add missing "atmel,at91sam9x5-pinctrl" compatible string to the documentation. Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/atmel,at91-pinctrl.txt|2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/

[PATCH] pinctrl: at91: add support for OUTPUT config

2013-08-27 Thread Boris BREZILLON
Add support for pin output control through the pinctrl config: - support enabling/disabling output on a given pin - support output level setting (high or low) Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/atmel,at91-pinctrl.txt|2 ++ drivers/pinctrl/pinctrl-at91.c

Re: [PATCH] pinctrl: at91: add support for OUTPUT config

2013-08-27 Thread boris brezillon
This was tested on sama5d31ek. On 27/08/2013 16:51, Boris BREZILLON wrote: Add support for pin output control through the pinctrl config: - support enabling/disabling output on a given pin - support output level setting (high or low) Signed-off-by: Boris BREZILLON --- .../bindings

Re: [PATCH 0/2] net/cadence/macb: add support for dt phy definition

2013-08-27 Thread boris brezillon
On 27/08/2013 18:20, David Miller wrote: From: boris brezillon Date: Tue, 27 Aug 2013 09:42:34 +0200 Could you apply, the 3rd version of this series instead ? There can never be an "instead" or reverting patches I've said I've applied already. If you want changes, you h

Re: [PATCH] pinctrl: at91: add support for OUTPUT config

2013-08-28 Thread boris brezillon
On 28/08/2013 09:31, Nicolas Ferre wrote: On 27/08/2013 16:51, Boris BREZILLON : Add support for pin output control through the pinctrl config: - support enabling/disabling output on a given pin - support output level setting (high or low) Signed-off-by: Boris BREZILLON --- .../bindings

[PATCH 1/9] ARM: at91/dt: add rm9200 spi0 chip select pins definitions

2013-08-28 Thread Boris BREZILLON
Add spi0 cs pinctrl pins definitions. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi index f770655..69b76c7 100644 --- a/arch

[PATCH 2/9] ARM: at91/dt: add ethernet phy to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
will launch a full scan on the mdio bus to discover the phy address. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index d2d72c3..37b0880

[PATCH 3/9] ARM: at91/dt: add usb1 vbus and pullup pins

2013-08-28 Thread Boris BREZILLON
Add vbus and pullup pinctrl definitions. Request the vbus and pullup pins in usb1 node. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts

[PATCH 4/9] ARM: at91/dt: add atmel,pullup-gpio to at91rm9200ek usb1 definition

2013-08-28 Thread Boris BREZILLON
Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index 76f3e87..f2d6d79 100644 --- a/arch/arm/boot/dts/at91rm9200ek.dts +++ b/arch/arm/boot/dts

[PATCH 6/9] ARM: at91/dt: add spi0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Add spi0 cs3 switch pinctrl pin definitions: this pin is used to select between mmc0 slot0 and spi dataflash connected to cs3. Enable spi0 controller and define the mtd_dataflash connected to cs0. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts | 20

[PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
slot0). Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index f2d6d79..2bad423 100644 --- a/arch/arm/boot/dts

[PATCH 7/9] ARM: at91/dt: add i2c devices connected to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index b3e7425..fd2601a 100644 --- a/arch/arm/boot/dts/at91rm9200ek.dts +++ b/arch/arm

[PATCH 0/9] ARM: at91/dt: add missing devices to rm9200ek board

2013-08-28 Thread Boris BREZILLON
dt compilation passed), could someone owning this board test it ? In order to test it, you need to apply these series first: https://lkml.org/lkml/2013/8/27/58 pinctrl: at91: add support for OUTPUT config Best Regards, Boris Boris BREZILLON (9): ARM: at91/dt: rm9200: add spi0 chip select pins

[PATCH 8/9] ARM: at91/dt: add new at91rm9200ek_mmc board

2013-08-28 Thread Boris BREZILLON
Add a new at91rm9200ek_mmc board (based on at91rm9200ek board) which enables mmc0/slot0. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek_mmc.dts | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 arch/arm/boot/dts/at91rm9200ek_mmc.dts diff

[PATCH 9/9] ARM: at91/dt: add new at91rm9200ek_dataflash board

2013-08-28 Thread Boris BREZILLON
Add a new at91rm9200ek_dataflash board (based on at91rm9200ek board) which enables dataflash connected to cs3 of spi0. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek_dataflash.dts | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 arch/arm

Re: [RFC PATCH 3/3] ARM: at91/dt: move sama5 to generic pinconf

2013-08-28 Thread boris brezillon
Hello Linus, On 28/08/2013 14:28, Linus Walleij wrote: On Sat, Aug 24, 2013 at 11:40 PM, Boris BREZILLON wrote: Add generic pinconf definitions and reference appropriate configs in atmel,pins properties. Signed-off-by: Boris BREZILLON (...) pinctrl@f200

Re: [PATCH] pinctrl: at91: add support for OUTPUT config

2013-08-28 Thread boris brezillon
On 28/08/2013 15:48, Linus Walleij wrote: On Wed, Aug 28, 2013 at 3:46 PM, Linus Walleij wrote: On Tue, Aug 27, 2013 at 4:51 PM, Boris BREZILLON wrote: Add support for pin output control through the pinctrl config: - support enabling/disabling output on a given pin - support output

[PATCH 2/3] ARM: at91/tc/clocksource: improve driver robustness

2013-10-02 Thread Boris BREZILLON
Check function return values to avoid false positive driver init. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource

[PATCH 0/3] ARM: at91/tc/clocksource: various robustness improvements

2013-10-02 Thread Boris BREZILLON
of considering these functions always suceed. - remove the deprecated IRQF_DISABLED flag Best Regards, Boris Boris BREZILLON (3): ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare ARM: at91/tc/clocksource: improve driver robustness ARM

[PATCH 3/3] ARM: at91/tc/clocksource: remove IRQF_DISABLED

2013-10-02 Thread Boris BREZILLON
Remove the deprecated IRQF_DISABLED flag. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tcb_clksrc.c index 10a5d9e..00fdd11 100644 --- a/drivers

[PATCH 1/3] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare

2013-10-02 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

[PATCH 1/3] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare

2013-10-02 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON Acked-by: Nicolas Ferre --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff

Re: [v2,2/4] watchdog: at91sam9_wdt: update device tree doc

2013-10-02 Thread boris brezillon
On 02/10/2013 17:51, Guenter Roeck wrote: On Fri, Jun 21, 2013 at 03:23:34PM -, Boris BREZILLON wrote: Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON Acked-by: Grant Likely --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30

Re: [v2,1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-02 Thread boris brezillon
Hello Guenter, Thanks for reviewing this patch. On 02/10/2013 18:12, Guenter Roeck wrote: On Fri, Jun 21, 2013 at 03:21:28PM -, Boris BREZILLON wrote: The at91sam9 watchdog timer can only be configured once, and the current implementation tries to configure it in a static way: - 2 seconds

Re: [v2,1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-02 Thread boris brezillon
On 02/10/2013 21:34, Guenter Roeck wrote: On Wed, Oct 02, 2013 at 09:27:03PM +0200, boris brezillon wrote: Hello Guenter, Thanks for reviewing this patch. On 02/10/2013 18:12, Guenter Roeck wrote: On Fri, Jun 21, 2013 at 03:21:28PM -, Boris BREZILLON wrote: The at91sam9 watchdog timer

Re: [PATCH v2 2/4] watchdog: at91sam9_wdt: update device tree doc

2013-10-03 Thread boris brezillon
Hello Fabio, On 03/10/2013 10:08, Fabio Porcedda wrote: On Fri, Jun 21, 2013 at 9:23 AM, Boris BREZILLON wrote: Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1

[PATCH v3 0/4] watchdog: at91sam9_wdt: handle already configured wdt

2013-10-03 Thread Boris BREZILLON
calls Change since v1: - fix typo in documentaion - fix irq dt definition for sama5d3 SoC Boris BREZILLON (4): watchdog: at91sam9_wdt: better watchdog support watchdog: at91sam9_wdt: update device tree doc ARM: at91/dt: add sam9 watchdog default options to SoCs ARM: at91/dt: add watchdog prope

[PATCH 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-03 Thread Boris BREZILLON
software reboot. Finally it adds several properties to the device tree bindings. Signed-off-by: Boris BREZILLON --- drivers/watchdog/at91sam9_wdt.c | 300 --- 1 file changed, 217 insertions(+), 83 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b

[PATCH 2/4] watchdog: at91sam9_wdt: update device tree doc

2013-10-03 Thread Boris BREZILLON
Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt

[PATCH 4/4] ARM: at91/dt: add watchdog properties to kizbox board

2013-10-03 Thread Boris BREZILLON
Add watchdog specific config for kizbox board. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/kizbox.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/kizbox.dts b/arch/arm/boot/dts/kizbox.dts index 02df191..928f6ee 100644 --- a/arch/arm/boot/dts

[PATCH 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs

2013-10-03 Thread Boris BREZILLON
Set default watchdog options in every SoC compatible with the sam9 watchdog. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot/dts/at91sam9n12.dtsi

Re: [PATCH 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-03 Thread boris brezillon
Hi Guenter, On 03/10/2013 19:31, Guenter Roeck wrote: On Thu, Oct 03, 2013 at 02:19:18PM +0200, Boris BREZILLON wrote: The at91sam9 watchdog timer can only be configured once, and the current implementation tries to configure it in a static way: - 2 seconds timeout - wdt restart every 500ms

Re: [PATCH 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-03 Thread boris brezillon
On 03/10/2013 19:55, boris brezillon wrote: Hi Guenter, On 03/10/2013 19:31, Guenter Roeck wrote: On Thu, Oct 03, 2013 at 02:19:18PM +0200, Boris BREZILLON wrote: The at91sam9 watchdog timer can only be configured once, and the current implementation tries to configure it in a static way: - 2

[PATCH v4 0/4] watchdog: at91sam9_wdt: handle already configured wdt

2013-10-03 Thread Boris BREZILLON
ition for sama5d3 SoC Boris BREZILLON (4): watchdog: at91sam9_wdt: better watchdog support watchdog: at91sam9_wdt: update device tree doc ARM: at91/dt: add sam9 watchdog default options to SoCs ARM: at91/dt: add watchdog properties to kizbox board .../devicetree/bindings/watchdog/atmel-wd

[PATCH v4 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-03 Thread Boris BREZILLON
software reboot. Finally it adds several properties to the device tree bindings. Signed-off-by: Boris BREZILLON --- drivers/watchdog/at91sam9_wdt.c | 305 --- 1 file changed, 221 insertions(+), 84 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b

[PATCH v4 2/4] watchdog: at91sam9_wdt: update device tree doc

2013-10-03 Thread Boris BREZILLON
Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt

[PATCH v4 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs

2013-10-03 Thread Boris BREZILLON
Set default watchdog options in every SoC compatible with the sam9 watchdog. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot/dts/at91sam9n12.dtsi

[PATCH v4 4/4] ARM: at91/dt: add watchdog properties to kizbox board

2013-10-03 Thread Boris BREZILLON
Add watchdog specific config for kizbox board. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/kizbox.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/kizbox.dts b/arch/arm/boot/dts/kizbox.dts index 02df191..928f6ee 100644 --- a/arch/arm/boot/dts

[PATCH v5 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-04 Thread Boris BREZILLON
software reboot. Finally it adds several properties to the device tree bindings. Signed-off-by: Boris BREZILLON --- drivers/watchdog/at91sam9_wdt.c | 309 --- 1 file changed, 223 insertions(+), 86 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b

[PATCH v5 2/4] watchdog: at91sam9_wdt: update device tree doc

2013-10-04 Thread Boris BREZILLON
Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/atmel-wdt.txt

[PATCH v5 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs

2013-10-04 Thread Boris BREZILLON
Set default watchdog options in every SoC compatible with the sam9 watchdog. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot/dts/at91sam9n12.dtsi

[PATCH v5 4/4] ARM: at91/dt: add watchdog properties to kizbox board

2013-10-04 Thread Boris BREZILLON
Add watchdog specific config for kizbox board. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/kizbox.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/kizbox.dts b/arch/arm/boot/dts/kizbox.dts index 02df191..928f6ee 100644 --- a/arch/arm/boot/dts

[PATCH v5 0/4] watchdog: at91sam9_wdt: handle already configured wdt

2013-10-04 Thread Boris BREZILLON
eeded devm_kfree calls Change since v1: - fix typo in documentaion - fix irq dt definition for sama5d3 SoC Boris BREZILLON (4): watchdog: at91sam9_wdt: better watchdog support watchdog: at91sam9_wdt: update device tree doc ARM: at91/dt: add sam9 watchdog default options to SoCs ARM: at

Re: [RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-14 Thread boris brezillon
Hello Stephen, Le 14/09/2013 00:40, Stephen Warren a écrit : On 09/13/2013 01:53 AM, Boris BREZILLON wrote: AT91 SoCs do not support per pin debounce time configuration. Instead you have to configure a debounce time which will be used for all pins of a given bank (PIOA, PIOB, ...). diff --git

Re: [RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-14 Thread boris brezillon
Hello Jean-Christophe, Le 14/09/2013 18:37, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 09:53 Fri 13 Sep , Boris BREZILLON wrote: AT91 SoCs do not support per pin debounce time configuration. Instead you have to configure a debounce time which will be used for all pins of a given bank

Re: [RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-16 Thread boris brezillon
Hello Stephen, On 16/09/2013 18:41, Stephen Warren wrote: On 09/14/2013 01:08 AM, boris brezillon wrote: Hello Stephen, Le 14/09/2013 00:40, Stephen Warren a écrit : On 09/13/2013 01:53 AM, Boris BREZILLON wrote: AT91 SoCs do not support per pin debounce time configuration. Instead you have

[PATCH 0/2] pwm: atmel-tcb: config fixes

2013-09-18 Thread Boris BREZILLON
Hello, This patch series fix 2 bugs regarding the pwm configuration: - the clock source of the timer channel is never applied - the maximum time that can be represented when using the slow clock may be wrong if the tc block provide a 32 bits width counter Best Regards, Boris Boris

[PATCH 2/2] pwm: atmel-tcb: fix max time computation for slow clk source

2013-09-18 Thread Boris BREZILLON
Use the the tcb counter width to compute the maximum time that can be represented using the slow clock source instead of the static 16 bit width. Signed-off-by: Boris BREZILLON --- drivers/pwm/pwm-atmel-tcb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm

[PATCH 1/2] pwm: atmel-tcb: add missing clk source config

2013-09-18 Thread Boris BREZILLON
Clock source changes are never applied to the CMR register. This may lead to wrong period/duty cycle configuration. Signed-off-by: Boris BREZILLON --- drivers/pwm/pwm-atmel-tcb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c

Re: [PATCH 0/2] pwm: atmel-tcb: config fixes

2013-09-19 Thread boris brezillon
On 19/09/2013 14:06, Thierry Reding wrote: On Wed, Sep 18, 2013 at 05:05:20PM +0200, Boris BREZILLON wrote: Hello, This patch series fix 2 bugs regarding the pwm configuration: - the clock source of the timer channel is never applied - the maximum time that can be represented when using

[RFC PATCH 0/4] pinctrl: at91: various fixes

2013-09-13 Thread Boris BREZILLON
)configure the debounce time after bootup and the second solution does not provide any way to do this I might be wrong, so please feel free to share your thoughts about this. Best Regards, Boris Boris BREZILLON (4): pinctrl: at91: fix typos pinctrl: at91: reset caller's config variable b

[RFC PATCH 1/4] pinctrl: at91: fix typos

2013-09-13 Thread Boris BREZILLON
Fix AT91_PINCTRL_DEBOUNCE_VAL dt macro typo. Fix at91_pinctrl_mux_ops callback typos. Signed-off-by: Boris BREZILLON --- drivers/pinctrl/pinctrl-at91.c |6 +++--- include/dt-bindings/pinctrl/at91.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl

[RFC PATCH 2/4] pinctrl: at91: fix sam9x5 debounce/deglitch functions

2013-09-13 Thread Boris BREZILLON
"Input Filter") when debounce filter is disabled. Signed-off-by: Boris BREZILLON --- drivers/pinctrl/pinctrl-at91.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 50b555a..6624bc

[RFC PATCH 3/4] pinctrl: at91: improve pinconf_set/get function robustness

2013-09-13 Thread Boris BREZILLON
ister (which will result in disabling the debounce filter). Signed-off-by: Boris BREZILLON --- drivers/pinctrl/pinctrl-at91.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 6624bce..ac

[RFC PATCH 4/4] pinctrl: at91: check for debounce time conflicts

2013-09-13 Thread Boris BREZILLON
bank is already configured with a different debounce time, the pin config with fail with -EINVAL. Signed-off-by: Boris BREZILLON --- drivers/pinctrl/pinctrl-at91.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers

[RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-13 Thread Boris BREZILLON
AT91 SoCs do not support per pin debounce time configuration. Instead you have to configure a debounce time which will be used for all pins of a given bank (PIOA, PIOB, ...). Signed-off-by: Boris BREZILLON --- .../bindings/pinctrl/atmel,at91-pinctrl.txt|9 ++- drivers/pinctrl

Re: [PATCH v3 03/19] clk: at91: add PMC base support

2013-10-07 Thread boris brezillon
Hello Nicolas, On 07/10/2013 17:07, Nicolas Ferre wrote: On 08/08/2013 07:01, Boris BREZILLON : This patch adds at91 PMC (Power Management Controller) base support. All at91 clocks managed by the PMC unit will use this framework. This framework provides the following fonctionalities

Re: [PATCH v3 02/19] ARM: at91: add Kconfig options for common clk support

2013-10-07 Thread boris brezillon
On 07/10/2013 17:12, Nicolas Ferre wrote: On 08/08/2013 07:02, Boris BREZILLON : This patch adds the following Kconfig options to prepare the transition to common clk framework: - AT91_USE_OLD_CLK: this option is selected by every SoC which does not support new at91 clks based on common

Re: [PATCH v3 04/19] clk: at91: add PMC macro file for dt definitions

2013-10-07 Thread boris brezillon
On 07/10/2013 17:17, Nicolas Ferre wrote: On 08/08/2013 07:04, Boris BREZILLON : This patch adds a new macro file for PMC macros. This macro file includes the definitions of SR (status register) bit offsets and will be use to reference PMC irqs. Signed-off-by: Boris BREZILLON --- include

Re: [PATCH v3 05/19] clk: at91: add PMC main clock

2013-10-07 Thread boris brezillon
On 07/10/2013 18:51, Nicolas Ferre wrote: On 08/08/2013 07:06, Boris BREZILLON : This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registration it is calculated using the slow clock (main clk parent in this case

Re: [PATCH v3 05/19] clk: at91: add PMC main clock

2013-10-08 Thread boris brezillon
On 08/10/2013 10:24, Nicolas Ferre wrote: On 07/10/2013 21:11, boris brezillon : On 07/10/2013 18:51, Nicolas Ferre wrote: On 08/08/2013 07:06, Boris BREZILLON : This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock

Re: [PATCH v3 06/19] clk: at91: add PMC pll clocks

2013-10-08 Thread boris brezillon
On 08/10/2013 12:28, Nicolas Ferre wrote: On 08/08/2013 08:07, Boris BREZILLON : This patch adds new at91 pll clock implementation using common clk framework. The pll clock layout describe the PLLX register layout. There are four pll clock layouts: - at91rm9200 - at91sam9g20 - at91sam9g45

Re: [PATCH v3 07/19] clk: at91: add pll id macros for pll dt bindings

2013-10-08 Thread boris brezillon
On 08/10/2013 12:30, Nicolas Ferre wrote: On 08/08/2013 08:09, Boris BREZILLON : This patch adds the PLL id macros which will be used by pll dt definitions. It is not needed, drop it. Just document the values in the DT biding and it will be fine. I'll drop (and document) it. S

Re: [PATCH v3 17/19] clk: at91: add PMC clk device tree binding doc.

2013-10-08 Thread boris brezillon
On 08/10/2013 11:44, Nicolas Ferre wrote: On 08/08/2013 09:19, Boris BREZILLON : This patch adds new at91 clks dt bindings documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/clock/at91-clock.txt | 312 1 file changed, 312 insertions

  1   2   3   4   5   6   7   8   9   10   >