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

2011-10-11 Thread Kumar Gala
On Sep 15, 2011, at 1:04 PM, Timur Tabi wrote: > 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", "ngpixis", and "qixis". Although > there are minor differenc

[PATCHv6] mtd: gpio-nand: add device tree bindings

2011-10-11 Thread Jamie Iles
Add device tree bindings so that the gpio-nand driver may be instantiated from the device tree. This also allows the partitions to be specified in the device tree. v6: - convert to mtd_device_parse_register() v5: - fold dt config helpers into a single gpio_nand_of_get_config() v4: - g

[PATCH v4 4/4] arm/tegra: Convert pinmux driver to a platform device

2011-10-11 Thread Stephen Warren
Signed-off-by: Stephen Warren --- arch/arm/mach-tegra/pinmux.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c index f80d507..46b9d87 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch

[PATCH v4 3/4] gpio/tegra: Convert to a platform device

2011-10-11 Thread Stephen Warren
v3: Make regs variable static. Remove empty init of tegra_gpio_banks. v2: Retrieve IRQ and memory addresses from resources instead of hard- coding them. Add back initialization of tegra_gpio_chip.of_node. Signed-off-by: Stephen Warren gpio fixup --- drivers/gpio/gpio-tegra.c | 143 +++

[PATCH v4 1/4] arm/tegra: Prep boards for gpio/pinmux conversion to pdevs

2011-10-11 Thread Stephen Warren
The Tegra GPIO driver will be converted from static registration via postcore_initcall() to be a platform device later in this patch series. A new Tegra pinmux platform device will also be added. Prepare for this by modifying all boards to register the appropriate platform devices before-hand, so

[PATCH v4 2/4] arm/dt: Tegra: Add pinmux node to tegra20.dtsi

2011-10-11 Thread Stephen Warren
Add a pinmux node to tegra20.dtsi in order to instantiate the future pinmux device. v2: Specify reg property precisely; don't just point at the whole APB_MISC register range. Signed-off-by: Stephen Warren --- .../devicetree/bindings/pinmux/pinmux_nvidia.txt |5 + arch/arm/boot/dts/teg

Re: [PATCH v2 3/4] gpio/tegra: Convert to a platform device

2011-10-11 Thread Olof Johansson
On Tue, Oct 11, 2011 at 2:29 PM, Olof Johansson wrote: >> @@ -333,28 +336,55 @@ static struct irq_chip tegra_gpio_irq_chip = { >>   */ >>  static struct lock_class_key gpio_lock_class; >> >> -static int __init tegra_gpio_init(void) >> +static int __init tegra_gpio_probe(struct platform_device *pde

Re: [PATCH v2 3/4] gpio/tegra: Convert to a platform device

2011-10-11 Thread Olof Johansson
Hi, Some nits below. Overall looks good. On Tue, Oct 11, 2011 at 02:23:57PM -0600, Stephen Warren wrote: > @@ -76,16 +75,20 @@ struct tegra_gpio_bank { > }; > > > -static struct tegra_gpio_bank tegra_gpio_banks[] = { > - {.bank = 0, .irq = INT_GPIO1}, > - {.bank = 1, .irq = INT_GPIO2

[PATCH v2 3/4] gpio/tegra: Convert to a platform device

2011-10-11 Thread Stephen Warren
v2: Retrieve IRQ and memory addresses from resources instead of hard- coding them. Add back initialization of tegra_gpio_chip.of_node. Signed-off-by: Stephen Warren --- drivers/gpio/gpio-tegra.c | 142 ++--- 1 files changed, 95 insertions(+), 47 deletions

[PATCH v2 1/4] arm/tegra: Prep boards for gpio/pinmux conversion to pdevs

2011-10-11 Thread Stephen Warren
The Tegra GPIO driver will be converted from static registration via postcore_initcall() to be a platform device later in this patch series. A new Tegra pinmux platform device will also be added. Prepare for this by modifying all boards to register the appropriate platform devices before-hand, so

[PATCH v2 2/4] arm/dt: Tegra: Add pinmux node to tegra20.dtsi

2011-10-11 Thread Stephen Warren
Add a pinmux node to tegra20.dtsi in order to instantiate the future pinmux device. v2: Specify reg property precisely; don't just point at the whole APB_MISC register range. Signed-off-by: Stephen Warren --- .../devicetree/bindings/pinmux/pinmux_nvidia.txt |5 + arch/arm/boot/dts/teg

[PATCH v2 0/4] arm/tegra: Convert GPIO and pinmux to platform devs

2011-10-11 Thread Stephen Warren
v2: Convert GPIO driver to ioremap its registers instead of using static mappings. The pinmux driver doesn't do this yet, but will soon. However, the pinmux register resources/DT-properties are set up correctly for when the driver is converted. Also, add back initialization of tegra_gpio_chip.of_no

[PATCH v2 4/4] arm/tegra: Convert pinmux driver to a platform device

2011-10-11 Thread Stephen Warren
Signed-off-by: Stephen Warren --- arch/arm/mach-tegra/pinmux.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c index f80d507..46b9d87 100644 --- a/arch/arm/mach-tegra/pinmux.c +++ b/arch

Re: [RFC PATCH] tty/serial: RS485 bindings for device tree

2011-10-11 Thread Arnd Bergmann
On Tuesday 11 October 2011 19:28:06 Nicolas Ferre wrote: > > > +Optional properties: > > +- linux,rs485-enabled-at-boot-time: empty property telling to enable the > > rs485 > > + feature at boot time. It can be disabled later with proper ioctl. > > +- linux,rs485-rx-during-tx: empty property th

Re: [PATCH v4 0/3] Variable sized array element support

2011-10-11 Thread Anton Staaf
On Tue, Oct 11, 2011 at 11:01 AM, Jon Loeliger wrote: >> This patch set adds, tests, and documents support for variable sized >> elements in >> arrays (known as cell lists when they could only support 32-bit entries).   >> The >> new syntax is: >> >>     property = /bits/ [8|16|32|64] <0x00

Re: [PATCH 2/3] mmc: Add OF bindings support for mmc host controller capabilities

2011-10-11 Thread Thomas Abraham
On 11 October 2011 21:59, Stephen Warren wrote: > Thomas Abraham wrote at Sunday, October 09, 2011 12:58 AM: >> On 5 October 2011 21:25, Stephen Warren wrote: >> > Thomas Abraham wrote at Wednesday, October 05, 2011 8:28 AM: >> >> On 5 October 2011 18:59, Rob Herring wrote: >> >> > On 10/05/2011

Re: [PATCH v4 0/3] Variable sized array element support

2011-10-11 Thread Jon Loeliger
> This patch set adds, tests, and documents support for variable sized elements > in > arrays (known as cell lists when they could only support 32-bit entries). The > new syntax is: > > property = /bits/ [8|16|32|64] <0x00 0x12>; > > So arrays of 8, 16, 32, or 64-bit elements can now b

Re: [RFC PATCH] tty/serial: RS485 bindings for device tree

2011-10-11 Thread Nicolas Ferre
I can also add this new property (support for it already in linux-next): On 10/11/2011 07:13 PM, Nicolas Ferre : > Generic bindings for RS485 feature included in some UARTs. > Those bindings have to be used withing an UART device tree node. > Documentation updated to link to the bindings definitio

[PATCH v4 3/3] dtc: Add support for variable sized elements

2011-10-11 Thread Anton Staaf
Elements of size 8, 16, 32, and 64 bits are supported. The new /bits/ syntax was selected so as to not pollute the reserved keyword space with uint8/uint16/... type names. With this patch the following property assignment: property = /bits/ 16 <0x1234 0x5678 0x0 0x>; is equivalent to:

[PATCH v4 2/3] dtc: Add data_append_integer function

2011-10-11 Thread Anton Staaf
This function deals with appending integers of various sizes (8, 16 32, and 64 bit currently). It handles endianess conversions. If the integer will not fit in the requested number of bits of storage it will have it's high bits ignored. This patch also rewrites data_append_cell and data_append_a

[PATCH v4 1/3] libfdt: Add fdt16_to_cpu utility function

2011-10-11 Thread Anton Staaf
This utility routine will be used in the variable size cell literal append code. It is a straightforward adaptation of the fdt32_to_cpu function. Signed-off-by: Anton Staaf Acked-by: David Gibson Cc: Jon Loeliger Cc: David Gibson Cc: Grant Likely --- libfdt/libfdt_env.h |6 ++ 1 fil

[PATCH v4 0/3] Variable sized array element support

2011-10-11 Thread Anton Staaf
This patch set adds, tests, and documents support for variable sized elements in arrays (known as cell lists when they could only support 32-bit entries). The new syntax is: property = /bits/ [8|16|32|64] <0x00 0x12>; So arrays of 8, 16, 32, or 64-bit elements can now be created. No pa

Re: [PATCH v4 3/3] dtc: Add support for variable sized elements

2011-10-11 Thread Anton Staaf
On Tue, Oct 11, 2011 at 8:22 AM, Jon Loeliger wrote: >> >> >> >> Signed-off-by: Anton Staaf >> > >> > What the hell, I think I've convinced myself that /bits/ is good >> > enough. >> >> Thanks David, I haven't thought of anything more appropriate either. >> I'm looking forward to getting this lan

[RFC PATCH] tty/serial: RS485 bindings for device tree

2011-10-11 Thread Nicolas Ferre
Generic bindings for RS485 feature included in some UARTs. Those bindings have to be used withing an UART device tree node. Documentation updated to link to the bindings definition. Signed-off-by: Nicolas Ferre --- Hi all, 1/ I have used the "linux" vendor definition: tell me if it makes sense..

RE: [PATCH 2/3] mmc: Add OF bindings support for mmc host controller capabilities

2011-10-11 Thread Stephen Warren
Thomas Abraham wrote at Sunday, October 09, 2011 12:58 AM: > On 5 October 2011 21:25, Stephen Warren wrote: > > Thomas Abraham wrote at Wednesday, October 05, 2011 8:28 AM: > >> On 5 October 2011 18:59, Rob Herring wrote: > >> > On 10/05/2011 05:13 AM, Thomas Abraham wrote: > >> >> Device nodes r

Re: [PATCH] gpio: exynos4: Add device tree support

2011-10-11 Thread Thomas Abraham
On 11 October 2011 21:00, Rob Herring wrote: > On 10/11/2011 10:19 AM, Thomas Abraham wrote: >> Hi Rob, >> >> On 11 October 2011 20:41, Rob Herring wrote: >>> Thomas, >>> >>> On 10/11/2011 03:16 AM, Thomas Abraham wrote: As gpio chips get registered, a device tree node which represents the >

Re: [RFC PATCH] tty/serial: atmel_serial: add device tree support

2011-10-11 Thread Nicolas Ferre
On 10/04/2011 06:55 PM, Grant Likely : > On Tue, Oct 04, 2011 at 08:08:27AM -0500, Rob Herring wrote: >> Nicolas, >> >> On 10/04/2011 03:18 AM, Nicolas Ferre wrote: >>> On 10/04/2011 03:58 AM, Rob Herring : On 10/03/2011 04:51 AM, Nicolas Ferre wrote: > +Optional properties: > +- atmel

Re: [PATCH] gpio: exynos4: Add device tree support

2011-10-11 Thread Rob Herring
On 10/11/2011 10:19 AM, Thomas Abraham wrote: > Hi Rob, > > On 11 October 2011 20:41, Rob Herring wrote: >> Thomas, >> >> On 10/11/2011 03:16 AM, Thomas Abraham wrote: >>> As gpio chips get registered, a device tree node which represents the >>> gpio chip is searched and attached to it. A transla

Re: [PATCH v4 3/3] dtc: Add support for variable sized elements

2011-10-11 Thread Jon Loeliger
> >> > >> Signed-off-by: Anton Staaf > > > > What the hell, I think I've convinced myself that /bits/ is good > > enough. > > Thanks David, I haven't thought of anything more appropriate either. > I'm looking forward to getting this landed. :) To facilitate that, could you post current patch se

Re: [PATCH] gpio: exynos4: Add device tree support

2011-10-11 Thread Thomas Abraham
Hi Rob, On 11 October 2011 20:41, Rob Herring wrote: > Thomas, > > On 10/11/2011 03:16 AM, Thomas Abraham wrote: >> As gpio chips get registered, a device tree node which represents the >> gpio chip is searched and attached to it. A translate function is also >> provided to convert the gpio speci

Re: [PATCH v4 3/3] dtc: Add support for variable sized elements

2011-10-11 Thread Anton Staaf
On Tue, Oct 11, 2011 at 7:44 AM, David Gibson wrote: > On Tue, Sep 27, 2011 at 11:11:38AM -0700, Anton Staaf wrote: >> Elements of size 8, 16, 32, and 64 bits are supported.  The new >> /bits/ syntax was selected so as to not pollute the reserved >> keyword space with uint8/uint16/... type names.

Re: [PATCH] gpio: exynos4: Add device tree support

2011-10-11 Thread Rob Herring
Thomas, On 10/11/2011 03:16 AM, Thomas Abraham wrote: > As gpio chips get registered, a device tree node which represents the > gpio chip is searched and attached to it. A translate function is also > provided to convert the gpio specifier into actual platform settings > for pin function selection

Re: [PATCH v6 00/10] Add device tree support for PL330 dma controller driver

2011-10-11 Thread Thomas Abraham
Hi Vinod, On 11 October 2011 17:36, Kukjin Kim wrote: > Thomas Abraham wrote: >> >> Changes since v5: >> - Added alias clocks for pdma clocks on Exynos4. >> - Modified platform data for s5p64x0, s5pc100 and s5pv210. >> - Rebased on the tip of for-next branch of linux-samsung kernel and > tested.

Re: [PATCH v4 3/3] dtc: Add support for variable sized elements

2011-10-11 Thread David Gibson
On Tue, Sep 27, 2011 at 11:11:38AM -0700, Anton Staaf wrote: > Elements of size 8, 16, 32, and 64 bits are supported. The new > /bits/ syntax was selected so as to not pollute the reserved > keyword space with uint8/uint16/... type names. > > With this patch the following property assignment: >

Re: [PATCH v4 2/3] dtc: Add data_append_integer function

2011-10-11 Thread David Gibson
On Tue, Sep 27, 2011 at 11:11:37AM -0700, Anton Staaf wrote: > This function deals with appending integers of various sizes (8, 16 > 32, and 64 bit currently). It handles endianess conversions. If the > integer will not fit in the requested number of bits of storage it > will have it's high bits

Re: [PATCH v4 1/3] libfdt: Add fdt16_to_cpu utility function

2011-10-11 Thread David Gibson
On Tue, Sep 27, 2011 at 11:11:36AM -0700, Anton Staaf wrote: > This utility routine will be used in the variable size cell literal > append code. It is a straightforward adaptation of the fdt32_to_cpu > function. > > Signed-off-by: Anton Staaf Acked-by: David Gibson -- David Gibson

Re: [PATCH 3/4] ARM: at91/dma: remove platform data from DMA controller

2011-10-11 Thread Vinod Koul
On Mon, 2011-10-10 at 18:37 +0200, Nicolas Ferre wrote: > DMA controller can deduce its configuration data from > the platform. Remove the platform data and match device > types with the compatible ones. This looks like remove, you should fix the changelog of patch 1 then. > > Signed-off-by: Nicol

Re: [PATCH 1/4] dmaengine: at_hdmac: platform data move to use .id_table

2011-10-11 Thread Vinod Koul
On Mon, 2011-10-10 at 18:37 +0200, Nicolas Ferre wrote: > We remove platform data from DMA controller and move > to the use of .id_table to distinguish between compatible > types. The two implementations allow to determine the > number of channels and the capabilities of the controller. > > Signed

[PATCH 2/2] ARM: dts: Add intial dts file for Exynos4210 SoC, SMDKV310 and Origen board

2011-10-11 Thread Thomas Abraham
Add initial dts file for Exynos4210 SoC. This dts file describes the SoC specific devices and properties. Along with this, add dts file for Samsung's SMDKV310 board and Insignal's Origen board which uses the Exynos4210 dts file and extends it to describe the board specific properties. Signed-off-b

[PATCH 1/2] ARM: Samsung: Add Exynos4 device tree enabled board file

2011-10-11 Thread Thomas Abraham
Add a new Exynos4 compatible device tree enabled board file. Boards based on the Exynos4 family of SoC's can use this as the machine/board file. When using this machine fike, a corresponding device tree blob which describes the board's properties should be supplied at boot time to the kernel. Sign

[PATCH 0/2] ARM: Samsung: Add basic device tree support for Exynos4 boards

2011-10-11 Thread Thomas Abraham
This patchset adds a new basic device tree enabled machine/board file which is based on the Samsung's Exynos4 family of SoC's. Also included in this patchset is the dts file for Exynos4210 SoC, Samsung's SMDKV310 board and Insignal's Origen board. The Exynos4210 dts file includes support for IRQ

RE: [PATCH v5 0/2] Add device tree support for Samsung's keypad controller driver

2011-10-11 Thread Kukjin Kim
Thomas Abraham wrote: > > Changes since v4: > - Tested with linux 3.1-rc9. No changes in code. > > Changes since v3: > - Addressed comments from Grant Likely. > - Set num_rows and num_cols to zero in samsung_keypad_parse_dt function. > - Fixed the wierd looking if-else block in samsung_keypad

Re: [PATCH V2 4/4] ARM: at91/dma: DMA controller registering with DT support

2011-10-11 Thread Sergei Shtylyov
Hello. On 10-10-2011 20:43, Nicolas Ferre wrote: Device tree support on at91sam9g45 family SoC. Only call platform_device_register() if no compatible dma-controller node is found in device tree. Signed-off-by: Nicolas Ferre --- V2: use compatible string to match device. [...] diff --git

RE: [PATCH] rtc: rtc-s3c: Add device tree support

2011-10-11 Thread Kukjin Kim
Thomas Abraham wrote: > > On 3 September 2011 21:19, Thomas Abraham > wrote: > > Add device tree based discovery support for Samsung's rtc controller. > > > > Cc: Ben Dooks > > Signed-off-by: Thomas Abraham > > --- > >  Documentation/devicetree/bindings/rtc/s3c-rtc.txt |   20 >

[PATCH] gpio: exynos4: Add device tree support

2011-10-11 Thread Thomas Abraham
As gpio chips get registered, a device tree node which represents the gpio chip is searched and attached to it. A translate function is also provided to convert the gpio specifier into actual platform settings for pin function selection, pull up/down and driver strength settings. Signed-off-by: Th

Re: [PATCH v2 5/5] regulator: map consumer regulator based on device tree

2011-10-11 Thread Nayak, Rajendra
> >> +     if (supply) { >> +             struct regulator_dev *r; >> +             struct device_node *node; >> + >> +             /* first do a dt based lookup */ >> +             if (dev) { >> +                     node = of_get_regulator(dev, supply); >> +                     if (node) >> +    

Re: [PATCH] rtc: rtc-s3c: Add device tree support

2011-10-11 Thread Thomas Abraham
On 3 September 2011 21:19, Thomas Abraham wrote: > Add device tree based discovery support for Samsung's rtc controller. > > Cc: Ben Dooks > Signed-off-by: Thomas Abraham > --- >  Documentation/devicetree/bindings/rtc/s3c-rtc.txt |   20 >  drivers/rtc/rtc-s3c.c