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

2012-11-15 Thread Jamie Lentin
On Thu, 15 Nov 2012, Grant Likely wrote: On Sun, 11 Nov 2012 17:21:29 +0100, Andrew Lunn and...@lunn.ch 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

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

2012-09-14 Thread Jamie Lentin
Allow a gpio-fan to be defined in devicetree, see binding documentation for details. Signed-off-by: Jamie Lentin j...@lentin.co.uk Acked-by: Andrew Lunn and...@lunn.ch --- Changes since V2:- * Correct error message terminology * Check of_gpio_count returns some GPIOs [Guenter Roeck] * Whitespace

[PATCH V2 0/2] hwmon: kirkwood: Add DT bindings to gpio-fan for DNS-32[05]

2012-09-10 Thread Jamie Lentin
instead of CONFIG_OF * Apply __devinitdata to of_gpio_fan_match [Andrew Lunn] * Remove useless gpio-fan.h [Andrew Lunn] Feedback appreciated! Jamie Lentin (2): hwmon: Add devicetree bindings to gpio-fan ARM: kirkwood: Use devicetree to define DNS-32[05] fan .../devicetree/bindings/gpio/gpio

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

2012-09-10 Thread Jamie Lentin
Remove more board-specific code by using devicetree to define the fan attached to both boards. Changes since V1:- * Remove now-useless gpio-fan.h [Andrew Lunn] Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dnskw.dtsi | 10 ++ arch/arm/mach-kirkwood/board

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

2012-09-10 Thread Jamie Lentin
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/bindings/gpio/gpio-fan.txt | 25 + drivers/hwmon/gpio-fan.c

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

2012-09-10 Thread Jamie Lentin
On Mon, 10 Sep 2012, Andrew Lunn wrote: On Mon, Sep 10, 2012 at 02:51:51PM +0100, Jamie Lentin wrote: Allow a gpio-fan to be defined in devicetree, see binding documentation for details. Changes since V1:- * Don't hide return codes [Guenter Roeck] * Remove typecast noise [Guenter Roeck] * Use

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

2012-09-07 Thread Jamie Lentin
Remove more board-specific code by using devicetree to define the fan attached to both boards. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dnskw.dtsi | 10 ++ arch/arm/mach-kirkwood/board-dnskw.c | 25 - 2 files changed, 10

[PATCH 0/2] hwmon: kirkwood: Add DT bindings to gpio-fan for DNS-32[05]

2012-09-07 Thread Jamie Lentin
This is an attempt at getting DT support into gpio-fan, in a similar fashion to gpio-leds and gpio-keys. I guess the most contentious bit is going to be the bindings. Tested on a D-Link DNS-320. Feedback appreciated! Jamie Lentin (2): hwmon: Add devicetree bindings to gpio-fan ARM: kirkwood

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

2012-09-07 Thread Jamie Lentin
Allow a gpio-fan to be defined in devicetree, see binding documentation for details. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/gpio/gpio-fan.txt | 25 + drivers/hwmon/gpio-fan.c | 111 2 files changed

[PATCH 2/4] kirkwood: Replace DNS-320/DNS-325 leds with dt bindings

2012-07-19 Thread Jamie Lentin
Replace code in board-dnskw with the equivalent devicetree bindings. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 25 + arch/arm/boot/dts/kirkwood-dns325.dts | 25 + arch/arm/mach-kirkwood/board-dnskw.c | 90

[PATCH 0/4] Use DT to define more of the DNS320 DNS325

2012-07-19 Thread Jamie Lentin
. Jamie Lentin (3): kirkwood: Replace DNS-320/DNS-325 leds with dt bindings ARM: Kirkwood: Move common portions into a kirkwood-dnskw.dtsi ARM: Kirkwood: Describe DNS32? gpio-keys in DT. arch/arm/boot/dts/kirkwood-dns320.dts | 67 +++- arch/arm/boot/dts/kirkwood-dns325.dts | 71

[PATCH 1/4] ARM: Kirkwood: Describe DNS325 temperature sensor in DT.

2012-07-19 Thread Jamie Lentin
From: Andrew Lunn and...@lunn.ch Now that we have I2C support in DT, describe the LM75 in the DT file for the DNS325. Signed-off-by: Andrew Lunn and...@lunn.ch Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns325.dts |8 arch/arm/mach-kirkwood/board

[PATCH 3/4] ARM: Kirkwood: Move common portions into a kirkwood-dnskw.dtsi

2012-07-19 Thread Jamie Lentin
A lot of device setup is shared between DNS-320 and DNS-325, move the definitions into a common include. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 42 + arch/arm/boot/dts/kirkwood-dns325.dts | 42

[PATCH 4/4] ARM: Kirkwood: Describe DNS32? gpio-keys in DT.

2012-07-19 Thread Jamie Lentin
Move description of GPIO keys on both the DNS320 and DNS325 into DT. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dnskw.dtsi | 21 +++ arch/arm/mach-kirkwood/board-dnskw.c | 37 - 2 files changed, 21 insertions

[PATCH V5 4/4] ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt

2012-04-18 Thread Jamie Lentin
Cooper ja...@lakedaemon.net Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 35 + arch/arm/boot/dts/kirkwood-dns325.dts | 35 + 2 files changed, 70 insertions(+), 0 deletions(-) diff --git

[PATCH V5 3/4] kirkwood: Allow nand to be configured via. devicetree

2012-04-18 Thread Jamie Lentin
Add default configuration for NAND, to be enabled in your board config. Ensure clock gating is set appropriately when the NAND is enabled. Acked-by: Jason Cooper ja...@lakedaemon.net Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood.dtsi | 15 ++- arch

[PATCH V5 0/4] ARM: Kirkwood: Add support for DNS-320 and DNS-325 using devicetree

2012-04-18 Thread Jamie Lentin
isn't worth it. * s/marvell,/mrvl,/g * Include an example dtb partition in documentation * Copy structure of serial nodes to allow common options for NAND to be set in kirkwood.dtsi * Simplifications in orion-nand.c Jamie Lentin (4): ARM: kirkwood: Basic support for DNS-320 and DNS-325 mtd: Add

[PATCH V5 2/4] mtd: Add orion_nand devicetree bindings

2012-04-18 Thread Jamie Lentin
to be in bytes * Add explicit defaults for cle, ale and bank-width Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/mtd/orion-nand.txt | 50 drivers/mtd/nand/orion_nand.c | 45 +- 2 files changed, 93

[PATCH V5 1/4] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-04-18 Thread Jamie Lentin
brain-dead select select CONFIG_MTD_OF_PARTS [Grant Likely] * Don't add NAND support then throw it away immediately after [Grant Likely] * Describe purpose of MPP 41, 42 49 Changes since last submission (V2):- * Use IEEE-compliant okay, rather than ok [Scott Wood] Signed-off-by: Jamie Lentin j

Re: [PATCH V5 0/4] ARM: Kirkwood: Add support for DNS-320 and DNS-325 using devicetree

2012-04-18 Thread Jamie Lentin
, Jason. -- Jamie Lentin ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: [PATCH V3 1/5] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-04-11 Thread Jamie Lentin
not aware of? I know Conceptronic sold a ~identical device to the DNS-323, but not aware of anything else. You never know who truly makes the devices nowadays anyway. -- Jamie Lentin ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org

Re: [PATCH V3 1/5] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-04-09 Thread Jamie Lentin
On Mon, 9 Apr 2012, Arnd Bergmann wrote: On Friday 06 April 2012, Grant Likely wrote: On Wed, 28 Mar 2012 08:19:59 +, Arnd Bergmann a...@arndb.de wrote: On Tuesday 27 March 2012, Jamie Lentin wrote: Add support for the DNS-320 and DNS-325. Describe as much as currently possible

[PATCH V4.1 1/3] mtd: Add orion_nand devicetree bindings

2012-04-05 Thread Jamie Lentin
Allow a NAND chip using the orion_nand driver to be described using devicetree. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- * WARN when bank-width is out of range, as suggested by Andrew Lunn * Document all parameters. * Convert bank-width to be in bytes * Add explicit defaults for cle

[PATCH V4 3/3] ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt

2012-03-31 Thread Jamie Lentin
Use devicetree to define NAND partitions. Use D-link partition scheme by default, to be vaguely compatible with their userland. Acked-by: Arnd Bergmann a...@arndb.de Acked-by: Jason Cooper ja...@lakedaemon.net Signed-off-by: Jamie Lentin j...@lentin.co.uk --- Unchanged since V3 arch/arm/boot

[PATCH V4 2/3] kirkwood: Allow nand to be configured via. devicetree

2012-03-31 Thread Jamie Lentin
Add default configuration for NAND, to be enabled in your board config. Ensure clock gating is set appropriately when the NAND is enabled. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- Update bank-width to be in bytes arch/arm/boot/dts/kirkwood.dtsi | 15 ++- arch/arm/mach

[PATCH V4 0/3] ARM: Kirkwood: Convert DNS-325 DNS-320 to access nand via devicetree (was: Add support for DNS-320 and DNS-325 using devicetree)

2012-03-31 Thread Jamie Lentin
to allow common options for NAND to be set in kirkwood.dtsi * Simplifications in orion-nand.c Jamie Lentin (3): mtd: Add orion_nand devicetree bindings kirkwood: Allow nand to be configured via. devicetree ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt .../devicetree/bindings/mtd/orion

[PATCH V4 1/3] mtd: Add orion_nand devicetree bindings

2012-03-31 Thread Jamie Lentin
Allow a NAND chip using the orion_nand driver to be described using devicetree. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- * Document all parameters. * Convert bank-width to be in bytes * Add explicit defaults for cle, ale and bank-width .../devicetree/bindings/mtd/orion-nand.txt

[PATCH V3 3/5] ARM: kirkwood: Allow nand to be configured via. devicetree

2012-03-27 Thread Jamie Lentin
Add default configuration for NAND, to be enabled in your board config. Ensure clock gating is set appropriately when the NAND is enabled. Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood.dtsi | 15 ++- arch/arm/mach

[PATCH V3 2/5] mtd: Add orion_nand devicetree bindings

2012-03-27 Thread Jamie Lentin
Allow a NAND chip using the orion_nand driver to be described using devicetree. Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/mtd/orion-nand.txt | 46 drivers/mtd/nand/orion_nand.c

[PATCH V3 0/5] Add support for DNS-320 and DNS-325 using devicetree

2012-03-27 Thread Jamie Lentin
Jamie Lentin (5): ARM: kirkwood: Basic support for DNS-320 and DNS-325 mtd: Add orion_nand devicetree bindings ARM: kirkwood: Allow nand to be configured via. devicetree ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt mtd: Move fdt partition documentation to a seperate file

[PATCH V3 4/5] ARM: kirkwood: Define DNS-320/DNS-325 NAND in fdt

2012-03-27 Thread Jamie Lentin
Use devicetree to define NAND partitions. Use D-link partition scheme by default, to be vaguely compatible with their userland. Acked-by: Arnd Bergmann a...@arndb.de Acked-by: Jason Cooper ja...@lakedaemon.net Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320

[PATCH V3 1/5] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-27 Thread Jamie Lentin
), Jamie Lentin j...@lentin.co.uk + * + * arch/arm/mach-kirkwood/board-dnskw.c + * + * D-link DNS-320 DNS-325 NAS Init for drivers not converted to + * flattened device tree yet. + * + * This file is licensed under the terms of the GNU General Public + * License version 2. This program is licensed

Re: [PATCH V2 3/3] ARM: kirkwood: Define NAND partitions in dts

2012-03-26 Thread Jamie Lentin
On Mon, 26 Mar 2012, Scott Wood wrote: On 03/26/2012 11:20 AM, Jason Cooper wrote: On Mon, Mar 26, 2012 at 10:53:29AM -0500, Scott Wood wrote: On 03/24/2012 08:14 AM, Jamie Lentin wrote: Use devicetree to define NAND partitions. Use D-link partition scheme by default, to be vaguely

[PATCH V2 0/3] Add support for DNS-320 and DNS-325 using devicetree

2012-03-24 Thread Jamie Lentin
the dtb for you anyway. Jamie Lentin (3): ARM: kirkwood: Basic support for DNS-320 and DNS-325 ARM: kirkwood: Convert orion-nand to fdt ARM: kirkwood: Define NAND partitions in dts .../devicetree/bindings/mtd/orion-nand.txt | 46 arch/arm/boot/dts/kirkwood-dns320.dts

[PATCH V2 1/3] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-24 Thread Jamie Lentin
Add support for the DNS-320 and DNS-325. Describe as much as currently possible in the devicetree files, create a board-dnskw.c for everything else. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 29 +++ arch/arm/boot/dts/kirkwood-dns325.dts | 24

[PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt

2012-03-24 Thread Jamie Lentin
-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/mtd/orion-nand.txt | 46 arch/arm/boot/dts/kirkwood.dtsi| 15 ++- arch/arm/mach-kirkwood/common.c| 12 + drivers/mtd/nand/orion_nand.c

[PATCH V2 3/3] ARM: kirkwood: Define NAND partitions in dts

2012-03-24 Thread Jamie Lentin
Use devicetree to define NAND partitions. Use D-link partition scheme by default, to be vaguely compatible with their userland. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 35 + arch/arm/boot/dts/kirkwood-dns325.dts

Re: [PATCH V3 2/3] ARM: kirkwood: Convert orion-nand to fdt

2012-03-24 Thread Jamie Lentin
partition table documentation into a separate file and reference this. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- Re-arranged documentation as you suggest, however it's tempting to have this as a separate patch and add references to partition.txt for the other binding documentation files

Re: [PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-12 Thread Jamie Lentin
a closer look. Happy to resubmit, breaking it out into a board-dnskw.c though. -- Jamie Lentin ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Re: [PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-12 Thread Jamie Lentin
On Mon, 12 Mar 2012 03:02:32 -, Jason Cooper ja...@lakedaemon.net wrote: On Sun, Mar 11, 2012 at 02:33:25PM +, Jamie Lentin wrote: Add support for the DNS-320 and DNS-325. Describe as much as currently possible in the devicetree files, leave everything else in board-dt.c

[PATCH 2/2] ARM: kirkwood: Convert orion-nand to fdt

2012-03-11 Thread Jamie Lentin
The DNS-320 and 325 have a NAND partitioned to store uboot, uimage and root filesystem. Store this information in devicetree. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/mtd/orion-nand.txt | 41 +++ arch/arm/boot/dts/kirkwood-dns320.dts

[PATCH 1/2] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-11 Thread Jamie Lentin
Add support for the DNS-320 and DNS-325. Describe as much as currently possible in the devicetree files, leave everything else in board-dt.c to be patched later. Signed-off-by: Jamie Lentin j...@lentin.co.uk --- arch/arm/boot/dts/kirkwood-dns320.dts | 54 ++ arch/arm/boot/dts/kirkwood

Re: [PATCH] mach-kirkwood: Support for DLink DNS-320 DNS-325 NAS

2012-03-08 Thread Jamie Lentin
On Thu, 1 Mar 2012, Jason wrote: On Wed, Feb 29, 2012 at 02:40:10PM +, Arnd Bergmann wrote: On Sunday 12 February 2012, Jamie Lentin wrote: This patch adds support for the D-Link DNS-320 DNS-325 NAS. Kirkwood-based successors to the DNS-323. Signed-off-by: Jamie Lentin j...@lentin.co.uk