Re: [PATCH 10/11] ARM: tegra: pcie: Add MSI support

2012-03-12 Thread Thierry Reding
* Stephen Warren wrote: > On 03/08/2012 07:51 AM, Thierry Reding wrote: > > diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c > > > +static int tegra_pcie_enable_msi(struct platform_device *pdev) > > +{ > > + struct tegra_pcie_info *pcie = platform_get_drvdata(pdev); > > + v

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

2012-03-12 Thread Arnd Bergmann
On Monday 12 March 2012, Jason Cooper wrote: > > Or even use the ranges property to remap everything into > > a simpler address range: > > > > ocp@f100 { > > compatible = "simple-bus"; > > ranges = <0 0xf100 0x100>; > > #address-cells = 1

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

2012-03-12 Thread Arnd Bergmann
On Monday 12 March 2012, Jason Cooper wrote: > > + dnskw_gpio_register(39, "dnskw:power:sata0", 1); > > + dnskw_gpio_register(40, "dnskw:power:sata1", 1); > > + > > + /* Set NAS to turn back on after a power failure */ > > + dnskw_gpio_register(37, "dnskw:power:recover", 1); > > +}

Re: [PATCH 11/11] ARM: tegra: pcie: Add device tree support

2012-03-12 Thread Mark Brown
On Thu, Mar 08, 2012 at 02:31:41PM -0700, Stephen Warren wrote: > On 03/08/2012 07:51 AM, Thierry Reding wrote: > > +- vdd-supply: power supply for controller (1.05V) > Should those *-supply properties really be optional? I got the > impression talking to Mark in a different thread that all regul

Re: [PATCH] dt: pinctrl: Document device tree binding

2012-03-12 Thread Shawn Guo
On Fri, Mar 09, 2012 at 11:14:33AM -0700, Stephen Warren wrote: > The core pin controller bindings define: > * The fact that pin controllers expose pin configurations as nodes in > device tree. > * That the bindings for those pin configuration nodes is defined by the > individual pin controller

Re: [PATCH 1/2] i2c-s3c2410: Rework device type handling

2012-03-12 Thread Karol Lewandowski
On 12.03.2012 06:58, Thomas Abraham wrote: Hi Thomas! > On 9 March 2012 22:34, Karol Lewandowski wrote: >> Reorganize driver a bit to better handle device tree-based systems: >> >> - move machine type to driver's private structure instead of >> quering platform device variants in runtime >> >

Re: Some slightly random musings on device tree expression syntax

2012-03-12 Thread Jon Loeliger
> I was thinking some more about how to expand the device tree syntax to > allow expressions. Excellent! > I wondered if we should use a concept/syntax more > inspired by template processors. Playing with jinja2 and gpp led me > towards (...) being an inline expression syntax that can calculate >

Re: [PATCH] dtc: Add -i option to support search paths

2012-03-12 Thread Jon Loeliger
> It is often inconvenient to place device tree files in the same directory > as their includes, or to specify the full path to include files. > > An example of this is in U-Boot where we have a .dtsi file for each SOC > type, and this is included by the board .dts file. We need to either use > a

[PATCH] stmmac: Add device-tree support

2012-03-12 Thread Stefan Roese
This patch adds support to configure the STMMAC ethernet driver via device-tree instead of platform_data. Currently, only the properties needed on SPEAr600 are provided. All other properties should be added once needed on other platforms. Signed-off-by: Stefan Roese Cc: Giuseppe Cavallaro Cc: V

Re: [PATCH 11/11] ARM: tegra: pcie: Add device tree support

2012-03-12 Thread Thierry Reding
* Mark Brown wrote: > On Thu, Mar 08, 2012 at 02:31:41PM -0700, Stephen Warren wrote: > > On 03/08/2012 07:51 AM, Thierry Reding wrote: > > > > +- vdd-supply: power supply for controller (1.05V) > > > Should those *-supply properties really be optional? I got the > > impression talking to Mark in

Re: [PATCH 1/2] i2c-s3c2410: Rework device type handling

2012-03-12 Thread Thomas Abraham
On 12 March 2012 18:46, Karol Lewandowski wrote: > On 12.03.2012 06:58, Thomas Abraham wrote: > > Hi Thomas! > >> On 9 March 2012 22:34, Karol Lewandowski wrote: >>> Reorganize driver a bit to better handle device tree-based systems: >>> >>>  - move machine type to driver's private structure inst

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 08:17:19 -, Arnd Bergmann wrote: On Monday 12 March 2012, Jason Cooper wrote: > + dnskw_gpio_register(39, "dnskw:power:sata0", 1); > + dnskw_gpio_register(40, "dnskw:power:sata1", 1); > + > + /* Set NAS to turn back on after a power failure */ > + dnskw_

Re: [PATCH 11/11] ARM: tegra: pcie: Add device tree support

2012-03-12 Thread Mark Brown
On Mon, Mar 12, 2012 at 03:17:05PM +0100, Thierry Reding wrote: > My understanding of the fixed regulator was that it was meant to be used for > fixed voltage supplies that can still be enabled or disabled (for example as > supplied by a GPIO) but not regulators that are fix in the sense that they

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

2012-03-12 Thread Jason Cooper
On Mon, Mar 12, 2012 at 02:22:24PM -, Jamie Lentin wrote: > On Mon, 12 Mar 2012 08:17:19 -, Arnd Bergmann wrote: > > >On Monday 12 March 2012, Jason Cooper wrote: > >>> + dnskw_gpio_register(39, "dnskw:power:sata0", 1); > >>> + dnskw_gpio_register(40, "dnskw:power:sata1", 1); > >>

Re: [PATCH 11/11] ARM: tegra: pcie: Add device tree support

2012-03-12 Thread Thierry Reding
* Mark Brown wrote: > On Mon, Mar 12, 2012 at 03:17:05PM +0100, Thierry Reding wrote: > > > My understanding of the fixed regulator was that it was meant to be used for > > fixed voltage supplies that can still be enabled or disabled (for example as > > supplied by a GPIO) but not regulators that

Re: [PATCH] dt: pinctrl: Document device tree binding

2012-03-12 Thread Dong Aisheng
On Sat, Mar 10, 2012 at 02:14:33AM +0800, Stephen Warren wrote: > The core pin controller bindings define: > * The fact that pin controllers expose pin configurations as nodes in > device tree. > * That the bindings for those pin configuration nodes is defined by the > individual pin controller

Re: [PATCH 11/11] ARM: tegra: pcie: Add device tree support

2012-03-12 Thread Mark Brown
On Mon, Mar 12, 2012 at 03:28:58PM +0100, Thierry Reding wrote: > In that case I'll mark the *-supply properties required. Would it be a good > idea to mention this (or even give an example with fixed regulators) in the > binding documentation or can I assume this to be common knowledge? Probably

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Rob Herring
On 03/12/2012 09:05 AM, Stefan Roese wrote: > This patch adds support to configure the STMMAC ethernet driver via > device-tree instead of platform_data. > > Currently, only the properties needed on SPEAr600 are provided. All > other properties should be added once needed on other platforms. > >

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

2012-03-12 Thread Arnd Bergmann
On Monday 12 March 2012, Jason Cooper wrote: > > > > It probably depends on how easy it is to add the gpiochips into > > devicetree. Being able to put the LED, buttons and fans in > > devicetree would make board-dt.c much more manageable. I started to > > look into it and wasn't immediately obviou

[PATCH v2 0/4] omap hsmmc device tree support

2012-03-12 Thread Rajendra Nayak
The series adds device tree support for OMAP hsmmc driver. Changes in V2: -1- Minor fixes based on comments from Grant. -2- Added a seperate compatible for omap3. -3- Added a new binding "ti,needs-special-reset" to handle some mmc modules which need special softreset sequence. -4- Updated board dt

[PATCH v2 3/4] arm/dts: OMAP4: Add mmc controller nodes and board data

2012-03-12 Thread Rajendra Nayak
Add omap mmc related device tree data for OMAP4. Currenly limited to only omap4-panda and omap4-sdp boards. Signed-off-by: Rajendra Nayak --- arch/arm/boot/dts/omap4-panda.dts | 22 ++ arch/arm/boot/dts/omap4-sdp.dts | 24 arch/arm/boot/dts/omap

[PATCH v2 4/4] arm/dts: OMAP3: Add mmc controller nodes and board data

2012-03-12 Thread Rajendra Nayak
Add omap mmc related device tree data for OMAP3. Currenly limited to only omap3-beagle board. Signed-off-by: Rajendra Nayak --- arch/arm/boot/dts/omap3-beagle.dts | 14 ++ arch/arm/boot/dts/omap3.dtsi | 16 2 files changed, 30 insertions(+), 0 deletions(-)

[PATCH v2 1/4] mmc: omap_hsmmc: Convert hsmmc driver to use device tree

2012-03-12 Thread Rajendra Nayak
Define dt bindings for the ti-omap-hsmmc, and adapt the driver to extract data (which was earlier passed as platform_data) from device tree. Signed-off-by: Rajendra Nayak Acked-by: Rob Herring --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 33 + drivers/mmc/host/omap_hsmmc.c

[PATCH v2 2/4] mmc: omap_hsmmc: Avoid a regulator voltage change with dt

2012-03-12 Thread Rajendra Nayak
When booting with Device tree, the omap_hsmmc driver does not program the pbias cell (inside OMAP control module) during a regulator voltage change. In case of non-dt boot, this is handled using callbacks from within platform_data and implemented in machine code. To be able to do this with device t

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Stefan Roese
Hi Rob, On Monday 12 March 2012 15:34:59 Rob Herring wrote: > On 03/12/2012 09:05 AM, Stefan Roese wrote: > > This patch adds support to configure the STMMAC ethernet driver via > > device-tree instead of platform_data. > > > > Currently, only the properties needed on SPEAr600 are provided. All >

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:05 Mon 12 Mar , Stefan Roese wrote: > This patch adds support to configure the STMMAC ethernet driver via > device-tree instead of platform_data. > > Currently, only the properties needed on SPEAr600 are provided. All > other properties should be added once needed on other platforms. >

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Stefan Roese
On Monday 12 March 2012 15:38:25 Jean-Christophe PLAGNIOL-VILLARD wrote: > > @@ -58,6 +94,22 @@ static int stmmac_pltfr_probe(struct platform_device > > *pdev) > > > > ret = -ENOMEM; > > goto out_release_region; > > > > } > > > > + > > +#ifdef CONFIG_OF > > + pl

Re: [PATCH 1/4 v5] of_spi: add generic binding support to specify cs gpio

2012-03-12 Thread Grant Likely
On Sun, 11 Mar 2012 19:25:37 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 08:07 Sun 11 Mar , Grant Likely wrote: > > On Fri, 9 Mar 2012 19:25:44 +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > This will allow to use gpio for chip select with no modification in the > > > dri

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:25 Mon 12 Mar , Stefan Roese wrote: > On Monday 12 March 2012 15:38:25 Jean-Christophe PLAGNIOL-VILLARD wrote: > > > @@ -58,6 +94,22 @@ static int stmmac_pltfr_probe(struct platform_device > > > *pdev) > > > > > > ret = -ENOMEM; > > > goto out_release_region; > > >

Re: [PATCH] gpio: Add Altera GPIO driver

2012-03-12 Thread Grant Likely
On Mon, 6 Feb 2012 18:59:02 +0100, Tobias Klauser wrote: > This driver supports the Altera PIO core. > > Signed-off-by: Thomas Chou > Signed-off-by: Tobias Klauser > --- > This driver was submitted already about a year ago by Thomas, was > adjusted by him according to some remarks made by Gran

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

2012-03-12 Thread Jason Cooper
On Mon, Mar 12, 2012 at 08:11:22AM +, Arnd Bergmann wrote: > On Monday 12 March 2012, Jason Cooper wrote: > > > Or even use the ranges property to remap everything into > > > a simpler address range: > > > > > > ocp@f100 { > > > compatible = "simple-bus"; > > >

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Stefan Roese
On Monday 12 March 2012 16:30:37 Giuseppe CAVALLARO wrote: > >>> +Required properties: > >>> +- compatible: Should be "stm,gmac" > >> > >> This is too generic. This should be 1 string per version of h/w. > > > > Viresh, Giuseppe, can you please suggest a proper string for the SPEAr600 > > STMMAC

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

2012-03-12 Thread Arnd Bergmann
On Monday 12 March 2012, Jason Cooper wrote: > Okay, that's what smelled funny. wdt and intc both only have registers > in virtual address space defined. Can I assume they map like everything > else to corresponding physical addresses? > > eg wdt@fed20300 -> wdt@f1020300 ? Yes, correct. Or just

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:06 Mon 12 Mar , Stefan Roese wrote: > Hi Rob, > > On Monday 12 March 2012 15:34:59 Rob Herring wrote: > > On 03/12/2012 09:05 AM, Stefan Roese wrote: > > > This patch adds support to configure the STMMAC ethernet driver via > > > device-tree instead of platform_data. > > > > > > Current

Re: [PATCH 10/11] ARM: tegra: pcie: Add MSI support

2012-03-12 Thread Stephen Warren
On 03/12/2012 02:00 AM, Thierry Reding wrote: > * Stephen Warren wrote: >> On 03/08/2012 07:51 AM, Thierry Reding wrote: >>> diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c ... >> Free the IRQ descriptors in the error paths? ... >>> + for (msi = 0; msi < INT_PCI_MSI_NR; msi++

Re: [PATCH] dtc: Add -i option to support search paths

2012-03-12 Thread Simon Glass
Hi Jon, On Mon, Mar 12, 2012 at 6:54 AM, Jon Loeliger wrote: >> It is often inconvenient to place device tree files in the same directory >> as their includes, or to specify the full path to include files. >> >> An example of this is in U-Boot where we have a .dtsi file for each SOC >> type, and

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:30 Mon 12 Mar , Giuseppe CAVALLARO wrote: > On 3/12/2012 4:06 PM, Stefan Roese wrote: > > Hi Rob, > > > > On Monday 12 March 2012 15:34:59 Rob Herring wrote: > >> On 03/12/2012 09:05 AM, Stefan Roese wrote: > >>> This patch adds support to configure the STMMAC ethernet driver via > >>> d

Re: [PATCH] dt: pinctrl: Document device tree binding

2012-03-12 Thread Stephen Warren
On 03/12/2012 08:34 AM, Dong Aisheng wrote: > On Sat, Mar 10, 2012 at 02:14:33AM +0800, Stephen Warren wrote: >> The core pin controller bindings define: >> * The fact that pin controllers expose pin configurations as nodes in >> device tree. >> * That the bindings for those pin configuration nod

Re: [PATCH 1/4 v5] of_spi: add generic binding support to specify cs gpio

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:40 Mon 12 Mar , Grant Likely wrote: > On Sun, 11 Mar 2012 19:25:37 +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 08:07 Sun 11 Mar , Grant Likely wrote: > > > On Fri, 9 Mar 2012 19:25:44 +0100, Jean-Christophe PLAGNIOL-VILLARD > > > wrote: > > > > This will allow to use

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 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 to be patched later. Signed-

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

2012-03-12 Thread Jason Cooper
On Mon, Mar 12, 2012 at 05:59:50PM -, Jamie Lentin wrote: > On Mon, 12 Mar 2012 03:02:32 -, Jason Cooper > 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 devicetre

Re: [PATCH 1/1] of: introduce helper to manage boolean

2012-03-12 Thread Scott Wood
On 03/09/2012 10:36 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: Ugh. so any value other than 1 returns false? I think that will surprise most people. I don't like this api or binding. If it is a bool property, then why isn't simply testing for the property existance suff

Re: [PATCH] stmmac: Add device-tree support

2012-03-12 Thread Rob Herring
On 03/12/2012 11:46 AM, Giuseppe CAVALLARO wrote: > On 3/12/2012 5:23 PM, Stefan Roese wrote: >> On Monday 12 March 2012 16:30:37 Giuseppe CAVALLARO wrote: >> +Required properties: >> +- compatible: Should be "stm,gmac" > > This is too generic. This should be 1 string per version of

Re: [PATCH v3 0/2] regulator: add irq domain and device tree support for MAX8997

2012-03-12 Thread Thomas Abraham
Hi Rob/Grant, On 23 February 2012 18:08, Thomas Abraham wrote: > Changes since v2: > - Atleast one voltage level has to be specfied for Buck 1/2/5 even if GPIO >  DVS option is not used (suggested by MyungJoo Ham). > - Reworked the irq_domain support based the v5 of irq_domain generalization >  p

[PATCH 0/7 v4] ARM: kirkwood: fdt: convert kirkwood to fdt

2012-03-12 Thread Jason Cooper
This series begins the process of converting all of the drivers initialized from kirkwood_init() to devicetree. The first three patches are code cleanup from Andrew Lunn. The rest of the series is the initial conversion to devicetree for kirkwood, use by dreamplug, and devicetree bindings for dri

[PATCH 1/7] ARM: orion: spi: remove enable_clock_fix which is not used

2012-03-12 Thread Jason Cooper
From: Andrew Lunn Signed-off-by: Andrew Lunn Signed-off-by: Jason Cooper Acked-by: Grant Likely --- drivers/spi/spi-orion.c |5 - include/linux/spi/orion_spi.h |1 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orio

[PATCH 6/7] ARM: kirkwood: rtc-mv devicetree bindings

2012-03-12 Thread Jason Cooper
Signed-off-by: Jason Cooper --- drivers/rtc/rtc-mv.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c index 768e2ed..0dd8421 100644 --- a/drivers/rtc/rtc-mv.c +++ b/drivers/rtc/rtc-mv.c @@ -12,6 +12,7 @@ #include #incl

[PATCH 5/7 v2] ARM: kirkwood: convert uart0 to devicetree.

2012-03-12 Thread Jason Cooper
This uart is the primary console for the dreamplug. Removed kirkwood_uart0_init() call from board-dreamplug.c. There are two uarts on the kirkwood SoC, all or none of them may be enabled, and the clock-frequency is board-dependant. So, enabling and clock-frequency are left to the board dts. Sig

[PATCH 7/7] ARM: kirkwood: use devicetree for rtc-mv

2012-03-12 Thread Jason Cooper
Signed-off-by: Jason Cooper --- arch/arm/boot/dts/kirkwood.dtsi |6 ++ arch/arm/mach-kirkwood/board-dt.c |1 - arch/arm/mach-kirkwood/common.c |2 +- arch/arm/mach-kirkwood/common.h |1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/ki

[PATCH 4/7 v4] ARM: kirkwood: add dreamplug (fdt) support.

2012-03-12 Thread Jason Cooper
Initially, copied guruplug-setup.c and did s/guruplug/dreamplug/g. Then, switched to SPI based NOR flash. After talking to Arnd Bergman, chose an incremental approach to adding devicetree support. First, we use the dtb to tell us we are on the dreamplug, then we gradually port over drivers. Driv

[PATCH 2/7] ARM: Kirkwood: Remove tclk from kirkwood_asoc_platform_data.

2012-03-12 Thread Jason Cooper
From: Andrew Lunn It is not used anywhere in the sound driver. Signed-off-by: Andrew Lunn Signed-off-by: Jason Cooper --- arch/arm/mach-kirkwood/common.c |1 - arch/arm/plat-orion/include/plat/audio.h |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/a

[PATCH 3/7 v2] ARM: orion: wdt: use resource vice direct access

2012-03-12 Thread Jason Cooper
From: Andrew Lunn Signed-off-by: Andrew Lunn Signed-off-by: Jason Cooper Acked-by: Grant Likely --- Note: This code is the exact same as that originally Acked by Grant. I've simply removed the fdt bindings, as I need to hold off until common clock is added. If it's not appropriate to retain

Re: [PATCH] dt: pinctrl: Document device tree binding

2012-03-12 Thread Dong Aisheng
On Tue, Mar 13, 2012 at 01:16:19AM +0800, Stephen Warren wrote: > On 03/12/2012 08:34 AM, Dong Aisheng wrote: > > On Sat, Mar 10, 2012 at 02:14:33AM +0800, Stephen Warren wrote: > >> The core pin controller bindings define: > >> * The fact that pin controllers expose pin configurations as nodes in

Re: [PATCH v3 1/2] mfd: add irq domain support for max8997 interrupts

2012-03-12 Thread Grant Likely
On Thu, 23 Feb 2012 18:08:07 +0530, Thomas Abraham wrote: > Add irq domain support for max8997 interrupts. The reverse mapping method > used is linear mapping since the sub-drivers of max8997 such as regulator > and charger drivers can use the max8997 irq_domain to get the linux irq > number for

Re: [PATCH 1/1] of: introduce helper to manage boolean

2012-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:39 Mon 12 Mar , Scott Wood wrote: > On 03/09/2012 10:36 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > Ugh. so any value other than 1 returns false? I think that will > surprise > most people. > > I don't like this api or binding. If it is a bool property, then

Re: [PATCH] dtc: Add -i option to support search paths

2012-03-12 Thread David Gibson
On Tue, Mar 06, 2012 at 05:10:12PM -0800, Simon Glass wrote: > It is often inconvenient to place device tree files in the same directory > as their includes, or to specify the full path to include files. > > An example of this is in U-Boot where we have a .dtsi file for each SOC > type, and this i

Re: Some slightly random musings on device tree expression syntax

2012-03-12 Thread David Gibson
On Mon, Mar 12, 2012 at 08:53:05AM -0500, Jon Loeliger wrote: > > I was thinking some more about how to expand the device tree syntax to > > allow expressions. > > Excellent! > > > I wondered if we should use a concept/syntax more > > inspired by template processors. Playing with jinja2 and gpp l

Re: [PATCH v3 2/2] regulator: add device tree support for max8997

2012-03-12 Thread Grant Likely
On Thu, 23 Feb 2012 18:08:08 +0530, Thomas Abraham wrote: > Add device tree based discovery support for max8997. > > Cc: MyungJoo Ham > Cc: Rajendra Nayak > Cc: Rob Herring > Cc: Grant Likely > Signed-off-by: Thomas Abraham > --- > .../devicetree/bindings/regulator/max8997-pmic.txt | 134

Re: [PATCH] dt: pinctrl: Document device tree binding

2012-03-12 Thread Grant Likely
On Fri, 9 Mar 2012 11:14:33 -0700, Stephen Warren wrote: > The core pin controller bindings define: > * The fact that pin controllers expose pin configurations as nodes in > device tree. > * That the bindings for those pin configuration nodes is defined by the > individual pin controller dri

Re: [PATCH 1/1] of: introduce helper to manage boolean

2012-03-12 Thread Grant Likely
On Tue, 13 Mar 2012 04:17:39 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 14:39 Mon 12 Mar , Scott Wood wrote: > > On 03/09/2012 10:36 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > > Ugh. so any value other than 1 returns false? I think that will > > surprise > > most

Re: Some slightly random musings on device tree expression syntax

2012-03-12 Thread David Gibson
On Wed, Mar 07, 2012 at 05:40:37PM -0700, Stephen Warren wrote: > I was thinking some more about how to expand the device tree syntax to > allow expressions. I wondered if we should use a concept/syntax more > inspired by template processors. Playing with jinja2 and gpp led me > towards (...) being

Re: [PATCH v3 1/2] mfd: add irq domain support for max8997 interrupts

2012-03-12 Thread Thomas Abraham
On 13 March 2012 08:58, Grant Likely wrote: > On Thu, 23 Feb 2012 18:08:07 +0530, Thomas Abraham > wrote: >> Add irq domain support for max8997 interrupts. The reverse mapping method >> used is linear mapping since the sub-drivers of max8997 such as regulator >> and charger drivers can use the m

Re: [PATCH v3 2/2] regulator: add device tree support for max8997

2012-03-12 Thread Thomas Abraham
On 13 March 2012 09:13, Grant Likely wrote: > On Thu, 23 Feb 2012 18:08:08 +0530, Thomas Abraham > wrote: >> Add device tree based discovery support for max8997. >> >> Cc: MyungJoo Ham >> Cc: Rajendra Nayak >> Cc: Rob Herring >> Cc: Grant Likely >> Signed-off-by: Thomas Abraham >> --- >>  .