Re: [PATCH v3 12/19] clk: at91: add peripheral clk macros for peripheral clk dt bindings

2013-10-08 Thread boris brezillon
On 08/10/2013 17:44, Nicolas Ferre wrote: On 08/08/2013 09:10, Boris BREZILLON : This patch adds the peripheral divisors macros (for sam9x5 compatible IPs) which will be used by peripheral clk dt definitions. I am in favor for these definitions. So let's keep them (with raw nu

Re: [PATCH v3 12/19] clk: at91: add peripheral clk macros for peripheral clk dt bindings

2013-10-08 Thread boris brezillon
On 08/10/2013 18:15, Nicolas Ferre wrote: On 08/10/2013 18:01, boris brezillon : On 08/10/2013 17:44, Nicolas Ferre wrote: On 08/08/2013 09:10, Boris BREZILLON : This patch adds the peripheral divisors macros (for sam9x5 compatible IPs) which will be used by peripheral clk dt definitions. I

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

2013-10-09 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

[PATCH 1/1] pwm: atmel: add Timer Counter Block PWM driver

2012-12-06 Thread Boris BREZILLON
Add TCB PWM driver. Add device tree binding. Signed-off-by: Boris BREZILLON -- create mode 100644 Documentation/devicetree/bindings/pwm/atmel-tcb-pwm.txt create mode 100644 drivers/pwm/pwm-atmel-tcb.c diff --git a/Documentation/devicetree/bindings/pwm/atmel-tcb-pwm.txt b/Documentation

[PATCH 0/1] pwm: atmel: TCB pwm driver

2012-12-06 Thread Boris BREZILLON
Hello, This patch adds support for Timer Counter Block PWM. TCB PWM chip provides 6 pwm devices. This PWM devices are grouped by 2 (0/1, 2/3 and 4/5). The PWM devices in a given group must use the same period_ns value. Regards, Boris -- Boris BREZILLON (1): pwm: atmel: add Timer Counter

[PATCH v2] pwm: atmel: add Timer Counter Block PWM driver

2012-12-07 Thread Boris BREZILLON
ous coding style issues. - Cleanup code and add some comments. Signed-off-by: Boris BREZILLON --- create mode 100644 Documentation/devicetree/bindings/pwm/atmel-tcb-pwm.txt create mode 100644 drivers/pwm/pwm-atmel-tcb.c diff --git a/Documentation/devicetree/bindings/pwm/atmel-tcb-

Re: [PATCH v3] pwm: atmel: add Timer Counter Block PWM driver

2012-12-19 Thread Boris BREZILLON
On 19/12/2012 12:26, Thierry Reding wrote: > On Mon, Dec 17, 2012 at 12:13:30PM +0100, Boris BREZILLON wrote: >> Hello, >> >> This patch adds a PWM driver based on Atmel Timer Counter Block. >> Timer Counter Block is used in Waveform generator mode. >> >> A T

[PATCH v4] pwm: atmel: add Timer Counter Block PWM driver

2012-12-19 Thread Boris BREZILLON
given by tc-block field in an "atmel,tcb-pwm" compatible node. This patch was tested on kizbox board (at91sam9g20 SoC) with pwm-leds. Regards, Boris Signed-off-by: Boris BREZILLON --- Changes since v1: - Fix device tree binding Documentation - Fix Kconfig issues (

[PATCH v4 RESEND] pwm: atmel: add Timer Counter Block PWM driver

2012-12-20 Thread Boris BREZILLON
pwm-leds. Regards, Boris Signed-off-by: Boris BREZILLON --- Changes since v1: - Fix device tree binding Documentation - Fix Kconfig issues (missing OF dependency, deprecated HAVE_PWM select, ...) - Fix various coding st

[RFC 02/50] ARM: at91: add PMC main clock support using common clk framework.

2013-06-07 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 --- drivers/clk/at91/Makefile

[RFC 10/50] ARM: at91: add PMC smd clock support using common clk framework.

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |5 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-smd.c | 157

[RFC 08/50] ARM: at91: add PMC utmi clock support using common clk framework.

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |7 +++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk

[RFC 11/50] ARM: at91: add PMC clk device tree binding doc.

2013-06-07 Thread Boris BREZILLON
This is the documentation of the dt bindings used by at91 clks. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/clock/at91-clock.txt | 247 1 file changed, 247 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt b

[RFC 03/50] ARM: at91: add PMC pll clocks support using common clk framework.

2013-06-07 Thread Boris BREZILLON
s/clk/at91/clk-pll.c b/drivers/clk/at91/clk-pll.c new file mode 100644 index 000..d5dc0ac --- /dev/null +++ b/drivers/clk/at91/clk-pll.c @@ -0,0 +1,438 @@ +/* + * drivers/clk/at91/clk-pll.c + * + * Copyright (C) 2013 Boris BREZILLON + * + * This pllram is free software; you can redistrib

[RFC 00/50] ARM: at91: move to common clk framework

2013-06-07 Thread Boris BREZILLON
h and without dt support, but it has not been tested. The clocks rate/parent change has not been tested. Best Regards, Boris Boris BREZILLON (50): ARM: at91: move arch/arm/mach-at91/include/mach/at91_pmc.h to include/linux/clk/at91.h ARM: at91: add PMC main clock using common clk framework.

[RFC 07/50] ARM: at91: add PMC programmable clocks support using common clk framework.

2013-06-07 Thread Boris BREZILLON
mel's datasheets). Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 370 +++ include/linux/clk/at91.h| 18 ++ 3 files changed, 390 insertions(+) diff --git a/drivers/clk/at91/

[RFC 06/50] ARM: at91: add PMC peripheral clocks support using common clk framework.

2013-06-07 Thread Boris BREZILLON
d-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-peripheral.c | 376 + include/linux/clk/at91.h | 14 +- 3 files changed, 388 insertions(+), 4 deletions(-) diff --git a/drivers/clk/at91/Makefile b/dr

[RFC 05/50] ARM: at91: add PMC system clocks support using common clk framework.

2013-06-07 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 --- driver

[RFC 01/50] ARM: at91: move arch/arm/mach-at91/include/mach/at91_pmc.h to include/linux/clk/at91.h

2013-06-07 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 --- arch/arm/mach

[RFC 09/50] ARM: at91: add PMC usb clock support using common clk framework.

2013-06-07 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 --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-usb.c | 303

[RFC 04/50] ARM: at91: add PMC master clock support using common clk framework.

2013-06-07 Thread Boris BREZILLON
ecked 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 --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91

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

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b

[PATCH 5/8] usb: gadget: at91_udc: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/gadget/at91_udc.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b

[PATCH 7/8] USB: ohci-at91: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ohci-at91.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers

[PATCH 0/8] ARM: at91: prepare the move to common clk framework

2013-06-19 Thread Boris BREZILLON
in atmel-mci (missing spin_unlock) - remove already applied patches (atmel-ssc and pwm-atmel-tcb) Boris BREZILLON (8): ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare. at_hdmac: prepare clk before calling enable mmc: atmel-mci: prepare clk

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

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/tty/serial/atmel_serial.c | 41 - 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH 2/8] at_hdmac: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/dma/at_hdmac.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma

[PATCH 3/8] mmc: atmel-mci: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/mmc/host/atmel-mci.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host

[PATCH 6/8] ehci-atmel.c: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ehci-atmel.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers

[PATCH 2/8] at_hdmac: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/dma/at_hdmac.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma

[PATCH 8/8] at91/avr32/atmel_lcdfb: prepare clk before calling enable

2013-06-19 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/video/atmel_lcdfb.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video

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

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 Acked-by: Nicolas Ferre (one comment though) --- drivers/tty

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-

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

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

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

[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 --- .../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 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 --- 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 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 --- 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 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 --- 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 v2 0/4] ARM: at91: prepare transition to common clk framework

2013-06-25 Thread Boris BREZILLON
driver - remove already applied patches (ehci, ohci, dma 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 (4): ARM: at91

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

2013-06-25 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b

[PATCH v2 2/4] mmc: atmel-mci: prepare clk before calling enable

2013-06-25 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/mmc/host/atmel-mci.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/atmel

[PATCH v2 3/4] usb: gadget: at91_udc: prepare clk before calling enable

2013-06-25 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/gadget/at91_udc.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b

[PATCH v2 4/4] at91/avr32/atmel_lcdfb: prepare clk before calling enable

2013-06-25 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/video/atmel_lcdfb.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video

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

2013-06-07 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 --- arch/arm/mach

[RFC PATCH 02/50] ARM: at91: add PMC main clock

2013-06-07 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 --- drivers/clk/at91/Makefile

[RFC PATCH 03/50] ARM: at91: add PMC pll clocks

2013-06-07 Thread Boris BREZILLON
s/clk/at91/clk-pll.c b/drivers/clk/at91/clk-pll.c new file mode 100644 index 000..d5dc0ac --- /dev/null +++ b/drivers/clk/at91/clk-pll.c @@ -0,0 +1,438 @@ +/* + * drivers/clk/at91/clk-pll.c + * + * Copyright (C) 2013 Boris BREZILLON + * + * This pllram is free software; you can redistrib

[RESEND RFC PATCH 00/50] ARM: at91: move to common clk framework

2013-06-07 Thread Boris BREZILLON
using device tree. It compiles for other SoCs and both with and without dt support, but it has not been tested. The clocks rate/parent change has not been tested. Best Regards, Boris Boris BREZILLON (50): ARM: at91: move at91_pmc.h to include/linux/clk/at91.h ARM: at91: add PMC main clock ARM:

[RFC PATCH 05/50] ARM: at91: add PMC system clocks

2013-06-07 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 --- driver

[RFC PATCH 07/50] ARM: at91: add PMC programmable clocks

2013-06-07 Thread Boris BREZILLON
mel's datasheets). Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 370 +++ include/linux/clk/at91.h| 18 ++ 3 files changed, 390 insertions(+) diff --git a/drivers/clk/at91/

[RFC PATCH 06/50] ARM: at91: add PMC peripheral clocks

2013-06-07 Thread Boris BREZILLON
d-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-peripheral.c | 376 + include/linux/clk/at91.h | 14 +- 3 files changed, 388 insertions(+), 4 deletions(-) diff --git a/drivers/clk/at91/Makefile b/driver

[RFC PATCH 08/50] ARM: at91: add PMC utmi clock

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |7 +++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk

[RFC PATCH 09/50] ARM: at91: add PMC usb clock

2013-06-07 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 --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-usb.c | 303

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

2013-06-07 Thread Boris BREZILLON
This is the documentation of the dt bindings used by at91 clks. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/clock/at91-clock.txt | 247 1 file changed, 247 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt b

[RFC PATCH 10/50] ARM: at91: add PMC smd clock

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |5 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-smd.c | 157

[RFC PATCH 04/50] ARM: at91: add PMC master clock

2013-06-07 Thread Boris BREZILLON
ecked 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 --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91

[RFC PATCH 12/50] ARM: at91: move to common clk framework

2013-06-07 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 --- arch/arm/mach-at91/Makefile |2 +- arch/arm/mach-at91/clock.c | 961 -- arch/arm/mach-at91

[RFC PATCH 14/50] ARM: at91: move at91sam9260 SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9260.c | 692

[RFC PATCH 15/50] ARM: at91: move at91sam9261 SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9261.c | 579

[RFC PATCH 19/50] ARM: at91: move at91sam9rl SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9rl.c | 512

Re: [RFC 00/50] ARM: at91: move to common clk framework

2013-06-07 Thread boris brezillon
On 07/06/2013 11:22, Nicolas Ferre wrote: On 07/06/2013 10:34, Boris BREZILLON : Hello, This patch series is a proposal to move at91 clock implementation to common clk framework. Before discussion begins I would like to give my kudos to you Boris! This is huge work and I thank you for it

[RFC PATCH 16/50] ARM: at91: move at91sam9263 SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9263.c | 597

[RFC PATCH 17/50] ARM: at91: move at91sam9g45 SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9g45.c | 703

[RFC PATCH 18/50] ARM: at91: move at91sam9n12 SoC to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9n12.c | 194 -- 1 file

Re: [RFC PATCH 02/50] ARM: at91: add PMC main clock

2013-06-07 Thread boris brezillon
On 07/06/2013 17:30, Thomas Petazzoni wrote: Dear Boris BREZILLON, On Fri, 7 Jun 2013 16:24:10 +0200, Boris BREZILLON wrote: + * This mainram is free software; you can redistribute it and/or modify Looks like you did some funky 'sed' over your source files. In every clk driver,

[RFC PATCH 21/50] ARM: at91: move at91sam9 SoCs to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Make use of common clk framework for all at91sam9 SoCs Signed-off-by: Boris BREZILLON --- 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 7256b81..add1719 100644 --- a/arch/arm/mach-at91/Kconfig

[RFC PATCH 20/50] ARM: at91: move at91sam9x5 SoCs to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/at91sam9x5.c | 289 --- 1 file

[RFC PATCH 23/50] ARM: at91: move at91rm9200 boards to new at91 clk implem

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

[RFC PATCH 22/50] ARM: at91: move sama5d3 SoCs to new at91 clk implem

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |1 + arch/arm/mach-at91/sama5d3.c | 342

[RFC PATCH 24/50] ARM: at91: move at91sam9 boards to new at91 clk implem

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

[RFC PATCH 26/50] ARM: at91/tc/clocksource: replace clk_enable/disable with clk_prepare_enable/disable_unprepare.

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/clocksource/tcb_clksrc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b

[RFC PATCH 27/50] at_hdmac: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/dma/at_hdmac.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma

[RFC PATCH 29/50] mmc: atmel-mci: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/mmc/host/atmel-mci.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/atmel-mci.c b

[RFC PATCH 30/50] pwm: atmel-tcb: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/pwm/pwm-atmel-tcb.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm

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

2013-06-07 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 --- arch/arm/mach-at91/Kconfig |1 + arch/arm

[RFC PATCH 25/50] ARM: at91: move pit timer to common clk framework

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

[RFC PATCH 28/50] ASoC: atmel-ssc: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/misc/atmel-ssc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel

[RFC PATCH 32/50] usb: gadget: at91_udc: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/gadget/at91_udc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/at91_udc.c b

[RFC PATCH 31/50] tty: atmel_serial: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/tty/serial/atmel_serial.c | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers

[RFC PATCH 35/50] at91/avr32/atmel_lcdfb: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/video/atmel_lcdfb.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video

[RFC PATCH 33/50] ehci-atmel.c: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ehci-atmel.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers

[RFC PATCH 37/50] ARM: at91/dt: move at91sam9260 SoC to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define at91sam9260 clocks in at91sam9260 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9260.dtsi | 144 +++- 1 file changed, 143 insertions(+), 1 deletion(-) diff --git a

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

2013-06-07 Thread Boris BREZILLON
Define at91rm9200 clocks in at91rm9200 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200.dtsi | 133 + 1 file changed, 133 insertions(+) diff --git a/arch/arm/boot/dts

[RFC PATCH 38/50] ARM: at91/dt: move at91sam9263 SoC to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define at91sam9263 clocks in at91sam9263 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9263.dtsi | 135 1 file changed, 135 insertions(+) diff --git a/arch/arm/boot/dts

[RFC PATCH 39/50] ARM: at91/dt: move at91sam9g45 SoC to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define at91sam9g45 clocks in at91sam9g45 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9g45.dtsi | 157 1 file changed, 157 insertions(+) diff --git a/arch/arm/boot/dts

[RFC PATCH 40/50] ARM: at91/dt: move at91sam9n12 SoC to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define at91sam9n12 clocks in at91sam9n12 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9n12.dtsi | 153 1 file changed, 153 insertions(+) diff --git a/arch/arm/boot/dts

[RFC PATCH 41/50] ARM: at91/dt: move at91sam9x5 SoCs to new at91 clk implem

2013-06-07 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 --- arch/arm

[RFC PATCH 43/50] ARM: at91/dt: move sama5d3 SoCs to new at91 clk implem

2013-06-07 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 --- arch/arm/boo

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

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

[RFC PATCH 45/50] ARM: at91/dt: move rm9200 boards to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define the main clock frequency in every at91rm9200 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91rm9200ek.dts | 17 ++--- arch/arm/boot/dts/mpa1600.dts | 16 +--- 2 files changed, 11 insertions(+), 22

[RFC PATCH 44/50] ARM: at91/dt: move sam9260/sam9g20 to new at91 clk implem

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

[RFC PATCH 34/50] USB: ohci-at91: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Signed-off-by: Boris BREZILLON --- drivers/usb/host/ohci-at91.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers

[RFC PATCH 37/50] ARM: at91/dt: move at91sam9260 SoC to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define at91sam9260 clocks in at91sam9260 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9260.dtsi | 144 +++- 1 file changed, 143 insertions(+), 1 deletion(-) diff --git a

[RFC PATCH 46/50] ARM: at91/dt: move sam9263 boards to new at91 clk implem

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

[RFC PATCH 47/50] ARM: at91/dt: move sam9g45 boards to new at91 clk implem

2013-06-07 Thread Boris BREZILLON
Define the main clock frequency in every at91sam9g45 boards. Remove the old main clock definition. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9m10g45ek.dts | 17 ++--- arch/arm/boot/dts/pm9g45.dts | 16 +--- 2 files changed, 11 insertions

[RFC PATCH 48/50] ARM: at91/dt: move sam9n12 boards to new at91 clk implem

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

[RFC PATCH 49/50] ARM: at91/dt: move sam9x5 boards to new at91 clk implem

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

[RFC PATCH 50/50] ARM: at91/dt: move sama5d3 boards to new at91 clk implem

2013-06-07 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 --- arch/arm/boot/dts/sama5d31ek.dts |4 arch/arm/boot/dts/sama5d33ek.dts

Re: [RFC PATCH 28/50] ASoC: atmel-ssc: prepare clk before calling enable

2013-06-07 Thread Boris BREZILLON
On 07/06/2013 18:55, Mark Brown wrote: On Fri, Jun 07, 2013 at 06:26:09PM +0200, Boris BREZILLON wrote: Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to avoid common clk framework warnings. Applied since I happened to notice this on he list but you should *always* CC

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