Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Stefan Roese
On Wednesday 11 April 2012 15:40:52 Jonathan Cameron wrote: On 4/11/2012 2:19 PM, Stefan Roese wrote: This patch implements the basic single data conversion support for the SPEAr600 SoC ADC. The register layout of SPEAr600 differs a bit from other SPEAr SoC variants (e.g. SPEAr3xx). These

Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Viresh Kumar
On 4/11/2012 6:49 PM, Stefan Roese wrote: +static int __devinit spear_adc_probe(struct platform_device *pdev) +{ + struct device_node *np = pdev-dev.of_node; + struct spear_adc_info *info; + struct resource *res; + int retval = -ENODEV; + struct iio_dev *iodev

Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Stefan Roese
On Thursday 12 April 2012 08:12:02 Viresh Kumar wrote: On 4/11/2012 6:49 PM, Stefan Roese wrote: +static int __devinit spear_adc_probe(struct platform_device *pdev) +{ + struct device_node *np = pdev-dev.of_node; + struct spear_adc_info *info; + struct resource *res;

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Arnd Bergmann wrote: On Wednesday 11 April 2012, Thierry Reding wrote: Daniel Vetter wrote: Well, you use the iommu api to map/unmap memory into the iommu for tegra, whereas usually device drivers just use the dma api to do that. The usual interface is dma_map_sg/dma_unmap_sg, but

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the xf86-video-modesetting driver. Only the RGB output

Re: [RFC 2/4] iommu: tegra/gart: Add device tree support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds device tree support for the GART hardware available on NVIDIA Tegra 20 SoCs. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- arch/arm/boot/dts/tegra20.dtsi |6 ++

Re: [PATCH V2 1/2] staging: iio: add driver for isl29028

2012-04-12 Thread Dan Carpenter
On Thu, Apr 12, 2012 at 12:38:11PM +0530, Laxman Dewangan wrote: Intersil's ISL29028 is concurrent Ambient Light and Proximity Sensor device. Add driver to access the light and IR intensity and proximity value via iio interface. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com ---

Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Viresh Kumar
On 4/12/2012 12:33 PM, Stefan Roese wrote: patch for devm_* variant of clk is also there. Where is it? Is it already in next? Do you have a link for the patch? Probably not in next till now. https://lkml.org/lkml/2012/4/1/56 -- viresh ___

Re: [PATCH v6 17/17] pwm: Take over maintainership of the PWM subsystem

2012-04-12 Thread Thierry Reding
* Arnd Bergmann wrote: On Tuesday 10 April 2012, Thierry Reding wrote: I'm taking over the maintainership of the PWM subsystem. This commit also adds the URLs to the gitorious project and repository as well as any missing files related to the PWM subsystem. Signed-off-by: Thierry

Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Stefan Roese
On Thursday 12 April 2012 09:41:45 Viresh Kumar wrote: On 4/12/2012 12:33 PM, Stefan Roese wrote: patch for devm_* variant of clk is also there. Where is it? Is it already in next? Do you have a link for the patch? Probably not in next till now. https://lkml.org/lkml/2012/4/1/56 I

Re: [PATCH] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Viresh Kumar
On 4/12/2012 1:45 PM, Stefan Roese wrote: I just checked, it's not in next. IIUC, there should be an updated patch version for this coming soon. So basing my patch on this one seems a bit too early from my point of view. Perhaps its best to update all iio drivers, once this devm_clk_* stuff

[PATCH v2] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Stefan Roese
This patch implements the basic single data conversion support for the SPEAr600 SoC ADC. The register layout of SPEAr600 differs a bit from other SPEAr SoC variants (e.g. SPEAr3xx). These differences are handled via DT compatible testing. Resulting in a multi-arch binary. This driver is currently

Re: [PATCH v2] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Viresh Kumar
On 4/12/2012 2:06 PM, Stefan Roese wrote: +static int __devinit spear_adc_probe(struct platform_device *pdev) +{ + struct device_node *np = pdev-dev.of_node; + struct spear_adc_info *info; + struct iio_dev *iodev = NULL; + int ret = -ENODEV; + int irq; + +

Re: Booting DT support without U-Boot supporting it

2012-04-12 Thread Dennis.Yxun
hi Guo: I guess CONFIG_ARM_APPENDED_DTB and CONFIG_ARM_ATAG_DTB_COMPAT are ARM soc specific? So, what if I want to boot MIPS kernel, but without bootloader support DT? Thanks Dennis On Thu, Apr 12, 2012 at 1:19 PM, Shawn Guo shawn@linaro.org wrote: On Thu, Apr 12, 2012 at 09:50:39AM

RE: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Thierry, On Thursday, April 12, 2012 9:18 AM Thierry Reding wrote: * Arnd Bergmann wrote: On Wednesday 11 April 2012, Thierry Reding wrote: Daniel Vetter wrote: Well, you use the iommu api to map/unmap memory into the iommu for tegra, whereas usually device drivers just use

[PATCH v3] staging:iio:adc: Add SPEAr ADC driver

2012-04-12 Thread Stefan Roese
This patch implements the basic single data conversion support for the SPEAr600 SoC ADC. The register layout of SPEAr600 differs a bit from other SPEAr SoC variants (e.g. SPEAr3xx). These differences are handled via DT compatible testing. Resulting in a multi-arch binary. This driver is currently

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Sascha Hauer
On Wed, Apr 11, 2012 at 12:12:14PM -0600, Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Arnd Bergmann
On Thursday 12 April 2012, Marek Szyprowski wrote: Scatter lists were initially designed for the disk based block io operations, hence the presence of the in-page offsets and lengths for each chunk. For multimedia use cases providing an array of struct pages and asking dma-mapping to map

[PATCH 1/2] of: Add Avionic Design vendor prefix

2012-04-12 Thread Thierry Reding
This commit adds a device tree vendor prefix for Avionic Design GmbH. Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: devicetree-discuss@lists.ozlabs.org Cc: Linus Walleij linus.wall...@stericsson.com Signed-off-by: Thierry Reding

Re: [PATCH v6 17/17] pwm: Take over maintainership of the PWM subsystem

2012-04-12 Thread Arnd Bergmann
On Thursday 12 April 2012, Thierry Reding wrote: * Arnd Bergmann wrote: On Tuesday 10 April 2012, Thierry Reding wrote: I'm taking over the maintainership of the PWM subsystem. This commit also adds the URLs to the gitorious project and repository as well as any missing files related

Re: Booting DT support without U-Boot supporting it

2012-04-12 Thread Arnd Bergmann
On Thursday 12 April 2012, Viresh Kumar wrote: My U-boot is on an older version and that doesn't have DT support for ARM. Now, is there any way of booting Linux with DT, without U-Boot supporting DT? Like, if we can compile dtb somehow with Linux or something else? Yes, see

[PATCH 1/2] of: Add Semtech Corp. vendor prefix

2012-04-12 Thread Thierry Reding
This commit adds a device tree vendor prefix for Semtech Corp. Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Thierry Reding thierry.red...@avionic-design.de ---

[PATCH 2/2] input: Add support for the Semtech SX8634 controller

2012-04-12 Thread Thierry Reding
This commit adds support for the Semtech SX8634 Capacitive Button and Slider Touch controller. Cc: Dmitry Torokhov dmitry.torok...@gmail.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Thierry Reding

Re: [PATCH 3/9] ARM: at91: add at91sam9g20ek boards dt support

2012-04-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:14 Thu 12 Apr , Mohammed, Afzal wrote: Hi Jean, On Thu, Apr 12, 2012 at 17:15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: If ATMEL is also going driver way, then probably our voice together may be heard and hopefully it will expedite the matter. I'm going to add it too my

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: On Thu, Apr 12, 2012 at 5:33 AM, Thierry Reding thierry.red...@avionic-design.de wrote: In other words I would like to use the Tegra hardware to render content into a framebuffer (using potentially the 3D engine or HW accelerated video decoding blocks) but display

RE: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Marek Szyprowski
Hi Thierry, On Thursday, April 12, 2012 3:42 PM Thierry Reding wrote: Also this doesn't yet solve the vmap() problem that is needed for the kernel virtual mapping. I did try using dma_alloc_writecombine(), but that only works for chunks of 2 MB or smaller, unless I use

Re: [PATCH V4 2/2] staging: iio: add driver for isl29028

2012-04-12 Thread Stephen Warren
On 04/12/2012 08:01 AM, Laxman Dewangan wrote: Intersil's ISL29028 is concurrent Ambient Light and Proximity Sensor device. Add driver to access the light and IR intensity and +static const struct regmap_config isl29028_regmap_config = { ... + .max_register = ISL29028_MAX_REGS - 1, +

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Stephen Warren
On 04/12/2012 12:50 AM, Thierry Reding wrote: * Stephen Warren wrote: On 04/11/2012 06:10 AM, Thierry Reding wrote: This commit adds a very basic DRM driver for NVIDIA Tegra SoCs. It currently has rudimentary GEM support and can run a console on the framebuffer as well as X using the

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Alex Deucher wrote: On Thu, Apr 12, 2012 at 10:09 AM, Alex Deucher alexdeuc...@gmail.com wrote: On Thu, Apr 12, 2012 at 9:25 AM, Thierry Reding Then again, having user-space control this may be more flexible. Performance- wise both should be about the same, right? What I don't quite

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Thierry Reding
* Stephen Warren wrote: On 04/12/2012 12:50 AM, Thierry Reding wrote: drm { compatible = nvidia,tegra20-drm; I'm don't think having an explicit drm node is the right approach; drm is after all a SW term and the DT should be describing HW. Having some kind of top-level

[RFC/PATCH 00/13] ARM: Exynos4: Add DTS for Samsung's Nuri board

2012-04-12 Thread Karol Lewandowski
[ This is just an RFC for those interested DT-support progress on samsung boards. ] This patchset provides up to date patches for drivers used on Samsung's Nuri board. Additionally, expermiental (and incomplete) .dts is also provided. Included .dts provides description for many, but not all

[PATCH 06/13] s5p-tv: Add initial DT-support for SiI9234

2012-04-12 Thread Karol Lewandowski
Make it possible to instantiate SiI9234, Mobile HD Link driver (MHL), from regular device tree description. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Tomasz Stanislawski t.stanisl...@samsung.com ---

[PATCH 05/13] i2c: Dynamically assign adapter id if it wasn't explictly specified

2012-04-12 Thread Karol Lewandowski
Commit 488bf314b (i2c: Allow i2c_add_numbered_adapter() to assign a bus id) reworked i2c_add_numbered_adapter() to call i2c_add_adapter() if requested bus was -1. This allows to simplify driver's initialization procedure by using just one function for static and dynamic adapter id registration.

[PATCH 04/13] i2c-pxa: Drop leftover comment

2012-04-12 Thread Karol Lewandowski
Commit 488bf314b (i2c: Allow i2c_add_numbered_adapter() to assign a bus id) reworked i2c-pxa driver leaving obsolete comment. This commit simply drops it. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Wolfram Sang

[PATCH 01/13] regulator: Fix DT node name checking in max8997-pmic

2012-04-12 Thread Karol Lewandowski
Avoid hard lockup when someone provides non-supported regulator name. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Thomas Abraham thomas.abra...@linaro.org --- drivers/regulator/max8997.c |7 +++ 1 files changed, 7

[PATCH 07/13] s5p-tv: Add initial DT-support for TV mixer

2012-04-12 Thread Karol Lewandowski
Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Tomasz Stanislawski t.stanisl...@samsung.com --- .../devicetree/bindings/arm/exynos/tvmixer.txt | 26 drivers/media/video/s5p-tv/mixer_drv.c

[PATCH 02/13] ARM: Add document to list devices with trivial DT description

2012-04-12 Thread Karol Lewandowski
Add arm/trivial-devices.txt to enumerate devices for which only basic resources are provided (compat, address and irq line). This is based on i2c's trivial-devices.txt by Olof Johansson. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park

[PATCH 10/13] s5p-tv: Add DT-support for HDMI driver

2012-04-12 Thread Karol Lewandowski
Includes v4l2/dt helper function (hdmi_of_get_i2c_subdev() that probably should be implemented in v4l2 core itself. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Cc: Tomasz Stanislawski t.stanisl...@samsung.com --- drivers/media/video/s5p-tv/hdmi_drv.c | 68

[PATCH 11/13] ARM: Exynos4: dts: Specify address and size cells for i2c controllers

2012-04-12 Thread Karol Lewandowski
Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/boot/dts/exynos4210.dtsi | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git

[PATCH 12/13] ARM: Exynos4: Add few more i2c OF compat definitions

2012-04-12 Thread Karol Lewandowski
These are needed for clk_get() to work properly in respective drivers. Signed-off-by: Karol Lewandowski k.lewando...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Cc: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/mach-exynos/mach-exynos4-dt.c | 10 ++ 1

[PATCH 13/13] ARM: dts: Add initial dts for Samsung's NURI board based on Exynos4210

2012-04-12 Thread Karol Lewandowski
This commit is combination of following patches squashed together to produce one patch which provides complete DTS for NURI - ARM: dts: Add sdhci nodes for NURI - ARM: dts: Add i2c-gpio entry for max17042_battery - ARM: dts: Add nodes for fixed regulators available on NURI - ARM: dts: Add

Re: [PATCH 1/1] Add support 2 SATA ports for Maui and change filename from sata_dwc_460ex.c to sata_dwc_4xx.c

2012-04-12 Thread Jeff Garzik
On 04/03/2012 07:56 AM, Sergei Shtylyov wrote: Hello. On 03-04-2012 14:12, Thang Q. Nguyen wrote: Signed-off-by: Thang Q. Nguyentqngu...@apm.com --- Changes for v2: - Use git rename feature to change the driver to the newname and for easier review. arch/powerpc/boot/dts/bluestone.dts | 21

[PATCH v3 0/2] i2c/of: Populate multiplexed i2c busses from the device tree.

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com v3: Integrate changes from Lars-Peter Clausen to make better use of the of_*() infrastructure. Get rid of ugly #ifdefs. v2: Update bindings to use reg insutead of cell-index v1: Unchanged from the original RFC where I said: We need to populate

[PATCH v3 2/2] i2c/of: Automatically populate i2c mux busses from device tree data.

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com For 'normal' i2c bus drivers, we can call of_i2c_register_devices() and have the device tree framework automatically populate the bus with the devices specified in the device tree. This patch adds a common code to the i2c mux framework to have the mux

[PATCH v3 1/2] i2c: Add a struct device * parameter to i2c_add_mux_adapter()

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com And adjust all callers. The new device parameter is used in the next patch to initialize the mux's of_node so that its children may be automatically populated. Signed-off-by: David Daney david.da...@cavium.com Cc: Lars-Peter Clausen l...@metafoo.de ---

Re: [RFC 4/4] drm: Add NVIDIA Tegra support

2012-04-12 Thread Stephen Warren
On 04/12/2012 11:44 AM, Thierry Reding wrote: * Stephen Warren wrote: On 04/12/2012 12:50 AM, Thierry Reding wrote: drm { compatible = nvidia,tegra20-drm; I'm don't think having an explicit drm node is the right approach; drm is after all a SW term and the DT should be

[PATCH 1/2] MIPS: OCTEON: Select ARCH_REQUIRE_GPIOLIB

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com ... and create asm/mach-cavium-octeon/gpio.h so that things continue to build. This allows us to use the existing I2C connected GPIO expanders. Signed-off-by: David Daney david.da...@cavium.com --- arch/mips/Kconfig |1

[PATCH 0/2] gpio/MIPS/OCTEON: Add GPIO support for OCTEON.

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com There are two patches needed to add OCTEON GPIO support: 1) Select ARCH_REQUIRE_GPIOLIB. This allows standard I2C GPIO expanders to function, as well as being a prerequisite for the driver for the on-chip pins. 2) The on-chip pin driver. I'm not sure

[PATCH 2/2] gpio/MIPS/OCTEON: Add a driver for OCTEON's on-chip GPIO pins.

2012-04-12 Thread David Daney
From: David Daney david.da...@cavium.com The SOCs in the OCTEON family have 16 (or in some cases 20) on-chip GPIO pins, this driver handles them all. Configuring the pins as interrupt sources is handled elsewhere (OCTEON's irq handling code). Signed-off-by: David Daney david.da...@cavium.com

adding devicetree support for an interrupt controller

2012-04-12 Thread Rhyland Klein
So I am working on adding DT support for the tps65910 pmic. It (amongst other things) is an interrupt controller. I am looking to convert that code as well, and I am curious if there is a good example to work off. The driver's irq_base is not set, so it needs to use a dynamic domain. The examples

Re: [PATCH] Add integer expressions files to .gitignore

2012-04-12 Thread David Gibson
On Thu, Apr 12, 2012 at 10:50:25AM -0700, Simon Glass wrote: Several files were added, and should be in .gitignore. The *.test.dts pattern should catch future source files which are generated by tests. Also move things back into alphabetical order, which I think is the intent. Hm, probably,

Re: [PATCH] USB: Add DT probing support to ehci-spear and ohci-spear

2012-04-12 Thread Viresh Kumar
On 3/22/2012 9:20 PM, Stefan Roese wrote: This patch adds support to configure the SPEAr EHCI OHCI driver via device-tree instead of platform_data. Signed-off-by: Stefan Roese s...@denx.de Cc: Viresh Kumar viresh.ku...@st.com --- .../devicetree/bindings/usb/spear-usb.txt | 39