[RFC 2/3] OLPC: add missing elements to device tree

2011-03-04 Thread Daniel Drake
In response to new device tree code in the kernel, OLPC will start using it for probing of certain devices. However, some firmware fixes are needed to put the devicetree into a usable state. Retain compatibility with old firmware by fixing up the device tree at boot-time if it does not contain

[RFC 1/3] OLPC: Use device tree for platform identification

2011-03-04 Thread Daniel Drake
Make OLPC fully depend on device tree, and use it to identify the OLPC platform details. Some nodes are exposed as platform devices where we plan to use device tree for device probing. Signed-off-by: Daniel Drake d...@laptop.org --- arch/x86/Kconfig |2 +-

Re: [RFC 1/3] OLPC: Use device tree for platform identification

2011-03-04 Thread Andres Salomon
The x86 folks should probably be cc'd as well.. Overall, this looks good, just a few minor issues below. On Fri, 4 Mar 2011 17:12:14 + (GMT) Daniel Drake d...@laptop.org wrote: Make OLPC fully depend on device tree, and use it to identify the OLPC platform details. Some nodes are exposed

Re: [RFC 3/3] olpc-battery: bind to device tree

2011-03-04 Thread Andres Salomon
Acked-by: Andres Salomon dilin...@queued.net On Fri, 4 Mar 2011 17:12:40 + (GMT) Daniel Drake d...@laptop.org wrote: This is cleaner, and allows suspend/resume (wakeup) handlers to be added in an upcoming patch. Signed-off-by: Daniel Drake d...@laptop.org ---

[RFC PATCH v2 00/12] MIPS: Octeon: Use Device Tree.

2011-03-04 Thread David Daney
New in v2: Changed many device tree bindings. They should be closer to the standard naming scheme now. Editing of the template device tree is done in the flattened form using libfdt. Standard platform driver functions used in preference to the of_platform variety. v1: Background: The Octeon

[RFC PATCH v2 03/12] of: Make of_find_node_by_path() traverse /aliases for relative paths.

2011-03-04 Thread David Daney
Currently all paths passed to of_find_node_by_path() must begin with a '/', indicating a full path to the desired node. Augment the look-up code so that if a path does *not* begin with '/', the path is used as the name of an /aliases property. The value of this alias is then used as the full

[RFC PATCH v2 02/12] of: Allow scripts/dtc/libfdt to be used from kernel code

2011-03-04 Thread David Daney
Signed-off-by: David Daney dda...@caviumnetworks.com --- include/linux/libfdt.h |3 +++ lib/Kconfig |6 ++ lib/Makefile|2 ++ lib/libfdt/Makefile |7 +++ lib/libfdt/libfdt_env.h | 21 +

[RFC PATCH v2 04/12] MIPS: Octeon: Add device tree source files.

2011-03-04 Thread David Daney
Signed-off-by: David Daney dda...@caviumnetworks.com --- arch/mips/cavium-octeon/.gitignore |2 + arch/mips/cavium-octeon/Makefile| 13 ++ arch/mips/cavium-octeon/octeon_3xxx.dts | 330 +++ arch/mips/cavium-octeon/octeon_68xx.dts | 116 +++

[RFC PATCH v2 06/12] MIPS: Octeon: Add a irq_create_of_mapping() implementation.

2011-03-04 Thread David Daney
This is needed for Octeon to use the Device Tree. Signed-off-by: David Daney dda...@caviumnetworks.com --- arch/mips/cavium-octeon/octeon-irq.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/arch/mips/cavium-octeon/octeon-irq.c

[RFC PATCH v2 09/12] i2c: Convert i2c-octeon.c to use device tree.

2011-03-04 Thread David Daney
Signed-off-by: David Daney dda...@caviumnetworks.com Cc: Jean Delvare (PC drivers, core) kh...@linux-fr.org Cc: Ben Dooks (embedded platforms) ben-li...@fluff.org Cc: linux-...@vger.kernel.org --- arch/mips/cavium-octeon/octeon-platform.c | 84 -

[RFC PATCH v2 10/12] netdev: mdio-octeon.c: Convert to use device tree.

2011-03-04 Thread David Daney
Get the MDIO bus controller addresses from the device tree. Signed-off-by: David Daney dda...@caviumnetworks.com Cc: David S. Miller da...@davemloft.net Cc: net...@vger.kernel.org --- arch/mips/cavium-octeon/octeon-platform.c | 30 - drivers/net/phy/mdio-octeon.c | 92

[RFC PATCH v2 11/12] netdev: octeon_mgmt: Convert to use device tree.

2011-03-04 Thread David Daney
The device tree will supply the register bank base addresses, make register addressing relative to those. PHY connection is now described by the device tree. Signed-off-by: David Daney dda...@caviumnetworks.com Cc: David S. Miller da...@davemloft.net Cc: net...@vger.kernel.org ---

Re: [RFC PATCH v2 10/12] netdev: mdio-octeon.c: Convert to use device tree.

2011-03-04 Thread David Miller
From: David Daney dda...@caviumnetworks.com Date: Fri, 4 Mar 2011 11:42:22 -0800 Get the MDIO bus controller addresses from the device tree. Signed-off-by: David Daney dda...@caviumnetworks.com Acked-by: David S. Miller da...@davemloft.net ___

Re: [RFC PATCH v2 11/12] netdev: octeon_mgmt: Convert to use device tree.

2011-03-04 Thread David Miller
From: David Daney dda...@caviumnetworks.com Date: Fri, 4 Mar 2011 11:42:23 -0800 The device tree will supply the register bank base addresses, make register addressing relative to those. PHY connection is now described by the device tree. Signed-off-by: David Daney

Re: [RFC PATCH v2 12/12] staging: octeon_ethernet: Convert to use device tree.

2011-03-04 Thread David Miller
From: David Daney dda...@caviumnetworks.com Date: Fri, 4 Mar 2011 11:42:24 -0800 Get MAC address and PHY connection from the device tree. Signed-off-by: David Daney dda...@caviumnetworks.com Acked-by: David S. Miller da...@davemloft.net ___

Re: [RFC PATCH v2 03/12] of: Make of_find_node_by_path() traverse /aliases for relative paths.

2011-03-04 Thread Grant Likely
On Fri, Mar 04, 2011 at 11:42:15AM -0800, David Daney wrote: Currently all paths passed to of_find_node_by_path() must begin with a '/', indicating a full path to the desired node. Augment the look-up code so that if a path does *not* begin with '/', the path is used as the name of an

Re: [RFC PATCH v2 02/12] of: Allow scripts/dtc/libfdt to be used from kernel code

2011-03-04 Thread Grant Likely
[cc'ing David Gibson] On Fri, Mar 04, 2011 at 11:42:14AM -0800, David Daney wrote: Signed-off-by: David Daney dda...@caviumnetworks.com --- include/linux/libfdt.h |3 +++ lib/Kconfig |6 ++ lib/Makefile|2 ++ lib/libfdt/Makefile |

Re: [RFC PATCH v2 02/12] of: Allow scripts/dtc/libfdt to be used from kernel code

2011-03-04 Thread Grant Likely
[actually cc'ing David Gibson this time] On Fri, Mar 4, 2011 at 5:57 PM, Grant Likely grant.lik...@secretlab.ca wrote: [cc'ing David Gibson] On Fri, Mar 04, 2011 at 11:42:14AM -0800, David Daney wrote: Signed-off-by: David Daney dda...@caviumnetworks.com ---  include/linux/libfdt.h      |    

Re: [RFC PATCH v2 06/12] MIPS: Octeon: Add a irq_create_of_mapping() implementation.

2011-03-04 Thread Grant Likely
On Fri, Mar 04, 2011 at 11:42:18AM -0800, David Daney wrote: This is needed for Octeon to use the Device Tree. Signed-off-by: David Daney dda...@caviumnetworks.com --- arch/mips/cavium-octeon/octeon-irq.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-)

Re: [RFC PATCH v2 04/12] MIPS: Octeon: Add device tree source files.

2011-03-04 Thread Grant Likely
On Fri, Mar 04, 2011 at 11:42:16AM -0800, David Daney wrote: Signed-off-by: David Daney dda...@caviumnetworks.com --- arch/mips/cavium-octeon/.gitignore |2 + arch/mips/cavium-octeon/Makefile| 13 ++ arch/mips/cavium-octeon/octeon_3xxx.dts | 330

Re: [RFC 1/3] OLPC: Use device tree for platform identification

2011-03-04 Thread Grant Likely
On Fri, Mar 04, 2011 at 05:12:14PM +, Daniel Drake wrote: Make OLPC fully depend on device tree, and use it to identify the OLPC platform details. Some nodes are exposed as platform devices where we plan to use device tree for device probing. Signed-off-by: Daniel Drake d...@laptop.org

Re: [RFC 2/3] OLPC: add missing elements to device tree

2011-03-04 Thread Grant Likely
On Fri, Mar 04, 2011 at 05:12:34PM +, Daniel Drake wrote: In response to new device tree code in the kernel, OLPC will start using it for probing of certain devices. However, some firmware fixes are needed to put the devicetree into a usable state. Retain compatibility with old firmware

Re: [PATCH] Make of_read_number() handle unaligned data

2011-03-04 Thread Grant Likely
On Tue, Feb 22, 2011 at 02:36:47PM -0800, David VomLehn wrote: Numeric values in properties can be unaligned, so introduce get_unaligned() in of_read_number() to make this work correctly on all processors. Signed-off-by: David VomLehn dvoml...@cisco.com Hi David, I've thought a lot about