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

2013-06-07 Thread Boris BREZILLON
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 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. ARM

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

2013-06-07 Thread Boris BREZILLON
datasheets). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- 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

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

2013-06-07 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com --- 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

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

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

[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 b.brezil...@overkiz.com --- arch/arm/mach-at91/Kconfig | 11 ++ drivers/clk/at91/Makefile |1 + drivers/clk/at91/clk-usb.c

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

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

[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 b.brezil...@overkiz.com --- drivers/mmc/host/atmel-mci.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git

[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 b.brezil...@overkiz.com --- drivers/usb/gadget/at91_udc.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/usb

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

[PATCH 0/3] ARM: at91: move aic driver to drivers/irqchip

2013-05-23 Thread Boris BREZILLON
specific irq handler inside the the init functions using set_handle_irq. This way we can remove all the machine specific handle_irq. This patch series was tested on kizbox board (sam9g20 SoC) using device tree. Could someone test it on other boards (both dt and non dt)? Best Regards, Boris Boris

[PATCH 1/3] ARM: at91: move at91 aic driver to drivers/irqchip

2013-05-23 Thread Boris BREZILLON
Move arch/arm/mach-at91/irq.c to drivers/irqchip/irq-at91.c. Move arch/arm/mach-at91/at91_aic.h to arch/arm/mach-at91/include/mach/at91_aic.h to avoid ugly reference to header file : #include ../../arch/arm/mach-at91/at91_aic.h Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm

[PATCH 2/3] ARM: at91: use IRQCHIP_DECLARE instead of machine specific init_irq

2013-05-23 Thread Boris BREZILLON
Replace machine specific init_irq functions with IRQCHIP_DECLARE. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-dt-rm9200.c | 11 --- arch/arm/mach-at91/board-dt-sam9.c | 12 arch/arm/mach-at91/board-dt-sama5.c | 12

[PATCH 3/3] ARM: at91: use set_handle_irq instead of machine specific handle_irq

2013-05-23 Thread Boris BREZILLON
Set machine specific irq handler using set_handle_irq inside aic init functions instead of handle_irq pointer from machine_desc. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-1arm.c|1 - arch/arm/mach-at91/board-afeb-9260v1.c |1

[PATCH 2/3] ARM: at91: use IRQCHIP_DECLARE instead of machine specific init_irq

2013-05-23 Thread Boris BREZILLON
From: Boris BREZILLON brezillonbo...@gmail.com Replace machine specific init_irq functions with IRQCHIP_DECLARE. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-dt-rm9200.c | 11 --- arch/arm/mach-at91/board-dt-sam9.c | 12 arch/arm

[PATCH 3/3] ARM: at91: use set_handle_irq instead of machine specific handle_irq

2013-05-23 Thread Boris BREZILLON
From: Boris BREZILLON brezillonbo...@gmail.com Set machine specific irq handler using set_handle_irq inside aic init functions instead of handle_irq pointer from machine_desc. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-1arm.c|1 - arch

[RESEND PATCH 0/3] ARM: at91: move aic driver to drivers/irqchip

2013-05-23 Thread Boris BREZILLON
it on other boards (both dt and non dt)? Best Regards, Boris Boris BREZILLON (3): ARM: at91: move at91 aic driver to drivers/irqchip ARM: at91: use IRQCHIP_DECLARE instead of machine specific init_irq ARM: at91: use set_handle_irq instead of machine specific handle_irq arch/arm/mach-at91

Re: [PATCH 1/3] ARM: at91: move at91 aic driver to drivers/irqchip

2013-05-23 Thread boris brezillon
On 23/05/2013 14:13, Thomas Petazzoni wrote: Dear Russell King - ARM Linux, On Thu, 23 May 2013 11:18:25 +0100, Russell King - ARM Linux wrote: I notice arch/arm/mach-at91/pm.c makes use of some of the register definitions: at91_irq_suspend(); pr_debug(AT91: PM - wake mask

Re: [PATCH 1/3] ARM: at91: move at91 aic driver to drivers/irqchip

2013-05-23 Thread boris brezillon
On 23/05/2013 11:06, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:05 Thu 23 May , Boris BREZILLON wrote: Move arch/arm/mach-at91/irq.c to drivers/irqchip/irq-at91.c. Move arch/arm/mach-at91/at91_aic.h to arch/arm/mach-at91/include/mach/at91_aic.h to avoid ugly reference to header file

[PATCH v2 3/3] ARM: at91: use IRQCHIP_DECLARE instead of machine specific init_irq

2013-05-23 Thread Boris BREZILLON
Replace machine specific init_irq functions with IRQCHIP_DECLARE. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/board-dt-rm9200.c | 11 --- arch/arm/mach-at91/board-dt-sam9.c | 12 arch/arm/mach-at91/board-dt-sama5.c | 12

[PATCH] ARM: at91/dt: fix macb pinctrl_macb_rmii_mii_alt definition

2013-05-23 Thread Boris BREZILLON
The PA24 pin is wrongly assigned to peripheral B. In the current config there is 2 ETX3 pins (PA11 and PA24) and no ETXER pin (PA22). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91sam9260.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 1/3] ARM: at91: use set_handle_irq instead of machine specific handle_irq

2013-05-23 Thread Boris BREZILLON
Set machine specific irq handler using set_handle_irq inside aic init functions instead of handle_irq pointer from machine_desc. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/mach-at91/at91_aic.h |3 --- arch/arm/mach-at91/board-1arm.c |1 - arch

[PATCH v2 2/3] ARM: at91: move at91 aic driver to drivers/irqchip

2013-05-23 Thread Boris BREZILLON
Move arch/arm/mach-at91/irq.c to drivers/irqchip/irq-at91.c. Move arch/arm/mach-at91/at91_aic.h to include/linux/irqchip/at91.h to avoid reference to machine specific hearder files. Remove __ASSEMBLY__ section in header file (at91_aic_base is only used in .c files). Signed-off-by: Boris BREZILLON

[PATCH v2 0/3] ARM: at91: move aic driver to drivers/irqchip

2013-05-23 Thread Boris BREZILLON
- at91xxx.c : NR_AICX_IRQS Please let me know what you think is best. Best Regards, Boris Boris BREZILLON (3): ARM: at91: use set_handle_irq instead of machine specific handle_irq ARM: at91: move at91 aic driver to drivers/irqchip ARM: at91: use IRQCHIP_DECLARE instead of machine specific

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

2013-05-23 Thread Boris BREZILLON
Hello, I sent a patch 1 month ago to add pinctrl support to pwm-atmel-tcb driver and didn't get any review. Could you take a look? This patch adds pins request for the pwm device exposed by the TC block using the pinctrl subsystem. Best Regards, Boris Signed-off-by: Boris BREZILLON b.brezil

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

2013-05-24 Thread boris brezillon
On 23/05/2013 21:35, Thierry Reding wrote: On Thu, May 23, 2013 at 06:38:52PM +0200, Boris BREZILLON wrote: Hello, I sent a patch 1 month ago to add pinctrl support to pwm-atmel-tcb driver and didn't get any review. Could you take a look? This patch adds pins request for the pwm device

[PATCH] ARM: at91/dt: add pinctrl definition for at91 tc blocks

2013-05-24 Thread Boris BREZILLON
Hello, This patch adds pinctrl configs for at91 Timer Conter blocks. These pin configs will be referenced by atmel,tcb-pwm devices to setup pins as PWM output. Best Regards, Boris Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200.dtsi | 76

Re: [PATCH] ARM: at91/dt: add pinctrl definition for at91 tc blocks

2013-05-24 Thread boris brezillon
On 24/05/2013 16:12, Nicolas Ferre wrote: On 24/05/2013 16:05, Jean-Christophe PLAGNIOL-VILLARD : On 12:05 Fri 24 May , Boris BREZILLON wrote: Hello, This patch adds pinctrl configs for at91 Timer Conter blocks. These pin configs will be referenced by atmel,tcb-pwm devices to setup pins

[PATCH] watchdog: at91sam9_wdt: various fixes

2013-10-29 Thread Boris BREZILLON
Fix the secs_to_ticks macro in case 0 is passed as an argument. Rework the heartbeat calculation to increase the security margin of the watchdog reset timer. Use the min_heartbeat value instead of the calculated heartbeat value for the first watchdog reset. Signed-off-by: Boris BREZILLON

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

2013-10-29 Thread boris brezillon
and error messages - remove unneeded parenthesis in arithmetic operations - use devm functions to map io memory - remove unneeded devm_kfree calls Change since v1: - fix typo in documentaion - fix irq dt definition for sama5d3 SoC Boris BREZILLON (4): watchdog: at91sam9_wdt: better

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

2013-10-29 Thread boris brezillon
On 29/10/2013 13:58, Wim Van Sebroeck wrote: Hi Boris, I'm sorry for the inconvenience, but I found some bugs in my patch series: 1) the secs_to_ticks returns an erronous value when 0 is passed as an argument 2) the calculated heartbeat is too small for some use cases (i.e. kexecing a

Re: [PATCH] watchdog: at91sam9_wdt: various fixes

2013-10-29 Thread boris brezillon
On 29/10/2013 16:45, Guenter Roeck wrote: On Tue, Oct 29, 2013 at 11:37:33AM +0100, Boris BREZILLON wrote: Fix the secs_to_ticks macro in case 0 is passed as an argument. Rework the heartbeat calculation to increase the security margin of the watchdog reset timer. Use the min_heartbeat value

Re: [PATCH] watchdog: at91sam9_wdt: various fixes

2013-10-29 Thread boris brezillon
On 29/10/2013 17:43, Guenter Roeck wrote: On Tue, Oct 29, 2013 at 05:22:50PM +0100, boris brezillon wrote: On 29/10/2013 16:45, Guenter Roeck wrote: On Tue, Oct 29, 2013 at 11:37:33AM +0100, Boris BREZILLON wrote: Fix the secs_to_ticks macro in case 0 is passed as an argument. Rework

Re: [PATCH] watchdog: at91sam9_wdt: various fixes

2013-11-03 Thread boris brezillon
brezillon wrote: On 29/10/2013 17:43, Guenter Roeck wrote: On Tue, Oct 29, 2013 at 05:22:50PM +0100, boris brezillon wrote: On 29/10/2013 16:45, Guenter Roeck wrote: On Tue, Oct 29, 2013 at 11:37:33AM +0100, Boris BREZILLON wrote: Fix the secs_to_ticks macro in case 0 is passed as an argument. Rework

[PATCH 0/3] watchdog: at91sam9_wdt: various fixes and improvements

2013-11-03 Thread Boris BREZILLON
(to avoid spurious watchdog reset). Best Regards, Boris Boris BREZILLON (3): watchdog: at91sam9_wdt: fix secs_to_ticks watchdog: at91sam9_wdt: avoid spurious watchdog reset during init watchdog: at91sam9_wdt: increase security margin on watchdog counter reset drivers/watchdog

[PATCH 1/3] watchdog: at91sam9_wdt: fix secs_to_ticks

2013-11-03 Thread Boris BREZILLON
Fix the secs_to_ticks macro in case 0 is passed as an argument. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/watchdog/at91sam9_wdt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c

[PATCH 2/3] watchdog: at91sam9_wdt: avoid spurious watchdog reset during init

2013-11-03 Thread Boris BREZILLON
to be in such a case. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/watchdog/at91sam9_wdt.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 65f4691..ab0c4e0 100644 --- a/drivers

Re: [PATCH] watchdog: at91sam9_wdt: various fixes

2013-11-03 Thread boris brezillon
On 03/11/2013 17:22, Guenter Roeck wrote: On 11/03/2013 06:42 AM, boris brezillon wrote: Hello Guenter, Are you okay with the 3 fixes/improvements provided by this patch, and the explanation I gave regarding the reason for these changes ? If so, I will submit a new series splitting the patch

[PATCH 3/3] watchdog: at91sam9_wdt: increase security margin on watchdog counter reset

2013-11-03 Thread Boris BREZILLON
Try to reset the watchdog counter 4 or 2 times more often than actually requested, to avoid spurious watchdog reset. If this is not possible because of the min_heartbeat value, reset it at the min_heartbeat period. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/watchdog

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 numbers

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 v4 02/17] ARM: at91: add Kconfig options for common clk support

2013-10-11 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 --- arch/arm/mach-at91/Kconfig| 21 + arch/arm/mach-at91/Kconfig.non_dt |6 ++ arch/arm/mach

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

2013-10-11 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 v4 03/17] clk: at91: add PMC base support

2013-10-11 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 --- drivers/clk/Makefile |1

[PATCH v4 00/17] ARM: at91: move to common clk framework

2013-10-11 Thread Boris BREZILLON
interfaces (no need to define a parent clock, system clock is a gate with no rate info) - change system, peripheral and programmable clk dt bindings (1 master node and multiple child nodes each defining a system/peripheral or prog clock) - fix bugs in sama5 dt definition Boris BREZILLON (17

[PATCH v4 04/17] clk: at91: add PMC macro file for dt definitions

2013-10-11 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 --- include/dt-bindings/clk/at91.h | 22 ++ 1 file

[PATCH v4 07/17] clk: at91: add PMC master clock

2013-10-11 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 --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-master.c | 278

[PATCH v4 05/17] clk: at91: add PMC main clock

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

[PATCH v4 09/17] clk: at91: add PMC peripheral clocks

2013-10-11 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 v4 08/17] clk: at91: add PMC system clocks

2013-10-11 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 v4 10/17] clk: at91: add peripheral clk macros for peripheral clk dt bindings

2013-10-11 Thread Boris BREZILLON
This patch adds the peripheral divisors macros (for sam9x5 compatible IPs) which will be used by peripheral clk dt definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- include/dt-bindings/clk/at91.h |6 ++ 1 file changed, 6 insertions(+) diff --git a/include/dt

[PATCH v4 11/17] clk: at91: add PMC programmable clocks

2013-10-11 Thread Boris BREZILLON
atmel's datasheets). Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 423 +++ drivers/clk/at91/pmc.c | 15 ++ drivers/clk/at91/pmc.h |9 + 4

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

2013-10-11 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-pll.c| 545 + drivers/clk/at91/clk-plldiv.c | 137 +++ drivers/clk/at91/pmc.c| 21 ++ drivers/clk/at91/pmc.h| 11

[PATCH v4 12/17] clk: at91: add PMC utmi clock

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

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

2013-07-20 Thread Boris BREZILLON
it. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/pinctrl/pinctrl-at91.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 5d7529e..76e108d 100644 --- a/drivers/pinctrl

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

2013-07-23 Thread boris brezillon
Le 17/07/2013 16:49, Boris BREZILLON a écrit : 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

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

2013-07-23 Thread boris brezillon
Le 23/07/2013 20:03, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 15:37 Wed 17 Jul , Boris BREZILLON wrote: 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). please

[PATCH 1/2] DT: add vendor prefix for Foxlink Group

2014-06-05 Thread Boris BREZILLON
Add vendor prefix for Foxlink Group. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree

[PATCH 2/2] drm/panel: add support for Foxlink FL500WVR00-A0T panel

2014-06-05 Thread Boris BREZILLON
This panel is used by Atmel's SAMA5D3 Evaluation Kits (sama5d3xek) and supported by the simple-panel driver. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- .../bindings/panel/foxlink,fl500wvr00-a0t.txt | 7 ++ drivers/gpu/drm/panel/panel-simple.c

[PATCH 0/2] drm/panel: add support for Foxlink FL500WVR00-A0T panel

2014-06-05 Thread Boris BREZILLON
Hello, This series adds a new entry in the vendor-prefixes.txt file for Foxlink Group and defines Foxlink FL500WVR00-A0T panel specifications in the simple panel driver. Best Regards, Boris Boris BREZILLON (2): DT: add vendor prefix for Foxlink Group drm/panel: add support for Foxlink

[PATCH v2 2/7] pwm: add support for atmel-hlcdc-pwm device

2014-06-09 Thread Boris BREZILLON
The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. This driver add support for this PWM device. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- .../devicetree/bindings/pwm/atmel-hlcdc-pwm.txt

[PATCH v2 1/7] mfd: add atmel-hlcdc driver

2014-06-09 Thread Boris BREZILLON
access the HLCDC register range concurrently. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- .../devicetree/bindings/mfd/atmel-hlcdc.txt| 41 drivers/mfd/Kconfig| 11 ++ drivers/mfd/Makefile

[PATCH v2 7/7] ARM: at91/dt: enable the LCD panel on sama5d3xek boards

2014-06-09 Thread Boris BREZILLON
Enable LCD related nodes and reference panel node in the hlcdc (High LCD Controller) controller on sama5d3xek boards. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- arch/arm/boot/dts/sama5d31ek.dts | 24 arch/arm/boot/dts/sama5d33ek.dts | 24

[PATCH v2 0/7] drm: add support for Atmel HLCDC Display Controller

2014-06-09 Thread Boris BREZILLON
- add support for overlays - add support for hardware cursor Boris BREZILLON (7): mfd: add atmel-hlcdc driver pwm: add support for atmel-hlcdc-pwm device drm: add Atmel HLCDC Display Controller support ARM: AT91/dt: split sama5d3 lcd pin definitions to match RGB mode configs ARM: at91/dt

[PATCH v2 6/7] ARM: at91/dt: add LCD panel description to sama5d3xdm.dtsi

2014-06-09 Thread Boris BREZILLON
Add LCD panel related nodes (backlight, regulators and panel) to the sama5d3 Display Module dtsi. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- arch/arm/boot/dts/sama5d3xdm.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm

[PATCH v2 4/7] ARM: at91/dt: split sama5d3 lcd pin definitions to match RGB mode configs

2014-06-09 Thread Boris BREZILLON
The HLCDC (High LCD Controller) IP supports 4 different output mode (RGB444, RGB565, RGB666 and RGB888) and the pin muxing depends on the chosen RGB mode. Split the pin definition to be able to set the pin config according to the selected mode. Signed-off-by: Boris BREZILLON boris.brezil...@free

[PATCH v2 5/7] ARM: at91/dt: define the HLCDC node available on sama5d3 SoCs

2014-06-09 Thread Boris BREZILLON
Define the HLCDC (High LCD Controller) IP available on some sama5d3 SoCs (i.e. sama5d31, sama5d33, sama5d34 and sama5d36). Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- arch/arm/boot/dts/sama5d3_lcd.dtsi | 26 ++ 1 file changed, 26 insertions

Re: [RESEND2 PATCH v4 2/2] i2c: sunxi: add P2WI (Push/Pull 2 Wire Interface) controller support

2014-06-10 Thread Boris BREZILLON
Hello Wolfram, On 10/06/2014 10:38, Wolfram Sang wrote: On Tue, Jun 03, 2014 at 10:49:52AM +0200, Boris BREZILLON wrote: The P2WI looks like an SMBus controller which only supports byte data transfers. But, it differs from standard SMBus protocol on several aspects: - it supports only one

Re: [RESEND2 PATCH v4 2/2] i2c: sunxi: add P2WI (Push/Pull 2 Wire Interface) controller support

2014-06-10 Thread Boris BREZILLON
On 10/06/2014 10:54, Boris BREZILLON wrote: Hello Wolfram, On 10/06/2014 10:38, Wolfram Sang wrote: On Tue, Jun 03, 2014 at 10:49:52AM +0200, Boris BREZILLON wrote: The P2WI looks like an SMBus controller which only supports byte data transfers. But, it differs from standard SMBus protocol

Re: [PATCH v3 5/6] regulator: add support for regulator set registration

2014-06-10 Thread Boris BREZILLON
Hello Mark, Did you have time to take a look at this patch ? I'd like to post a new version of this series addressing Lee's comments, but it would be great to have your feedback on this patch before posting a new version. Best Regards, Boris On 27/05/2014 11:38, Boris BREZILLON wrote: PMIC

[PATCH v5 0/2] i2c: sunxi: add P2WI controller support

2014-06-10 Thread Boris BREZILLON
Changes since v3: - update the DT bindings doc - fix a comment that was no longer true Changes since v2: - drop the initialization (switch from I2C to P2WI mode) part - print devm_ioremap_resource err code Boris BREZILLON (2): i2c: sunxi: add P2WI DT bindings documentation i2c: sunxi: add P2WI

[PATCH v5 2/2] i2c: sunxi: add P2WI (Push/Pull 2 Wire Interface) controller support

2014-06-10 Thread Boris BREZILLON
-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- drivers/i2c/busses/Kconfig | 12 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-sun6i-p2wi.c | 356 3 files changed, 369 insertions(+) create mode 100644 drivers/i2c

[PATCH v5 1/2] i2c: sunxi: add P2WI DT bindings documentation

2014-06-10 Thread Boris BREZILLON
P2WI (Push/Pull 2 Wire Interface) is an SMBus like bus used to communicate with some PMICs (like the AXP221). Document P2WI DT bindings which are pretty much the same as the one defined for the marvell's mv64xxx controller. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com

Re: [RESEND2 PATCH v4 2/2] i2c: sunxi: add P2WI (Push/Pull 2 Wire Interface) controller support

2014-06-10 Thread Boris BREZILLON
Hello Paul, On 10/06/2014 10:56, Paul Carpenter wrote: Wolfram Sang wrote: On Tue, Jun 03, 2014 at 10:49:52AM +0200, Boris BREZILLON wrote: The P2WI looks like an SMBus controller which only supports byte data transfers. But, it differs from standard SMBus protocol on several aspects

[PATCH v2] rtc: rtc-at91rm9200: fix uninterruptible wait for ACKUPD

2014-05-07 Thread Boris BREZILLON
The rtc user must wait at least 1 sec between each time/calandar update (see atmel's datasheet chapter Updating Time/Calendar). Use the SECEV interrupt (as suggested by the datasheet) to wait for the RTC to be ready for new updates. Cc: sta...@vger.kernel.org # v3.10+ Signed-off-by: Boris

[PATCH v4 03/11] clk: at91: add slow clks driver

2014-05-07 Thread Boris BREZILLON
. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- Changes since v3: - add IGNORE_UNUSED flags to slow osc clks drivers/clk/at91/Makefile| 4 +- drivers/clk/at91/clk-slow.c | 467 +++ drivers/clk/at91/pmc.c | 5 + drivers

[PATCH v4 01/11] clk: at91: rework main clk implementation

2014-05-07 Thread Boris BREZILLON
families) the multiplexer source is hardcoded to the external crystal oscillator. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- Changes since v3: - add IGNORE_UNUSED flags to main osc clks drivers/clk/at91/clk-main.c | 577

[PATCH] ARM: at91: fix rtc irq mask for sam9x5 SoCs

2014-05-07 Thread Boris BREZILLON
The RTC IMR register is not reliable on sam9x5 SoCs, hence why me have to mask all interrupts no matter what IMR claims about already masked irqs. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com Reported-by: Bryan Evenson beven...@melinkcorp.com --- Hello Bryan, Yet another

Re: [PATCH 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-07 Thread Boris BREZILLON
On 29/04/2014 01:40, Maxime Ripard wrote: On Mon, Apr 28, 2014 at 04:58:48PM +0200, Boris BREZILLON wrote: The PRCM (Power/Reset/Clock Management) unit provides several clock devices: - AR100 clk: used to clock the Power Management co-processor - AHB0 clk: used to clock the AHB0 bus - APB0

[PATCH v2 7/7] ARM: sunxi: dt: add PRCM clk and reset controller subdevices

2014-05-07 Thread Boris BREZILLON
Add DT definitions for PRCM (Power/Reset/Clock Management) clock and reset controller subdevices. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- arch/arm/boot/dts/sun6i-a31.dtsi | 39 ++- 1 file changed, 38 insertions(+), 1 deletion

[PATCH v2 0/7] mfd: add basic sun6i A31 PRCM support

2014-05-07 Thread Boris BREZILLON
Changes since v1: - fix prcm and prcm-clks DT documentation - remove unneeded iounmap and kfree calls from sunxi_reset_remove function - rework the AR100 clk implementation Boris BREZILLON (7): reset: sunxi: document sunxi's reset controllers bindings reset: sunxi: allow MFD subdevices probe mfd

[PATCH v2 1/7] reset: sunxi: document sunxi's reset controllers bindings

2014-05-07 Thread Boris BREZILLON
Add DT bindings documentation for sunxi's reset controllers. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- .../bindings/reset/allwinner,sunxi-clock-reset.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 2/7] reset: sunxi: allow MFD subdevices probe

2014-05-07 Thread Boris BREZILLON
. Moreover, we can make of devm functions when we're in the probe context. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- drivers/reset/reset-sunxi.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/drivers/reset/reset-sunxi.c b

[PATCH v2 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-07 Thread Boris BREZILLON
so that they can be probed as platform devices instead of registered during early init. This is needed to be able to probe PRCM MFD subdevices. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- drivers/clk/sunxi/Makefile | 2 + drivers/clk/sunxi/clk-sun6i-prcm.c | 343

[PATCH v2 4/7] mfd: sun6i-prcm: document DT bindings

2014-05-07 Thread Boris BREZILLON
Document DT bindings of the PRCM (Power/Reset/Clock Management) unit. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- .../devicetree/bindings/mfd/sun6i-prcm.txt | 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentation

[PATCH v2 3/7] mfd: add support for sun6i PRCM (Power/Reset/Clock Management) unit

2014-05-07 Thread Boris BREZILLON
mode 100644 index 000..0156bcb --- /dev/null +++ b/drivers/mfd/sun6i-prcm.c @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2014 Free Electrons + * + * License Terms: GNU General Public License v2 + * Author: Boris BREZILLON boris.brezil...@free-electrons.com + * + * Allwinner PRCM (Power/Reset/Clock

[PATCH v2 6/7] clk: sunxi: document PRCM clock compatible strings

2014-05-07 Thread Boris BREZILLON
Document new compatible strings for clock provided by the PRCM (Power/Reset/Clock Management) unit. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/clock/sunxi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH v2 1/2] i2c: sunxi: add P2WI DT bindings documentation

2014-05-07 Thread Boris BREZILLON
P2WI (Push/Pull 2 Wire Interface) is an SMBus like bus used to communicate with some PMICs (like the AXP221). Document P2WI DT bindings which are pretty much the same as the one defined for the marvell's mv64xxx controller. Signed-off-by: Boris BREZILLON boris.brezil...@free-electrons.com

[PATCH v2 0/2] i2c: sunxi: add P2WI controller support

2014-05-07 Thread Boris BREZILLON
return check - rework the macro definitions - fix typos [1] http://www.spinics.net/lists/linux-i2c/msg15066.html [2] http://comments.gmane.org/gmane.comp.hardware.netbook.arm.sunxi/8947 Boris BREZILLON (2): i2c: sunxi: add P2WI DT bindings documentation i2c: sunxi: add P2WI (Push/Pull 2 Wire

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