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

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

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

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

Re: [PATCH] clocksource: at91/tc: remove deprecated IRQF_DISABLED

2013-10-13 Thread boris brezillon
Hello Micheal, This flag has been removed in a recent submission (see https://lkml.org/lkml/2013/10/2/202), and, if I'm correct, is on his way for mainlining. Best Regards, Boris On 13/10/2013 06:45, Michael Opdenacker wrote: This patch proposes to remove the use of the IRQF_DISABLED flag

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

2013-10-13 Thread Boris BREZILLON
be interrested by this series ? Best 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

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

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

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

2013-10-13 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| 92

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

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

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

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

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

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

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

2013-11-12 Thread Boris BREZILLON
This patch adds a new macro file for PMC macros. This macro file includes the definitions of SR (status register) bit offsets and will be use to reference PMC irqs. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- include/dt-bindings/clk

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

2013-11-12 Thread Boris BREZILLON
This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registration it is calculated using the slow clock (main clk parent in this case) rate and MCFR register. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked

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

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

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

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

[PATCH v5 08/17] clk: at91: add PMC system clocks

2013-11-12 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 v5 09/17] clk: at91: add PMC peripheral clocks

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

2013-11-12 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 Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- include/dt-bindings/clk/at91.h |6 ++ 1 file changed

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

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

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

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

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

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

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

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

[PATCH v5 15/17] dt: binding: add at91 clks dt bindings documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2013-11-17 Thread boris brezillon
Hello Mike, On 16/11/2013 01:50, Mike Turquette wrote: Quoting boris brezillon (2013-11-08 00:54:45) Hello Mike, On 08/11/2013 01:51, Mike Turquette wrote: Quoting Boris BREZILLON (2013-10-13 10:17:10) +/** + * clk_get_accuracy - return the accuracy of clk + * @clk: the clk whose accuracy

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

2013-11-17 Thread boris brezillon
On 17/11/2013 16:33, boris brezillon wrote: Hello Mike, On 16/11/2013 01:50, Mike Turquette wrote: Quoting boris brezillon (2013-11-08 00:54:45) Hello Mike, On 08/11/2013 01:51, Mike Turquette wrote: Quoting Boris BREZILLON (2013-10-13 10:17:10) +/** + * clk_get_accuracy - return

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

2013-11-18 Thread boris brezillon
On 28/08/2013 13:03, Boris BREZILLON wrote: Add ethernet phy node in at91rm9200ek.dts. The reg register is not specified, as it may differ depending on the init process of the board: ADDR0/1 phy pins are connected to PA13/14 rm9200 pins. Which means the phy will take its address from these pins

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

2013-11-18 Thread boris brezillon
, Mike Turquette wrote: Quoting Boris BREZILLON (2013-10-13 10:17:10) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 73bdb69..942811d 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h ... @@ -194,6 +204,7 @@ struct clk_hw { struct

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

2013-11-20 Thread boris brezillon
On 20/11/2013 15:57, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:04 Wed 28 Aug , Boris BREZILLON wrote: Add vbus and pullup pinctrl definitions. Request the vbus and pullup pins in usb1 node. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200ek.dts

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

2013-11-20 Thread boris brezillon
On 20/11/2013 15:56, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:02 Wed 28 Aug , Boris BREZILLON wrote: Add spi0 cs pinctrl pins definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200.dtsi | 20 1 file changed, 20

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

2013-11-20 Thread boris brezillon
On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi

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

2013-11-20 Thread boris brezillon
On 20/11/2013 16:01, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:08 Wed 28 Aug , Boris BREZILLON wrote: Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts

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

2013-11-20 Thread boris brezillon
On 20/11/2013 16:59, boris brezillon wrote: On 20/11/2013 15:56, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:02 Wed 28 Aug , Boris BREZILLON wrote: Add spi0 cs pinctrl pins definitions. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- arch/arm/boot/dts/at91rm9200.dtsi | 20

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

2013-11-20 Thread boris brezillon
On 20/11/2013 16:02, Jean-Christophe PLAGNIOL-VILLARD wrote: On 14:37 Wed 28 Aug , Boris BREZILLON wrote: Add a new at91rm9200ek_mmc board (based on at91rm9200ek board) which enables mmc0/slot0. no for multiple dts this need to handle at user space level You mean, by controlling

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

2013-11-21 Thread boris brezillon
Hi Linus, On 21/11/2013 10:48, Linus Walleij wrote: On Wed, Nov 20, 2013 at 5:14 PM, boris brezillon b.brezil...@overkiz.com wrote: On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: mmc0_slot0_switch-0

[PATCH 2/3] usb: ohci-at91: replace request_mem_region + ioremap by devm_request_and_ioremap

2013-12-03 Thread Boris BREZILLON
Replace the request_mem_region + ioremap calls by the devm_request_and_ioremap call which does the same things but with device managed resources. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Tested-by: Robert Nelson robertcnel...@gmail.com --- drivers/usb/host/ohci-at91.c | 24

[PATCH 1/3] usb: ohci-at91: fix irq and iomem resource retrieval

2013-12-03 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com Tested-by: Robert Nelson robertcnel...@gmail.com --- drivers/usb/host/ohci-at91.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 418444e..7aec6ca

[PATCH 0/3] usb: ohci-at91: various fixes and improvements

2013-12-03 Thread Boris BREZILLON
, Boris Boris BREZILLON (3): usb: ohci-at91: fix irq and iomem resource retrieval usb: ohci-at91: replace request_mem_region + ioremap by devm_request_and_ioremap usb: ohci-at91: use device managed clk retrieval drivers/usb/host/ohci-at91.c | 75

[PATCH 3/3] usb: ohci-at91: use device managed clk retrieval

2013-12-03 Thread Boris BREZILLON
Replace clk_get calls by devm_clk_get calls. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Tested-by: Robert Nelson robertcnel...@gmail.com --- drivers/usb/host/ohci-at91.c | 32 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/drivers

Re: [PATCH 3/3] usb: ohci-at91: use device managed clk retrieval

2013-12-03 Thread boris brezillon
Hello Sergei, On 03/12/2013 19:01, Sergei Shtylyov wrote: Hello. On 12/03/2013 05:07 PM, Boris BREZILLON wrote: Replace clk_get calls by devm_clk_get calls. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Tested-by: Robert Nelson robertcnel...@gmail.com --- drivers/usb/host/ohci

[PATCH v2 2/4] usb: ohci-at91: replace request_mem_region + ioremap by devm_request_and_ioremap

2013-12-03 Thread Boris BREZILLON
Replace the request_mem_region + ioremap calls by the devm_request_and_ioremap call which does the same things but with device managed resources. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/usb/host/ohci-at91.c | 24

[PATCH v2 1/4] usb: ohci-at91: fix irq and iomem resource retrieval

2013-12-03 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/usb/host/ohci-at91.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 418444e

[PATCH v2 3/4] usb: ohci-at91: use dev variable instead of pdev-dev

2013-12-03 Thread Boris BREZILLON
Make use of the dev variable instead of referencing the dev field of the pdev struct. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/usb/host/ohci-at91.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions

[PATCH v2 4/4] usb: ohci-at91: use device managed clk retrieval

2013-12-03 Thread Boris BREZILLON
Replace clk_get calls by devm_clk_get calls. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- drivers/usb/host/ohci-at91.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/usb

[PATCH v2 0/4] usb: ohci-at91: various fixes and improvements

2013-12-03 Thread Boris BREZILLON
, Boris Changes since v1: - split PATCH 3 in 2 different patches: one to remove references to pdev-dev, the other to make use of devm_clk_get - replace forgotten pdev-dev references in usb_hcd_at91_probe Boris BREZILLON (4): usb: ohci-at91: fix irq and iomem resource retrieval usb: ohci

Re: [PATCH 3/3] usb: ohci-at91: use device managed clk retrieval

2013-12-04 Thread boris brezillon
Hello Alan, On 03/12/2013 16:32, Alan Stern wrote: On Tue, 3 Dec 2013, Nicolas Ferre wrote: On 03/12/2013 15:07, Boris BREZILLON : Replace clk_get calls by devm_clk_get calls. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Tested-by: Robert Nelson robertcnel...@gmail.com Acked

[PATCH v3] usb: ohci-at91: fix irq and iomem resource retrieval

2013-12-05 Thread Boris BREZILLON
-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Alan Stern st...@rowland.harvard.edu --- Changes since v2: - split the patch series to isolate the urgent fix provided by this patch Changes since v1: - none drivers/usb/host/ohci-at91.c

[PATCH v3 0/3] usb: ohci-at91: various improvements

2013-12-05 Thread Boris BREZILLON
Hello, This patch series moves the different driver resources (clks and iomem) retrieval to the device managed versions (devm_ functions). Best Regards, Boris Changes since v2: - split urgent fix and resource retrieval improvements Boris BREZILLON (3): usb: ohci-at91: replace

[PATCH v3 2/3] usb: ohci-at91: use dev variable instead of pdev-dev

2013-12-05 Thread Boris BREZILLON
Make use of the dev variable instead of referencing the dev field of the pdev struct. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Alan Stern st...@rowland.harvard.edu --- drivers/usb/host/ohci-at91.c | 18

[PATCH v3 3/3] usb: ohci-at91: use device managed clk retrieval

2013-12-05 Thread Boris BREZILLON
Replace clk_get calls by devm_clk_get calls. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Alan Stern st...@rowland.harvard.edu --- drivers/usb/host/ohci-at91.c | 30 +++--- 1 file changed, 7

[PATCH v3 1/3] usb: ohci-at91: replace request_mem_region + ioremap by devm_request_and_ioremap

2013-12-05 Thread Boris BREZILLON
Replace the request_mem_region + ioremap calls by the devm_request_and_ioremap call which does the same things but with device managed resources. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Alan Stern st

Re: [RFC PATCH v2 04/14] mtd: nand: define struct nand_timings

2014-03-12 Thread Boris BREZILLON
Le 11/03/2014 19:55, Jason Gunthorpe a écrit : On Mon, Mar 10, 2014 at 02:44:04PM +0100, Boris BREZILLON wrote: Some timings are missing here (see Table 55 in the ONFI spec): Right.. The 'mode' covers only the raw electrical parameters needed to exchange commands, other timings cover

[PATCH v3 4/9] of: mtd: add documentation for the ONFI NAND timing mode property

2014-03-12 Thread Boris BREZILLON
Add documentation for the ONFI NAND timing mode property. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- Documentation/devicetree/bindings/mtd/nand.txt |8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/nand.txt b/Documentation

[PATCH v3 9/9] ARM: sunxi/dt: enable NAND on cubietruck board

2014-03-12 Thread Boris BREZILLON
Enable the NFC and describe the NAND flash connected to this controller. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b

[PATCH v3 5/9] mtd: nand: add sunxi NAND flash controller support

2014-03-12 Thread Boris BREZILLON
Add support for the sunxi NAND Flash Controller (NFC). Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/Kconfig |6 + drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/sunxi_nand.c | 1276 + 3 files changed

[PATCH v3 6/9] mtd: nand: add sunxi NFC dt bindings doc

2014-03-12 Thread Boris BREZILLON
Add the sunxi NAND Flash Controller dt bindings documentation. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- .../devicetree/bindings/mtd/sunxi-nand.txt | 48 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd

[PATCH v3 8/9] ARM: dt/sunxi: add A20 NAND controller pin definitions

2014-03-12 Thread Boris BREZILLON
Define the NAND controller pin configs. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- arch/arm/boot/dts/sun7i-a20.dtsi | 80 ++ 1 file changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v3 7/9] ARM: dt/sunxi: add NFC node to Allwinner A20 SoC

2014-03-12 Thread Boris BREZILLON
Add NAND Flash controller node definition to the A20 SoC. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index

[PATCH v3 2/9] mtd: nand: add ONFI timing mode to nand_timings converter

2014-03-12 Thread Boris BREZILLON
Add a converter to retrieve NAND timings from an ONFI NAND timing mode. This only support SDR NAND timings for now. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/Makefile |2 +- drivers/mtd/nand/nand_timings.c | 248

[PATCH v3 3/9] of: mtd: add NAND timing mode retrieval support

2014-03-12 Thread Boris BREZILLON
Add a function to retrieve NAND timing mode (ONFI timing mode) from a given DT node. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/of/of_mtd.c| 19 +++ include/linux/of_mtd.h |8 2 files changed, 27 insertions(+) diff --git a/drivers

[PATCH v3 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-03-12 Thread Boris BREZILLON
mode instead of raw timings) - add nand-ecc-level property to specify NAND ECC requirements from DT Boris BREZILLON (9): mtd: nand: define struct nand_timings mtd: nand: add ONFI timing mode to nand_timings converter of: mtd: add NAND timing mode retrieval support of: mtd: add

[PATCH v3 1/9] mtd: nand: define struct nand_timings

2014-03-12 Thread Boris BREZILLON
Define a struct containing the standard NAND timings as described in NAND datasheets. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- include/linux/mtd/nand.h | 49 ++ 1 file changed, 49 insertions(+) diff --git a/include/linux/mtd

Re: [PATCH v3 4/9] of: mtd: add documentation for the ONFI NAND timing mode property

2014-03-12 Thread Boris BREZILLON
Le 12/03/2014 19:27, Warner Losh a écrit : On Mar 12, 2014, at 12:07 PM, Boris BREZILLON b.brezillon@gmail.com wrote: Add documentation for the ONFI NAND timing mode property. I don’t see a Toggle/JEDEC mode timing property. Will that be defined for Toshiba, Samsung and San Disk flash

Re: [PATCH] pinctrl: at91: add the config GPIO_OUTPUT_x

2014-03-13 Thread Boris BREZILLON
Le 13/03/2014 07:00, Yang, Wenyou a écrit : Hi JC, -Original Message- From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagn...@jcrosoft.com] Sent: Tuesday, March 11, 2014 7:14 PM To: Yang, Wenyou Cc: Jean-Christophe PLAGNIOL-VILLARD; mark.rutl...@arm.com; devicet...@vger.kernel.org;

Re: [PATCH 6/8] ASoC: atmel: support CCF based clks

2014-03-17 Thread Boris BREZILLON
Le 17/03/2014 10:45, Bo Shen a écrit : From: Boris BREZILLON b.brezil...@overkiz.com Provide dev to clk_get function if we're using CCF based clks. CCF based prog clks support automatic parent selection when asking for a specific rate: remove the clk32k clk retrieval if we're using these clks

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Boris BREZILLON
Le 17/03/2014 11:48, Mark Rutland a écrit : On Mon, Mar 17, 2014 at 10:18:08AM +, boris brezillon wrote: Hello Mark, Le 17/03/2014 11:02, Mark Rutland a écrit : On Mon, Mar 17, 2014 at 09:45:40AM +, Bo Shen wrote: From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris

Re: [PATCH v5 3/9] at91: pinctrl: don't request GPIOs used for interrupts but lock them as IRQ

2014-03-17 Thread Boris BREZILLON
Le 17/03/2014 12:14, Jean-Jacques Hiblot a écrit : Hi Boris, Sorry for being late, I was on vacation. Yes this patch can be dropped from the serie. That's fine, Nicolas dropped it ;-). 2014-03-12 13:59 GMT+01:00 Boris BREZILLON b.brezillon@gmail.com: Hi JJ, IIRC this patch

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread Boris BREZILLON
Hello Mark, Le 17/03/2014 12:55, Mark Brown a écrit : On Mon, Mar 17, 2014 at 05:45:40PM +0800, Bo Shen wrote: - compatible: atmel,asoc-wm8904 - atmel,model: The user-visible name of this sound complex. + - clocks: A list of clocks needed by the wm8904 chip. + - clock-output-names:

Re: [PATCH 7/8] ASoC: atmel: document clock properties of the wm8904 driver

2014-03-17 Thread boris brezillon
Hello Mark, Le 17/03/2014 11:02, Mark Rutland a écrit : On Mon, Mar 17, 2014 at 09:45:40AM +, Bo Shen wrote: From: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Bo Shen voice.s...@atmel.com --- Documentation/devicetree

[RFC PATCH 2/2] mtd: nand: add hynix specific initializer

2014-02-24 Thread Boris BREZILLON
Add an hynix initializer to manage read retries on h27uxgt8t2a chips. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/Makefile |2 +- drivers/mtd/nand/nand_hynix.c | 151 + drivers/mtd/nand/nand_ids.c |3

[RFC PATCH 1/2] mtd: nand: add manufacturer specific init infrastructure

2014-02-24 Thread Boris BREZILLON
Add new fields in nand_manufacturers and nand_chip struct to provide manufacturer specific handling like read retries. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- drivers/mtd/nand/nand_base.c |7 +++ include/linux/mtd/nand.h |4 2 files changed, 11

[RFC PATCH 0/2] mtd: nand: add manafacturer specific handling

2014-02-24 Thread Boris BREZILLON
implementations (see http://permalink.gmane.org/gmane.linux.drivers.mtd/50603), so please tell if I'm wrong. Best Regards, Boris Boris BREZILLON (2): mtd: nand: add manufacturer specific init infrastructure mtd: nand: add hynix specific initializer drivers/mtd/nand/Makefile |2 +- drivers/mtd

Re: [PATCH] clk:at91: Fix memory leak in of_at91_clk_master_setup()

2014-02-27 Thread Boris BREZILLON
On 27/02/2014 03:02, Mike Turquette wrote: Quoting Boris BREZILLON (2014-02-15 09:08:12) Hi Mike, Could you take this patch for the next 3.14 release ? Taken in for the next batch of fixes. Thanks. Regards, Mike Best Regards, Boris On 11/02/2014 14:18, Boris BREZILLON wrote: On 11/02

Re: [PATCH v2 2/4] clk: at91: propagate rate change on system clks

2014-02-27 Thread Boris BREZILLON
Hi Mike, On 27/02/2014 01:42, Mike Turquette wrote: Quoting Jean-Jacques Hiblot (2014-02-05 00:37:36) From: Boris BREZILLON b.brezil...@overkiz.com System clks are just gates, and thus do not provide any rate operations. Authorize clk rate change to be propagated to system clk parents

Re: [linux-sunxi] Re: [RFC PATCH v2 08/14] mtd: nand: add sunxi NAND flash controller support

2014-03-10 Thread Boris BREZILLON
Hello Jason, Le 29/01/2014 20:10, Jason Gunthorpe a écrit : On Wed, Jan 29, 2014 at 03:46:20PM -0300, Ezequiel Garcia wrote: After CE# has been pulled high and then transitioned low again, the host should issue a Set Features to select the appropriate asynchronous timing mode. Oh, I had

Re: [RFC PATCH v2 04/14] mtd: nand: define struct nand_timings

2014-03-10 Thread Boris BREZILLON
Hello, Le 29/01/2014 15:34, Boris BREZILLON a écrit : Define a struct containing the standard NAND timings as described in NAND datasheets. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- include/linux/mtd/nand.h | 49 ++ 1 file

[PATCH v3 2/4] clk: at91: propagate rate change on system clks

2014-03-11 Thread Boris BREZILLON
From: Boris BREZILLON b.brezil...@overkiz.com System clks are just gates, and thus do not provide any rate operations. Authorize clk rate change to be propagated to system clk parents. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/clk-system.c |2 +- 1 file

[PATCH v3 0/4] clk: at91: better support for the PCKs

2014-03-11 Thread Boris BREZILLON
From: Boris BREZILLON b.brezil...@overkiz.com This serie implements a better support for the Programmable Clocks. The first two patch are related to changing the rate of the PCKs. The 3rd patch is a fix to handle properly the PCKRDY interrupt. The last patch is a small optimzation/simplification

[PATCH v3 4/4] clk: at91: optimization of the set_rate callback

2014-03-11 Thread Boris BREZILLON
From: Jean-Jacques Hiblot jjhib...@traphandler.com Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Jean-Jacques Hiblot jjhib...@traphandler.com --- drivers/clk/at91/clk-programmable.c | 38 --- 1 file changed, 8 insertions(+), 30 deletions

[PATCH v3 3/4] clk: at91: fix programmable clk irq handling

2014-03-11 Thread Boris BREZILLON
From: Jean-Jacques Hiblot jjhib...@traphandler.com The PCKRDY bit is not set until the system clock is enabled. This patch moves the management of the ready status in the system clock driver. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com Signed-off-by: Jean-Jacques Hiblot jjhib

[PATCH v3 1/4] clk: at91: replace prog clk round_rate with determine_rate

2014-03-11 Thread Boris BREZILLON
From: Boris BREZILLON b.brezil...@overkiz.com Implement the determine_rate callback to choose the best parent clk that fulfills the requested rate. Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com --- drivers/clk/at91/clk-programmable.c | 56 +-- 1 file

Re: [PATCHv5 0/9] Device tree support for the at91sam9rlek

2014-03-12 Thread Boris BREZILLON
at91sam9rl clocks ARM: at91/dt: define main clk frequency of at91sam9rlek ARM: at91: switch sam9rl to common clock framework Boris BREZILLON (1): ARM: at91: prepare sam9 dt boards transition to common clk The series seems ready for inclusion. I stack the whole series on our at91-3.15-cleanup

Re: [PATCHv5 0/9] Device tree support for the at91sam9rlek

2014-03-12 Thread Boris BREZILLON
Le 12/03/2014 11:21, Boris BREZILLON a écrit : Le 12/03/2014 11:13, Nicolas Ferre a écrit : On 12/03/2014 10:43, Alexandre Belloni : This series adds DT support for the at91sam9rl SoC, then the at91sam9rl-ek evaluation board. While the at91sam9rl dtsi should be almost complete (still missing

[PATCH] net: macb: set interface name based on DT aliases

2014-03-12 Thread Boris BREZILLON
Use aliases to set the interface name (ethX) instead of automatic assignement. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- Hello Nicolas, Jean-Christophe, This is an example on how we could set the ethernet interface id based on DT aliases. As you can see this patch

[PATCH] net: macb: set interface name based on DT aliases

2014-03-12 Thread Boris BREZILLON
Use aliases to set the interface name (ethX) instead of automatic assignement. Signed-off-by: Boris BREZILLON b.brezillon@gmail.com --- Hello Nicolas, Jean-Christophe, This is an example on how we could set the ethernet interface id based on DT aliases. As you can see this patch

Re: [PATCH v5 3/9] at91: pinctrl: don't request GPIOs used for interrupts but lock them as IRQ

2014-03-12 Thread Boris BREZILLON
Hi JJ, IIRC this patch was necessary for the DM9000 device, which is not defined in this series anymore. And, correct me if I'm wrong, but there's still a discussion about how this should be fixed properly (https://lkml.org/lkml/2014/2/25/388). As a result, shouldn't we remove this patch from

Re: [PATCH v2 07/12] at91: dt: smc: Added smc bus driver

2014-01-11 Thread boris brezillon
On 09/01/2014 22:04, Jean-Jacques Hiblot wrote: Hi Boris, 2014/1/9 boris brezillon b.brezil...@overkiz.com: Hello JJ, On 09/01/2014 13:31, Jean-Jacques Hiblot wrote: The EBI/SMC external interface is used to access external peripherals (NAND and Ethernet controller in the case of sam9261ek

Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-11 Thread boris brezillon
On 08/01/2014 15:21, Boris BREZILLON wrote: Hello, This series add the sunxi NFC support with up to 8 NAND chip connected. I'm still in the early stages drivers development and some key features are missing, but it's usable (I tested it on the cubietruck board). Here's what's missing: - HW

Re: [linux-sunxi] Re: [RFC PATCH 0/9] mtd: nand: add sunxi NAND Flash Controller support

2014-01-13 Thread boris brezillon
Hi Henrik, On 11/01/2014 22:11, Henrik Nordström wrote: bbrezillon thanks for pointing out your documents bbrezillon I'm trying to get the NAND driver with HW ECC (and HW RND) without using DMA at all I tried many things but did not quite get the ECC reading command to return meaningful

Re: [RFC PATCH v2 0/4] mtd: nand: add per partition ECC config

2014-02-13 Thread Boris BREZILLON
On 12/02/2014 23:43, Florian Fainelli wrote: 2014-02-12 13:20 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hi Florian, On 12/02/2014 20:49, Florian Fainelli wrote: Hi Boris, 2014-02-11 13:46 GMT-08:00 Boris BREZILLON b.brezillon@gmail.com: Hello, This patch series

Re: [PATCH] clk:at91: Fix memory leak in of_at91_clk_master_setup()

2014-02-15 Thread Boris BREZILLON
Hi Mike, Could you take this patch for the next 3.14 release ? Best Regards, Boris On 11/02/2014 14:18, Boris BREZILLON wrote: On 11/02/2014 14:15, Masanari Iida wrote: cppcheck detected following error [clk-master.c:245]: (error) Memory leak: characteristics The original code forgot

Re: [PATCHv2 1/8] ARM: at91: Add at91sam9rl DT SoC support

2014-02-19 Thread Boris BREZILLON
Hi Alexandre, On 19/02/2014 16:32, Alexandre Belloni wrote: This adds preliminary DT support for the at91sam9rl. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9rl.dtsi | 628 ++

Re: [PATCHv2 1/8] ARM: at91: Add at91sam9rl DT SoC support

2014-02-19 Thread Boris BREZILLON
you think ? and the board won't boot up if the one of the 2 patches is missing. That's not exactly true: if you add the clk lookup entries and then add at91sam9rl DT support, the board will boot as expected. Jean-Jacques 2014-02-19 17:01 GMT+01:00 Boris BREZILLON b.brezil...@overkiz.com

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