Re: [RFC PATCH 13/50] ARM: at91: move at91rm9200 SoC to new at91 clk implem

2013-06-20 Thread boris brezillon
Hello, On 20/06/2013 08:52, Mike Turquette wrote: Quoting Boris BREZILLON (2013-06-07 08:11:03) +static struct clk_lookup pioA_clk_lookup[] = { + CLKDEV_INIT(NULL, pioA_clk, NULL), + CLKDEV_INIT(NULL, pioA, NULL), +}; It would be great to get rid of this clkdev data from

Re: [PATCH 4/8] tty: atmel_serial: prepare clk before calling enable

2013-06-20 Thread boris brezillon
On 20/06/2013 09:48, Nicolas Ferre wrote: On 19/06/2013 13:17, 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

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

2013-06-21 Thread boris brezillon
On 21/06/2013 03:47, Yang, Wenyou wrote: -Original Message- From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of Boris BREZILLON Sent: 2013年6月11日 18:51 To: Wim Van Sebroeck; Jean-Christophe Plagniol-Villard; Ferre, Nicolas; linux-watch

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

2013-06-21 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 v2 1/4] watchdog: at91sam9_wdt: better watchdog support

2013-06-21 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 | 319 +-- 1 file changed, 236 insertions(+), 83 deletions(-) diff --git a/drivers

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

2013-06-21 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 v2 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs

2013-06-21 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 v2 3/4] ARM: at91/dt: add sam9 watchdog default options to SoCs

2013-06-21 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 v2 4/4] ARM: at91/dt: add watchdog properties to kizbox board

2013-06-21 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 v3 2/7] mmc: atmel-mci: prepare clk before calling enable

2013-07-16 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: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci.c | 27 ++- 1 file

[PATCH v3 4/7] USB: gadget: atmel_usba: prepare clk before calling enable

2013-07-16 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 --- drivers/usb/gadget/atmel_usba_udc.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff

[PATCH v3 3/7] at91/avr32/atmel_lcdfb: prepare clk before calling enable

2013-07-16 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/video/atmel_lcdfb.c |8 1 file changed, 4 insertions(+), 4

[PATCH v3 5/7] spi: atmel: prepare clk before calling enable

2013-07-16 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 --- drivers/spi/spi-atmel.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi

[PATCH v3 0/7] ARM: at91: prepare transition to common clk framework

2013-07-16 Thread Boris BREZILLON
and serial) Changes since common clk patch series: - add clk_prepare_enable return check - fix a deadlock in atmel-mci (missing spin_unlock) - remove already applied patches (atmel-ssc and pwm-atmel-tcb) Boris BREZILLON (7): ARM: at91/tc/clocksource: replace clk_enable/disable

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

2013-07-16 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 --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH v3 6/7] USB: ohci-at91: add usb_clk for transition to common clk framework

2013-07-16 Thread Boris BREZILLON
when moving to common clk framework. This patch add 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 the usb clk). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

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

2013-07-16 Thread Boris BREZILLON
when moving to common clk framework. This patch add 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 the usb clk). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

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

2013-07-16 Thread boris brezillon
Hello Thomas, On 16/07/2013 17:13, Thomas Petazzoni wrote: Dear Boris BREZILLON, On Tue, 16 Jul 2013 17:06:48 +0200, Boris BREZILLON wrote: buf = kmalloc(ATMCI_REGS_SIZE, GFP_KERNEL); if (!buf) @@ -389,9 +391,13 @@ static int atmci_regs_show(struct seq_file *s, void *v

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

2013-07-16 Thread boris brezillon
Hello Alan, On 16/07/2013 18:48, Alan Stern wrote: On Tue, 16 Jul 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

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

2013-07-16 Thread boris brezillon
On 16/07/2013 20:47, Alan Stern wrote: On Tue, 16 Jul 2013, boris brezillon wrote: + uclk = clk_get(pdev-dev, usb_clk); + if (IS_ERR(uclk)) { + uclk = NULL; + dev_warn(pdev-dev, failed to get usb_clk\n); + } Is this really what you want

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

2013-07-17 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.h). We need this to avoid reference to machine specific headers in clk drivers. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v2 02/42] ARM: at91: add PMC main clock

2013-07-17 Thread Boris BREZILLON
This is the at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registraction it is computed using the slow clock (main clk parent in this case) rate and the MCFR register. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers

[PATCH v2 00/42] ARM: at91: move to common clk framework

2013-07-17 Thread Boris BREZILLON
definition Boris BREZILLON (42): ARM: at91: move at91_pmc.h to include/linux/clk/at91.h ARM: at91: add PMC main clock ARM: at91: add PMC pll clocks ARM: at91: add PMC master clock ARM: at91: add PMC system clocks ARM: at91: add PMC peripheral clocks ARM: at91: add PMC programmable

[PATCH v2 04/42] ARM: at91: add PMC master clock

2013-07-17 Thread Boris BREZILLON
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 --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-master.c | 317

[PATCH v2 05/42] ARM: at91: add PMC system clocks

2013-07-17 Thread Boris BREZILLON
This is the at91 system clock implementation using common clk framework. Some peripheral needs to enable a system clock in order to work properly. Each system clock is given an id which is the bit offset used in SCER/SCDR registers. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v2 08/42] ARM: at91: add PMC utmi clock

2013-07-17 Thread Boris BREZILLON
This is the 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 --- arch/arm/mach-at91/Kconfig |7 +++ drivers/clk/at91/Makefile |1

[PATCH v2 03/42] ARM: at91: add PMC pll clocks

2013-07-17 Thread Boris BREZILLON
+ * + * Copyright (C) 2013 Boris BREZILLON b.brezil...@overkiz.com + * + * This pllram is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option

[PATCH v2 10/42] ARM: at91: add PMC smd clock

2013-07-17 Thread Boris BREZILLON
This is the 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 | 157

[PATCH v2 09/42] ARM: at91: add PMC usb clock

2013-07-17 Thread Boris BREZILLON
This is the 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-usb.c

[PATCH v2 11/42] ARM: at91: add PMC clk device tree binding doc.

2013-07-17 Thread Boris BREZILLON
This is the documentation of the dt bindings used by at91 clks. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- .../devicetree/bindings/clock/at91-clock.txt | 262 1 file changed, 262 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock

[PATCH v2 07/42] ARM: at91: add PMC programmable clocks

2013-07-17 Thread Boris BREZILLON
datasheets). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 368 +++ include/linux/clk/at91.h| 18 ++ 3 files changed, 388 insertions(+) create mode 100644

[PATCH v2 06/42] ARM: at91: add PMC peripheral clocks

2013-07-17 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-peripheral.c | 371 + include/linux/clk/at91.h |8 + 3 files changed, 380 insertions(+), 1 deletion(-) create mode 100644 drivers/clk

[PATCH v2 12/42] ARM: at91: move to common clk framework

2013-07-17 Thread Boris BREZILLON
registration is moved to at91_clk_init function which should be called before timer_init (pit timer request at91 master clock). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Makefile |2 +- arch/arm/mach-at91/clock.c | 977

[PATCH v2 13/42] ARM: at91: move at91rm9200 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91rm9200 SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig

[PATCH v2 16/42] ARM: at91: move at91sam9263 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91sam9263 SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9263

[PATCH v2 17/42] ARM: at91: move at91sam9g45 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91sam9g45 SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9g45

[PATCH v2 20/42] ARM: at91: move at91sam9x5 SoCs to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks for at91sam9x5 SoCs. These SoCs only supports dt boards: we can remove register_clocks (all clocks are defined in dt). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9x5.c | 291

[PATCH v2 19/42] ARM: at91: move at91sam9rl SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91sam9rl SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9rl.c

[PATCH v2 18/42] ARM: at91: move at91sam9n12 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks for at91sam9n12 SoC. This SoC only supports dt boards: we can remove register_clocks (all clocks are defined in dt). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9n12.c | 194

[PATCH v2 22/42] ARM: at91: move sama5d3 SoCs to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks for sama5d3 SoCs. These SoCs only supports dt boards: we can remove register_clocks (all clocks are defined in dt). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig |1 + arch/arm/mach-at91/sama5d3

[PATCH v2 23/42] ARM: at91: move at91rm9200 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Move at91 clk init from early_init to timer_init for all at91rm9200 non dt boards. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-1arm.c | 12 ++-- arch/arm/mach-at91/board-carmeva.c| 13 - arch/arm/mach-at91/board-cpuat91.c

[PATCH v2 15/42] ARM: at91: move at91sam9261 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91sam9261 SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9261

[PATCH v2 14/42] ARM: at91: move at91sam9260 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
This patch removes all references to the old at91 clks implementation and make use of the new at91 clk implem for at91sam9260 SoC. All dt specific lookups are removed (handled in clk device tree binding). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91sam9260

[PATCH v2 21/42] ARM: at91: move at91sam9 SoCs to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Make use of common clk framework for all at91sam9 SoCs Signed-off-by: Boris BREZILLON b.brezil...@overkiz.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 3253373..9901316 100644 --- a/arch/arm

[PATCH v2 24/42] ARM: at91: move at91sam9 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Move at91 clk init from early_init to timer_init for all at91sam9 non dt boards. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-afeb-9260v1.c | 11 +++ arch/arm/mach-at91/board-cam60.c| 13 - arch/arm/mach-at91/board

[PATCH v2 25/42] ARM: at91: move pit timer to common clk framework

2013-07-17 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 --- arch/arm/mach-at91/at91sam926x_time.c | 21

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

2013-07-17 Thread Boris BREZILLON
when moving to common clk framework. This patch add support for usb clock retrieval and configuration. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/host/ohci-at91.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host

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

2013-07-17 Thread Boris BREZILLON
when moving to common clk framework. This patch add support for usb clock retrieval and configuration. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/usb/gadget/at91_udc.c | 31 ++- drivers/usb/gadget/at91_udc.h |2 +- 2 files changed, 27

[PATCH v2 28/42] ARM: at91/dt: move at91rm9200 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91rm9200 clocks in at91rm9200 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200.dtsi | 231 + 1 file changed, 231 insertions(+) diff

[PATCH v2 29/42] ARM: at91/dt: move at91sam9260 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9260 clocks in at91sam9260 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi | 236 1 file changed, 236 insertions(+) diff

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

2013-07-17 Thread boris brezillon
On 17/07/2013 17:33, Alan Stern wrote: On Tue, 16 Jul 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 30/42] ARM: at91/dt: move at91sam9263 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9263 clocks in at91sam9263 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9263.dtsi | 237 1 file changed, 237 insertions(+) diff

[PATCH v2 31/42] ARM: at91/dt: move at91sam9g45 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9g45 clocks in at91sam9g45 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9g45.dtsi | 257 1 file changed, 257 insertions(+) diff

[PATCH v2 32/42] ARM: at91/dt: move at91sam9n12 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9n12 clocks in at91sam9n12 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9n12.dtsi | 251 1 file changed, 251 insertions(+) diff

[PATCH v2 33/42] ARM: at91/dt: move at91sam9x5 SoCs to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9x5 clocks in at91sam9x5 device tree. Add references to the appropriate clocks in each peripheral. Split optional sam9x5 peripherals in several device tree files. These files are included by each SoC according to it's availability. Signed-off-by: Boris BREZILLON b.brezil

Re: [PATCH v2 02/42] ARM: at91: add PMC main clock

2013-07-17 Thread boris brezillon
On 17/07/2013 15:40, Boris BREZILLON wrote: This is the at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registraction it is computed using the slow clock (main clk parent in this case) rate and the MCFR register. Signed-off-by: Boris

[PATCH v2 34/42] ARM: at91/dt: move at91sam9g20 SoC to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define at91sam9g20 clocks in at91sam9g20 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9g20.dtsi | 37 1 file changed, 37 insertions(+) diff

[PATCH v2 35/42] ARM: at91/dt: move sama5d3 SoCs to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Split optional sam9x5 peripherals in several device tree files. These files are included by each SoC according to it's availability. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com

[PATCH v2 36/42] ARM: at91/dt: move sam9260/sam9g20 to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every sam9260/sam9g20 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/animeo_ip.dts | 17 ++--- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 17

[PATCH v2 37/42] ARM: at91/dt: move rm9200 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every at91rm9200 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200ek.dts | 17 ++--- arch/arm/boot/dts/mpa1600.dts | 16 +--- 2 files changed

[PATCH v2 38/42] ARM: at91/dt: move sam9263 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every at91sam9263 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9263ek.dts | 17 ++--- arch/arm/boot/dts/tny_a9263.dts | 17 ++--- arch/arm/boot

[PATCH v2 39/42] ARM: at91/dt: move sam9g45 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every at91sam9g45 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9m10g45ek.dts | 17 ++--- arch/arm/boot/dts/pm9g45.dts | 16 +--- 2 files

[PATCH v2 40/42] ARM: at91/dt: move sam9n12 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every at91sam9n12 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9n12ek.dts | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot

[PATCH v2 41/42] ARM: at91/dt: move sam9x5 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every at91sam9x5 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91-ariag25.dts | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot

Re: [PATCH v2 24/42] ARM: at91: move at91sam9 boards to new at91 clk implem

2013-07-17 Thread boris brezillon
On 17/07/2013 19:13, Russell King - ARM Linux wrote: On Wed, Jul 17, 2013 at 05:37:13PM +0200, Boris BREZILLON wrote: Move at91 clk init from early_init to timer_init for all at91sam9 non dt boards. Using black ball point pen, please complete the following sentence using as many words as you

[PATCH v2 42/42] ARM: at91/dt: move sama5d3 boards to new at91 clk implem

2013-07-17 Thread Boris BREZILLON
Define the main clock frequency in every sama5d3 boards. Remove the old main clock definition. Include the appropriate peripheral options according to peripherals availability. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/sama5d31ek.dts |4 arch/arm/boot

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

2013-07-18 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 --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers

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

2013-07-18 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: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/mmc/host/atmel-mci.c | 34

[PATCH v4 4/5] USB: gadget: atmel_usba: prepare clk before calling enable

2013-07-18 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 --- drivers/usb/gadget/atmel_usba_udc.c | 28 +--- 1 file changed, 21 insertions(+), 7 deletions(-) diff

[PATCH v4 5/5] ASoC: atmel-ssc: remove clk_disable_unprepare call from critical section

2013-07-18 Thread Boris BREZILLON
clk_prepare/unprepare (and indirectly clk_prepare_enable/disable_unprepare) may sleep and thus cannot be called in critical section. This patch fix a bug introduced by commit 6f0d94790efe9f4481bbd7c174ef0e9b5e5db7c4 where clk_disable_unprepare was called with user_lock hold. Signed-off-by: Boris

[PATCH v4 3/5] at91/avr32/atmel_lcdfb: prepare clk before calling enable

2013-07-18 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/video/atmel_lcdfb.c |8 1 file changed, 4 insertions(+), 4

[PATCH v4 0/5] ARM: at91: prepare transition to common clk framework

2013-07-18 Thread Boris BREZILLON
(missing spin_unlock) - remove already applied patches (atmel-ssc and pwm-atmel-tcb) Boris BREZILLON (5): ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare. mmc: atmel-mci: prepare clk before calling enable at91/avr32/atmel_lcdfb: prepare clk

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

2013-07-18 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 --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers

Re: [PATCH v2 00/42] ARM: at91: move to common clk framework

2013-07-18 Thread boris brezillon
On 17/07/2013 15:34, Boris BREZILLON wrote: Hello, This patch series is a proposal to move at91 clock implementation to common clk framework. Most of the clock provided by the PMC (Power Management Controller) are implemented : - main clock (main oscillator) - pll clocks - master clock

Re: [PATCH v4 5/5] ASoC: atmel-ssc: remove clk_disable_unprepare call from critical section

2013-07-18 Thread boris brezillon
On 18/07/2013 11:53, Mark Brown wrote: On Thu, Jul 18, 2013 at 09:48:40AM +0200, Boris BREZILLON wrote: clk_prepare/unprepare (and indirectly clk_prepare_enable/disable_unprepare) may sleep and thus cannot be called in critical section. I'm missing patches 1-4? I can send you the whole series

Re: [PATCH v4 5/5] ASoC: atmel-ssc: remove clk_disable_unprepare call from critical section

2013-07-18 Thread boris brezillon
On 18/07/2013 13:25, Mark Brown wrote: On Thu, Jul 18, 2013 at 09:48:40AM +0200, Boris BREZILLON wrote: clk_prepare/unprepare (and indirectly clk_prepare_enable/disable_unprepare) may sleep and thus cannot be called in critical section. Applied, thanks. Thanks -- To unsubscribe from this list

Re: [PATCH v4 5/5] ASoC: atmel-ssc: remove clk_disable_unprepare call from critical section

2013-07-18 Thread boris brezillon
On 18/07/2013 12:58, Mark Brown wrote: On Thu, Jul 18, 2013 at 12:21:38PM +0200, boris brezillon wrote: I can send you the whole series if you want (already sent to LKML and LAKML). But I'd like to understand who I should send patches from this series to. When you send me patch 5/5

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

[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 b.brezil...@overkiz.com --- drivers/pinctrl/pinctrl-at91.c |6 +++--- include/dt-bindings/pinctrl/at91.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff

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

2013-09-13 Thread Boris BREZILLON
filter is disabled. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- 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..6624bce 100644

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

2013-09-13 Thread Boris BREZILLON
(which will result in disabling the debounce filter). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- 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

[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 b.brezil...@overkiz.com --- drivers/pinctrl/pinctrl-at91.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl

[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 b.brezil...@overkiz.com --- .../bindings/pinctrl/atmel,at91-pinctrl.txt|9

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

2013-07-31 Thread boris brezillon
this patch (and patch 27) out of the this series and back to the prepare series ? Best Regards, Boris On 17/07/2013 17:47, 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

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

2013-08-01 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] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-01 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 1/8] ARM: at91: move peripheral id definitions to dt-bindings include dir

2013-08-01 Thread Boris BREZILLON
. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/include/mach/at91rm9200.h | 31 +- arch/arm/mach-at91/include/mach/at91sam9260.h | 29 + arch/arm/mach-at91/include/mach/at91sam9261.h | 23 +-- arch/arm/mach-at91/include/mach

[PATCH 3/8] ARM: at91/dt: use periph id macros for at91sam9260 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91sam9260/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi | 57 +++- 1 file changed, 30

[PATCH 5/8] ARM: at91/dt: use periph id macros for at91sam9g45 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91sam9g45/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9g45.dtsi| 57 + arch/arm/mach-at91

[PATCH 6/8] ARM: at91/dt: use periph id macros for at91sam9n12 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91sam9n12/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9n12.dtsi | 43 ++-- 1 file changed, 22

[PATCH 7/8] ARM: at91/dt: use periph id macros for at91sam9x5 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91sam9x5/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9x5.dtsi | 63 +++-- 1 file changed, 32

[PATCH 8/8] ARM: at91/dt: use periph id macros for sama5d3 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/sama5d3/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/sama5d3.dtsi | 83 1 file changed, 42

[PATCH 4/8] ARM: at91/dt: use periph id macros for at91sam9263 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91sam9263/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9263.dtsi | 46 +++- 1 file changed, 24

[PATCH 2/8] ARM: at91/dt: use periph id macros for at91rm9200 interrupt definitions

2013-08-01 Thread Boris BREZILLON
This patch make use of the peripheral id macros defined in dt-bindings/at91/at91rm9200/peripherals.h to register peripheral interrupts. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200.dtsi | 59 + 1 file changed, 33

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

2013-08-01 Thread Boris BREZILLON
. Maybe something like 'include/dt-bindings/soc/at91/xxx' or 'include/dt-bindings/peripherals/at91/xxx' would be better. What do you think ? Best Regards, Boris Boris BREZILLON (8): ARM: at91: move peripheral id definitions to dt-bindings include dir ARM: at91/dt: use periph id macros

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

2013-08-01 Thread boris brezillon
Hello Richard, On 01/08/2013 11:27, Richard Genoud wrote: 2013/8/1 Richard Genoud richard.gen...@gmail.com: 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

Re: [PATCH] pinctrl: at91: choose appropriate handler for level interrupts

2013-08-01 Thread boris brezillon
On 01/08/2013 13:04, Alexandre Belloni wrote: Hi, On 20/07/2013 16:51, Boris BREZILLON wrote: The current implementation handle both edge and level interrupts with the 'handle_simple_irq' handler. Level interrupts are active as long as the pin stays at the configured level (low or high

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

2013-08-01 Thread boris brezillon
On 01/08/2013 13:13, Mark Brown wrote: On Thu, Aug 01, 2013 at 01:06:20PM +0200, boris brezillon wrote: [changed Mark Brown address from opensource.wolfsonmicro.com to kernel.org (the 1st one failed)] Sorry Mark. Do you want me to resend you the whole series ? If it's just DT changes

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

2013-08-01 Thread Boris BREZILLON
Regards, Boris Boris BREZILLON (2): clk: add clk accuracy retrieval support clk: add accuracy support for fixed clock Documentation/clk.txt |4 + .../devicetree/bindings/clock/fixed-clock.txt |3 + drivers/clk/Kconfig

[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

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