[PATCH v3 1/2] regulator: twl: adapt twl-regulator driver to dt

2012-02-27 Thread Rajendra Nayak
Modify the twl regulator driver to extract the regulator_init_data from device tree when passed, instead of getting it through platform_data structures (on non-DT builds) Also add documentation for TWL regulator specific bindings. Signed-off-by: Rajendra Nayak --- .../bindings/regulator/twl-reg

[PATCH v3 2/2] arm/dts: twl: Pass regulator data from dt

2012-02-27 Thread Rajendra Nayak
Pass all the voltage regulator information for twl6030/twl4030 PMIC from device tree. Signed-off-by: Rajendra Nayak Signed-off-by: Benoit Cousson --- arch/arm/boot/dts/omap3-beagle.dts |6 +++ arch/arm/boot/dts/twl4030.dtsi | 18 +++ arch/arm/boot/dts/twl6030.dtsi | 60 +

[PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Rajendra Nayak
Re-sending on top of Tero's changes which are already in -next and the one which adds support for twl6030 vdd1/2/3 SMPS [1]. v3 has mainly 2 differences from v2 -1- TWL driver now uses just one table for both dt and non-dt based lookup for driver data. -2- All common regulator nodes for twl4030 a

Re: [PATCH] devicetree: Add empty of_platform_populate() for !CONFIG_OF_ADDRESS (sparc)

2012-02-27 Thread Samuel Ortiz
Hi Grant, On Fri, Feb 24, 2012 at 03:06:58PM -0700, Grant Likely wrote: > Sparc has its own helpers for translating address ranges when the device > tree is parsed at boot time, and it isn't able to use of_platform_populate(). > However, there are some device drivers that want to use that function

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Peter Ujfalusi
Hi Rajendra, On 02/27/2012 12:35 PM, Rajendra Nayak wrote: > Re-sending on top of Tero's changes which are already > in -next and the one which adds support for twl6030 > vdd1/2/3 SMPS [1]. Would you be able to add support for V1V8, V2V1 SMPS supplies in twl6030? These regulators are need on SD

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Rajendra Nayak
On Monday 27 February 2012 05:45 PM, Peter Ujfalusi wrote: Hi Rajendra, On 02/27/2012 12:35 PM, Rajendra Nayak wrote: Re-sending on top of Tero's changes which are already in -next and the one which adds support for twl6030 vdd1/2/3 SMPS [1]. Would you be able to add support for V1V8, V2V1 S

Re: [RFC PATCH 1/2] of: Add generic device tree DMA helpers

2012-02-27 Thread Nicolas Ferre
On 02/23/2012 04:57 PM, Cousson, Benoit : > On 2/23/2012 4:51 PM, Nicolas Ferre wrote: >> On 02/23/2012 11:03 AM, Cousson, Benoit : >>> Salut Nico, >> >> Coucou Benoit ;-) >> >>> On 2/22/2012 11:59 AM, Nicolas Ferre wrote: On 01/27/2012 06:29 PM, Cousson, Benoit : > Add some basic helpers

[PATCH] of/mdio: fix fixed link bus name

2012-02-27 Thread Baruch Siach
Since 9e6c643b (phy/fixed: use an unique MDIO bus name) the name of the fixed PHY bus is "fixed-0". Teach of_phy_connect_fixed_link() the new name. Tested on a P1020RDB PowerPC system. Signed-off-by: Baruch Siach --- drivers/of/of_mdio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Mark Brown
On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: > Depending on what order Mark happens to pull them in, I am fine > re-sending adding support for the 2 twl6030 fixed regulators. Please can you guys come up with a single unified series for this stuff - I'll hold off on applying any

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Cousson, Benoit
Hi Mark, On 2/27/2012 2:41 PM, Mark Brown wrote: On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: Depending on what order Mark happens to pull them in, I am fine re-sending adding support for the 2 twl6030 fixed regulators. Please can you guys come up with a single unified ser

Re: [PATCH] devicetree: Add empty of_platform_populate() for !CONFIG_OF_ADDRESS (sparc)

2012-02-27 Thread Grant Likely
On Feb 27, 2012 3:32 AM, "Samuel Ortiz" wrote: > > Hi Grant, > > On Fri, Feb 24, 2012 at 03:06:58PM -0700, Grant Likely wrote: > > Sparc has its own helpers for translating address ranges when the device > > tree is parsed at boot time, and it isn't able to use of_platform_populate(). > > However,

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Mark Brown
On Mon, Feb 27, 2012 at 02:52:05PM +0100, Cousson, Benoit wrote: > On 2/27/2012 2:41 PM, Mark Brown wrote: > >On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: > >Please can you guys come up with a single unified series for this stuff > >- I'll hold off on applying anything to allow

[GIT PULL] at91: irqdomain and device tree for AIC and GPIO

2012-02-27 Thread Nicolas Ferre
Hi, This series adds irqdomain and device tree support for both the interrupt and GPIO controllers of AT91 SoC. It has been discussed a lot and I think that I have addressed all comments and advices. This irqdomain work takes advantage of Grant's patch series that is present in: git://git.secretl

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Cousson, Benoit
On 2/27/2012 3:03 PM, Mark Brown wrote: On Mon, Feb 27, 2012 at 02:52:05PM +0100, Cousson, Benoit wrote: On 2/27/2012 2:41 PM, Mark Brown wrote: On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: Please can you guys come up with a single unified series for this stuff - I'll hold

Re: [RFC PATCH 1/2] of: Add generic device tree DMA helpers

2012-02-27 Thread Cousson, Benoit
On 2/27/2012 2:09 PM, Nicolas Ferre wrote: On 02/23/2012 04:57 PM, Cousson, Benoit : On 2/23/2012 4:51 PM, Nicolas Ferre wrote: On 02/23/2012 11:03 AM, Cousson, Benoit : Salut Nico, Coucou Benoit ;-) On 2/22/2012 11:59 AM, Nicolas Ferre wrote: On 01/27/2012 06:29 PM, Cousson, Benoit : Ad

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Mark Brown
On Mon, Feb 27, 2012 at 03:21:26PM +0100, Cousson, Benoit wrote: > Mmm, it is written in Rajendra's changelog: > "-2- All common regulator nodes for twl4030 and twl6030 are > now defined in the twl4030.dtsi and twl6030.dtsi instead of Oh, it's buried at the end of a rather verbose inter-patch ch

Re: [PATCH 0/2 v5] arm: kirkwood: add dreamplug/devicetree support

2012-02-27 Thread Jason
On Sun, Feb 26, 2012 at 11:00:38AM +, Ian Campbell wrote: > On Thu, 2012-02-23 at 19:52 +, Jason Cooper wrote: > > This patch series provides initial support for devicetree on kirkwood for > > the > > dreamplug platform. After discussing the approach with Arnd Bergman last > > week > > a

Re: [PATCH] of/mdio: fix fixed link bus name

2012-02-27 Thread Rob Herring
On 02/27/2012 06:48 AM, Baruch Siach wrote: > Since 9e6c643b (phy/fixed: use an unique MDIO bus name) the name of the fixed > PHY bus is "fixed-0". Teach of_phy_connect_fixed_link() the new name. > Applied for 3.3. Rob > Tested on a P1020RDB PowerPC system. > > Signed-off-by: Baruch Siach > -

[PATCH 0/2 v6] arm: kirkwood: add dreamplug/devicetree support

2012-02-27 Thread Jason Cooper
This patch series provides initial support for devicetree on kirkwood for the dreamplug platform. After discussing the approach with Arnd Bergman last week at ELC, we decided to take an incremental approach to the conversion. First, I would detect that we were on the dreamplug via the devicetree

[PATCH 2/2 v2] arm: kirkwood: convert uart0 to devicetree.

2012-02-27 Thread Jason Cooper
This uart is the primary console for the dreamplug. Removed kirkwood_uart0_init() call from board-dt.c. Signed-off-by: Jason Cooper --- Changes from v1 - moved serial config from kirkwood.dtsi to kirkwood-dreamplug.dts as suggested by Arnd Bergman. arch/arm/boot/dts/kirkwood-dreampl

[PATCH 1/2 v6] arm: kirkwood: add dreamplug (fdt) support.

2012-02-27 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

Re: [PATCH] doc: dt: Fix broken reference in gpio-leds documentation

2012-02-27 Thread Rob Herring
On 02/06/2012 11:29 AM, Tobias Klauser wrote: > The gpios property is described in Documentation/devicetree/gpio.txt, so > reference this document. > > Signed-off-by: Tobias Klauser Applied. Rob > --- > Documentation/devicetree/bindings/gpio/led.txt |6 +++--- > 1 files changed, 3 inserti

Re: [PATCH 0/2 v6] arm: kirkwood: add dreamplug/devicetree support

2012-02-27 Thread Arnd Bergmann
On Monday 27 February 2012, Jason Cooper wrote: > This patch series provides initial support for devicetree on kirkwood for the > dreamplug platform. After discussing the approach with Arnd Bergman last week > at ELC, we decided to take an incremental approach to the conversion. First, > I > wou

Re: [RFC PATCH 1/2] of: Add generic device tree DMA helpers

2012-02-27 Thread Nicolas Ferre
On 02/27/2012 03:22 PM, Cousson, Benoit : > On 2/27/2012 2:09 PM, Nicolas Ferre wrote: >> On 02/23/2012 04:57 PM, Cousson, Benoit : >>> On 2/23/2012 4:51 PM, Nicolas Ferre wrote: On 02/23/2012 11:03 AM, Cousson, Benoit : > Salut Nico, Coucou Benoit ;-) > On 2/22/2012 11:

Re: [PATCH 0/2 v6] arm: kirkwood: add dreamplug/devicetree support

2012-02-27 Thread Jason
On Mon, Feb 27, 2012 at 04:29:37PM +, Arnd Bergmann wrote: > On Monday 27 February 2012, Jason Cooper wrote: > > This patch series provides initial support for devicetree on kirkwood for > > the > > dreamplug platform. After discussing the approach with Arnd Bergman last > > week > > at ELC,

[PULL] DT fixes for 3.3

2012-02-27 Thread Rob Herring
Grant, Please pull these few fixes and doc updates for 3.3. Rob The following changes since commit 6b21d18ed50c7d145220b0724ea7f2613abf0f95: Linux 3.3-rc5 (2012-02-25 12:18:16 -0800) are available in the git repository at: git://sources.calxeda.com/kernel/linux.git fixes-for-grant Baruch

[PATCH v6 01/20] fdt: Tidy up a few fdtdec problems

2012-02-27 Thread Simon Glass
This fixes five trivial issues in fdtdec.c: 1. fdtdec_get_is_enabled() doesn't really need a default value 2. The fdt must be word-aligned, since otherwise it will fail on ARM 3. The compat_names[] array is missing its first element. This is needed only because the first fdt_compat_id is defined to

[PATCH v6 09/20] tegra: fdt: Add additional USB binding

2012-02-27 Thread Simon Glass
This adds a property to indicate a port which can switch between host and device mode. Signed-off-by: Simon Glass --- Changes in v5: - Add dr_mode property to control host/device/otg mode - Add nvidia,has-legacy-mode property per review comments doc/device-tree-bindings/usb/tegra-usb.txt | 12

[PATCH v6 08/20] fdt: Add tegra-usb bindings file from linux

2012-02-27 Thread Simon Glass
This file is taken from the Linux mailing list. Signed-off-by: Simon Glass --- doc/device-tree-bindings/usb/tegra-usb.txt | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 doc/device-tree-bindings/usb/tegra-usb.txt diff --git a/doc/device-tree-bindings

[PATCH v6 12/20] tegra: usb: fdt: Add additional device tree definitions for USB ports

2012-02-27 Thread Simon Glass
This adds clock references to the USB part of the device tree for U-Boot, and marks USB1 as supporting legacy mode (which we disable in the driver). The USB timing information may vary between boards sometimes, but for now we hard-code it in C. This is because all current T2x boards use the same v

[PATCH v6 13/20] tegra: usb: fdt: Add USB definitions for Tegra2 Seaboard

2012-02-27 Thread Simon Glass
We set up two USB ports, one of which can be host or device. For some reason the kernel version does enable both ports. Signed-off-by: Simon Glass --- Changes in v2: - Remove 0x from fdt aliases - Use "okay" instead of "ok" for fdt node status Changes in v3: - Disable USB2 which is not used on S

[PATCH v6 02/20] fdt: Add functions to access phandles, arrays and bools

2012-02-27 Thread Simon Glass
Add a function to look up a property which is a phandle in a node, and another to read a fixed-length integer array from an fdt property. Also add a function to read boolean properties, although there is no actual boolean type in U-Boot. Signed-off-by: Simon Glass Acked-by: Gerald Van Baren Acke

[PATCH v6 10/20] tegra: fdt: Add clock bindings

2012-02-27 Thread Simon Glass
This adds a basic binding for the oscillator and peripheral clocks. The second cell is the clock number, defined as the bit number within the clock enable register if the peripheral clock. This uses the RFC clock bindings from Grant Likely so may change later: https://lkml.org/lkml/2011/12/12/498

[PATCH v6 15/20] tegra: fdt: Add function to return peripheral/clock ID

2012-02-27 Thread Simon Glass
A common requirement is to find the clock ID for a peripheral. This is the second cell of the 'clocks' property (the first being the phandle itself). Signed-off-by: Simon Glass --- Changes in v4: - Add fdtdec function to return peripheral ID Changes in v6: - Move peripheral decode function into

[PATCH v6 07/20] fdt: Add staging area for device tree binding documentation

2012-02-27 Thread Simon Glass
Add a directory to hold device tree binding files, to permit easy review of this material in U-Boot patches. Signed-off-by: Simon Glass --- Changes in v4: - Add staging area for device tree bindings used in U-Boot Changes in v5: - Update README to indicate that we will commit fdt documentation t

[PATCH v6 04/20] arm: fdt: Add skeleton device tree file from kernel

2012-02-27 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass --- arch/arm/dts/skeleton.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 arch/arm/dts/skeleton.dtsi diff --git a/arc

[PATCH v6 11/20] tegra: fdt: Add clock bindings for Tegra2 Seaboard

2012-02-27 Thread Simon Glass
Add the definition of the oscillator clock frequency. Signed-off-by: Simon Glass --- Changes in v6: - Add new patch to bring in clock bindings to seaboard board/nvidia/dts/tegra2-seaboard.dts | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/teg

[PATCH v6 20/20] tegra: fdt: Enable FDT support for Seaboard

2012-02-27 Thread Simon Glass
This switches Seaboard over to use FDT for run-time config instead of CONFIG options. USB is the only user at present. Signed-off-by: Simon Glass --- Changes in v3: - Drop Tegra USB alignment patch as we will deal with this another way Changes in v6: - Drop fdt alignment patch as we will handle

[PATCH v6 06/20] tegra: fdt: Add device tree file for Tegra2 Seaboard from kernel

2012-02-27 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass --- board/nvidia/dts/tegra2-seaboard.dts | 36 ++ 1 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 board/nvidia/

[PATCH v6 05/20] tegra: fdt: Add Tegra2x device tree file from kernel

2012-02-27 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git config.mk is updated to provide this file to boards through the built-in mechanism: /include/ ARCH_CPU_DTS Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/config.mk |2 + arch/arm

[PATCH v6 03/20] fdt: Add basic support for decoding GPIO definitions

2012-02-27 Thread Simon Glass
This adds some support into fdtdec for reading GPIO definitions from the fdt. We permit up to FDT_GPIO_MAX GPIOs in the system. Each GPIO is of the form: gpio-function-name = ; where: phandle is a pointer to the GPIO node gpio_num is the number of the GPIO (0 to 223) flags is a flag, as follows:

Re: [PATCH v4 04/20] arm: fdt: Ensure that an embedded fdt is word-aligned

2012-02-27 Thread Simon Glass
Hi Albert, On Sun, Feb 19, 2012 at 10:33 AM, Albert ARIBAUD wrote: > Hi Simon, > > Le 19/02/2012 17:23, Simon Glass a écrit : > > >> Sorry I had that wrong - it's not the link step I am bothered by, it is >> the >> objcopy step. >> >> What I would like to do is mark the input section, created by

Re: [PULL] DT fixes for 3.3

2012-02-27 Thread Grant Likely
On Mon, Feb 27, 2012 at 1:02 PM, Rob Herring wrote: > Grant, > > Please pull these few fixes and doc updates for 3.3. Merged, thanks. g. > > Rob > > The following changes since commit 6b21d18ed50c7d145220b0724ea7f2613abf0f95: > >  Linux 3.3-rc5 (2012-02-25 12:18:16 -0800) > > are available in

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Grant Likely
On Mon, Feb 27, 2012 at 6:52 AM, Cousson, Benoit wrote: > Hi Mark, > > > On 2/27/2012 2:41 PM, Mark Brown wrote: >> >> On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: >> >>> Depending on what order Mark happens to pull them in, I am fine >>> re-sending adding support for the 2 twl6

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Cousson, Benoit
On 2/27/2012 11:17 PM, Grant Likely wrote: On Mon, Feb 27, 2012 at 6:52 AM, Cousson, Benoit wrote: Hi Mark, On 2/27/2012 2:41 PM, Mark Brown wrote: On Mon, Feb 27, 2012 at 06:01:20PM +0530, Rajendra Nayak wrote: Depending on what order Mark happens to pull them in, I am fine re-sending ad

[PATCH WIP] ARM: kirkwood: covert orion-spi to fdt.

2012-02-27 Thread Jason Cooper
On the Globalscale Dreamplug (Marvell Kirkwood Development Platform), 2MB of NOR flash are used to hold the bootloader, bootloader environment, and devicetree blob. It is connected via spi. Signed-off-by: Jason Cooper --- Notes: - checkpatch clean. - compiles, boots, registers partitions

Re: [PATCH v6 09/20] tegra: fdt: Add additional USB binding

2012-02-27 Thread Stephen Warren
On 02/27/2012 01:52 PM, Simon Glass wrote: > This adds a property to indicate a port which can switch between host and > device > mode. ... > diff --git a/doc/device-tree-bindings/usb/tegra-usb.txt > b/doc/device-tree-bindings/usb/tegra-usb.txt ... > +Optional properties: > + - dr_mode : dual ro

Re: [PATCH v6 11/20] tegra: fdt: Add clock bindings for Tegra2 Seaboard

2012-02-27 Thread Stephen Warren
On 02/27/2012 01:52 PM, Simon Glass wrote: > Add the definition of the oscillator clock frequency. > diff --git a/board/nvidia/dts/tegra2-seaboard.dts > b/board/nvidia/dts/tegra2-seaboard.dts > + clock@60006000 { > + clocks = <&osc>; > + }; The CAR takes two clock inputs; on

Re: [PATCH v6 15/20] tegra: fdt: Add function to return peripheral/clock ID

2012-02-27 Thread Stephen Warren
On 02/27/2012 01:52 PM, Simon Glass wrote: > A common requirement is to find the clock ID for a peripheral. This is the > second cell of the 'clocks' property (the first being the phandle itself). > +int clock_decode_periph_id(const void *blob, int node) > + valid = clock_periph_id_isvalid(id

Re: [PATCH v3 0/2] Device tree support for TWL regulators

2012-02-27 Thread Rajendra Nayak
On Monday 27 February 2012 08:23 PM, Mark Brown wrote: If adding device tree support breaks existing platforms something is going wrong, while you're pulling things together device tree might not work until all the support makes it in but the old non-DT code should continue to function. Adding

Re: [PATCH WIP] ARM: kirkwood: covert orion-spi to fdt.

2012-02-27 Thread Arnd Bergmann
On Monday 27 February 2012, Jason Cooper wrote: > On the Globalscale Dreamplug (Marvell Kirkwood Development Platform), > 2MB of NOR flash are used to hold the bootloader, bootloader > environment, and devicetree blob. It is connected via spi. > > Signed-off-by: Jason Cooper > --- > Notes: >