[RFC PATCH 2/2] clk: add accuracy support for fixed clock

2013-08-01 Thread Boris BREZILLON
This patch adds support for accuracy retrieval on fixed clocks. It also adds a new dt property called 'clock-accuracy' to define the clock accuracy. This can be usefull for oscillator (RC, crystal, ...) definitions which are always given an accuracy characteristic. ---

[RFC PATCH 2/2] clk: add accuracy support for fixed clock

2013-08-01 Thread Boris BREZILLON
This patch adds support for accuracy retrieval on fixed clocks. It also adds a new dt property called 'clock-accuracy' to define the clock accuracy. This can be usefull for oscillator (RC, crystal, ...) definitions which are always given an accuracy characteristic. ---

[RFC PATCH 1/2] clk: add clk accuracy retrieval support

2013-08-01 Thread Boris BREZILLON
is optional and may be implemented if the clock is not a perfect clock (accuracy != 0 ppb). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- Documentation/clk.txt|4 ++ drivers/clk/Kconfig |4 ++ drivers/clk/clk.c| 91

Re: [RFC PATCH 1/2] clk: add clk accuracy retrieval support

2013-08-01 Thread boris brezillon
Sorry for the noise, I forgot to add --in-reply-to option. On 01/08/2013 17:02, Boris BREZILLON wrote: The clock accuracy is expressed in ppb (parts per billion) and represents the possible clock drift. Say you have a clock (e.g. an oscillator) which provides a fixed clock of 20MHz

Re: [PATCH] USB: ohci-at91: add usb_clk for transition to common clk framework

2013-08-01 Thread boris brezillon
On 01/08/2013 16:39, Alan Stern wrote: On Thu, 1 Aug 2013, Boris BREZILLON wrote: The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The usb drivers (ohci and udc) must configure this clock to 48Mhz

[PATCH v2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-01 Thread Boris BREZILLON
new at91 clk support Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/gadget/at91_udc.c | 21 +++-- drivers/usb/gadget/at91_udc.h |2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget

[PATCH v2] USB: ohci-at91: add usb_clk for transition to common clk framework

2013-08-01 Thread Boris BREZILLON
new at91 clk support Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/host/ohci-at91.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 9677f68..db60048 100644

[PATCH v3 0/2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-02 Thread Boris BREZILLON
: * add missing clk_put for existing clk (fclk and uclk) * add usb clock (uclk) support Changes since v1: - use IS_ENABLED(CONFIG_COMMON_CLK) to isolate new at91 clk support Boris BREZILLON (2): usb: gadget: at91_udc: add missing clk_put on fclk and iclk usb: gadget: at91_udc: add

[PATCH v3 2/2] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-02 Thread Boris BREZILLON
when moving to common clk framework. This patch adds support for usb clock retrieval and configuration, and is backward compatible with the current at91 clk implementation (if usb clk is not found, it does not configure/enable it). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v3 1/2] usb: gadget: at91_udc: add missing clk_put on fclk and iclk

2013-08-02 Thread Boris BREZILLON
This patch adds missing clk_put on fclk and iclk in case the probe function fails after these clocks have been retrieved. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/gadget/at91_udc.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget

Re: [PATCH 0/8] ARM: at91/dt: make use of periph id macros

2013-08-02 Thread boris brezillon
Hello Richard, On 01/08/2013 09:37, Richard Genoud wrote: 2013/8/1 Boris BREZILLON b.brezil...@overkiz.com: Hello, This patch series move at91 SoCs peripheral id definitions from machine specific include dir to dt-bindings include dir. These macros are used to reference interrupts instead

Re: [RFC PATCH RESEND 1/2] clk: add clk accuracy retrieval support

2013-11-08 Thread boris brezillon
Hello Mike, On 08/11/2013 01:51, Mike Turquette wrote: Quoting Boris BREZILLON (2013-10-13 10:17:10) The clock accuracy is expressed in ppb (parts per billion) and represents the possible clock drift. Say you have a clock (e.g. an oscillator) which provides a fixed clock of 20MHz

[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 b.brezil...@overkiz.com --- drivers/clocksource/tcb_clksrc.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c

[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 b.brezil...@overkiz.com --- 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

[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 b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file

[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 b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/clocksource/tcb_clksrc.c | 26 +- 1 file

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 b.brezil...@overkiz.com Acked-by: Grant Likelygrant.lik...@linaro.org --- .../devicetree

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 b.brezil...@overkiz.com wrote: Add new at91sam9 watchdog properties to the documentation. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- .../devicetree/bindings/watchdog

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

2013-10-03 Thread Boris BREZILLON
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 properties

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

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

[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 b.brezil...@overkiz.com --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings

[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 b.brezil...@overkiz.com --- 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

[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 b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot

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
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-wdt.txt

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

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

[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 b.brezil...@overkiz.com --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings

[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 b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot

[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 b.brezil...@overkiz.com --- 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

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

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

[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 b.brezil...@overkiz.com --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 30 ++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings

[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 b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi |5 + arch/arm/boot/dts/at91sam9263.dtsi |5 + arch/arm/boot/dts/at91sam9g45.dtsi |5 + arch/arm/boot

[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 b.brezil...@overkiz.com --- 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

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

2013-10-04 Thread Boris BREZILLON
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: at91/dt

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-15 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 b.brezil...@overkiz.com --- drivers/pwm/pwm-atmel-tcb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[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 b.brezil...@overkiz.com --- drivers/pwm/pwm-atmel-tcb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pwm/pwm-atmel-tcb.c b

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

[PATCH v5 13/17] clk: at91: add PMC usb clock

2013-10-17 Thread Boris BREZILLON
This patch adds new at91 usb clock implementation using common clk framework. This clock is used to clock usb ports (ohci, ehci and udc). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk

Re: [PATCH] USB: ehci-atmel: add usb_clk for transition to CCF

2013-10-18 Thread boris brezillon
Hello Nicolas, This patch should fix the bug you were seeing with USB device enumaration after moving to CCF. Tell me if this solves the issue (it worked for me). Best Regards, Boris On 18/10/2013 21:26, Boris BREZILLON wrote: The AT91 PMC (Power Management Controller) provides a USB clock

[PATCH] USB: ehci-atmel: add usb_clk for transition to CCF

2013-10-18 Thread Boris BREZILLON
/clock.c, but will be bypassed when moving to common clk framework. This patch adds support for usb clock retrieval and configuration only if CCF is enabled (CONFIG_COMMON_CLK). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/host/ehci-atmel.c | 16 +++- 1 file

[PATCH v3 4/7] ARM: at91/dt: define sama5d3 clocks

2013-10-18 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- Changes since v2: - add usb_clk to usb ehci controller node This new version (and the associated patch USB: ehci-atmel: add

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

2013-11-26 Thread boris brezillon
Hello Linus, Sorry for the noise, my mail was filtered by several ML because of some HTML contents. Le 26/11/2013 14:46, Linus Walleij a écrit : On Thu, Nov 21, 2013 at 11:34 AM, boris brezillon b.brezil...@overkiz.com wrote: On 21/11/2013 10:48, Linus Walleij wrote: No matter whether

[PATCH v2 0/2] clk: add clk accuracy support

2013-11-27 Thread Boris BREZILLON
) - fix documentation (s/recalc_rate/recalc_accuracy/) - move fixed_accuracy field addition (struct clk_fixed_rate) from the 1st patch to the 2nd patch of this series Boris BREZILLON (2): clk: add clk accuracy retrieval support clk: add accuracy support for fixed clock Documentation

[PATCH v2 1/2] clk: add clk accuracy retrieval support

2013-11-27 Thread Boris BREZILLON
is optional and may be implemented if the clock is not a perfect clock (accuracy != 0 ppb). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- Documentation/clk.txt|4 ++ drivers/clk/clk.c| 109 -- include/linux/clk-private.h

[PATCH v2 2/2] clk: add accuracy support for fixed clock

2013-11-27 Thread Boris BREZILLON
This patch adds support for accuracy retrieval on fixed clocks. It also adds a new dt property called 'clock-accuracy' to define the clock accuracy. This can be usefull for oscillator (RC, crystal, ...) definitions which are always given an accuracy characteristic. Signed-off-by: Boris BREZILLON

Re: [PATCH v2 2/2] clk: add accuracy support for fixed clock

2013-11-27 Thread boris brezillon
:-) Your questions are far from stupid ;-). On Wed, Nov 27, 2013 at 01:44:45PM +0100, Boris BREZILLON wrote: This patch adds support for accuracy retrieval on fixed clocks. It also adds a new dt property called 'clock-accuracy' to define the clock accuracy. This can be usefull for oscillator (RC

Re: [PATCH v2 2/2] clk: add accuracy support for fixed clock

2013-11-28 Thread boris brezillon
On 27/11/2013 19:10, Mike Turquette wrote: Quoting boris brezillon (2013-11-27 09:19:08) Hi Jason, On 27/11/2013 15:56, Jason Cooper wrote: Boris, Thanks for posting this series. Bear with me as I'm attempting to give MikeT a hand. Nice to hear. Mike already took a look at this series

Re: [PATCH v2 0/2] clk: add clk accuracy support

2013-11-28 Thread boris brezillon
Hello, On 28/11/2013 00:11, co...@horizon.com wrote: Um, do you have a definition somewhere (like in comments) of the definition of the accuracy you're using? So multiple people can add consistent values? Is this the standard deviation (67% confidence), 2 standard deviations (95%), 3 (99%),

Re: [PATCH v5 06/17] clk: at91: add PMC pll clocks

2013-11-28 Thread boris brezillon
Hi Mike, On 27/11/2013 22:48, Mike Turquette wrote: Quoting Boris BREZILLON (2013-11-12 13:57:19) +static const struct clk_ops pll_ops = { + .prepare = clk_pll_prepare, + .is_prepared = clk_pll_is_ready, + .disable = clk_pll_disable, + .is_enabled = clk_pll_is_ready

[PATCH v6 02/16] ARM: at91: add Kconfig options for common clk support

2013-11-28 Thread Boris BREZILLON
implementation. These SoCs won't setup the register_clocks callback (clk registration is done using of_clk_init). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig| 21 + arch/arm/mach

[PATCH v6 05/16] clk: at91: add PMC main clock

2013-11-28 Thread 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) rate and MCFR register. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked

[PATCH v6 07/16] clk: at91: add PMC master clock

2013-11-28 Thread Boris BREZILLON
are checked during rate change to avoid over/underclocking. These characteristics are described in atmel's SoC datasheet in Electrical Characteristics paragraph. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/clk/at91/Makefile

[PATCH v6 06/16] clk: at91: add PMC pll clocks

2013-11-28 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-pll.c| 537 + drivers/clk/at91/clk-plldiv.c | 135 +++ drivers/clk/at91/pmc.c| 21

[PATCH v6 01/16] ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h

2013-11-28 Thread Boris BREZILLON
This patch moves at91_pmc.h header from machine specific directory (arch/arm/mach-at91/include/mach/at91_pmc.h) to clk include directory (include/linux/clk/at91_pmc.h). We need this to avoid reference to machine specific headers in clk drivers. Signed-off-by: Boris BREZILLON b.brezil

[PATCH v6 00/16] ARM: at91: move to common clk framework

2013-11-28 Thread Boris BREZILLON
nodes each defining a system/peripheral or prog clock) - fix bugs in sama5 dt definition Boris BREZILLON (16): ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h ARM: at91: add Kconfig options for common clk support clk: at91: add PMC base support clk: at91: add PMC macro file for dt

[PATCH v6 08/16] clk: at91: add PMC system clocks

2013-11-28 Thread Boris BREZILLON
This patch adds new at91 system clock implementation using common clk framework. Some peripherals need to enable a system clock in order to work properly. Each system clock is given an id based on the bit position in SCER/SCDR registers. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v6 09/16] clk: at91: add PMC peripheral clocks

2013-11-28 Thread Boris BREZILLON
to define and reference peripheral clocks. Some new SoCs (at91sam9x5 and sama5d3) provide a new register (PCR) where you can configure the peripheral clock as a division of the master clock. This will help reducing the peripherals power comsumption. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v6 03/16] clk: at91: add PMC base support

2013-11-28 Thread Boris BREZILLON
matching the definitions in pmc_clk_ids). This patch copies at91_pmc_base (memory mapping) and at91sam9_idle (function) from arch/arm/mach-at91/clock.c (which is not compiled if COMMON_CLK_AT91 is enabled). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe

[PATCH v6 04/16] clk: at91: add PMC macro file for dt definitions

2013-11-28 Thread 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 b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- include/dt-bindings/clk

[PATCH v6 10/16] clk: at91: add PMC programmable clocks

2013-11-28 Thread Boris BREZILLON
atmel's datasheets). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 366 +++ drivers/clk/at91/pmc.c | 15

[PATCH v6 11/16] clk: at91: add PMC utmi clock

2013-11-28 Thread Boris BREZILLON
This adds new at91 utmi clock implementation using common clk framework. This clock is a pll with a fixed factor (x40). It is used as a source for usb clock. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig

[PATCH v6 12/16] clk: at91: add PMC usb clock

2013-11-28 Thread Boris BREZILLON
This patch adds new at91 usb clock implementation using common clk framework. This clock is used to clock usb ports (ohci, ehci and udc). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk

[PATCH v6 13/16] clk: at91: add PMC smd clock

2013-11-28 Thread Boris BREZILLON
This patch adds at91 smd (Soft Modem) clock implementation using common clk framework. Not used by any driver right now. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig |5 ++ drivers/clk/at91/Makefile

[PATCH v6 14/16] dt: binding: add at91 clks dt bindings documentation

2013-11-28 Thread Boris BREZILLON
This patch adds new at91 clks dt bindings documentation. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- .../devicetree/bindings/clock/at91-clock.txt | 339 1 file changed, 339 insertions(+) create mode

[PATCH v6 15/16] ARM: at91: move pit timer to common clk framework

2013-11-28 Thread Boris BREZILLON
Use device tree to get the source clock of the PIT (Periodic Interval Timer). If the clock is not found in device tree (or dt is not enabled) we'll try to get it using clk_lookup definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v6 16/16] ARM: at91: add new compatible strings for pmc driver

2013-11-28 Thread Boris BREZILLON
). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/clock.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 5f02aea..72b2579 100644 --- a/arch/arm

[PATCH v4 1/6] ARM: at91: prepare sama5 dt boards transition to common clk

2013-11-28 Thread Boris BREZILLON
before calling the PIT init function. The device tree clock registration is enabled only if common clk is selected. Else the old clk registration is been done during at91_dt_initialize call. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v4 3/6] ARM: at91/dt: define sama5d3 clocks

2013-11-28 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi | 379

[PATCH v4 4/6] ARM: at91/dt: define sama5d3xek's main clk frequency

2013-11-28 Thread Boris BREZILLON
Define the main clock frequency for the new main clock node in sama5d3xcm.dtsi. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3xcm.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot

[PATCH v4 6/6] ARM: at91/dt: remove old clk material

2013-11-28 Thread Boris BREZILLON
This patch removes the old main clk node which is now useless as sama5d3 SoCs and boards are no longer compatible with the old at91 clk implementations. It also remove old clock definitions (clock definitions using at91 old clk framework). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v4 2/6] ARM: at91: prepare common clk transition for sama5d3 SoC

2013-11-28 Thread Boris BREZILLON
This patch encloses sama5d3 old clk registration in #if defined(CONFIG_OLD_CLK_AT91) #endif sections. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/sama5d3.c |6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH v4 0/6] ARM: at91: use new at91 clks for samad3 SoCs

2013-11-28 Thread Boris BREZILLON
Boris BREZILLON (6): ARM: at91: prepare sama5 dt boards transition to common clk ARM: at91: prepare common clk transition for sama5d3 SoC ARM: at91/dt: define sama5d3 clocks ARM: at91/dt: define sama5d3xek's main clk frequency ARM: at91: move sama5d3 SoC to common clk ARM: at91/dt: remove

[PATCH v4 5/6] ARM: at91: move sama5d3 SoC to common clk

2013-11-28 Thread Boris BREZILLON
This patch removes the selection of AT91_USE_OLD_CLK when selecting sama5d3 SoC support. This will enable automatically enable COMMON_CLK_AT91 option and add support for at91 common clk implementation. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe

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

2013-11-29 Thread boris brezillon
Hello Linus, On 29/11/2013 11:03, Linus Walleij wrote: På tisdag, 26 Nov, 2013 vid 6:11 PM, skrev boris brezillon b.brezil...@overkiz.com: Le 26/11/2013 14:46, Linus Walleij a écrit : But in this case it is a mechanical switch rather than a jumper? Not exactly. The functionnaly selection

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

2013-11-29 Thread boris brezillon
On 29/11/2013 14:31, Linus Walleij wrote: On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon b.brezil...@overkiz.com wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register. (...) The whole

Re: [PATCH] ARM: at91: add usart3 alias to dtsi

2013-12-02 Thread boris brezillon
Hi Nicolas, Le 02/12/2013 11:13, Nicolas Ferre a écrit : Alias was missing for SoC of the at91sam9x5 familly that embed USART3. Preripheral node and pinctrl declarations are already in the at91sam9x5_usart3.dtsi file. Reported-by: Jiri Prchal jiri.prc...@aksignal.cz Signed-off-by: Nicolas

Re: [PATCH v6 00/16] ARM: at91: move to common clk framework

2013-12-02 Thread boris brezillon
Hi Mike, Le 01/12/2013 00:05, Mike Turquette a écrit : Quoting Boris BREZILLON (2013-11-28 04:36:24) Hello, This patch series is the 5th version of the at91 clk implementations using the Common Clk Framework. Oops, I just replied to v5 of this series. Thanks for the fixes. Which tree do you

Re: [PATCH v2 1/2] clk: add clk accuracy retrieval support

2013-12-02 Thread boris brezillon
Hello Uwe, Le 02/12/2013 08:50, Uwe Kleine-König a écrit : Hello, On Wed, Nov 27, 2013 at 01:44:44PM +0100, Boris BREZILLON wrote: The clock accuracy is expressed in ppb (parts per billion) and represents the possible clock drift. Say you have a clock (e.g. an oscillator) which provides

Re: [PATCH v6 00/16] ARM: at91: move to common clk framework

2013-12-02 Thread boris brezillon
On 02/12/2013 12:43, boris brezillon wrote: Hi Mike, Le 01/12/2013 00:05, Mike Turquette a écrit : Quoting Boris BREZILLON (2013-11-28 04:36:24) Hello, This patch series is the 5th version of the at91 clk implementations using the Common Clk Framework. Oops, I just replied to v5

Re: [PATCH v2] ARM: at91: add usart3 alias to dtsi

2013-12-02 Thread boris brezillon
On 02/12/2013 13:53, Nicolas Ferre wrote: Alias was missing for SoC of the at91sam9x5 familly that embed USART3. Acked-by: Boris BREZILLON b.brezil...@overkiz.com Reported-by: Jiri Prchal jiri.prc...@aksignal.cz Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Cc: Boris Brezillon b.brezil

Re: [PATCH] ARM: at91: add uart aliases to sama5d3 dtsi

2013-12-02 Thread boris brezillon
On 02/12/2013 17:10, Nicolas Ferre wrote: Acked-by Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3_uart.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3_uart.dtsi b/arch/arm

Re: [PATCH] ARM: at91: add i2c2 pinctrl speficifation to sama5d3 DT

2013-12-02 Thread boris brezillon
On 02/12/2013 17:18, Nicolas Ferre wrote: Acked-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot

[PATCH v4 13/17] clk: at91: add PMC usb clock

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 usb clock implementation using common clk framework. This clock is used to clock usb ports (ohci, ehci and udc). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk

[PATCH v4 15/17] clk: at91: add PMC clk device tree binding doc.

2013-10-11 Thread Boris BREZILLON
This patch adds new at91 clks dt bindings documentation. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- .../devicetree/bindings/clock/at91-clock.txt | 328 1 file changed, 328 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/at91

[PATCH v4 14/17] clk: at91: add PMC smd clock

2013-10-11 Thread Boris BREZILLON
This patch adds at91 smd (Soft Modem) clock implementation using common clk framework. Not used by any driver right now. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig |5 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-smd.c | 173

[PATCH v4 16/17] ARM: at91: move pit timer to common clk framework

2013-10-11 Thread Boris BREZILLON
Use device tree to get the source clock of the PIT (Periodic Interval Timer). If the clock is not found in device tree (or dt is not enabled) we'll try to get it using clk_lookup definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v4 17/17] ARM: at91: add new compatible strings for pmc driver

2013-10-11 Thread Boris BREZILLON
). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/clock.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 5f02aea..72b2579 100644 --- a/arch/arm

[PATCH v2 0/6] ARM: at91: use new at91 clks for samad3 SoCs

2013-10-11 Thread Boris BREZILLON
since v1: - remove references to peripheral id macros - remove old clk definitions after moving to new clk framework Boris BREZILLON (6): ARM: at91: prepare sama5 dt boards transition to common clk ARM: at91: prepare common clk transition for sama5d3 SoC ARM: at91/dt: define sama5d3 clocks

[PATCH v2 1/6] ARM: at91: prepare sama5 dt boards transition to common clk

2013-10-11 Thread Boris BREZILLON
before calling the PIT init function. The device tree clock registration is enabled only if common clk is selected. Else the old clk registration is been done during at91_dt_initialize call. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com

[PATCH v2 2/6] ARM: at91: prepare common clk transition for sama5d3 SoC

2013-10-11 Thread Boris BREZILLON
This patch encloses sama5d3 old clk registration in #if defined(CONFIG_OLD_CLK_AT91) #endif sections. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/sama5d3.c |6 +- 1 file changed, 5 insertions(+), 1 deletion

[PATCH v2 3/6] ARM: at91/dt: define sama5d3 clocks

2013-10-11 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/sama5d3.dtsi | 331 ++- arch/arm/boot/dts/sama5d3_can.dtsi | 18

[PATCH v2 4/6] ARM: at91/dt: define sama5d3xek's main clk frequency

2013-10-11 Thread Boris BREZILLON
Define the main clock frequency for the new main clock node in sama5d3xcm.dtsi. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/sama5d3xcm.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot

<    1   2   3   4   5   6   7   8   9   10   >