Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Andrew Lunn
On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: Here's the new MBus DT binding, implementing the changes proposed by Thomas when we discussed the previous patchset: http://www.spinics.net/lists/arm-kernel/msg257170.html As far as I know, this round fixes *all* the

Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Andrew Lunn
On Sat, Jul 20, 2013 at 06:58:55PM +0200, Andrew Lunn wrote: On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: Here's the new MBus DT binding, implementing the changes proposed by Thomas when we discussed the previous patchset: http://www.spinics.net/lists/arm-kernel

Re: [PATCH -next] mtd: orion_nand: convert to use devm_* APIs

2013-07-17 Thread Andrew Lunn
On Wed, Jul 17, 2013 at 10:09:10AM +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Convert to use devm_* APIs to avoid resources leak on error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mtd/nand/orion_nand.c | 29

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Andrew Lunn
all DT parsing and uses cpu-of_node instead. Cc: Andrew Lunn and...@lunn.ch Cc: Jason Cooper ja...@lakedaemon.net Acked-by: Viresh Kumar viresh.ku...@linaro.org Signed-off-by: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com --- drivers/cpufreq/kirkwood-cpufreq.c | 14 -- 1

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Andrew Lunn
On Mon, Jul 15, 2013 at 08:32:33PM -0300, Ezequiel Garcia wrote: This patchset introduces a bunch of fixes that removes the direct use of the shared timer control register, and also removes the need to include a mach-specific header. With this changes the driver can be included in

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Andrew Lunn
On Tue, Jul 16, 2013 at 09:20:59AM +0200, Thomas Petazzoni wrote: Dear Andrew Lunn, On Tue, 16 Jul 2013 08:59:52 +0200, Andrew Lunn wrote: Maybe i'm missing something here. You are making use of orion_timer_ctrl_clrset() from time-orion.c. How will this work on 370/XP which has

Re: [PATCH 05/10] watchdog: orion: Add a memory resource for RSTOUT register

2013-07-16 Thread Andrew Lunn
On Mon, Jul 15, 2013 at 08:32:38PM -0300, Ezequiel Garcia wrote: Instead of accessing the RSTOUT register directly, this commit adds a platform memory resource to map this register into the driver. Hi Ezequiel Have you looked at: arch/arm/mach-mvebu/system-controller.c It is also using this

Re: [PATCH v4 2/6] clocksource: add Marvell Orion SoC timer

2013-06-10 Thread Andrew Lunn
with shared registers. It has done it before, so I consider it broken anyway. I (or somebody else) will take care of proper watchdog later. - An updated branch can be found on git://github.com/shesselba/linux-dove.git orion-irqchip-for-v3.11_v4 Hi Sebastian You can add a Tested-by: Andrew Lunn

Re: [RESEND PATCH V3 0/8] mmc_of_parse() adaptations, switch mvsdio to mmc_of_parse()

2013-06-10 Thread Andrew Lunn
is structured as follows: 1 Adapt mmc_of_parse() to return errors 2-6 Handle errors in current drivers using mmc_of_parse() (compile tested only) 7-8 Convert mvsdio and respective dts files to mmc_of_parse() (tested on kirkwood) Hi Simon Tested-by: Andrew Lunn and...@lunn.ch I

Re: [PATCH V3 09/10] ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug

2013-05-20 Thread Andrew Lunn
{ + compatible = gpio-leds; + + misc { + label = sheevaplug:red:misc; + gpios = gpio1 14 1; + }; + }; +}; -- 1.7.9.5 Hi Simon Looks good Acked-by: Andrew Lunn and...@lunn.ch

Re: [PATCH V3 10/10] ARM: Kirkwood: add DT support for Sheevaplug and Sheevaplug eSATA

2013-05-20 Thread Andrew Lunn
qnap_dt_ts219_init(void); #else -- 1.7.9.5 Acked-by: Andrew Lunn and...@lunn.ch ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: [PATCH 1/3] clk: mvebu: add gate ctrl for Prestera kirkwood variants

2013-05-07 Thread Andrew Lunn
On Tue, May 07, 2013 at 06:11:44PM +0200, Gregory CLEMENT wrote: On 05/07/2013 05:52 PM, Valentin Longchamp wrote: The kirkwood device found in the Prestera SoCs does not have all the peripherals of its the usual kirkwood SoCs. There are hence missing clocks in the SoCs. This patch

Re: [PATCH] irqchip: add support for Marvell Orion SoCs

2013-05-02 Thread Andrew Lunn
On Thu, May 02, 2013 at 09:48:50PM +0200, Sebastian Hesselbarth wrote: On 05/02/2013 09:35 PM, Jason Gunthorpe wrote: I have kirkwood HW but I haven't had time to make newer kernels run on it, otherwise I'd test it too :( I also have kirkwood HW but that will cut me from email as I use it as

Re: [PATCH v2 2/5] ARM: dove: add DT parsing for legacy mv643xx_eth

2013-05-02 Thread Andrew Lunn
...@linutronix.de Cc: Russell King li...@arm.linux.org.uk Cc: Arnd Bergmann a...@arndb.de Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn and...@lunn.ch Cc: Jason Gunthorpe jguntho...@obsidianresearch.com Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Gregory Clement gregory.clem

Re: [PATCHv1 1/3] hwmon: Add support for GMT G762/G763 PWM fan controller

2013-04-23 Thread Andrew Lunn
On Wed, Apr 24, 2013 at 12:05:56AM +0200, Arnaud Ebalard wrote: Signed-off-by: Arnaud Ebalard a...@natisbad.org Tested-by: Arnaud Ebalard a...@natisbad.org --- drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile |1 + drivers/hwmon/g762.c | 1058

Re: [PATCH 1/3] Add support for GMT G72/G763 PWM fan controller

2013-04-18 Thread Andrew Lunn
Hi Arnaud +static DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, get_pwm, set_pwm); +static DEVICE_ATTR(pwm1_polarity, S_IWUSR | S_IRUGO, +get_pwm_polarity, set_pwm_polarity); +static DEVICE_ATTR(pwm1_mode, S_IWUSR | S_IRUGO, +get_pwm_mode, set_pwm_mode); +static

Re: [PATCH 2/6] rtc: rtc-m48t86: add hooks to support driver side memory mapping

2013-04-04 Thread Andrew Lunn
-static int m48t86_rtc_probe(struct platform_device *dev) +static int m48t86_rtc_probe(struct platform_device *pdev) { unsigned char reg; - struct m48t86_ops *ops = dev-dev.platform_data; - struct rtc_device *rtc = rtc_device_register(m48t86, -

Re: [PATCH 5/5] arm: dts: Convert mvebu device tree files to 64 bits

2013-03-22 Thread Andrew Lunn
Hi all, So, lets see if i have all this right. IO space needs to stay where it is, somewhere in the top 1GB, because it is limited to the 32bit address space. We must have some SDRAM in the bottom of the 40bit address range in order that DMA works. Bounce buffers are used for anything which is

Re: [PATCH 2/5] arm: mvebu: Select DMA_BOUNCE when LPAE is selected in Kconfig

2013-03-21 Thread Andrew Lunn
On Thu, Mar 21, 2013 at 05:26:15PM +0100, Gregory CLEMENT wrote: From: Lior Amsalem al...@marvell.com For mvebu IOs are 32 bits and we have 40 bits memory due to LPAE so make sure we give 32 bits addresses to the IOs. Hi Gregory, Lior I don't really understand what this comment is supposed

Re: [PATCH 5/5] arm: dts: Convert mvebu device tree files to 64 bits

2013-03-21 Thread Andrew Lunn
/* - * 4 GB of plug-in RAM modules by default but only 3GB - * are visible, the amount of memory available can be - * changed by the bootloader according the size of the - * module actually plugged + * 8 GB of

Re: [PATCH 5/5] arm: dts: Convert mvebu device tree files to 64 bits

2013-03-21 Thread Andrew Lunn
On Thu, Mar 21, 2013 at 09:22:36PM +0100, Thomas Petazzoni wrote: Dear Andrew Lunn, On Thu, 21 Mar 2013 21:15:33 +0100, Andrew Lunn wrote: Could you recommend a document which introduces LPAE. Only being able to address 7GB seems a bit odd to me. I kind of expected you set up

Re: [PATCH 5/5] arm: dts: Convert mvebu device tree files to 64 bits

2013-03-21 Thread Andrew Lunn
Or, better, locate all the internal registers above 8G and use contiguous DRAM mapping from 0 - 8GB Wouldn't that get us into a 640KBs is enough for everyone situation? Why not put the IO at the very top of the 1TB address range? Andrew ___

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2013-02-10 Thread Andrew Lunn
+* QNAP Power Off + +QNAP NAS devices have a microcontroller controlling the main power +supply. This microcontroller is connected to UART1 of the Kirkwood and +Orion5x SoCs. Sending the charactor 'A', at 19200 baud, tells the +microcontroller to turn the power off. This driver adds a

Re: [PATCH] arm: mvebu: Add SPI flash on Armada XP-GP board

2013-02-05 Thread Andrew Lunn
And don't forget to compile the SPI flash driver, CONFIG_MTD_M25P80=y Hi Ezequiel Maybe it makes sense to provide a patch to mvebu_defconfig to add CONFIG_MTD_M25P80=y ? Andrew ___ devicetree-discuss mailing list

Re: [PATCH 0/2] ARM: mvebu: Add support for SPI controller in Armada 370/XP

2013-02-04 Thread Andrew Lunn
On Mon, Feb 04, 2013 at 01:51:20PM -0300, Ezequiel Garcia wrote: Hi, This patchset adds support for the SPI controller available in Armada 370 and Armada XP SoC. Hi Ezequiel Do any of the boards we have with mainline support have any devices on the SPI busses? Its hard to test otherwise.

Re: [PATCH] arm: mvebu: support for the new Armada XP evaluation board(DB-MV784MP-GP)

2013-01-31 Thread Andrew Lunn
On Wed, Jan 30, 2013 at 01:10:35PM -0500, Jason Cooper wrote: Gregory, Adding devicetree-discuss. Guys, how do you prefer to handle plug-in RAM modules? describe the soldered-in amount, or? On Wed, Jan 30, 2013 at 06:35:17PM +0100, Gregory CLEMENT wrote: On 01/30/2013 06:33 PM,

Re: [PATCH] arm: mvebu: support for the new Armada XP evaluation board(DB-MV784MP-GP)

2013-01-31 Thread Andrew Lunn
Well in fact it is 4GB RAM but we can only use 3GB (we need the last GB of address space for peripheral, CPU registers and IOmem). Hi Gregory Does the CPU support Large Physical Addressing, LPA? Is that on the roadmap for Armada? Andrew ___

Re: [PATCH] arm: mvebu: support for the new Armada XP evaluation board(DB-MV784MP-GP)

2013-01-31 Thread Andrew Lunn
On Thu, Jan 31, 2013 at 05:22:54PM +0100, Andrew Lunn wrote: Well in fact it is 4GB RAM but we can only use 3GB (we need the last GB of address space for peripheral, CPU registers and IOmem). Hi Gregory Does the CPU support Large Physical Addressing, LPA? Is that on the roadmap

Re: [PATCH 3/4] Enable ecc-mode selection in the driver

2013-01-16 Thread Andrew Lunn
On Wed, Jan 16, 2013 at 12:43:57PM +0100, Stefan Peter wrote: Hi Andrew on 15.01.2013 13:51, Andrew Lunn wrote: On Tue, Jan 15, 2013 at 01:13:12PM +0100, Stefan Peter wrote: In order to be able to use the ecc-mode, add the bch module to the default settings for the kirwood boards

Re: [PATCH 3/4] Enable ecc-mode selection in the driver

2013-01-15 Thread Andrew Lunn
On Tue, Jan 15, 2013 at 01:13:12PM +0100, Stefan Peter wrote: In order to be able to use the ecc-mode, add the bch module to the default settings for the kirwood boards and enable the activation in orin-nand.c Signed-off-by: Stefan Peter s.pe...@mpl.ch --- diff --git

machine_is_dt() ?

2013-01-06 Thread Andrew Lunn
Hi Folks I'm moving the cpuidle code for Kirkwood into drivers/cpuidle. I'm following the way cpuidle-calxeda.c instantiates the driver, it uses module_init(calxeda_cpuidle_init) and calxeda_cpuidle_init() uses of_machine_is_compatible(calxeda,highbank) so only loading the driver in a

Re: machine_is_dt() ?

2013-01-06 Thread Andrew Lunn
On Sun, Jan 06, 2013 at 01:41:13PM +, Russell King - ARM Linux wrote: On Sun, Jan 06, 2013 at 02:18:05PM +0100, Andrew Lunn wrote: I'm moving the cpuidle code for Kirkwood into drivers/cpuidle. I'm following the way cpuidle-calxeda.c instantiates the driver, it uses module_init

[PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
, + .of_match_table = of_kirkwood_cpuidle_match, + }, +}; + +module_platform_driver(kirkwood_cpuidle_driver); + +MODULE_AUTHOR(Andrew Lunn and...@lunn.ch); +MODULE_DESCRIPTION(Kirkwood cpu idle driver); +MODULE_LICENSE(GPLv2); +MODULE_ALIAS(platform:kirkwood-cpuidle); -- 1.7.10.4

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
On Fri, Dec 28, 2012 at 08:18:42AM -0600, Rob Herring wrote: On 12/28/2012 06:47 AM, Andrew Lunn wrote: Move the Kirkwood cpuidle driver out of arch/arm/mach-kirkwood and into drivers/cpuidle. Convert the driver into a platform driver and add a device tree binding. Add a DT node

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
On Fri, Dec 28, 2012 at 03:32:08PM +0100, Florian Fainelli wrote: Hello Andrew, Le 12/28/12 13:47, Andrew Lunn a ??crit : Move the Kirkwood cpuidle driver out of arch/arm/mach-kirkwood and into drivers/cpuidle. Convert the driver into a platform driver and add a device tree binding. Add

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
On Fri, Dec 28, 2012 at 08:55:31AM -0600, Rob Herring wrote: On 12/28/2012 08:35 AM, Andrew Lunn wrote: On Fri, Dec 28, 2012 at 08:18:42AM -0600, Rob Herring wrote: On 12/28/2012 06:47 AM, Andrew Lunn wrote: Move the Kirkwood cpuidle driver out of arch/arm/mach-kirkwood and into drivers

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
The block of registers is for controlling the SDRAM. Its not really a MFD. The cpuidle code is putting the SDRAM controller into self refresh mode and then doing a WFI. It is multi-function in the sense that multiple subsystems needing to access shared registers. If you have ECC, then

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
Putting DDR/SDRAM into self refresh means, you no longer have RAM available to execute and any code CPU needs to execute after that has to be executed either from lock down cache with no cache evictions or from some internal on chip memory with caches disabled to avoid accesses to DDR. Not

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2012-12-28 Thread Andrew Lunn
Is this single CPU or multi-cpu machine ? Its a uniprocessor. Even though the cpu_do_idle() has just couple of instructions, there can be lot more happening in background especially with multi masters system. It might be safe if the single CPU is the only master accessing DDR. In

Re: [PATCH 0/2] add RTC support for Armada 370 and Armada XP

2012-12-10 Thread Andrew Lunn
material. Acked-by: Andrew Lunn and...@lunn.ch Andrew Thanks, Gregory CLEMENT (2): arm: mvebu: add RTC support for Armada 370 and Armada XP rtc: rtc-mv: Add the device tree binding documentation .../devicetree/bindings/rtc/orion-rtc.txt | 18

Re: [PATCH 1/2] arm: mvebu: add RTC support for Armada 370 and Armada XP

2012-12-10 Thread Andrew Lunn
On Mon, Dec 10, 2012 at 11:37:23PM +0100, Thomas Petazzoni wrote: Dear Grant Likely, On Mon, 10 Dec 2012 21:47:55 +, Grant Likely wrote: Maybe an explicit status = okay here? Only necessary if it is typical for the device to get disabled. I don't add status=okay properties

Re: [PATCH v3 1/3] power: Add simple poweroff-gpio driver

2012-11-20 Thread Andrew Lunn
the top. If its available before Arnd pulls, you can squash it, otherwise send it upstream as a standalone patch. Thanks Andrew On Mon, Nov 19, 2012 at 10:38:06AM -0700, Stephen Warren wrote: On 11/17/2012 01:51 AM, Andrew Lunn wrote: Given appropriate devicetree bindings

Re: [PATCH v3 1/3] power: Add simple poweroff-gpio driver

2012-11-20 Thread Andrew Lunn
On Tue, Nov 20, 2012 at 10:11:18AM -0700, Stephen Warren wrote: On 11/20/2012 01:37 AM, Andrew Lunn wrote: Hi Jason These are good comments from Stephan that i want to address. However, i also don't want to delay the pull-requests direction arm-soc, the merge window is getting close

Re: [PATCH v3 1/3] power: Add simple poweroff-gpio driver

2012-11-20 Thread Andrew Lunn
On Tue, Nov 20, 2012 at 02:17:24PM -0700, Stephen Warren wrote: On 11/20/2012 01:31 PM, Andrew Lunn wrote: On Tue, Nov 20, 2012 at 10:11:18AM -0700, Stephen Warren wrote: On 11/20/2012 01:37 AM, Andrew Lunn wrote: Hi Jason These are good comments from Stephan that i want to address

Re: [PATCH v2 0/3] GPIO driver to turn power off

2012-11-17 Thread Andrew Lunn
On Fri, Nov 16, 2012 at 11:23:35AM -0800, Anton Vorontsov wrote: On Fri, Nov 16, 2012 at 09:19:47AM -0500, Jason Cooper wrote: [...] Is it ok if we take this through the arm-soc tree with your Ack? Yup. The driver looks good. Acked-by: Anton Vorontsov cbouatmai...@gmail.com Hi Anton

Re: [PATCH v2 3/3] ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff.

2012-11-17 Thread Andrew Lunn
On Fri, Nov 16, 2012 at 08:32:50PM +0100, Simon Baatz wrote: Hi Andrew, On Tue, Nov 13, 2012 at 04:44:45PM +0100, Andrew Lunn wrote: Signed-off-by: Andrew Lunn and...@lunn.ch --- arch/arm/boot/dts/kirkwood-ib62x0.dts |6 ++ arch/arm/mach-kirkwood/board-ib62x0.c | 13

Re: [PATCH v2 1/3] power: Add simple poweroff-gpio driver

2012-11-17 Thread Andrew Lunn
+ * Hold configuration here, cannot be more than one instance of the driver + * since pm_power_off itself is global. + */ +static int gpio_num = -1; +static int gpio_active_low; + +static void gpio_poweroff_do_poweroff(void) +{ + BUG_ON(gpio_num == -1); + + /* drive it

[PATCH v3 0/3] GPIO driver to turn power off

2012-11-17 Thread Andrew Lunn
the same scheme. The driver code was initially developed by Jamie Lentin and extended to cover the PXA case by Andrew Lunn. v1 - v2: Moved to drivers/power/reset v2 - v3: Fixed polarity of IB62x0 GPIO Increased delay before WARN if the power does not go off. Andrew Lunn (2): ARM: Kirkwood

[PATCH v3 2/3] ARM: Kirkwood: Convert DNSKW to use gpio-poweroff.

2012-11-17 Thread Andrew Lunn
Also enable the gpio-poweroff driver when DT is used. Signed-off-by: Andrew Lunn and...@lunn.ch Tested-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dnskw.dtsi |5 + arch/arm/mach-kirkwood/Kconfig|4 arch/arm/mach-kirkwood/board-dnskw.c | 12

[PATCH v3 3/3] ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff.

2012-11-17 Thread Andrew Lunn
Signed-off-by: Andrew Lunn and...@lunn.ch Tested-by: Simon Baatz gmbno...@gmail.com --- arch/arm/boot/dts/kirkwood-ib62x0.dts |6 ++ arch/arm/mach-kirkwood/board-ib62x0.c | 13 - 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood

[PATCH v3 1/3] power: Add simple poweroff-gpio driver

2012-11-17 Thread Andrew Lunn
From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree bindings, this driver registers a pm_power_off function to set a GPIO line high/low to power down your board. Signed-off-by: Jamie Lentin j...@lentin.co.uk Signed-off-by: Andrew Lunn and...@lunn.ch Tested-by:Simon Baatz gmbno

[PATCH v2 0/9] core, cpu and gated clocks for mvebu

2012-11-17 Thread Andrew Lunn
to a number of symbols renamed clk_gate to gate_clk renamed *-clock-gating to *-gating-clock Add gating-clock implementation for Armada 370/XP Add Tested-by from Gregory Documented required clock property in armada-370-xp-timer.txt Andrew Lunn (1): ARM: Kirkwood: switch to DT clock providers

[PATCH v2 3/9] clk: armada-370-xp: add support for clock framework

2012-11-17 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Tested-by Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-370.dtsi |7 ++ arch/arm/boot/dts/armada-xp.dtsi| 42

[PATCH v2 2/9] clk: mvebu: add armada-370-xp CPU specific clocks

2012-11-17 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Add Armada 370/XP specific CPU clocks Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Tested-by Gregory CLEMENT gregory.clem...@free-electrons.com --- .../devicetree/bindings/clock/mvebu-cpu-clock.txt | 21 +++

[PATCH v2 4/9] clocksource: convert time-armada-370-xp to clk framework

2012-11-17 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Tested-by Gregory CLEMENT gregory.clem...@free-electrons.com --- .../devicetree/bindings/arm/armada-370-xp-timer.txt |1 + arch/arm/boot/dts/armada-370-db.dts

[PATCH v2 1/9] clk: mvebu: add mvebu core clocks.

2012-11-17 Thread Andrew Lunn
a divider of 0 will lead to div_by_zero panic. Let's use a ratio of 0/1 instead to fail later with a zero clock. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Signed-off-by: Andrew Lunn and...@lunn.ch Tested

[PATCH v2 6/9] ARM: dove: switch to DT clock providers

2012-11-17 Thread Andrew Lunn
From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com With true DT clock providers available switch Dove clock setup in DT- enabled boards. While AUXDATA can be removed completely from bus probing, some devices still don't know about DT at all. Therefore, some clock aliases are created

[PATCH v2 5/9] clk: mvebu: add clock gating control provider for DT

2012-11-17 Thread Andrew Lunn
Hesselbarth sebastian.hesselba...@gmail.com + * Andrew Lunn and...@lunn.ch + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed as is without any + * warranty of any kind, whether express or implied. + */ +#include linux/kernel.h +#include

[PATCH v2 7/9] ARM: Kirkwood: switch to DT clock providers

2012-11-17 Thread Andrew Lunn
With true DT clock providers available switch Kirkwood clock setup in DT- enabled boards. While AUXDATA can be removed completely from bus probing, some devices still don't know about DT. Therefore, some clkdev aliases are created until these devices also move to DT. Signed-off-by: Andrew Lunn

[PATCH v2 9/9] arm: mvebu: armada 370/XP adding clock gating support: dt binding

2012-11-17 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Andrew Lunn and...@lunn.ch --- arch/arm/boot/dts/armada-370.dtsi |8 arch/arm/boot/dts/armada-xp.dtsi |7 +++ 2 files changed, 15

[PATCH v2 8/9] clk: mvebu: armada 370/XP add clock gating control provider for DT

2012-11-17 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Andrew Lunn and...@lunn.ch --- .../bindings/clock/mvebu-gated-clock.txt | 43 ++ arch/arm/mach-mvebu/Kconfig

[PATCH 0/7] core, cpu and gated clocks for mvebu

2012-11-15 Thread Andrew Lunn
Armarda 370 based mirabox Armara XP based OpenBlocks and by Sebastian on: Dove based Cubox. Andrew Lunn (1): ARM: Kirkwood: switch to DT clock providers Gregory CLEMENT (3): clk: mvebu: add armada-370-xp CPU specific clocks clk: armada-370-xp: add support for clock framework clocksource: time

[PATCH 2/7] clk: mvebu: add armada-370-xp CPU specific clocks

2012-11-15 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Add Armada 370/XP specific CPU clocks Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- .../devicetree/bindings/clock/mvebu-core-clock.txt | 18 +-- .../devicetree/bindings/clock/mvebu-cpu-clock.txt | 21 +++

[PATCH 3/7] clk: armada-370-xp: add support for clock framework

2012-11-15 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-370.dtsi |7 ++ arch/arm/boot/dts/armada-xp.dtsi| 42 +++ arch/arm/mach-mvebu/Kconfig |

[PATCH 1/7] clk: mvebu: add mvebu core clocks.

2012-11-15 Thread Andrew Lunn
a divider of 0 will lead to div_by_zero panic. Let's use a ratio of 0/1 instead to fail later with a zero clock. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Signed-off-by: Andrew Lunn and...@lunn.ch

[PATCH 4/7] clocksource: time-armada-370-xp converted to clk framework

2012-11-15 Thread Andrew Lunn
From: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com cc: John Stultz johns...@us.ibm.com --- arch/arm/boot/dts/armada-370-db.dts |4 arch/arm/boot/dts/armada-370-xp.dtsi |1 +

[PATCH 5/7] clk: mvebu: add clock gating control provider for DT

2012-11-15 Thread Andrew Lunn
Hesselbarth sebastian.hesselba...@gmail.com + * Andrew Lunn and...@lunn.ch + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed as is without any + * warranty of any kind, whether express or implied. + */ +#include linux/kernel.h +#include

[PATCH 6/7] ARM: dove: switch to DT clock providers

2012-11-15 Thread Andrew Lunn
From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com With true DT clock providers available switch Dove clock setup in DT- enabled boards. While AUXDATA can be removed completely from bus probing, some devices still don't know about DT at all. Therefore, some clock aliases are created

[PATCH 7/7] ARM: Kirkwood: switch to DT clock providers

2012-11-15 Thread Andrew Lunn
With true DT clock providers available switch Kirkwood clock setup in DT- enabled boards. While AUXDATA can be removed completely from bus probing, some devices still don't know about DT. Therefore, some clkdev aliases are created until these devices also move to DT. Signed-off-by: Andrew Lunn

Re: [PATCH 0/7] core, cpu and gated clocks for mvebu

2012-11-15 Thread Andrew Lunn
I had a quick look and made a few comments, but overall, it looks really great. I really hope we can get this in 3.8. Hi Thomas Thanks for the quick feedback. It looks like i squashed some patches from Sebastian in the wrong place. I will fix this and your other comments. I will probably send

[PATCH v2 3/3] ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff.

2012-11-13 Thread Andrew Lunn
Signed-off-by: Andrew Lunn and...@lunn.ch --- arch/arm/boot/dts/kirkwood-ib62x0.dts |6 ++ arch/arm/mach-kirkwood/board-ib62x0.c | 13 - 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0

[PATCH v2 1/3] power: Add simple poweroff-gpio driver

2012-11-13 Thread Andrew Lunn
From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree bindings, this driver registers a pm_power_off function to set a GPIO line high/low to power down your board. Signed-off-by: Jamie Lentin j...@lentin.co.uk Signed-off-by: Andrew Lunn and...@lunn.ch --- .../devicetree/bindings

[PATCH v2 0/3] GPIO driver to turn power off

2012-11-13 Thread Andrew Lunn
the same scheme. The driver code was initially developed by Jamie Lentin and extended to cover the PXA case by Andrew Lunn. v1 - v2: Moved to drivers/power/reset Andrew Lunn (2): ARM: Kirkwood: Convert DNSKW to use gpio-poweroff. ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff. Jamie Lentin (1

[PATCH v2 2/3] ARM: Kirkwood: Convert DNSKW to use gpio-poweroff.

2012-11-13 Thread Andrew Lunn
Also enable the gpio-poweroff driver when DT is used. Signed-off-by: Andrew Lunn and...@lunn.ch Tested-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dnskw.dtsi |5 + arch/arm/mach-kirkwood/Kconfig|4 arch/arm/mach-kirkwood/board-dnskw.c | 12

Re: [PATCH 1/3] gpio: Add simple poweroff-gpio driver

2012-11-12 Thread Andrew Lunn
On Sun, Nov 11, 2012 at 03:03:49PM -0700, Stephen Warren wrote: On 11/11/2012 09:21 AM, Andrew Lunn wrote: From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree bindings, this driver registers a pm_power_off function to set a GPIO line high/low to power down your board

Re: [PATCH 1/3] gpio: Add simple poweroff-gpio driver

2012-11-12 Thread Andrew Lunn
On Mon, Nov 12, 2012 at 09:17:48AM -0700, Stephen Warren wrote: On 11/12/2012 01:25 AM, Andrew Lunn wrote: On Sun, Nov 11, 2012 at 03:03:49PM -0700, Stephen Warren wrote: On 11/11/2012 09:21 AM, Andrew Lunn wrote: From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree

[PATCH 1/3] gpio: Add simple poweroff-gpio driver

2012-11-11 Thread Andrew Lunn
From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree bindings, this driver registers a pm_power_off function to set a GPIO line high/low to power down your board. Signed-off-by: Jamie Lentin j...@lentin.co.uk Signed-off-by: Andrew Lunn and...@lunn.ch --- .../devicetree/bindings

[PATCH 3/3] ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff.

2012-11-11 Thread Andrew Lunn
Signed-off-by: Andrew Lunn and...@lunn.ch --- arch/arm/boot/dts/kirkwood-ib62x0.dts |6 ++ arch/arm/mach-kirkwood/board-ib62x0.c | 13 - 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0

[PATCH 0/3] GPIO driver to turn power off

2012-11-11 Thread Andrew Lunn
the same scheme. The driver code was initially developed by Jamie Lentin and extended to cover the PXA case by Andrew Lunn. Andrew Lunn (2): ARM: Kirkwood: Convert DNSKW to use gpio-poweroff. ARM: Kirkwood: Convert IB62x0 to use gpio-poweroff. Jamie Lentin (1): gpio: Add simple poweroff-gpio

Re: [PATCH 1/3] gpio: Add simple poweroff-gpio driver

2012-11-11 Thread Andrew Lunn
On Sun, Nov 11, 2012 at 05:12:58PM -0800, Anton Vorontsov wrote: On Mon, Nov 12, 2012 at 02:00:31AM +0100, Linus Walleij wrote: On Sun, Nov 11, 2012 at 5:21 PM, Andrew Lunn and...@lunn.ch wrote: From: Jamie Lentin j...@lentin.co.uk Given appropriate devicetree bindings, this driver

[PATCH v2 0/2] DT EHCI support for Kirkwood.

2012-10-20 Thread Andrew Lunn
, and currently converting orion5x to DT is low priority. Adding a phy node later will also not affect backwards compatibility. Andrew Lunn (2): ARM: Kirkwood: ehci-orion: Add device tree binding ARM: Kirkwood: Convert all DT boards to EHCI via DT. .../devicetree/bindings/usb/ehci-orion.txt

[PATCH v2 1/2] ARM: Kirkwood: ehci-orion: Add device tree binding

2012-10-20 Thread Andrew Lunn
Based on previous work by Michael Walle and Jason Cooper. Made their work actually work, which required added interrupt from DT and auxdata, along with setting the dma_mask, which DT does not currently do. Signed-off-by: Andrew Lunn and...@lunn.ch Tested-by: Sebastian Hesselbarth

[PATCH v2 2/2] ARM: Kirkwood: Convert all DT boards to EHCI via DT.

2012-10-20 Thread Andrew Lunn
Now that the EHCI driver has DT support, drop old style configuration of it and add DT in its place. Since all the boards enable the EHCI, enable it by default in kirkwood.dtsi. Any new boards which don't have USB can specifically disable it. Signed-off-by: Andrew Lunn and...@lunn.ch --- arch

Re: [PATCH v6 3/5] watchdog: at91sam9_wdt: add device tree support

2012-10-02 Thread Andrew Lunn
I was thinking to add a more generic helper function like this: static inline void watchdog_get_dttimeout(struct device_node *node, u32 *timeout) { if (node) of_property_read_u32(node, timeout, wdd-timeout); } You forgot to change the function signature. Also, if

Re: [PATCH v7 1/3] watchdog: at91sam9_wdt: add device tree

2012-10-02 Thread Andrew Lunn
Date: Tue, 2 Oct 2012 18:01:00 +0200 From: Fabio Porcedda fabio.porce...@gmail.com To: Wim Van Sebroeck w...@iguana.be, linux-watch...@vger.kernel.org, linux-arm-ker...@lists.infradead.org, Nicolas Ferre nicolas.fe...@atmel.com, Jean-Christophe PLAGNIOL-VILLARD

Re: [PATCH v6 3/5] watchdog: at91sam9_wdt: add device tree support

2012-10-01 Thread Andrew Lunn
On Mon, Oct 01, 2012 at 02:48:01PM +0200, Fabio Porcedda wrote: On Mon, Oct 1, 2012 at 2:45 PM, Andrew Lunn and...@lunn.ch wrote: On Mon, Oct 01, 2012 at 02:24:39PM +0200, Fabio Porcedda wrote: Tested on an at91sam9260 board (evk-pro3) Signed-off-by: Fabio Porcedda fabio.porce

Re: [PATCH v6 3/5] watchdog: at91sam9_wdt: add device tree support

2012-10-01 Thread Andrew Lunn
On Mon, Oct 01, 2012 at 02:54:55PM +0200, Fabio Porcedda wrote: On Mon, Oct 1, 2012 at 2:48 PM, Fabio Porcedda fabio.porce...@gmail.com wrote: On Mon, Oct 1, 2012 at 2:45 PM, Andrew Lunn and...@lunn.ch wrote: On Mon, Oct 01, 2012 at 02:24:39PM +0200, Fabio Porcedda wrote: Tested

Re: [PATCH 1/2] ARM: Kirkwood: ehci-orion: Add device tree binding

2012-09-24 Thread Andrew Lunn
+Required properties: +- compatible: must be marvell,orion-ehci +- reg: physical base address of the controller and length of memory mapped + region. +- interrupts: The EHCI interrupt +- phy-version: Can be one of: + NA - Don't touch the phy, something else has already configured

Re: [PATCH 00/11] pinctrl: mvebu: pinctrl driver

2012-09-20 Thread Andrew Lunn
Hi Thomas Hum, which patches are stalling the integration into the Marvell tree? l2 cache, I think. The trees Jason built for pull requests in the direction of arm-soc had the l2 cache patch as the very first in the series. Now that these patches have run into some trouble, its blocking all

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-20 Thread Andrew Lunn
On Thu, Sep 20, 2012 at 03:30:40PM +, Arnd Bergmann wrote: On Monday 17 September 2012, Linus Walleij wrote: You found the weak spot between two consolidation tracks. Getting rid of a broadcast autodetect functions from say mach/foo-id-probe.h is nominally done by passing the data

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-20 Thread Andrew Lunn
So, wouldn't we need a small, architecture-independent, infrastructure, through which architecture-specific code could register at boot time which SoC we are running on, and drivers could query this information from the common infrastructure? Of course, the major problem is to figure out

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-18 Thread Andrew Lunn
thinks that autoprobing is not going to happen, Tested-by: Andrew Lunn and...@lunn.ch However, i still think it would be nice to have auto probing. Andrew Cc: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Grant Likely

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-17 Thread Andrew Lunn
I had a closer look at how kirkwood probes its id. I mentionend kirkwood_id() earlier but in fact it is kirkwood_pcie_id(). I assume pcie registers are shut down with pcie clk gated? That would require to have pcie running at least at boot-time on all boards. While it is still possible to

Re: [PATCH v4 03/10] pinctrl: mvebu: kirkwood pinctrl driver

2012-09-16 Thread Andrew Lunn
+++ b/Documentation/devicetree/bindings/pinctrl/marvell,kirkwood-pinctrl.txt @@ -0,0 +1,279 @@ +* Marvell Kirkwood SoC pinctrl driver for mpp + +Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding +part and usage. + +Required properties: +- compatible:

Re: [PATCH v3 2/5] Documentation: add description of DT binding for the gpio-mvebu driver

2012-09-16 Thread Andrew Lunn
+++ b/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt @@ -0,0 +1,45 @@ +* Marvell EBU GPIO controller + +Required properties: + +- compatible : Should be marvell,orion-gpio, marvell,mv78200-gpio + or marvell,armadaxp-gpio. marvell,orion-gpio should be used for + Orion, Kirkwood,

Re: [PATCH V2 1/2] hwmon: Add devicetree bindings to gpio-fan

2012-09-10 Thread Andrew Lunn
u32s [Guenter Roeck] * Don't count GPIOs twice [Andrew Lunn] * Use of_prop_next_u32 to get records in a more obvious fashion * Use CONFIG_OF_GPIO instead of CONFIG_OF * Apply __devinitdata to of_gpio_fan_match [Andrew Lunn] Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree

Re: [PATCH 1/2] hwmon: Add devicetree bindings to gpio-fan

2012-09-08 Thread Andrew Lunn
Hi Jamie +static int gpio_fan_get_of_pdata(struct device *dev, + struct gpio_fan_platform_data *pdata) +{ + struct device_node *node; + struct gpio_fan_speed *speed; + unsigned *ctrl; + unsigned i; + u32 u; + struct property *prop; +

Re: [PATCH v2 RESEND] ARM: Build dtb files in all target

2012-09-07 Thread Andrew Lunn
On Fri, Sep 07, 2012 at 10:57:01AM -0400, Jason Cooper wrote: On Mon, Sep 03, 2012 at 06:58:07PM +0200, Andrew Lunn wrote: Tools like kisskb are good at finding build regressions in the kernel sources. However, regressions in the DT desscriptions are not found, because generally these build

Re: [PATCH 2/2] ARM: kirkwood: Use devicetree to define DNS-32[05] fan

2012-09-07 Thread Andrew Lunn
diff --git a/arch/arm/mach-kirkwood/board-dnskw.c b/arch/arm/mach-kirkwood/board-dnskw.c index 4ab3506..e202a07 100644 --- a/arch/arm/mach-kirkwood/board-dnskw.c +++ b/arch/arm/mach-kirkwood/board-dnskw.c @@ -67,29 +67,6 @@ static unsigned int dnskw_mpp_config[] __initdata = { 0 };

[PATCH v2 RESEND] ARM: Build dtb files in all target

2012-09-03 Thread Andrew Lunn
Tools like kisskb are good at finding build regressions in the kernel sources. However, regressions in the DT desscriptions are not found, because generally these build systems don't build the DT binary blobs. Extend the ARM all target to build all enabled DTB files. Signed-off-by: Andrew Lunn

  1   2   >