[PATCH v2 4/8] ARM: at91: pm: prepare for multiplatform

2015-01-15 Thread Alexandre Belloni
Split at91_pm_init() in three variants that are called by the respective SoCs .init_machine. This allows to remove the of_machine_is_compatible() calls and move at91_pm_init() out of arch_initcall() which is required for multiplatform. Signed-off-by: Alexandre Belloni alexandre.bell...@free

[PATCH v2 1/8] ARM: at91: pm: rework cpu detection

2015-01-15 Thread Alexandre Belloni
Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 54 ++--- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-at91

[PATCH v2 8/8] ARM: at91: move at91rm9200_idle() to clk/at91/pmc.c

2015-01-15 Thread Alexandre Belloni
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Michael Turquette mturque...@linaro.org --- arch/arm/mach-at91/at91rm9200.c | 9 - arch/arm/mach-at91/generic.h| 1 + drivers/clk/at91

[PATCH v2 3/8] ARM: at91: pm: add UDP and UHP checks to newer SoCs

2015-01-15 Thread Alexandre Belloni
Check UDP and UHP on sam9x5, sam9n12 and the sama5 series. Check UHP on the sam9g45. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm

[PATCH v2 2/8] ARM: at91: pm: use the mmio-sram pool to access SRAM

2015-01-15 Thread Alexandre Belloni
Now that the SRAM is part of a genpool, use it to allocate memory to use for the slowclock implementation. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/pm.c| 46

[PATCH v2 0/8] AT91 cleanup for 3.20 #2

2015-01-15 Thread Alexandre Belloni
to of_machine_is_compatible() Alexandre Belloni (8): ARM: at91: pm: rework cpu detection ARM: at91: pm: use the mmio-sram pool to access SRAM ARM: at91: pm: add UDP and UHP checks to newer SoCs ARM: at91: pm: prepare for multiplatform ARM: at91: remove useless map_io ARM: at91: sama5d4: remove useless call

[PATCH 03/17] ARM: at91:remove unused mach/system_rev.h

2015-01-15 Thread Alexandre Belloni
mach/system_rev.h is not used, remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/system_rev.h | 27 --- 1 file changed, 27 deletions(-) delete mode 100644 arch/arm/mach-at91/include/mach/system_rev.h

[PATCH 02/17] ARM: at91: move sama5 specific code into per-soc files

2015-01-15 Thread Alexandre Belloni
From: Arnd Bergmann a...@arndb.de The common board-dt-sama5 file no longer contains any shared code, so we can just move the machine descriptors into the per-soc files for further cleanup. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexandre Belloni alexandre.bell...@free

[PATCH 07/17] ARM: at91: remove unused _matrix.h headers

2015-01-15 Thread Alexandre Belloni
The matrix headers are not used anymore, remove them. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- .../mach-at91/include/mach/at91sam9260_matrix.h| 80 --- .../mach-at91/include/mach/at91sam9261_matrix.h| 64 - .../mach-at91/include/mach

[PATCH 09/17] ARM: at91: pm: remove warning to remove SOC_AT91SAM9263 usage

2015-01-15 Thread Alexandre Belloni
The SOC_AT91SAM9263 is being removed, stop using it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm_slowclock.S | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S

[PATCH 00/17] AT91 cleanup for 3.20 #3

2015-01-15 Thread Alexandre Belloni
. There is also one fix regarding arm_pm_idle for sam9n12 and sam9g45. Alexandre Belloni (15): ARM: at91:remove unused mach/system_rev.h ARM: at91: fix sam9n12 and sam9x5 arm_pm_idle ARM: at91: sam9: set arm_pm_idle from sam9_dt_device_init ARM: at91: remove unused at91_ioremap_matrix and header

[PATCH 01/17] ARM: at91: merge at91rm9200 files

2015-01-15 Thread Alexandre Belloni
From: Arnd Bergmann a...@arndb.de There is only one board file for the rm9200 soc file left, so it makes sense to merge the two files into one, which allows us further cleanup. Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com

[PATCH 17/17] ARM: at91: remove at91_dt_initialize

2015-01-15 Thread Alexandre Belloni
Move the ramc initialization to pm.c as it is the only user left. This allows to get rid of at91_dt_initialize() and setup.c Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile | 2 -- arch/arm/mach-at91/at91rm9200.c | 1 - arch/arm/mach

[PATCH 15/17] ARM: at91: remove old setup

2015-01-15 Thread Alexandre Belloni
The old initialization is not used anymore, remove it. Also remove now unused cpu.h and at91_dbgu.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/generic.h | 4 - arch/arm/mach-at91/include/mach/at91_dbgu.h| 63 -- arch

[PATCH 14/17] ARM: at91: rework initialization for sama5 based boards

2015-01-15 Thread Alexandre Belloni
Removed useless .map_io for sama5d3 and .init_early by moving at91_dt_initialize() to sama5*_dt_device_init() Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/sama5d3.c | 9 ++--- arch/arm/mach-at91/sama5d4.c | 3 ++- 2 files changed, 4 insertions

[PATCH 16/17] ARM: at91: mark const init data with __initconst instead of __initdata

2015-01-15 Thread Alexandre Belloni
and so cannot contain non-const variables. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 2 +- arch/arm/mach-at91/at91sam9.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/at91rm9200.c b/arch/arm

[PATCH 05/17] ARM: at91: sam9: set arm_pm_idle from sam9_dt_device_init

2015-01-15 Thread Alexandre Belloni
As all sam9 SoCs are setting arm_pm_idle to at91sam9_idle(), do it from sam9_dt_device_init(). Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Suggested-by: Arnd Bergmann a...@arndb.de --- arch/arm/mach-at91/at91sam9260.c | 6 -- arch/arm/mach-at91/at91sam9261.c | 6

[PATCH 06/17] ARM: at91: remove unused at91_ioremap_matrix and header

2015-01-15 Thread Alexandre Belloni
at91_ioremap_matrix and the at91_matrix.h header are not used anymore, remove them. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/generic.h | 4 arch/arm/mach-at91/include/mach/at91_matrix.h | 23 --- arch

[PATCH 1/5] ARM: at91: switch to multiplatform

2015-01-15 Thread Alexandre Belloni
Switch AT91 to multiplatform as all SoCs are properly handled. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/Kconfig| 13 - arch/arm/mach-at91/Kconfig | 114 +++- arch/arm/mach-at91/Makefile | 2 + 3

[PATCH 10/17] ARM: at91: merge SOC_AT91SAM9xxx

2015-01-15 Thread Alexandre Belloni
Only use SOC_AT91SAM9 for all the at91sam9 SoCs. It enables HAVE_AT91_SMD and HAVE_AT91_UTMI for all the sam9 SoCs but this only represents 96 bytes of uncompressed kernel code. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs/at91_dt_defconfig | 10

[PATCH 11/17] ARM: at91: remove at91_boot_soc

2015-01-15 Thread Alexandre Belloni
at91_boot_soc is not used by any SoC, remove its usage. Also remove all the now empty SoC files. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile| 7 arch/arm/mach-at91/at91rm9200.c| 17 + arch/arm/mach-at91

[PATCH 13/17] ARM: at91: rework initialization for sam9 based boards

2015-01-15 Thread Alexandre Belloni
Remove useless .map_io and .init_early by moving at91_dt_initialize() to sam9*_dt_device_init(). Also rename board-dt-sam9.c to at91sam9.c Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile| 4 +--- arch/arm/mach-at91

[PATCH 08/17] ARM: at91: stop using HAVE_AT91_DBGUx

2015-01-15 Thread Alexandre Belloni
In order to remove SOC_SAM9xxx options, stop using HAVE_AT91_DBGUx. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/Kconfig.debug | 6 +++--- arch/arm/mach-at91/Kconfig | 19 --- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git

[PATCH 04/17] ARM: at91: fix sam9n12 and sam9x5 arm_pm_idle

2015-01-15 Thread Alexandre Belloni
sam9n12 and sam9x5 don't set arm_pm_idle because of an oversight, fix that. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Suggested-by: Arnd Bergmann a...@arndb.de --- arch/arm/mach-at91/at91sam9n12.c | 5 + arch/arm/mach-at91/at91sam9x5.c | 6 ++ 2 files changed

[PATCH 5/5] ARM: at91: remove useless SoC includes

2015-01-15 Thread Alexandre Belloni
The SoC includes are now useless. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91rm9200.h | 103 --- arch/arm/mach-at91/include/mach/at91sam9260.h | 129 --- arch/arm/mach-at91/include/mach

[PATCH 3/5] ARM: at91: remove unused uncompress.h

2015-01-15 Thread Alexandre Belloni
Following the switch to multiplatform, uncompress.h is not used anymore. Remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/uncompress.h | 218 --- 1 file changed, 218 deletions(-) delete mode 100644 arch

[PATCH 2/5] ARM: at91: switch at91_dt_defconfig to multiplatform

2015-01-15 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs/at91_dt_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig index 811e72bbe642..2f82bc5bacec 100644

[PATCH 0/5] AT91: switch to multiplatform

2015-01-15 Thread Alexandre Belloni
This patch set switches all AT91 SoCs to multiplatform then proceed to further cleanup. Alexandre Belloni (5): ARM: at91: switch to multiplatform ARM: at91: switch at91_dt_defconfig to multiplatform ARM: at91: remove unused uncompress.h ARM: at91: sama5d4: copy defines to SoC file ARM

[PATCH 4/5] ARM: at91: sama5d4: copy defines to SoC file

2015-01-15 Thread Alexandre Belloni
Copy the defines to the SoC file to remove the need for the header. The header has to stay for now because on mach/uncompress.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/sama5d4.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion

[PATCH 12/17] ARM: at91: rework initialization for rm9200 based boards

2015-01-15 Thread Alexandre Belloni
Remove useless .map_io and .init_early by moving at91_dt_initialize() to rm9200_dt_device_init(). Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/arch

Re: [PATCH v3 2/8] mfd: Add atmel-st driver

2015-01-19 Thread Alexandre Belloni
Hi Lee, On 19/01/2015 at 09:42:24 +, Lee Jones wrote : On Mon, 12 Jan 2015, Alexandre Belloni wrote: The Atmel System Timer IP available on the at91rm9200 exposes both a timer and a watchdog. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked

Re: [PATCH 08/17] ARM: at91: stop using HAVE_AT91_DBGUx

2015-01-20 Thread Alexandre Belloni
On 20/01/2015 at 11:34:53 +0100, Nicolas Ferre wrote : Le 15/01/2015 22:58, Alexandre Belloni a écrit : In order to remove SOC_SAM9xxx options, stop using HAVE_AT91_DBGUx. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/Kconfig.debug | 6

Re: [PATCH v3 2/8] mfd: Add atmel-st driver

2015-01-20 Thread Alexandre Belloni
, a watchdog and is also the reset controller. I think that the DT guidelines requires that the DT describes the hardware and so use one compatible for that IP; -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list

Re: [PATCH 15/17] ARM: at91: remove old setup

2015-01-21 Thread Alexandre Belloni
On 21/01/2015 at 17:29:42 +0100, Nicolas Ferre wrote : Le 15/01/2015 22:58, Alexandre Belloni a écrit : The old initialization is not used anymore, remove it. Also remove now unused cpu.h and at91_dbgu.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch

Re: [PATCH v5 00/11] memory: add Atmel EBI (External Bus Interface) driver

2015-01-18 Thread Alexandre Belloni
source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH v2 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
There is no point in calling suspend/resume for unused clocksources. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c

[PATCH v2 0/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
in v2: - removed the check on enable in timekeeping.c to ensure all clocksources are going through clocksource_enable - rework clocksource_enable to set CLOCK_SOURCE_USED when enable is successful if present Alexandre Belloni (2): clocksource: track usage clocksource: don't suspend

[PATCH v2 1/2] clocksource: track usage

2015-01-16 Thread Alexandre Belloni
Track whether the clocksource is enabled or disabled. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- include/linux/clocksource.h | 4 kernel/time/clocksource.c | 30 ++ kernel/time/timekeeping.c | 8 +++- 3 files changed, 37

Re: [PATCH] clockevents: don't suspend/resume if unused

2015-01-16 Thread Alexandre Belloni
or Daniel decide :) But I'm open to that. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v2 1/2] clocksource: track usage

2015-01-16 Thread Alexandre Belloni
Hi, On 16/01/2015 at 11:05:46 -0800, John Stultz wrote : On Fri, Jan 16, 2015 at 8:57 AM, Alexandre Belloni alexandre.bell...@free-electrons.com wrote: Track whether the clocksource is enabled or disabled. So.. this commit message needs work. Why do we care to track the clocksource

[PATCH] clockevents: don't suspend/resume if unused

2015-01-16 Thread Alexandre Belloni
There is no point in calling suspend/resume for unused clockevents as they are already stopped and disabled. Furthermore, it can take some time to wait for some IPs to stop counting. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Reported-by: Sylvain Rochet sylvain.roc

[RFC 0/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
. Regards, Alexandre Belloni (2): clocksource: track usage clocksource: don't suspend/resume when unused include/linux/clocksource.h | 4 kernel/time/clocksource.c | 30 -- kernel/time/timekeeping.c | 8 +++- 3 files changed, 35 insertions(+), 7

[RFC 1/2] clocksource: track usage

2015-01-16 Thread Alexandre Belloni
Track whether the clocksource is enabled or disabled. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- include/linux/clocksource.h | 4 kernel/time/clocksource.c | 26 ++ kernel/time/timekeeping.c | 8 +++- 3 files changed, 33

[RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
There is no point in calling suspend/resume for unused clocksources. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- kernel/time/clocksource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c

Re: [PATCH v2 1/8] ARM: at91: pm: rework cpu detection

2015-01-16 Thread Alexandre Belloni
of the ramc_ids in mach-at91 but I'm not sure how yet. Maybe we can do what you suggest after http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/316771.html Because then, the ram detection is local to pm.c -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android

Re: [RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
On 16/01/2015 at 11:23:32 +0100, Thomas Gleixner wrote : On Fri, 16 Jan 2015, Alexandre Belloni wrote: There is no point in calling suspend/resume for unused clocksources. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- kernel/time/clocksource.c | 4

Re: [RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
() in timekeeper.c, did I miss some? -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
On 16/01/2015 at 11:59:33 +0100, Daniel Lezcano wrote : On 01/16/2015 11:48 AM, Alexandre Belloni wrote: Hi, On 16/01/2015 at 11:39:16 +0100, Daniel Lezcano wrote : Isn't that already the case? Right now, if you call clocksource_suspend, it doesn't matter whether the clocksource has

Re: [RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
On 16/01/2015 at 11:23:24 +, Russell King - ARM Linux wrote : On Fri, Jan 16, 2015 at 11:35:30AM +0100, Alexandre Belloni wrote: On 16/01/2015 at 11:23:32 +0100, Thomas Gleixner wrote : On Fri, 16 Jan 2015, Alexandre Belloni wrote: There is no point in calling suspend/resume

Re: [RFC 2/2] clocksource: don't suspend/resume when unused

2015-01-16 Thread Alexandre Belloni
On 16/01/2015 at 12:07:42 +0100, Alexandre Belloni wrote : On 16/01/2015 at 11:59:33 +0100, Daniel Lezcano wrote : On 01/16/2015 11:48 AM, Alexandre Belloni wrote: Hi, On 16/01/2015 at 11:39:16 +0100, Daniel Lezcano wrote : Isn't that already the case? Right now, if you call

Re: [PATCH 2/6] ARM: at91: pm: use the mmio-sram pool to access SRAM

2015-01-15 Thread Alexandre Belloni
I believe it is better if every SRAM user selects SRAM so that when you don't have any of those, it is not automatically selected and it reduces the kernel size. Regards, -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

[PATCH 11/12] usb: gadget: at91_udc: Update DT binding documentation

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Three compatible strings have been added to the at91_udc driver. Update the documentation accordingly. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 6 +- 1

Re: [PATCH v5 00/11] memory: add Atmel EBI (External Bus Interface) driver

2015-01-14 Thread Alexandre Belloni
. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 02/12] mfd: syscon: Add Atmel Matrix bus DT binding documentation

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com The Matrix registers are provided to configure internal bus behavior on at91 SoCs. Some registers might be accessed by several drivers (e.g. to configure external memory bus timings), hence we declare this register set as a syscon device.

[PATCH 12/12] usb: gadget: at91_udc: Allocate udc instance

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Allocate udc structure instead of relying on the statically declared object. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/usb/gadget/udc/at91_udc.c | 96 +++ 1 file

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
list linux-arm-ker...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

[PATCH 06/12] usb: gadget: at91_udc: Drop uclk clock

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Now that at91 system clocks forward set_rate request to their parent we can remove the uclk clock and directly call clk_set_rate on fclk. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com ---

[PATCH 07/12] usb: gadget: at91_udc: Document DT clocks and clock-names property

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com The at91_udc driver request 2 clocks, and thus need them to be defined in the device tree. Document the clocks and clock-names properties so that everybody use the correct names. Signed-off-by: Boris Brezillon

[PATCH 08/12] usb: gadget: at91_udc: Remove non-DT handling code

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Since non-DT board support has been removed from the at91 architecture we can safely remove non-DT handling code. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/usb/gadget/udc/Kconfig| 1 +

[PATCH 01/12] mfd: syscon: Add atmel-matrix registers definition

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com AT91 SoCs have a memory range reserved for internal bus configuration. Expose those registers so that drivers can make use of the matrix syscon declared in at91 DTs. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com

[PATCH 09/12] usb: gadget: at91_udc: Simplify probe and remove functions

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Make use of devm_ functions to simplify probe and remove code. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/usb/gadget/udc/at91_udc.c | 116 +- 1 file changed, 39

[PATCH 03/12] mfd: syscon: Add atmel-smc registers definition

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com Atmel AT91 SoCs have a memory range reserved for SMC (Static Memory Controller) configuration. Expose those registers so that drivers can make use of the smc syscon declared in at91 DTs. Signed-off-by: Boris Brezillon

[PATCH 04/12] mfd: syscon: Add Atmel SMC binding doc

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com The SMC registers are used to configure Atmel EBI (External Bus Interface) to interface with standard memory devices (NAND, NOR, SRAM or specialized devices like FPGAs). Declare this memory region as a syscon, so that different drivers can

[PATCH 05/12] usb: gadget: at91_udc: Fix clock names

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com The driver is requesting clock by their global name (those declared in the clk_lookup list), but this only works with !CCF kernels. Now that all SoCs have moved to CCF, fix the driver to use local names (hclk and pclk). Signed-off-by:

[PATCH 10/12] usb: gadget: at91_udc: Rework for multi-platform kernel support

2015-01-14 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com cpu_is_at91xxx are a set of macros defined in mach/cpu.h and are here used to detect the SoC we are booting on. Use compatible string + a caps structure to replace those cpu_is_xxx tests. Remove all mach and asm headers (which are now

[PATCH 00/12] Atmel matrix, SMC and UDC rework

2015-01-14 Thread Alexandre Belloni
Hi Felipe, The following series replace the previous series sent by Boris named: - [PATCH v5 00/11] memory: add Atmel EBI (External Bus Interface) driver - [PATCH 00/11] usb: gadget: at91_udc: Rework for multi-platform support The patches I left out are less urgent and will be resent later,

Re: [PATCH] clocksource: timer-atmel-pit: don't suspend/resume if unused

2015-01-15 Thread Alexandre Belloni
://www.linaro.org/linaro-blog/ Blog -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH v5 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2015-01-14 Thread Alexandre Belloni
Hi, On 14/01/2015 at 16:21:50 +, Russell King - ARM Linux wrote : On Wed, Jan 14, 2015 at 04:46:03PM +0100, Alexandre Belloni wrote: Hi, This patch set hasn't moved since while. We actually need patch 4 to properly configure prefetch on sama5d4. What would be needed to come

Re: [PATCH 08/12] usb: gadget: at91_udc: Remove non-DT handling code

2015-01-14 Thread Alexandre Belloni
On 14/01/2015 at 11:38:12 -0600, Felipe Balbi wrote : On Wed, Jan 14, 2015 at 05:22:00PM +0100, Alexandre Belloni wrote: From: Boris Brezillon boris.brezil...@free-electrons.com Since non-DT board support has been removed from the at91 architecture we can safely remove non-DT handling

Re: [PATCH 10/17] ARM: at91: merge SOC_AT91SAM9xxx

2015-01-22 Thread Alexandre Belloni
On 22/01/2015 at 11:22:21 +0100, Nicolas Ferre wrote : Le 15/01/2015 22:58, Alexandre Belloni a écrit : Only use SOC_AT91SAM9 for all the at91sam9 SoCs. It enables HAVE_AT91_SMD and HAVE_AT91_UTMI for all the sam9 SoCs but this only represents 96 bytes of uncompressed kernel code

Re: [PATCH 2/3] pm: at91: pm_suspend: MOR register KEY was missing

2015-02-17 Thread Alexandre Belloni
-- 1.7.9.5 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 3/3] pm: at91: flush data cache and clean, invalidate and disable the L2 cache

2015-02-17 Thread Alexandre Belloni
state) -- 1.7.9.5 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 1/3] pm: at91: pm_suspend: add the WFI instruction support for ARMv7

2015-02-17 Thread Alexandre Belloni
On 12/02/2015 at 10:51:26 +0800, Wenyou Yang wrote : Add the WFI instruction to make the cpu to the idle state. In the meanwhile, disable the processor's clock. Signed-off-by: Wenyou Yang wenyou.y...@atmel.com Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm

Re: [PATCH v3 07/13] pm: at91: remove the config item CONFIG_AT91_SLOW_CLOCK

2015-01-27 Thread Alexandre Belloni
failed to allocate sram for slow_clock, we already fired a message saying that PM is not available at all in at91_pm_sram_init(). That is done in patch 10/13. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from

Re: [PATCH v4 05/13] pm: at91: move the copying the sram function to the sram initializationi phase

2015-01-29 Thread Alexandre Belloni
just before so it will necessarily be found in the list. We need to reintroduce a check for slow_clock != NULL before fncpy() since it is moved out of its original if block. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

Re: [PATCH 05/12] ARM: at91: move select SRAM to ARCH_AT91

2015-01-23 Thread Alexandre Belloni
On 20/01/2015 at 16:16:58 +0800, Wenyou Yang wrote : Because the CONFIG_AT91_SLOW_CLOCK will be removed to simply the PM config, so move select SRAM. Signed-off-by: Wenyou Yang wenyou.y...@atmel.com Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91

Re: [PATCH v2] ARM: at91: fix PM initialization for newer SoCs

2015-01-23 Thread Alexandre Belloni
solution to that is to match the pmc compatible in pm.c -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 07/12] pm: at91: the standby mode uses the same sram function as the suspend to memory mode

2015-01-23 Thread Alexandre Belloni
doesn't switch to the slow clock, and the main oscillator doesn't turn off as well. Signed-off-by: Wenyou Yang wenyou.y...@atmel.com That looks quite better, thanks. Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 81

Re: [PATCH 4/7] ARM: at91: enable the L2 Cache controller

2015-01-26 Thread Alexandre Belloni
); at91_sam9x5_pm_init(); } -- 1.7.9.5 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH v5 00/13] AT91 pm cleanup for 3.20

2015-01-31 Thread Alexandre Belloni
that series submitted recently: https://lkml.org/lkml/2014/11/26/575 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

[PATCH] sound: soc: atmel sam9g20_wm8731: remove useless include

2015-01-06 Thread Alexandre Belloni
A mach/ header is included but never used. Simply remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- sound/soc/atmel/sam9g20_wm8731.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index

[PATCH] ASoC: sam9g20_wm8731: drop machine_is_xxx

2015-01-06 Thread Alexandre Belloni
Atmel based boards can now only be used with device tree. Drop non DT initialization. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- sound/soc/atmel/sam9g20_wm8731.c | 68 ++-- 1 file changed, 31 insertions(+), 37 deletions(-) diff

Re: [PATCH] sound: soc: atmel sam9g20_wm8731: remove useless include

2015-01-06 Thread Alexandre Belloni
Hi Bo, On 06/01/2015 at 18:14:12 +0800, Bo Shen wrote : #include asm/mach-types.h Btw, do you consider to remove this also? I just sent a patch for that. Feel free to squash both. -#include mach/hardware.h #include ../codecs/wm8731.h #include atmel-pcm.h -- Alexandre

[PATCH] ARM: configs: at91_dt: add rm9200 ethernet support

2015-01-05 Thread Alexandre Belloni
There is now only on defconfig for the at91rm9200 and at91sam9. Add ethernet support for the rm9200. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/configs/at91_dt_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/at91_dt_defconfig

[PATCH 2/8] mfd: Add atmel-st driver

2015-01-05 Thread Alexandre Belloni
The Atmel System Timer IP available on the at91rm9200 exposes both a timer and a watchdog. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/mfd/Kconfig | 7 drivers/mfd/Makefile | 1 + drivers/mfd/atmel-st.c | 77

[PATCH 1/8] ARM: at91/dt: declare atmel,at91rm9200-st as a syscon

2015-01-05 Thread Alexandre Belloni
The system timer register range is also used for the watchdog. Declare it as a syscon to be able to get a regmap early enough in the boot process Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/devicetree/bindings/arm/atmel-at91.txt | 2 +- arch/arm/boot

[PATCH 5/8] ARM: at91: move the restart function to the system timer driver

2015-01-05 Thread Alexandre Belloni
Restarting on an at91rm9200 is handled by using the system timer. Move that function to the system timer driver. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 11 --- drivers/clocksource/timer-atmel-st.c | 12

[PATCH 8/8] ARM: at91: remove useless include

2015-01-05 Thread Alexandre Belloni
Both drivers using the system timer are now converted to an MFD. mach/at91_st.h is now useless. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91_st.h | 61 --- 1 file changed, 61 deletions(-) delete mode

[PATCH 7/8] clocksource: atmel-st: use syscon/regmap

2015-01-05 Thread Alexandre Belloni
The register range from the system timer is also used by the watchdog driver. Use a regmap to handle concurrent accesses. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/clocksource/timer-atmel-st.c | 103 +-- 1 file changed, 39

[PATCH 3/8] watchdog: at91rm9200: use the regmap from mfd

2015-01-05 Thread Alexandre Belloni
The system timer MFD driver is providing a regmap. Use it to access the registers. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/watchdog/Kconfig | 2 +- drivers/watchdog/at91rm9200_wdt.c | 22 +- 2 files changed, 10 insertions

[PATCH 4/8] ARM: at91: time: move the system timer driver to drivers/clocksource

2015-01-05 Thread Alexandre Belloni
Import at91rm9200_time.c from mach-at91 as timer-atmel-st.c. Further cleanup is required to get rid of the mach-at91 headers. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile | 2 +- drivers

[PATCH 6/8] clocksource: atmel-st: properly initialize driver

2015-01-05 Thread Alexandre Belloni
Use clocksource_of_init to initialize the system timer instead of relying on a custom function. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/board-dt-rm9200.c | 7 --- arch/arm/mach-at91/generic.h | 3 --- drivers/clocksource/timer

[PATCH 0/8] Atmel System Timer cleanups

2015-01-05 Thread Alexandre Belloni
This patch sets cleans up the system timer driver. The main goal is to get rid of the mach/ headers dependency. At the same time, it introduces proper probing and locking (using a regmap) for the watchdog driver. Alexandre Belloni (8): ARM: at91/dt: declare atmel,at91rm9200-st as a syscon

Re: [PATCH] ASoC: sam9g20_wm8731: drop machine_is_xxx

2015-01-06 Thread Alexandre Belloni
Hi, On 06/01/2015 at 12:00:49 +, Mark Brown wrote : On Tue, Jan 06, 2015 at 12:14:32PM +0100, Alexandre Belloni wrote: Atmel based boards can now only be used with device tree. Drop non DT initialization. This doesn't apply against current code, please check and resend. It should

Re: [PATCH v2 3/8] watchdog: at91rm9200: use the regmap from mfd

2015-01-10 Thread Alexandre Belloni
On 09/01/2015 at 16:39:21 -0800, Guenter Roeck wrote : On 01/09/2015 01:51 AM, Alexandre Belloni wrote: /* . */ @@ -204,6 +201,7 @@ static struct miscdevice at91wdt_miscdev = { static int at91wdt_probe(struct

[PATCH] avr32: remove fake at91 cpu identification

2015-01-10 Thread Alexandre Belloni
cpu_is_at91* are not used in any driver outside mach-at91. Remove those useless definitions. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Hans-Christian, If you want, I guess that one could go through the at91 tree. Unless you have more material and you want to do

Re: [PATCH v2 3/8] watchdog: at91rm9200: use the regmap from mfd

2015-01-12 Thread Alexandre Belloni
more than once. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH] net/at91_ether: prepare and unprepare clock

2015-01-12 Thread Alexandre Belloni
Hi Dave, This is actually a fix for 3.19, can you take it for the next rc ? Thanks! On 08/01/2015 at 11:55:58 +0100, Nicolas Ferre wrote : Le 07/01/2015 23:59, Alexandre Belloni a écrit : The clock is enabled without being prepared, this leads to: WARNING: CPU: 0 PID: 1 at drivers/clk

[PATCH v3 5/8] ARM: at91: move the restart function to the system timer driver

2015-01-12 Thread Alexandre Belloni
Restarting on an at91rm9200 is handled by using the system timer. Move that function to the system timer driver. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 11

[PATCH v3 8/8] ARM: at91: remove useless include

2015-01-12 Thread Alexandre Belloni
Both drivers using the system timer are now converted to an MFD. mach/at91_st.h is now useless. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91_st.h | 61

<    5   6   7   8   9   10   11   12   13   14   >