Re: [PATCH v3 0/2] Add device tree support for Samsung's I2C driver

2011-09-14 Thread Thomas Abraham
Hi Ben, On 15 September 2011 02:43, Ben Dooks wrote: > On Tue, Sep 13, 2011 at 09:46:03AM +0530, Thomas Abraham wrote: >> This patchset adds device tree support for Samsung's I2C driver. > > I've applied these after a brief review. I'll give them a better > review before the weekend. Thanks for

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Thomas Abraham
On 15 September 2011 00:40, Grant Likely wrote: > On Wed, Sep 14, 2011 at 12:09 PM, Thomas Abraham > wrote: >> On 14 September 2011 22:43, Grant Likely wrote: >>> On Wed, Sep 14, 2011 at 10:19:22PM +0530, Thomas Abraham wrote: On 14 September 2011 21:41, Grant Likely wrote: > On Tue,

Re: [PATCH 2/3] netdev/of/phy: Add MDIO bus multiplexer support.

2011-09-14 Thread Grant Likely
On Aug 31, 2011 2:01 PM, "David Daney" wrote: > > This patch adds a somewhat generic framework for MDIO bus > multiplexers. It is modeled on the I2C multiplexer. > > The multiplexer is needed if there are multiple PHYs with the same > address connected to the same MDIO bus adepter, or if there is

Re: Device tree property names for MDIO bus multiplexer. Was: Re: [PATCH 2/3] netdev/of/phy: Add MDIO bus multiplexer support.

2011-09-14 Thread Grant Likely
On Sep 14, 2011 3:40 PM, "David Daney" wrote: > > Well, I would really like to get an official maintainer's take on the name of the parent MDIO bus property. Prehaps Grant or Rob could opine on the matter. > > Sooner would be better than later as I am about to start shipping boards with this burn

[PATCH] [v2] powerpc/85xx: clean up FPGA device tree nodes for Freecsale QorIQ boards

2011-09-14 Thread Timur Tabi
Standarize and document the FPGA nodes used on Freescale QorIQ reference boards. There are different kinds of FPGAs used on the boards, but only two are currently standard: "pixis" and "qixis". Although there are minor differences among the boards that have one kind of FPGA, most of the functiona

Device tree property names for MDIO bus multiplexer. Was: Re: [PATCH 2/3] netdev/of/phy: Add MDIO bus multiplexer support.

2011-09-14 Thread David Daney
Well, I would really like to get an official maintainer's take on the name of the parent MDIO bus property. Prehaps Grant or Rob could opine on the matter. Sooner would be better than later as I am about to start shipping boards with this burnt into the bootloader. If it needs changing, I co

Re: [PATCH 2/3] netdev/of/phy: Add MDIO bus multiplexer support.

2011-09-14 Thread Kumar Gala
On Sep 13, 2011, at 6:23 PM, David Daney wrote: > On 09/13/2011 04:07 PM, Kumar Gala wrote: >> >>> diff --git a/Documentation/devicetree/bindings/net/mdio-mux.txt >>> b/Documentation/devicetree/bindings/net/mdio-mux.txt >>> new file mode 100644 >>> index 000..a908312 >>> --- /dev/null >>> +

[PATCH v5] power: bq20z75: devicetree init support

2011-09-14 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. v2: Fixed typo in binding description. v3: Changed to use "ti," properties Changed to use single gpio property for battery dete

[PATCHv3] dt: add helper to read 64-bit integers

2011-09-14 Thread Jamie Iles
Add a helper similar to of_property_read_u32() that handles 64-bit integers. v2/v3: constify device node and property name parameters. Cc: Grant Likely Reviewed-by: Rob Herring Signed-off-by: Jamie Iles --- Just a resend but with Rob's Reviewed-by added since it was a while since last posted.

Re: [PATCHv4] gpio-generic: add support for device tree probing

2011-09-14 Thread Jamie Iles
Hi Grant, Just wondering if you've had chance to look at this patch at all, no problems if not though! Jamie On Thu, Aug 04, 2011 at 02:38:24PM +0100, Jamie Iles wrote: > This patch adds support for gpio-generic controllers to be > instantiated from the device tree. The binding supports devices

Re: [PATCH v4] power: bq20z75: devicetree init support

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 12:04 PM, Rhyland Klein wrote: > Adding support to generate platform data when kernel is configured > through device tree. > > Also adding the binding for the TI bq20z75 fuel gadge and the > bq20z75 driver. > > Signed-off-by: Rhyland Klein > --- >        v2: Fixed typo in

Re: [PATCH 2/2] isp1760: Fix endianness-sensitivity in of_isp1760_probe()

2011-09-14 Thread Sergei Shtylyov
Hello. On 09/14/2011 05:57 PM, Dave Martin wrote: Data read direct from device tree properties will be in the device tree's native endianness (i.e., big-endian). This patch uses of_property_read_u32() to read the bus-width property in host byte order instead. Signed-off-by: Dave Martin Ac

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 12:09 PM, Thomas Abraham wrote: > On 14 September 2011 22:43, Grant Likely wrote: >> On Wed, Sep 14, 2011 at 10:19:22PM +0530, Thomas Abraham wrote: >>> On 14 September 2011 21:41, Grant Likely wrote: >>> > On Tue, Sep 13, 2011 at 05:56:19PM +0530, Thomas Abraham wrote: >

Re: [PATCH 5/5] ARM: gic: add OF based initialization

2011-09-14 Thread Rob Herring
On 09/14/2011 01:34 PM, Marc Zyngier wrote: > Hi Rob, > > On 14/09/11 18:57, Rob Herring wrote: >> Marc, >> >> On 09/14/2011 12:46 PM, Marc Zyngier wrote: >>> On 14/09/11 17:31, Rob Herring wrote: From: Rob Herring This adds gic initialization using device tree data. The initializa

Re: [PATCH 5/5] ARM: gic: add OF based initialization

2011-09-14 Thread Marc Zyngier
Hi Rob, On 14/09/11 18:57, Rob Herring wrote: > Marc, > > On 09/14/2011 12:46 PM, Marc Zyngier wrote: >> On 14/09/11 17:31, Rob Herring wrote: >>> From: Rob Herring >>> >>> This adds gic initialization using device tree data. The initialization >>> functions are intended to be called by a generi

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Thomas Abraham
Hi Grant, On 14 September 2011 22:43, Grant Likely wrote: > On Wed, Sep 14, 2011 at 10:19:22PM +0530, Thomas Abraham wrote: >> Hi Grant, >> >> On 14 September 2011 21:41, Grant Likely wrote: >> > On Tue, Sep 13, 2011 at 05:56:19PM +0530, Thomas Abraham wrote: >> >> Add device tree based discover

[PATCH v4] power: bq20z75: devicetree init support

2011-09-14 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein --- v2: Fixed typo in binding description v3: Changed to use "ti," for properties

Re: [PATCH 5/5] ARM: gic: add OF based initialization

2011-09-14 Thread Marc Zyngier
On 14/09/11 17:31, Rob Herring wrote: > From: Rob Herring > > This adds gic initialization using device tree data. The initialization > functions are intended to be called by a generic OF interrupt > controller parsing function once the right pieces are in place. > > PPIs are handled using 3rd c

Re: [PATCH 5/5] ARM: gic: add OF based initialization

2011-09-14 Thread Rob Herring
Marc, On 09/14/2011 12:46 PM, Marc Zyngier wrote: > On 14/09/11 17:31, Rob Herring wrote: >> From: Rob Herring >> >> This adds gic initialization using device tree data. The initialization >> functions are intended to be called by a generic OF interrupt >> controller parsing function once the rig

Re: [PATCH v3 6/6] ARM: EXYNOS4: Limit usage of pl330 device instance to non-dt build

2011-09-14 Thread Thomas Abraham
Hi Grant, On 14 September 2011 21:56, Grant Likely wrote: > On Mon, Sep 12, 2011 at 11:59:25PM +0530, Thomas Abraham wrote: >> The pl330 device instances and associated platform data is required only >> for non-device-tree builds. With device tree enabled, the data about the >> platform is obtain

Re: [PATCH v3 4/6] DMA: PL330: Add device tree support

2011-09-14 Thread Thomas Abraham
Hi Grant, On 14 September 2011 21:54, Grant Likely wrote: > On Mon, Sep 12, 2011 at 11:59:23PM +0530, Thomas Abraham wrote: >> For PL330 dma controllers instantiated from device tree, the channel >> lookup is based on phandle of the dma controller and dma request id >> specified by the client nod

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 10:19:22PM +0530, Thomas Abraham wrote: > Hi Grant, > > On 14 September 2011 21:41, Grant Likely wrote: > > On Tue, Sep 13, 2011 at 05:56:19PM +0530, Thomas Abraham wrote: > >> Add device tree based discovery support for Samsung's keypad controller. > >> > >> Cc: Joonyoung

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Thomas Abraham
Hi Grant, On 14 September 2011 21:41, Grant Likely wrote: > On Tue, Sep 13, 2011 at 05:56:19PM +0530, Thomas Abraham wrote: >> Add device tree based discovery support for Samsung's keypad controller. >> >> Cc: Joonyoung Shim >> Cc: Donghwa Lee >> Signed-off-by: Thomas Abraham >> --- >>  .../de

Re: [PATCH 2/5] irq: fix existing domain check in irq_domain_add

2011-09-14 Thread Thomas Gleixner
On Wed, 14 Sep 2011, Rob Herring wrote: > From: Rob Herring > > irq_data will normally exist, so the domain was prevented from being set. > The simple domain code did not hit this as nr_irq is always 0. > > Signed-off-by: Rob Herring > Cc: Grant Likely > Cc: Thomas Gleixner I take this and

[PATCH 4/5] ARM: gic: allow irq_start to be 0

2011-09-14 Thread Rob Herring
From: Rob Herring There's really no need to set irq_start per platform for the primary gic. The SGIs and PPIs are not handled as normal irqs, so how irqs 0-31 are setup doesn't really matter. So allow irq_start to be set to 0 to match the linux irq numbering. Signed-off-by: Rob Herring --- arc

[PATCH 5/5] ARM: gic: add OF based initialization

2011-09-14 Thread Rob Herring
From: Rob Herring This adds gic initialization using device tree data. The initialization functions are intended to be called by a generic OF interrupt controller parsing function once the right pieces are in place. PPIs are handled using 3rd cell of interrupts properties to specify the cpu mask

[PATCH 2/5] irq: fix existing domain check in irq_domain_add

2011-09-14 Thread Rob Herring
From: Rob Herring irq_data will normally exist, so the domain was prevented from being set. The simple domain code did not hit this as nr_irq is always 0. Signed-off-by: Rob Herring Cc: Grant Likely Cc: Thomas Gleixner --- kernel/irq/irqdomain.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 3/5] of/irq: introduce of_irq_init

2011-09-14 Thread Rob Herring
From: Rob Herring of_irq_init will scan the devicetree for matching interrupt controller nodes. Then it calls an initialization function for each found controller in the proper order with parent nodes initialized before child nodes. Based on initial pseudo code from Grant Likely. Signed-off-by:

[PATCH 1/5] irq: add declaration of irq_domain_simple_ops to irqdomain.h

2011-09-14 Thread Rob Herring
From: Rob Herring irq_domain_simple_ops is exported, but is not declared in irqdomain.h, so add it. Signed-off-by: Rob Herring Cc: Grant Likely Cc: Thomas Gleixner --- include/linux/irqdomain.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/irqdomain.h

[PATCH 0/5] GIC OF bindings

2011-09-14 Thread Rob Herring
From: Rob Herring This series introduces of_irq_init to scan the device tree for interrupt controller nodes and call their init functions in proper order. The GIC init function is then called from this function. The platform code then looks something like this: const static struct of_device_id i

Re: [PATCH v3 6/6] ARM: EXYNOS4: Limit usage of pl330 device instance to non-dt build

2011-09-14 Thread Grant Likely
On Mon, Sep 12, 2011 at 11:59:25PM +0530, Thomas Abraham wrote: > The pl330 device instances and associated platform data is required only > for non-device-tree builds. With device tree enabled, the data about the > platform is obtained from the device tree. For images that include both > dt and no

Re: [PATCH v3 4/6] DMA: PL330: Add device tree support

2011-09-14 Thread Grant Likely
On Mon, Sep 12, 2011 at 11:59:23PM +0530, Thomas Abraham wrote: > For PL330 dma controllers instantiated from device tree, the channel > lookup is based on phandle of the dma controller and dma request id > specified by the client node. During probe, the private data of each > channel of the contro

Re: [PATCH] net/smsc911x: Correctly configure 16-bit register access from DT

2011-09-14 Thread Grant Likely
On Tue, Sep 13, 2011 at 11:49:29AM +0100, Dave Martin wrote: > The SMSC911X_USE_16BIT needs to be set when using 16-bit register > access. However, currently no flag is set if the device tree > doesn't specify 32-bit access, resulting in a BUG() and a non- > working driver when 16-bit register acc

Re: [PATCH 2/2] input: samsung-keypad: Add device tree support

2011-09-14 Thread Grant Likely
On Tue, Sep 13, 2011 at 05:56:19PM +0530, Thomas Abraham wrote: > Add device tree based discovery support for Samsung's keypad controller. > > Cc: Joonyoung Shim > Cc: Donghwa Lee > Signed-off-by: Thomas Abraham > --- > .../devicetree/bindings/input/samsung-keypad.txt | 88 ++ > dr

Re: [PATCH 2/2 v3] power: bq20z75: Add Device Tree Binding

2011-09-14 Thread Grant Likely
On Tue, Sep 13, 2011 at 02:21:39PM -0700, Rhyland Klein wrote: > Adding the binding for the TI bq20z75 fuel gadge and the > bq20z75 driver. Squash this patch into the first patch. There is no reason to keep them separate. > > Signed-off-by: Rhyland Klein > --- > v2: Fixed typo in binding

Re: [PATCH 1/2 v3] power: bq20z75: devicetree init support

2011-09-14 Thread Grant Likely
On Tue, Sep 13, 2011 at 02:20:59PM -0700, Rhyland Klein wrote: > Adding support to generate platform data when kernel is configured > through device tree. > > Signed-off-by: Rhyland Klein > --- > v3: Changed to use "ti," properties > Changed to use gpio property with flag for pola

Re: [PATCH] MAINTAINERS: update devicetree maintainers

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 07:47:50AM -0500, Rob Herring wrote: > From: Rob Herring > > As requested by Grant, adding myself as an additional devicetree maintainer. > > Also, add Documentation/devicetree to the file list for devicetree. > > Signed-off-by: Rob Herring > Cc: Grant Likely Acked-by

Re: [PATCH 2/2] isp1760: Fix endianness-sensitivity in of_isp1760_probe()

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 02:57:13PM +0100, Dave Martin wrote: > Data read direct from device tree properties will be in the device > tree's native endianness (i.e., big-endian). > > This patch uses of_property_read_u32() to read the bus-width > property in host byte order instead. > > Signed-off-b

Re: [PATCH 1/2] isp1760: Make probing via device tree non-powerpc-specific

2011-09-14 Thread Grant Likely
On Wed, Sep 14, 2011 at 02:57:12PM +0100, Dave Martin wrote: > This patch just replaces the (presumably historical) CONFIG_OF_PPC > > Signed-off-by: Dave Martin > Acked-by: Pawel Moll > --- > drivers/usb/host/isp1760-if.c | 10 ++ > 1 files changed, 6 insertions(+), 4 deletions(-) >

Re: [PATCH 1/2] isp1760: Make probing via device tree non-powerpc-specific

2011-09-14 Thread Dave Martin
On Wed, Sep 14, 2011 at 2:57 PM, Dave Martin wrote: > This patch just replaces the (presumably historical) CONFIG_OF_PPC Apologies, it looks like a script ate part of the commit message for this commit. It should read: isp1760: Make probing via device tree non-powerpc-specific This pat

[PATCH 2/2] isp1760: Fix endianness-sensitivity in of_isp1760_probe()

2011-09-14 Thread Dave Martin
Data read direct from device tree properties will be in the device tree's native endianness (i.e., big-endian). This patch uses of_property_read_u32() to read the bus-width property in host byte order instead. Signed-off-by: Dave Martin Acked-by: Pawel Moll --- drivers/usb/host/isp1760-if.c |

[PATCH 1/2] isp1760: Make probing via device tree non-powerpc-specific

2011-09-14 Thread Dave Martin
This patch just replaces the (presumably historical) CONFIG_OF_PPC Signed-off-by: Dave Martin Acked-by: Pawel Moll --- drivers/usb/host/isp1760-if.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c in

[PATCH 0/2] isp1760: Allow device-tree-based probing on non-powerpc architectures

2011-09-14 Thread Dave Martin
There are a couple of minor issues which currently prevent the isp1760 driver probing via the device tree on architectures other than powerpc. This series should allow device-tree probing for this driver to work more widely. Dave Martin (2): isp1760: Make probing via device tree non-powerpc-spe

[PATCH] MAINTAINERS: update devicetree maintainers

2011-09-14 Thread Rob Herring
From: Rob Herring As requested by Grant, adding myself as an additional devicetree maintainer. Also, add Documentation/devicetree to the file list for devicetree. Signed-off-by: Rob Herring Cc: Grant Likely --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --g