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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: [PATCH v3 00/19] ARM: at91: move to common clk framework

2013-08-20 Thread boris brezillon
l 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 (19): ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h ARM: at91: add Kconfig options for common clk su

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

2013-08-22 Thread boris brezillon
Hello Chris, Could you take this patch ? It has been acked by Ludovic, and I need it in order to gracefully handle at91's SoCs migration to common clk framework. Thanks. Best Regards, Boris On 18/07/2013 09:38, Boris BREZILLON wrote: Replace clk_enable/disable with clk_prepare_e

[RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Boris BREZILLON
uring out what I should use to implement my fallback ? 1) use the register/unregister/register sequence 2) reimplement the "for (i = 0; i < PHY_MAX_ADDR; i++)" mdiobus_scan loop Thanks. Best Regards, Boris Boris BREZILLON (1): phylib: mdio: handle register/unregister/register sequ

[RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Boris BREZILLON
h replaces the device_register call with device_add in mdiobus_register and move the device struct initialization in the mdiobus_alloc_size function. Thus the device struct is only initialized once. Signed-off-by: Boris BREZILLON --- drivers/net/phy/mdio_bus.c |6 -- 1 file changed, 4

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
Hello Florian, Thanks for your answer. On 22/08/2013 14:43, Florian Fainelli wrote: Hello Boris, 2013/8/22 Boris BREZILLON : Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I use the register/unregister/register sequence to add a

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 15:15, Florian Fainelli wrote: 2013/8/22 boris brezillon : Hello Florian, Thanks for your answer. On 22/08/2013 14:43, Florian Fainelli wrote: Hello Boris, 2013/8/22 Boris BREZILLON : Hello, This patch is a proposal to support the register/unregister/register sequence on a

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 14:33, Boris BREZILLON wrote: Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I forgot to ask, if this limitation was made on purpose ? In other terms: no one should ever try to register, unregister and register again a

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread boris brezillon
On 22/08/2013 17:27, Greg Kroah-Hartman wrote: On Thu, Aug 22, 2013 at 02:33:56PM +0200, Boris BREZILLON wrote: Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I use the register/unregister/register sequence to add a fallback when the

[PATCH 2/2] ARM: at91/dt: define phy available on sama5d3 mother board

2013-08-22 Thread Boris BREZILLON
This patch describe the phy used on atmel sama5d3 mother board: - phy address - phy interrupt pin Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xmb.dtsi |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xmb.dtsi b/arch/arm/boot/dts

Re: [PATCH 1/2] net/cadence/macb: add support for dt phy definition

2013-08-22 Thread boris brezillon
Hello Florian, On 22/08/2013 17:57, Boris BREZILLON wrote: The macb driver only handle PHY description through platform_data (macb_platform_data). Thus, when using dt you cannot define phy properties like phy address or phy irq pin. This patch makes use of the of_mdiobus_register to add

[PATCH 0/2] net/cadence/macb: add support for dt phy definition

2013-08-22 Thread Boris BREZILLON
Hello, This patch series adds support for ethernet phy definition using device tree. This may help in moving some at91 boards to dt (some of them define an interrupt pin). Tested on samad31ek. Best Regards, Boris Boris BREZILLON (2): net/cadence/macb: add support for dt phy definition ARM

[PATCH 1/2] net/cadence/macb: add support for dt phy definition

2013-08-22 Thread Boris BREZILLON
autoscan procedure is added in case there is no phy devices defined in dt. Signed-off-by: Boris BREZILLON --- drivers/net/ethernet/cadence/macb.c | 41 +-- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net

[PATCH] net/cadence/macb: fix kernel Oops if no PHY were discovered during probe

2013-08-24 Thread Boris BREZILLON
Test the presence of a PHY device before printing attached PHY informations. Signed-off-by: Boris BREZILLON --- drivers/net/ethernet/cadence/macb.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence

[PATCH] ARM: at91/dt: split sama5d3 definition

2013-08-07 Thread Boris BREZILLON
s a better representation of the real hardware (drop unneed dt nodes) and avoids peripheral id conflict (which is not the case for current sama5d3 SoCs, but could be if other SoCs of this family are released). Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3.dtsi

Re: [PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-07 Thread boris brezillon
Hello Richard, On 07/08/2013 12:38, Richard Genoud wrote: 2013/8/7 Boris BREZILLON : This patch splits the sam9x5 peripheral definitions into: - a common base for all sam9x5 SoCs (at91sam9x5.dtsi) - several optional peripheral definitions which will be included by specific sam9x5 SoCs

[PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-07 Thread Boris BREZILLON
l hardware (drop unneeded dt nodes) and avoids future peripheral id conflict (lcdc and isi both use peripheral id 25). Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/at91sam9g25.dtsi |2 + arch/arm/boot/dts/at91sam9g35.dtsi |1 + arch/arm/boot/dts/at91sam9x25.dtsi

[PATCH] ARM: at91: add missing uart clocks DT entries

2013-08-07 Thread Boris BREZILLON
Add clocks to clock lookup table for uart DT entries. Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/at91sam9x5.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm/mach-at91/at91sam9x5.c index 2abee66..916e5a1 100644 --- a/arch/arm/mach

Re: [PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-07 Thread boris brezillon
Hello Thomas, Sorry for the noise, this mail was filtered by LKML and LAKML beacause thunderbird added HTML contents. On 07/08/2013 18:08, Thomas Petazzoni wrote: Dear Boris BREZILLON, On Wed, 7 Aug 2013 12:14:26 +0200, Boris BREZILLON wrote: This patch splits the sam9x5 peripheral

Re: [PATCH 1/8] ARM: at91: move peripheral id definitions to dt-bindings include dir

2013-08-07 Thread boris brezillon
Hello Arnd, On 07/08/2013 22:24, Arnd Bergmann wrote: On Thursday 01 August 2013, Boris BREZILLON wrote: This patch moves peripheral id definitions from machine specific include dir (arch/arm/mach-at91/include/mach/'soc-name'.h) to dt-bindinds include dir (include/dt-bindings/at91

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

2013-08-07 Thread boris brezillon
On 07/08/2013 20:59, Linus Walleij wrote: On Sat, Jul 20, 2013 at 4:51 PM, Boris BREZILLON wrote: The current implementation handle both edge and level interrupts with the 'handle_simple_irq' handler. Level interrupts are active as long as the pin stays at the configured level (l

[PATCH v3 00/19] ARM: at91: move to common clk framework

2013-08-07 Thread Boris BREZILLON
(1 master node and multiple child nodes each defining a system/peripheral or prog clock) - fix bugs in sama5 dt definition Boris BREZILLON (19): ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h ARM: at91: add Kconfig options for common clk support clk: at91: add PMC base

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

2013-08-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_pmc.h). We need this to avoid reference to machine specific headers in clk drivers. Signed-off-by: Boris BREZILLON --- arch/arm/mach

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

2013-08-07 Thread Boris BREZILLON
w clk implementation. These SoCs won't setup the register_clocks callback (clk registration is done using of_clk_init). Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/Kconfig| 21 + arch/arm/mach-at91/Kconfig.non_dt |6 ++ arch/arm/mach-at9

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

2013-08-07 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 --- drivers/clk/Makefile |1 + drivers/clk/at91

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

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

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

2013-08-07 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 --- include/dt-bindings/clk/at91/common/pmc.h | 20 1 file changed, 20

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

2013-08-07 Thread Boris BREZILLON
Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 +- drivers/clk/at91/clk-pll.c| 506 + drivers/clk/at91/clk-plldiv.c | 137 +++ drivers/clk/at91/pmc.c| 21 ++ drivers/clk/at91/pmc.h| 11 + in

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

2013-08-07 Thread Boris BREZILLON
This patch adds the PLL id macros which will be used by pll dt definitions. Signed-off-by: Boris BREZILLON --- include/dt-bindings/clk/at91/common/clk-pll.h | 13 + 1 file changed, 13 insertions(+) create mode 100644 include/dt-bindings/clk/at91/common/clk-pll.h diff --git a

[PATCH v3 08/19] clk: at91: add PMC master clock

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

[PATCH v3 09/19] clk: at91: add PMC system clocks

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

[PATCH v3 10/19] ARM: at91/dt: add system clk id definitions in dt-bindings include dir

2013-08-07 Thread Boris BREZILLON
This patch adds system clk ids definitions into dt-bindinds include dir (include/dt-bindings/clk/at91/'soc-name'/system-clk.h). These definitions will be used by dt definition to define and reference system clks. Signed-off-by: Boris BREZILLON --- .../dt-bindings/clk/at91/at91

[PATCH v3 11/19] clk: at91: add PMC peripheral clocks

2013-08-07 Thread Boris BREZILLON
ed 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 --- drivers/clk

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

2013-08-08 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 --- .../clk/at91/at91sam9x5/clk-peripheral.h | 15 +++ 1 file changed, 15 insertions(+) create mode 100644

[PATCH v3 13/19] clk: at91: add PMC programmable clocks

2013-08-08 Thread Boris BREZILLON
(see atmel's datasheets). Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile |2 + drivers/clk/at91/clk-programmable.c | 419 +++ drivers/clk/at91/pmc.c | 15 ++ drivers/clk/at91/pmc.h |9 + 4 files ch

[PATCH v3 14/19] clk: at91: add PMC utmi clock

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

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

2013-08-08 Thread Boris BREZILLON
This patch adds new at91 clks dt bindings documentation. Signed-off-by: Boris BREZILLON --- .../devicetree/bindings/clock/at91-clock.txt | 312 1 file changed, 312 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/at91-clock.txt diff --git a

[PATCH v3 16/19] clk: at91: add PMC smd clock

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

[PATCH v3 15/19] clk: at91: add PMC usb clock

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

[PATCH v3 18/19] ARM: at91: move pit timer to common clk framework

2013-08-08 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 | 14 +- 1

[PATCH v3 19/19] ARM: at91: add new compatible strings for pmc driver

2013-08-08 Thread Boris BREZILLON
). Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/clock.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c index 5f02aea..4d4463a 100644 --- a/arch/arm/mach-at91/clock.c +++ b/arch/arm/mach-at91/clock.c @@ -884,6 +884,12

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

2013-08-08 Thread Boris BREZILLON
ed in this order): 1) "ARM: at91/dt: split sama5d3 definition" (v1) 2) "ARM: at91/dt: make use of periph id macros" (v2, not submitted yet) 3) "ARM: at91: move to common clk framework" (v3) I will answer to this mail and join this patch series' dependencies in attach

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

2013-08-08 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 --- arch/arm/mach-at91/board-dt-sama5.c | 10 +- 1 file changed

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

2013-08-08 Thread Boris BREZILLON
Define the main clock frequency for the new main clock node in sama5d3xcm.dtsi. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xcm.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xcm.dtsi b/arch/arm/boot/dts/sama5d3xcm.dtsi index 6a1871b

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

2013-08-08 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3.dtsi | 331 ++- arch/arm/boot/dts/sama5d3_can.dtsi | 19 ++ arch/arm/boot/dts

[PATCH 6/6] ARM: at91/dt: remove old main clk definition from sama5d3xcm.dtsi

2013-08-08 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. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xcm.dtsi | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch

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

2013-08-08 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 --- arch/arm/mach-at91/Kconfig |1 - 1 file changed, 1

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

2013-08-08 Thread Boris BREZILLON
This patch enclose sama5d3 old clk registration in "#if defined(CONFIG_OLD_CLK_AT91) #endif" sections. Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/sama5d3.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/sama5d3.c b/arch/arm

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

2013-08-08 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 --- arch/arm/mach-at91/board-dt-sama5.c | 10 +- 1 file changed

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

2013-08-08 Thread Boris BREZILLON
This patch enclose sama5d3 old clk registration in "#if defined(CONFIG_OLD_CLK_AT91) #endif" sections. Signed-off-by: Boris BREZILLON --- arch/arm/mach-at91/sama5d3.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/sama5d3.c b/arch/arm

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

2013-08-08 Thread Boris BREZILLON
Define sama5d3 clocks in sama5d3 device tree. Add references to the appropriate clocks in each peripheral. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3.dtsi | 331 ++- arch/arm/boot/dts/sama5d3_can.dtsi | 19 ++ arch/arm/boot/dts

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

2013-08-08 Thread Boris BREZILLON
Define the main clock frequency for the new main clock node in sama5d3xcm.dtsi. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xcm.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3xcm.dtsi b/arch/arm/boot/dts/sama5d3xcm.dtsi index 6a1871b

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

2013-08-08 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 --- arch/arm/mach-at91/Kconfig |1 - 1 file changed, 1

[PATCH 6/6] ARM: at91/dt: remove old main clk definition from sama5d3xcm.dtsi

2013-08-08 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. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sama5d3xcm.dtsi | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch

Re: [PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-08 Thread boris brezillon
Hello Jean-Christophe, On 08/08/2013 16:07, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:14 Wed 07 Aug , Boris BREZILLON wrote: This patch splits the sam9x5 peripheral definitions into: - a common base for all sam9x5 SoCs (at91sam9x5.dtsi) - several optional peripheral definitions which

Re: [PATCH] ARM: at91/dt: split sam9x5 peripheral definitions

2013-08-08 Thread boris brezillon
On 08/08/2013 17:23, boris brezillon wrote: Hello Jean-Christophe, On 08/08/2013 16:07, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:14 Wed 07 Aug , Boris BREZILLON wrote: This patch splits the sam9x5 peripheral definitions into: - a common base for all sam9x5 SoCs (at91sam9x5.dtsi

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

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

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

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

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

2013-07-20 Thread Boris BREZILLON
e handle has treated it. Signed-off-by: Boris BREZILLON --- 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 --- arch

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 the

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

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

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

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

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

2013-07-26 Thread boris brezillon
On 26/07/2013 17:44, boris brezillon wrote: On 26/07/2013 16:10, Richard Genoud wrote: On 17/07/2013 15:34, Boris BREZILLON wrote: Hello, This patch series is a proposal to move at91 clock implementation to common clk framework. Most of the clock provided by the PMC (Power Management

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

2013-08-12 Thread boris brezillon
Hello Nicolas, On 12/08/2013 15:52, Nicolas Ferre wrote: On 01/08/2013 08:18, Boris BREZILLON : The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The usb drivers (ohci and udc) must configure this clock to 48Mhz

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

2013-08-12 Thread boris brezillon
Hello Felipe On 12/08/2013 20:08, Felipe Balbi wrote: On Mon, Aug 12, 2013 at 03:52:01PM +0200, Nicolas Ferre wrote: On 01/08/2013 08:18, Boris BREZILLON : The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The

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

2013-05-23 Thread Boris BREZILLON
r the arch 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 Re

[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 --- arch/arm/mach-at9

[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 --- 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 arch/arm/mach-at91

[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 --- arch/arm/mach-at91/board-1arm.c|1 - arch/arm/mach-at91/board-afeb-9260v1.c |1 - arch/arm/mach-at91/board

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

2013-05-23 Thread Boris BREZILLON
From: Boris BREZILLON Replace machine specific init_irq functions with IRQCHIP_DECLARE. Signed-off-by: Boris BREZILLON --- 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
From: 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 --- arch/arm/mach-at91/board-1arm.c|1 - arch/arm/mach-at91/board-afeb-9260v1.c |1

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

2013-05-23 Thread Boris BREZILLON
tree. Could someone test 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

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 --- 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 arch/arm/mach-at91

[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 --- arch/arm/boot/dts/at91sam9260.dtsi |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[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 --- arch/arm/mach-at91/at91_aic.h |3 --- arch/arm/mach-at91/board-1arm.c |1 - arch/arm/mach-at91/board-afeb

[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
IMR and AT91_AIC_IPR - 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 machi

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

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 d

[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 --- arch/arm/boot/dts/at91rm9200.dt

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

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

2012-12-17 Thread Boris BREZILLON
is given by tc-block field in an "atmel,pwm-tcb" 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 (

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

2013-01-08 Thread Boris BREZILLON
On 08/01/2013 08:10, Thierry Reding wrote: > On Thu, Dec 20, 2012 at 10:12:56AM +0100, Boris BREZILLON wrote: >> Hi, >> >> Sorry for resend. The previous version still has alignment issues on >> atmel_tcb_pwm_set_polarity, atmel_tcb_pwm_request and >> atmel_t

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

2013-01-08 Thread Boris BREZILLON
On 08/01/2013 08:10, Thierry Reding wrote: > On Thu, Dec 20, 2012 at 10:12:56AM +0100, Boris BREZILLON wrote: >> Hi, >> >> Sorry for resend. The previous version still has alignment issues on >> atmel_tcb_pwm_set_polarity, atmel_tcb_pwm_request and >> atmel_t

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

2013-01-08 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 (

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

2013-01-09 Thread Boris BREZILLON
On 09/01/2013 08:46, Thierry Reding wrote: > On Tue, Jan 08, 2013 at 04:36:42PM +0100, Boris BREZILLON wrote: >> Hi, >> >> This patch adds a PWM driver based on Atmel Timer Counter Block. >> Timer Counter Block is used in Waveform generator mode. >> >> A T

Re: [PATCH 1/2] mtd: nand: BUG_ON in case of no select_chip and cmd_ctrl

2016-07-19 Thread Boris Brezillon
On Tue, 19 Jul 2016 11:11:54 -0700 Andrey Smirnov wrote: > On Tue, Jul 19, 2016 at 9:22 AM, Richard Weinberger wrote: > > Am 19.07.2016 um 18:12 schrieb Boris Brezillon: > >>>> Not sure a BUG_ON() is worst than a NULL-pointer exception ;-). > >>> > &g

Re: [PATCH 1/2] mtd: nand: BUG_ON in case of no select_chip and cmd_ctrl

2016-07-19 Thread Boris Brezillon
On Tue, 19 Jul 2016 11:19:16 -0700 Brian Norris wrote: > On Tue, Jul 19, 2016 at 06:12:48PM +0200, Boris Brezillon wrote: > > On Tue, 19 Jul 2016 18:02:27 +0200 > > Richard Weinberger wrote: > > > Am 19.07.2016 um 17:59 schrieb Boris Brezillon: > > > >

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