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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/clocksource/timer-atmel-st.c

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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/mfd/Kconfig | 7 drivers/mfd/Makefile

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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/mach-at91/Makefile

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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- Documentation

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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/mach-at91/board-dt-rm9200.c | 7 --- arch/arm/mach

[PATCH v3 0/8] Atmel System Timer cleanups

2015-01-12 Thread Alexandre Belloni
check - check whether regmap_st is NULL in the watchdog driver Changes in v2: - cleaned up more includes in the watchdog driver - stop using if OF when selecting CLKSRC_OF - stop initializing .owner Alexandre Belloni (8): ARM: at91/dt: declare atmel,at91rm9200-st as a syscon mfd: Add

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

2015-01-12 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 Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- drivers/watchdog/Kconfig | 2 +- drivers/watchdog/at91rm9200_wdt.c

[PATCH 4/6] ARM: at91/dt: add SRAM nodes

2015-01-12 Thread Alexandre Belloni
Add nodes for the SRAM available on atmel SoCs Remove leftover TODOs in the sam9g45 file Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91rm9200.dtsi | 5 + arch/arm/boot/dts/at91sam9260.dtsi | 5 + arch/arm/boot/dts/at91sam9261.dtsi

[PATCH 3/6] ARM: at91/dt: at91rm9200ek: enable RTC

2015-01-12 Thread Alexandre Belloni
Enable the RTC on the at91rm9200ek. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91rm9200ek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts b/arch/arm/boot/dts/at91rm9200ek.dts index 43eb779dd6f6

[PATCH 6/6] ARM: at91/dt: ethernut5: use at91sam9xe.dtsi

2015-01-12 Thread Alexandre Belloni
The ethernut5 is actually based on an at91sam9xe, use the correct dts include. Cc: Martin Reimann martin.reim...@egnite.de Cc: Tim Schendekehl tim.schendek...@egnite.de Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/ethernut5.dts | 2 +- 1 file

[PATCH 2/6] ARM: at91/dt: rm9200: add RTC node

2015-01-12 Thread Alexandre Belloni
Add a node for the RTC available on at91rm9200. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91rm9200.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200.dtsi b/arch/arm/boot/dts/at91rm9200.dtsi index

[PATCH 1/6] ARM: at91/dt: at91sam9n12: Add RTC node

2015-01-12 Thread Alexandre Belloni
Add node for the RTC available on the at91sam9n12. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9n12.dtsi b/arch/arm/boot/dts/at91sam9n12.dtsi

[PATCH 5/6] ARM: at91/dt: Add a dtsi for at91sam9xe

2015-01-12 Thread Alexandre Belloni
at91sam9xe is slightly different from at91sam9260, in particular it has a different SRAM size and location. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- .../devicetree/bindings/arm/atmel-at91.txt | 1 + arch/arm/boot/dts/at91sam9xe.dtsi | 60

[PATCH 0/6] AT91 DT for 3.20 #1

2015-01-12 Thread Alexandre Belloni
This series enables RTC on the at91sam9n12 and at91rm9200. It also adds nodes for the SRAM availabe on at91 SoCs. Finally it adds a dtsi for the at91sam9xe and uses it for the ethernut5 dts. Alexandre Belloni (6): ARM: at91/dt: at91sam9n12: Add RTC node ARM: at91/dt: rm9200: add RTC node

[PATCH v2 1/6] ARM: at91/dt: at91sam9n12: Add RTC node

2015-01-12 Thread Alexandre Belloni
Add node for the RTC available on the at91sam9n12. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Nicolas, following our discussion, I forgot to change that one, I'm removing the 9x5 errata for the RTC on sam9n12. arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++ 1

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

2015-01-12 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 3/6] ARM: at91: remove useless map_io

2015-01-12 Thread Alexandre Belloni
Now that the SRAM is initialized by the mmio-sram driver, .map_io is useless. remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 6 -- arch/arm/mach-at91/at91sam9260.c | 27 --- arch/arm/mach-at91

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

2015-01-12 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 --- Cc: Mike Turquette mturque...@linaro.org Mike, Boris, I guess that one can go through the at91 tree unless you have any objections. arch/arm/mach-at91

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

2015-01-12 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 0/6] AT91 cleanup for 3.20 #2

2015-01-12 Thread Alexandre Belloni
once Atmel System Timer cleanups is applied). Alexandre Belloni (6): ARM: at91: pm: rework cpu detection ARM: at91: pm: use the mmio-sram pool to access SRAM ARM: at91: remove useless map_io ARM: at91: sama5d4: remove useless call to at91_init_sram ARM: at91: remove unused at91_init_sram

[PATCH 5/6] ARM: at91: remove unused at91_init_sram

2015-01-12 Thread Alexandre Belloni
SRAM initialization is now done through the mmio-sram driver and at91_init_sram() is not called anymore, remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/generic.h | 2 -- arch/arm/mach-at91/setup.c | 20 2 files

[PATCH 4/6] ARM: at91: sama5d4: remove useless call to at91_init_sram

2015-01-12 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/sama5d4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-at91/sama5d4.c b/arch/arm/mach-at91/sama5d4.c index 7638509639f4..fa127fb79221 100644 --- a/arch/arm/mach-at91/sama5d4.c +++ b

Re: [PATCH 05/11] usb: gadget: at91_udc: Remove non-DT handling code

2015-01-12 Thread Alexandre Belloni
out of 4 hunks FAILED please rebase on testing/next which I just pushed. -- balbi -- 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

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

2015-01-09 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 | 76

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

2015-01-09 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 v2 0/8] Atmel System Timer cleanups

2015-01-09 Thread Alexandre Belloni
if OF when selecting CLKSRC_OF - stop initializing .owner Alexandre Belloni (8): ARM: at91/dt: declare atmel,at91rm9200-st as a syscon mfd: Add atmel-st driver watchdog: at91rm9200: use the regmap from mfd ARM: at91: time: move the system timer driver to drivers/clocksource ARM: at91: move

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

2015-01-09 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 v2 8/8] ARM: at91: remove useless include

2015-01-09 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 v2 3/8] watchdog: at91rm9200: use the regmap from mfd

2015-01-09 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 | 27 +-- 2 files changed, 10

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

2015-01-09 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 v2 6/8] clocksource: atmel-st: properly initialize driver

2015-01-09 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 v2 1/8] ARM: at91/dt: declare atmel,at91rm9200-st as a syscon

2015-01-09 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 v3 5/6] ARM: at91/dt: Add a dtsi for at91sam9xe

2015-01-13 Thread Alexandre Belloni
at91sam9xe is slightly different from at91sam9260, in particular it has a different SRAM size and location. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- .../devicetree/bindings/arm/atmel-at91.txt

[PATCH v3 4/6] ARM: at91/dt: add SRAM nodes

2015-01-13 Thread Alexandre Belloni
Add nodes for the SRAM available on atmel SoCs For the at91sam9260 and the at91sam9g20, address mirroring is used to create a single contiguous SRAM range instead of declaring two separate banks. Also remove leftover TODOs in the sam9g45 file Signed-off-by: Alexandre Belloni alexandre.bell

[PATCH v3 6/6] ARM: at91/dt: ethernut5: use at91sam9xe.dtsi

2015-01-13 Thread Alexandre Belloni
The ethernut5 is actually based on an at91sam9xe, use the correct dts include. Cc: Martin Reimann martin.reim...@egnite.de Cc: Tim Schendekehl tim.schendek...@egnite.de Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free

[PATCH v3 2/6] ARM: at91/dt: rm9200: add RTC node

2015-01-13 Thread Alexandre Belloni
Add a node for the RTC available on at91rm9200. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/boot/dts/at91rm9200.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v3 1/6] ARM: at91/dt: at91sam9n12: Add RTC node

2015-01-13 Thread Alexandre Belloni
Add node for the RTC available on the at91sam9n12. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/boot/dts/at91sam9n12.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot

[PATCH v3 0/6] AT91 DT for 3.20 #1

2015-01-13 Thread Alexandre Belloni
the 9x5 errata for the n12 rtc Alexandre Belloni (6): ARM: at91/dt: at91sam9n12: Add RTC node ARM: at91/dt: rm9200: add RTC node ARM: at91/dt: at91rm9200ek: enable RTC ARM: at91/dt: add SRAM nodes ARM: at91/dt: Add a dtsi for at91sam9xe ARM: at91/dt: ethernut5: use at91sam9xe.dtsi

[PATCH v3 3/6] ARM: at91/dt: at91rm9200ek: enable RTC

2015-01-13 Thread Alexandre Belloni
Enable the RTC on the at91rm9200ek. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Acked-by: Boris Brezillon boris.brezil...@free-electrons.com --- arch/arm/boot/dts/at91rm9200ek.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91rm9200ek.dts

Re: [PATCH 05/11] usb: gadget: at91_udc: Remove non-DT handling code

2015-01-13 Thread Alexandre Belloni
review and ack them? Then they could go through the mfd tree. -- 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

[PATCH] pcmcia: at91_cf: depend on !ARCH_MULTIPLATFORM

2015-01-13 Thread Alexandre Belloni
Until the driver is corrected to stop including mach/at91_ramc.h and using mach/io.h, it won't compile in a ARCH_MULTIPLATFORM configuration. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pcmcia/Kconfig | 1 + 1 file

[PATCH] ata: pata_at91: depend on !ARCH_MULTIPLATFORM

2015-01-13 Thread Alexandre Belloni
Until the driver is corrected to stop using mach/at91isam9_smc.h, it won't compile in a ARCH_MULTIPLATFORM configuration. Suggested-by: Arnd Bergmann a...@arndb.de Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion

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

2015-01-13 Thread Alexandre Belloni
/linux/mfd/syscon/atmel-smc.h -- 1.9.1 -- 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 4/6] ARM: at91/dt: add SRAM nodes

2015-01-13 Thread Alexandre Belloni
On 13/01/2015 at 09:37:48 +0800, Bo Shen wrote : Hi Alexandre, On 01/13/2015 03:01 AM, Alexandre Belloni wrote: +sram0: sram@002ff000 { Why here is 002ff000, while not 0020? +compatible = mmio-sram; +reg = 0x0020 0x2000; +}; + I'll correct

Re: [PATCH] ARM: at91/Documentation: add a README for Atmel SoCs

2015-01-13 Thread Alexandre Belloni
, this set of boards are not the only exception. I will rephrase the sentence as: Note that some files are historical exceptions to this rule (sama5d3[13456]ek.dts, usb_a9g20.dts or animeo_ip.dts for example). Bye, -- Nicolas Ferre -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel

[PATCH] Asoc: sam9x5_wm8731: depend on ARCH_AT91 instead of SOC_AT91SAM9X5

2015-01-13 Thread Alexandre Belloni
The SOC_AT91SAM9X5 option is going to be removed, only depend on ARCH_AT91 like for the other drivers. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- sound/soc/atmel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/Kconfig b

[PATCH 5/7] ARM: at91: move debug-macro.S into the common space

2015-01-12 Thread Alexandre Belloni
Move debug-macro.S from include/mach/ to include/debug where all other common debug macros are. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- MAINTAINERS | 1 + arch/arm/Kconfig.debug| 9

[PATCH 6/7] ARM: at91: remove useless at91rm9200_dt_initialize()

2015-01-12 Thread Alexandre Belloni
at91rm9200_dt_initialize() is doing the same as at91_dit_initialize(), use that one instead. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/board-dt-rm9200.c | 2 +- arch/arm/mach-at91/generic.h | 1 - arch/arm/mach-at91/setup.c | 7

[PATCH 2/7] ARM: at91: remove useless config MACH_AT91RM9200_DT

2015-01-12 Thread Alexandre Belloni
Now that rm9200 is only supported through DT, remove CONFIG_MACH_AT91RM9200_DT and use CONFIG_SOC_AT91RM9200 instead. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Kconfig | 3 --- arch/arm/mach-at91/Makefile | 2 +- 2 files changed, 1 insertion

[PATCH 1/7] ARM: at91: remove unused mach/memory.h

2015-01-12 Thread Alexandre Belloni
CONFIG_NEED_MACH_MEMORY_H is not set by any at91 platform, remove mach/memory.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/memory.h | 26 -- 1 file changed, 26 deletions(-) delete mode 100644 arch/arm/mach

[PATCH 7/7] ARM: at91: remove useless at91rm9200_set_type()

2015-01-12 Thread Alexandre Belloni
Since all rm9200 board files have been removed, there is no user of at91rm9200_set_type() left. Remove it Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/generic.h | 1 - arch/arm/mach-at91/setup.c | 11 --- 2 files changed, 12 deletions

[PATCH 3/7] ARM: at91: remove useless config MACH_AT91SAM9_DT

2015-01-12 Thread Alexandre Belloni
Now that at91sam9 SoCs are only supported through DT, remove CONFIG_MACH_AT91SAM9_DT and use CONFIG_SOC_AT91SAM9 instead. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Kconfig | 5 - arch/arm/mach-at91/Makefile | 2 +- 2 files changed, 1

[PATCH 0/7] AT91 cleanup for 3.20 #1

2015-01-12 Thread Alexandre Belloni
Hi, This patch set cleans a lot of remaining header, config options and functions that are not used anymore since the switch to DT only. Patch 5 is moving mach/debug-macro.S to include/debug/at91.S to prepare the upcoming switch to multiplatform. Alexandre Belloni (7): ARM: at91: remove

[PATCH 4/7] ARM: at91: remove useless at91_sysirq_mask_rtx

2015-01-12 Thread Alexandre Belloni
The irq fixup from at91_sysirq_mask_rtc and at91_sysirq_mask_rtt is now handled by aic_common_rtc_irq_fixup and aic_common_rtt_irq_fixup. Remove those useless functions. Also remove the now unused mach/at91_rtt.h header. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com

Re: [PATCH v2] ARM: at91: dts: sama5d4: add dts for sama5d4 xplained board

2015-02-09 Thread Alexandre Belloni
/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 of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH v4 3/5] irqchip: Add DT binding doc for the virtual irq demuxer chip

2015-02-11 Thread Alexandre Belloni
as a workaround the warning as this is exactly what we need for our platform. -- 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

Re: [PATCH 1/3] USB: gadget: at91_udc: add at91sam9n12 support

2015-02-09 Thread Alexandre Belloni
___ linux-arm-kernel mailing 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

[PATCH] net/at91_ether: prepare and unprepare clock

2015-01-07 Thread Alexandre Belloni
The clock is enabled without being prepared, this leads to: WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:889 __clk_enable+0x24/0xa8() and a non working ethernet interface. Use clk_prepare_enable() and clk_disable_unprepare() to handle the clock. Signed-off-by: Alexandre Belloni alexandre.bell

Re: [PATCH v2 0/5] usb: atmel_usba_udc: Rework errata handling

2015-01-07 Thread Alexandre Belloni
Hi, The whole series looks good to me, you can add my Acked-by: Alexandre Belloni alexandre.bell...@free-electrons.com On 06/01/2015 at 14:46:57 +0100, Boris Brezillon wrote : Hello, Here is a set of patches porting existing at91sam9rl erratum handling to DT and adding new code to handle

[PATCH] clocksource: atmel-st: select REGMAP_MMIO

2015-03-18 Thread Alexandre Belloni
Enforce REGMAP_MMIO selection as the driver needs it. Else, it will still compile with some warning about X1, x2 or sr being used uninitialized. Reported-by: fengguang...@intel.com Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Daniel, I think this should go through

[PATCH 01/10] ARM: at91/pm: move the standby functions to pm.c

2015-03-16 Thread Alexandre Belloni
The standby functions are now only used in pm.c, move them there. Also, they are not inlined as a pointer to those functions is passed to the cpuidle driver. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/pm.c | 89

[PATCH 09/10] ARM: at91: remove mach/at91_ramc.h and mach/at91rm9200_mc.h

2015-03-16 Thread Alexandre Belloni
mach/at91_ramc.h and mach/at91rm9200_mc.h are necessary anymore, remove them. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile | 3 - arch/arm/mach-at91/include/mach/at91_ramc.h | 28 -- arch/arm/mach-at91

[PATCH 03/10] ata: at91: use syscon to configure the smc

2015-03-16 Thread Alexandre Belloni
Use syscon/regmap to configure the smc. This allows to avoid using at91sam9_smc.h and to compile the driver in a multiplatform configuration. The driver will still not probe until the proper DT bindings are added. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers

[PATCH 00/10] ARM: at91 cleanups for 4.1 #2

2015-03-16 Thread Alexandre Belloni
Hi, This patch set finishes the clean up of the mach-at91 directory. It fixed the remaining two drivers (at91_cf and pata_at91) so that they compile in a multiplatform configuration. Then it removes the uneeded headers. Alexandre Belloni (9): ARM: at91/pm: move the standby functions to pm.c

[PATCH 04/10] ARM: at91: drop sam9_smc.c

2015-03-16 Thread Alexandre Belloni
sam9_smc.c has no users anymore, remove it along with both sam9_smc.h and mach/at91sam9_smc.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile| 2 - arch/arm/mach-at91/include/mach/at91sam9_smc.h | 98

[PATCH 05/10] mfd: syscon: Add Atmel MC (Memory Controller) registers definition

2015-03-16 Thread Alexandre Belloni
From: Boris Brezillon boris.brezil...@free-electrons.com The at91rm9200 SoC embeds a Memory Controller block which is used to configure several aspects of the platform: - AHB/APB Bus behavior - SDRAM Controller - EBI (External Bus Interface) and SMC (Static Memory Controller) config Those

[PATCH 08/10] ARM: at91/pm: use the atmel-mc syscon defines

2015-03-16 Thread Alexandre Belloni
Use the defines from atmel-mc.h instead of at91rm9200_sdramc.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91_ramc.h | 2 +- arch/arm/mach-at91/pm.c | 8 arch/arm/mach-at91/pm_suspend.S | 2

[PATCH 07/10] pcmcia: at91_cf: Use syscon to configure the MC/smc

2015-03-16 Thread Alexandre Belloni
Use syscon/regmap to configure the smc part of the memory controller. This allows to avoid using mach/at91rm9200_mc.h and mach/at91_ramc.h and to compile the driver in a multiplatform configuration. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- drivers/pcmcia/Kconfig

[PATCH 02/10] ARM: at91/pm: move AT91_MEMCTRL_* to pm.h

2015-03-16 Thread Alexandre Belloni
the AT91_MEMCTRL_* defines are only used by the pm code, move them to pm.h Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91_ramc.h | 4 arch/arm/mach-at91/pm.h | 4 2 files changed, 4 insertions(+), 4

[PATCH 06/10] ARM: at91: declare the at91rm9200 memory controller as a syscon

2015-03-16 Thread Alexandre Belloni
The at91rm9200 memory controller is not simply an SDRAM controller. It also controls the EBI (External Bus Interface), the SMC (Static Memory Controller)and the Burst Flash Controller. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/devicetree/bindings/arm

[PATCH 10/10] ARM: at91: remove at91rm9200_sdramc.h

2015-03-16 Thread Alexandre Belloni
include/soc/at91/at91rm9200_sdramc.h is replaced by include/linux/mfd/syscon/atmel-smc.h as this is actually a syscon device. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- include/soc/at91/at91rm9200_sdramc.h | 63 1 file changed

Re: [PATCH] clocksource: atmel-st: select REGMAP_MMIO

2015-03-19 Thread Alexandre Belloni
ATMEL_ST bool select CLKSRC_OF + select REGMAP_MMIO Shouldn't we select MFD_SYSCON instead. Indeed, I'll send v2 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line

[PATCH v2] clocksource: atmel-st: select MFD_SYSCON

2015-03-19 Thread Alexandre Belloni
Enforce MFD_SYSCON selection as the driver needs it. Else, it will still compile with some warning about X1, x2 or sr being used uninitialized. Reported-by: fengguang...@intel.com Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Daniel, I think this should go through

[PATCH] ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected

2015-03-19 Thread Alexandre Belloni
-by: fengguang...@intel.com Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 06a4cefd33a0..4fa8b4541e64 100644 --- a/arch/arm/mach-at91

PM: knowing the system state in the device callback

2015-03-16 Thread Alexandre Belloni
be there if really needed)? Regards, -- 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] ARM: at91: sama5d4: Properly configure L2CC

2015-03-09 Thread Alexandre Belloni
On 09/03/2015 at 17:23:37 +, Russell King - ARM Linux wrote : On Wed, Mar 04, 2015 at 12:29:23PM +0100, Alexandre Belloni wrote: As the bootloader may not properly configure the L2CC, enforce its configuration in the kernel. Signed-off-by: Alexandre Belloni alexandre.bell...@free

Re: [PATCH v2 5/6] watchdog: at91sam9: request the irq with IRQF_NO_SUSPEND

2015-03-09 Thread Alexandre Belloni
and that it is impossible to stop. It is actually quite convenient to also ensure that you can actually wake up from suspend because that can obviously go wrong. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line

[PATCH v3 5/9] ARM: at91: add soc detection infrastructure

2015-03-11 Thread Alexandre Belloni
From: Boris BREZILLON boris.brezil...@free-electrons.com Add new structures and functions to handle AT91 SoC detection. [alexandre.bell...@free-electrons.com: reworked DBGU detection] Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Signed-off-by: Boris BREZILLON

[PATCH v3 7/9] ARM: at91: at91sam9: use SoC detection infrastructure

2015-03-11 Thread Alexandre Belloni
Use the soc detection infrastructure for at91sam9 initialization. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91sam9.c | 86 --- arch/arm/mach-at91/soc.h | 30 +++ 2 files changed, 94

[PATCH v3 6/9] ARM: at91: at91rm9200 use SoC detection infrastructure

2015-03-11 Thread Alexandre Belloni
Use the soc detection infrastructure for at91rm9200 initialization. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/at91rm9200.c | 34 -- arch/arm/mach-at91/soc.h| 3 +++ 2 files changed, 23 insertions(+), 14

[PATCH v3 8/9] ARM: at91: sama5 use SoC detection infrastructure

2015-03-11 Thread Alexandre Belloni
Use the soc detection infrastructure for sama5 initialization. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/sama5.c | 54 +- arch/arm/mach-at91/soc.h | 14 2 files changed, 53 insertions

[PATCH v3 2/9] ARM: at91: remove unused at91_ioremap_matrix and header

2015-03-11 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 v3 3/9] ARM: at91: remove unused _matrix.h headers

2015-03-11 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 v3 0/9] ARM: at91 cleanups for 4.1 #1

2015-03-11 Thread Alexandre Belloni
are lowercased - Removed the unused compatible string - Use name/subname to display the type and subtype Alexandre Belloni (7): ARM: at91: remove unused at91_ioremap_matrix and header ARM: at91: remove unused _matrix.h headers ARM: at91/dt: introduce atmel,chip-dbgu ARM: at91: at91rm9200

[PATCH v3 9/9] ARM: at91: remove old setup

2015-03-11 Thread Alexandre Belloni
The old setup is not used anymore, remove it Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/Makefile | 2 +- arch/arm/mach-at91/setup.c | 320 2 files changed, 1 insertion(+), 321 deletions(-) delete

[PATCH v3 1/9] ARM: at91: remove NEED_MACH_IO_H

2015-03-11 Thread Alexandre Belloni
-electrons.com: Added PCI dependency] Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com Signed-off-by: Arnd Bergmann a...@arndb.de --- arch/arm/Kconfig | 1 - arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/include/mach/io.h | 27

[PATCH v3 4/9] ARM: at91/dt: introduce atmel,chip-dbgu

2015-03-11 Thread Alexandre Belloni
The DBGU is not a simple UART and we need to be able to distinguish it from the other UARTs, in particular to get its address and check the chip id. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/devicetree/bindings/serial/atmel-usart.txt | 3 ++- arch

Re: [PATCH] ARM: at91: force CPU selection

2015-03-10 Thread Alexandre Belloni
to select a particular SoC, because we always get the default selection and the kernel will build without any one of them being enabled. Indeed, with multiplatform, the kernel will compile without any of those being selected. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android

[PATCH v2 3/7] ARM: at91: remove unused headers

2015-03-05 Thread Alexandre Belloni
Following the switch to multiplatform, uncompress.h is not used anymore. Remove it. at91_dbgu.h is also not used anymore Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91_dbgu.h | 63 arch/arm/mach-at91/include/mach

[PATCH v2 4/7] ARM: at91: remove useless mach/cpu.h

2015-03-05 Thread Alexandre Belloni
mach/cpu.h is not used anymore, remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/at91sam9_smc.h | 2 - arch/arm/mach-at91/include/mach/cpu.h | 216 - arch/arm/mach-at91/pm.c

[PATCH v2 7/7] ARM: at91: remove hardware.h

2015-03-05 Thread Alexandre Belloni
hardware.h is now mostyl unused, move the remaining declarations to pm.c and remove it. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/include/mach/hardware.h | 123 - arch/arm/mach-at91/pm.c| 11

[PATCH v2 1/7] ARM: at91: switch to multiplatform

2015-03-05 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 | 117 +++- arch/arm/mach-at91/Makefile | 2 + 3

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

2015-03-05 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 f2670f638e97..c944fb6e1ece 100644

Re: [PATCH 3/3] net: macb: remove #if defined(CONFIG_ARCH_AT91) sections

2015-03-05 Thread Alexandre Belloni
MACB_CAPS_USRIO_DEFAULT_IS_MII)) + config = MACB_BIT(MII); + + if (bp-caps MACB_CAPS_USRIO_HAS_CLKEN) + config |= MACB_BIT(CLKEN); + + macb_or_gem_writel(bp, USRIO, config); err = register_netdev(dev); if (err) { -- Alexandre Belloni, Free Electrons

Re: [PATCH v4 6/9] ARM: at91: time: move the system timer driver to drivers/clocksource

2015-03-05 Thread Alexandre Belloni
On 05/03/2015 at 20:41:33 +0100, Paul Bolle wrote : On Thu, 2015-03-05 at 16:49 +0100, Alexandre Belloni wrote: diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 1c2506f68122..d1d15985a4ec 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource

Re: [PATCH 0/3] net: macb: rework at91 specific handling

2015-03-05 Thread Alexandre Belloni
in patch 3 but I'm fine with the series Reviewed-by: Alexandre Belloni alexandre.bell...@free-electrons.com Best Regards, Boris Boris Brezillon (3): net/macb: Update DT bindings documentation ARM: at91/dt: fix macb compatible strings net: macb: remove #if defined(CONFIG_ARCH_AT91

[PATCH v2 6/7] ARM: at91: remove SoC headers

2015-03-05 Thread Alexandre Belloni
Remove the now useless SoC headers. 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 v2 0/7] Switch mach-at91 to multiplatform

2015-03-05 Thread Alexandre Belloni
AT91 is now ready to switch to multiplatform. Do it and clean the remaining mach includes. Changes in v2: - moved the bool for ARCH_AT91 to the top - added a patch to remove the sama5d4 map_io Alexandre Belloni (7): ARM: at91: switch to multiplatform ARM: at91: switch at91_dt_defconfig

[PATCH v2 5/7] ARM: at91: sama5d4: remove useless map_io

2015-03-05 Thread Alexandre Belloni
All the peripheral remapped at io_map are taken care of by their respective drivers. Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- arch/arm/mach-at91/sama5.c | 33 - 1 file changed, 33 deletions(-) diff --git a/arch/arm/mach-at91/sama5

Re: [PATCH v4 4/9] power: reset: Add AT91RM9200 reset driver

2015-03-05 Thread Alexandre Belloni
On 05/03/2015 at 20:49:14 +0100, Paul Bolle wrote : On Thu, 2015-03-05 at 16:49 +0100, Alexandre Belloni wrote: --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -30,6 +30,13 @@ config POWER_RESET_AT91_RESET This driver supports restart for Atmel AT91SAM9

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