Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thierry Reding
On Tue, Mar 26, 2013 at 10:27:44PM +0100, Thomas Petazzoni wrote: [...] > and so now the suggestions is to do: > > pcie-controller { > compatible = "marvell,armada-xp-pcie"; > status = "disabled"; > device_type

Re: RFC v2: Zynq Clock Controller

2013-03-26 Thread Mike Turquette
Quoting Sören Brinkmann (2013-03-25 17:03:24) > On Mon, Mar 25, 2013 at 05:33:10PM -0600, Stephen Warren wrote: > > On 03/25/2013 12:27 PM, Sören Brinkmann wrote: > > > Hi Stephen, > > > > > > On Mon, Mar 25, 2013 at 12:13:08PM -0600, Stephen Warren wrote: > > >> On 03/20/2013 05:56 PM, Sören Brin

Re: [PATCH v5 0/8] Reset controller API to reset IP modules on i.MX5 and i.MX6

2013-03-26 Thread Marek Vasut
Dear Pavel Machek, > Hi! > > > The system reset controller (SRC) on i.MX51, i.MX53, and i.MX6q controls > > reset lines to the GPU, VPU, IPU, and OpenVG IP modules. > > > > The following patches add a simple API for devices to request being reset > > by separate reset controller hardware and imp

Re: [RFCv1 01/11] arm: mvebu: move L2 cache initialization in init_early()

2013-03-26 Thread Rob Herring
On 03/26/2013 11:52 AM, Thomas Petazzoni wrote: > In preparation for moving the IRQ controller driver to > drivers/irqchip/, we don't want the IRQ controller driver to be > responsible for initializing the L2 cache. Instead, let's initialize > the L2 cache at the init_early() level, like mach-exyno

Re: [PATCH 4/6] pci: Add PCIe driver for Samsung Exynos

2013-03-26 Thread Jingoo Han
On Wednesday, March 27, 2013 6:33 AM, Rob Herring wrote: > > On 03/22/2013 11:07 PM, Jingoo Han wrote: > > Exynos5440 has a PCIe controller which can be used as Root Complex. > > This driver supports a PCIe controller as Root Complex mode. > > > > Signed-off-by: Surendranath Gurivireddy Balla > >

Re: [PATCH v4 0/6] support other fsl SoCs with usbmisc + small fixes

2013-03-26 Thread Alexander Shishkin
Michael Grzeschik writes: > On Thu, Mar 07, 2013 at 11:54:03PM +0100, Michael Grzeschik wrote: >> Hey Alex, >> >> On Thu, Jan 24, 2013 at 11:42:53AM +0200, Alexander Shishkin wrote: >> > Peter Chen writes: >> > >> > > On Tue, Nov 27, 2012 at 05:16:55PM +0100, Michael Grzeschik wrote: >> > >> N

Re: [PATCH 1/1] iio: exynos-adc: Fix typo in DT documentation

2013-03-26 Thread Naveen Krishna Ch
On 26 March 2013 17:19, Nobuhiro Iwamatsu wrote: > On Wed, Mar 27, 2013 at 8:55 AM, Naveen Krishna Ch > wrote: >> On 26 March 2013 04:52, Sachin Kamat wrote: >>> Fixes some typos in the documentation of exynos-adc.txt. >>> >>> Signed-off-by: Sachin Kamat >>> --- >>> .../devicetree/bindings/arm

Re: [PATCH 1/1] iio: exynos-adc: Fix typo in DT documentation

2013-03-26 Thread Nobuhiro Iwamatsu
On Wed, Mar 27, 2013 at 8:55 AM, Naveen Krishna Ch wrote: > On 26 March 2013 04:52, Sachin Kamat wrote: >> Fixes some typos in the documentation of exynos-adc.txt. >> >> Signed-off-by: Sachin Kamat >> --- >> .../devicetree/bindings/arm/samsung/exynos-adc.txt |4 ++-- >> 1 files changed, 2 i

Re: [PATCH 1/1] iio: exynos-adc: Fix typo in DT documentation

2013-03-26 Thread Naveen Krishna Ch
On 26 March 2013 04:52, Sachin Kamat wrote: > Fixes some typos in the documentation of exynos-adc.txt. > > Signed-off-by: Sachin Kamat > --- > .../devicetree/bindings/arm/samsung/exynos-adc.txt |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicet

[PATCH] ARM: tegra: add clocks property to sound nodes

2013-03-26 Thread Stephen Warren
From: Stephen Warren Audio-related clocks need to be represented in the device tree. Update bindings to describe which clocks are needed, and DT files to include those clocks. Signed-off-by: Stephen Warren --- .../devicetree/bindings/sound/nvidia,tegra-audio-alc5632.txt |8 .../

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 10:27:44PM +0100, Thomas Petazzoni wrote: > Is this correct? Thierry, Jason, if you could confirm my understanding, > that would be great. I could then rework and resend the patch set. It looked to me the same as what Thierry was doing, and Thierry's looked like it include

Re: [RFC 01/12] exynos-fimc-is: Adding device tree nodes

2013-03-26 Thread Sylwester Nawrocki
On 03/26/2013 01:17 PM, Arun Kumar K wrote: +Sensor sub-nodes: + +FIMC-IS IP supports custom built sensors to be controlled exclusively by +the FIMC-IS firmware. These sensor properties are to be defined here. [snip] Defining image sensor nodes in a standard way as ISP I2C bus controller node

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 11:06:56PM +0100, Thomas Petazzoni wrote: > > The PCIe host driver just seems to get in the way, it has no knowledge > > it is adding to the process. > > > > irqchip knows: > > - what the physical address of the doorbell is > > - how to construct an address that is per-c

Re: [PATCH v6 0/7] move s3c24xx-irq to drivers/irqchip and add dt support

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Heiko Stübner wrote: > This v6 addresses more comments from Arnd Bergmann, setting the compatible > property to the first supported SoC (s3c2410) instead of using the s3c24xx > wildcard. It also switches the parent-irq and controller irq in the dt > irq descriptor bringing

[PATCH v6 7/7] irqchip: s3c24xx: add devicetree support

2013-03-26 Thread Heiko Stübner
Add the necessary code to initialize the interrupt controller thru devicetree data using the irqchip infrastructure. Signed-off-by: Heiko Stuebner --- .../interrupt-controller/samsung,s3c24xx-irq.txt | 53 + drivers/irqchip/irq-s3c24xx.c | 231 +++-

[PATCH v6 6/7] irqchip: s3c24xx: make interrupt handling independent of irq_domain structure

2013-03-26 Thread Heiko Stübner
Keep a pointer to the corresponding s3c_irq_data struct as irq_chip_data. This removes the need to fetch the intc struct from the irq_domains host_data, thus making it independent of the underlying irq_domain structure. Also keep the real register offset of the interrupt in the s3c_irq_data struct

[PATCH v6 5/7] irqchip: s3c24xx: globally keep track of the created intc instances

2013-03-26 Thread Heiko Stübner
For dt-enabled machines we want to use a big irq_domain over all controllers and therefore need to access not only the main controllers but the sub-controller as well. Signed-off-by: Heiko Stuebner --- drivers/irqchip/irq-s3c24xx.c | 99 + 1 file changed

[PATCH v6 4/7] irqchip: s3c24xx: add irq_set_type callback for basic interrupt types

2013-03-26 Thread Heiko Stübner
Enables post-init setting of the desired typehandler for the interrupt. Signed-off-by: Heiko Stuebner --- drivers/irqchip/irq-s3c24xx.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c index a565eb8..7cb

[PATCH v6 3/7] irqchip: s3c24xx: fix irqlist of second s3c2416 controller

2013-03-26 Thread Heiko Stübner
The list in used was from the s3c2450, a close cousin of the s3c2416. As it's not possible to distinguish between the s3c2416 and s3c2450 the additional interrupts of the s3c2450 will only be available thru devicetree later. Signed-off-by: Heiko Stuebner --- drivers/irqchip/irq-s3c24xx.c |5

[PATCH v6 2/7] irqchip: s3c24xx: fix comments on some camera interrupts

2013-03-26 Thread Heiko Stübner
Might be confusing for people to read the code without having the datasheet nearby. Signed-off-by: Heiko Stuebner --- drivers/irqchip/irq-s3c24xx.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-s3c24xx.c b/drivers/irqchip/irq-s3c24xx.c index 5

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Jason Gunthorpe, On Tue, 26 Mar 2013 15:55:46 -0600, Jason Gunthorpe wrote: > > > FWIW, MSI-X is not restricted to 16 bits, so if you can detect from > > > the PCI layer if it is setting up MSI or MSI-X you could allocate low > > > bits first to MSI-X and high bits first to MSI, increasing t

[PATCH v6 1/7] ARM: S3C24XX: move irq driver to drivers/irqchip

2013-03-26 Thread Heiko Stübner
This move is necessary to make use of the irqchip infrastructure for the following devicetree support for s3c24xx architectures. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- drivers/irqchip/Makefile

[PATCH v6 0/7] move s3c24xx-irq to drivers/irqchip and add dt support

2013-03-26 Thread Heiko Stübner
This v6 addresses more comments from Arnd Bergmann, setting the compatible property to the first supported SoC (s3c2410) instead of using the s3c24xx wildcard. It also switches the parent-irq and controller irq in the dt irq descriptor bringing it to a format of Heiko Stuebner (7): ARM: S3C

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Jason Gunthorpe wrote: > > I'll let Arnd answer this one, but I'm pretty sure that using IRQ > > domains is the way to go. The fact that a number of drivers don't yet > > use IRQ domains is maybe just because they haven't been converted yet. > > Maybe, but they have irq d

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 10:16:54PM +0100, Thomas Petazzoni wrote: > > FWIW, MSI-X is not restricted to 16 bits, so if you can detect from > > the PCI layer if it is setting up MSI or MSI-X you could allocate low > > bits first to MSI-X and high bits first to MSI, increasing the number > > of avail

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > On Tue, 26 Mar 2013 21:10:15 +, Arnd Bergmann wrote: > > > > To which children? Only to the main-intc children? If so, > > > armada_370_xp_mpic_of_init() would be called with a 'device_node *' > > > that points to the main-intc, correct? Then

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 21:31:45 +, Arnd Bergmann wrote: > On Tuesday 26 March 2013, Thomas Petazzoni wrote: > > > FWIW, MSI-X is not restricted to 16 bits, so if you can detect from > > > the PCI layer if it is setting up MSI or MSI-X you could allocate low > > > bits first to

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 21:15:40 +, Arnd Bergmann wrote: > On Tuesday 26 March 2013, Thomas Petazzoni wrote: > > + msimask = readl_relaxed(per_cpu_int_base + > > + ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS) > > +

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Jason Gunthorpe, On Tue, 26 Mar 2013 15:14:03 -0600, Jason Gunthorpe wrote: > On Tue, Mar 26, 2013 at 09:46:13PM +0100, Thomas Petazzoni wrote: > > > To me, the topology of the hardware is really that a single device > > provides two features: the main interrupt controller and the MSI > > in

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 21:10:15 +, Arnd Bergmann wrote: > > To which children? Only to the main-intc children? If so, > > armada_370_xp_mpic_of_init() would be called with a 'device_node *' > > that points to the main-intc, correct? Then it would have to go back up > > in the

Re: [PATCH 4/6] pci: Add PCIe driver for Samsung Exynos

2013-03-26 Thread Rob Herring
On 03/22/2013 11:07 PM, Jingoo Han wrote: > Exynos5440 has a PCIe controller which can be used as Root Complex. > This driver supports a PCIe controller as Root Complex mode. > > Signed-off-by: Surendranath Gurivireddy Balla > Signed-off-by: Siva Reddy Kallam > Signed-off-by: Jingoo Han > --- >

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > > FWIW, MSI-X is not restricted to 16 bits, so if you can detect from > > the PCI layer if it is setting up MSI or MSI-X you could allocate low > > bits first to MSI-X and high bits first to MSI, increasing the number > > of available MSI/MSI-X ve

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thomas Petazzoni
Thierry, On Tue, 26 Mar 2013 21:16:54 +0100, Thierry Reding wrote: > > Thierry: Did you settle on using assigned-addresses? Can you share the > > final binding for your driver? > > Yes, I have the final bindings ready and I was waiting for Andrew's new > version of the ranges parsing patch befor

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thierry Reding wrote: > On Tue, Mar 26, 2013 at 08:50:12PM +, Arnd Bergmann wrote: > > On Tuesday 26 March 2013, Thierry Reding wrote: > > > pci@1,0 { > > > device_type = "pci"; > > > assigned-addresses =

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Jason Gunthorpe, On Tue, 26 Mar 2013 12:02:45 -0600, Jason Gunthorpe wrote: > > This commit introduces the support for the MSI interrupts in the > > armada-370-xp interrupt controller driver. It registers an IRQ > > domain associated with the 'msi' node in the Device Tree, which the > > PCI

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > + msimask = readl_relaxed(per_cpu_int_base + > + ARMADA_370_XP_IN_DRBEL_CAUSE_OFFS) > + & PCI_MSI_DOORBELL_MASK; > + > + writel(~PCI_MS

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 09:46:13PM +0100, Thomas Petazzoni wrote: > To me, the topology of the hardware is really that a single device > provides two features: the main interrupt controller and the MSI > interrupt controller. But I will adapt to whatever DT binding you > propose. No.. the HW is a

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thierry Reding
On Tue, Mar 26, 2013 at 08:50:12PM +, Arnd Bergmann wrote: > On Tuesday 26 March 2013, Thierry Reding wrote: > > pci@1,0 { > > device_type = "pci"; > > assigned-addresses = <0x82000800 0 0x8000 0 > > 0x1000>; > >

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > Dear Arnd Bergmann, > > On Tue, 26 Mar 2013 18:38:22 +, Arnd Bergmann wrote: > > > > Note that both the parent and the child node need to have the > > > 'interrupt-controller' empty property: > > > > > > * The interrupt-co

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thierry Reding wrote: > pci@1,0 { > device_type = "pci"; > assigned-addresses = <0x82000800 0 0x8000 0 > 0x1000>; > reg = <0x000800 0 0 0 0>; > status = "di

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 18:38:22 +, Arnd Bergmann wrote: > > Note that both the parent and the child node need to have the > > 'interrupt-controller' empty property: > > > > * The interrupt-controller property is needed in the main > > interrupt controll

Re: [PATCH v4 1/3] i2c: mux: Add i2c-arbitrator-cros-ec 'mux' driver

2013-03-26 Thread Doug Anderson
Wolfram, On Wed, Mar 13, 2013 at 9:36 AM, Doug Anderson wrote: > The i2c-arbitrator-cros-ec driver implements the arbitration scheme > that the Embedded Controller (EC) on the ARM Chromebook expects to use > for bus multimastering. This i2c-arbitrator-cros-ec driver could also > be used in other

Re: [PATCH v3] USB: PHY: Palmas USB Transceiver Driver

2013-03-26 Thread Stephen Warren
On 03/26/2013 10:57 AM, Graeme Gregory wrote: > On 26/03/13 16:22, Stephen Warren wrote: >> On 03/26/2013 03:27 AM, Graeme Gregory wrote: >> ... >>> If we are tightly coupling as above then using platform_irq is an extra >>> inefficiency. You both have to populate this then parse it afterwards. >>>

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thierry Reding
On Tue, Mar 26, 2013 at 10:34:21AM -0600, Jason Gunthorpe wrote: [...] > This basically looks fine to me, however, I think it is valuable if > you and Thierry could use the same method to pass per-port registers. I > expect others are going to reference these bindings for future work, > and one sta

Re: [PATCH 1/5] capemgr: Beaglebone DT overlay based cape manager

2013-03-26 Thread Greg Kroah-Hartman
On Tue, Mar 26, 2013 at 04:16:10PM +, Grant Likely wrote: > On Tue, 8 Jan 2013 12:10:20 +0200, Pantelis Antoniou > wrote: > > Hi Lee, > > > > On Jan 8, 2013, at 12:00 PM, Lee Jones wrote: > > > > > At the end of the line, some kind of hardware glue is going to be > > > needed. > >

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > > I've tried to explain that in the commit log of PATCH 6, which says: > > However, we need the driver to expose two different IRQ domains: one > for the main interrupt controller itself, and one for the MSI > interrupt controller.

Re: [PATCH 1/5] capemgr: Beaglebone DT overlay based cape manager

2013-03-26 Thread Grant Likely
On Tue, 8 Jan 2013 12:10:20 +0200, Pantelis Antoniou wrote: > Hi Lee, > > On Jan 8, 2013, at 12:00 PM, Lee Jones wrote: > > > At the end of the line, some kind of hardware glue is going to be > > needed. > > > > I just feel that drawing from a sample size of 1 (maybe 2 if I ge

Re: [PATCH 2/5] capemgr: Add beaglebone's cape driver bindings

2013-03-26 Thread Grant Likely
On Mon, 7 Jan 2013 20:51:03 +0200, Pantelis Antoniou wrote: > Document the beaglebone's cape driver bindings. > > Signed-off-by: Pantelis Antoniou Hi Pantelis, I'll go back and review the driver in a minute, but I'll start here since this is the data model that we'll be using for a long time

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 05:52:22PM +0100, Thomas Petazzoni wrote: > This commit introduces the support for the MSI interrupts in the > armada-370-xp interrupt controller driver. It registers an IRQ domain > associated with the 'msi' node in the Device Tree, which the PCI > controller will refer to

Re: [RFCv1 00/11] MSI support for Marvell EBU PCIe driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 17:18:08 +, Arnd Bergmann wrote: > The mailing list rejects patches that have an in-reply-to header with > pointing to a different subject as the new email. > It also has an exception for emails that have the work PATCH in > brackets, but not [RFC] or [

Re: [RFCv1 00/11] MSI support for Marvell EBU PCIe driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > To the readers of LAKML: the mailing list software has, for some > reason, decided that all the e-mails in this series had a "Suspicious > header". They have all been generated by git format-patch and sent with > git send-email, just like the prev

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 17:07:41 +, Arnd Bergmann wrote: > I think the @d002 part needs to be removed for the nodes that > have no reg property. Sure, will fix. > I think I did not follow the entire discussion. What has led to having > two subnodes in the end, rather tha

Re: [RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > + mpic: main-intc@d002 { > +#interrupt-cells = <1>; > +interrupt-controller; > + }; > + > + msi: msi-intc@d002 { > +#interrupt-cells = <1>;

Re: [RFCv1 00/11] MSI support for Marvell EBU PCIe driver

2013-03-26 Thread Thomas Petazzoni
Hello, On Tue, 26 Mar 2013 17:52:15 +0100, Thomas Petazzoni wrote: > This set of patches introduces Message Signaled Interrupt support in > the Marvell EBU PCIe driver. It has been successfully tested on the > Armada XP GP platform and the Armada 370 DB platform with an Intel > e1000e PCIe networ

Re: [RFCv1 01/11] arm: mvebu: move L2 cache initialization in init_early()

2013-03-26 Thread Thomas Petazzoni
Dear Arnd Bergmann, On Tue, 26 Mar 2013 16:53:48 +, Arnd Bergmann wrote: > On Tuesday 26 March 2013, Thomas Petazzoni wrote: > > @@ -72,6 +73,10 @@ void __init armada_370_xp_init_early(void) > > ARMADA_370_XP_MBUS_WINS_SIZE, > > ARMADA_370_XP_SDR

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thomas Petazzoni
Dear Jason Gunthorpe, On Tue, 26 Mar 2013 10:34:21 -0600, Jason Gunthorpe wrote: > On Tue, Mar 26, 2013 at 05:18:32PM +0100, Thomas Petazzoni wrote: > > > + pcie-controller { > > + compatible = "marvell,armada-370-pcie"; > > + status = "disabled"; > >

Re: [RFCv1 02/11] irqchip: move IRQ driver for Armada 370/XP

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > When the Marvell Armada 370/XP support was included in the kernel, the > drivers/irqchip/ directory didn't exist and the minimal infrastructure > in it also didn't exist. Now that we have those things in place, we > move the Armada 370/XP IRQ cont

Re: [RFCv1 01/11] arm: mvebu: move L2 cache initialization in init_early()

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > @@ -72,6 +73,10 @@ void __init armada_370_xp_init_early(void) > ARMADA_370_XP_MBUS_WINS_SIZE, > ARMADA_370_XP_SDRAM_WINS_BASE, > ARMADA_370_XP_SDRAM_WINS_SIZE); > + > +#ifdef

[RFCv1 11/11] arm: mvebu: enable PCI MSI support in defconfig

2013-03-26 Thread Thomas Petazzoni
Now that MSI support is available, both in the IRQ controller driver and in the PCIe driver, let's enable it in the mvebu_defconfig used for Armada 370/XP platforms. Signed-off-by: Thomas Petazzoni --- arch/arm/configs/mvebu_defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/a

[RFCv1 10/11] arm: mvebu: enable MSI support in DT

2013-03-26 Thread Thomas Petazzoni
Now that the Marvell EBU PCIe driver supports MSI, we can adjust the Device Tree for the Armada 370 and Armada XP SoCs so that the PCIe controller nodes point to the MSI interrupt controller using the 'msi-parent' property. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-370.dtsi

[RFCv1 09/11] pci: mvebu: add MSI support

2013-03-26 Thread Thomas Petazzoni
This commit adds the MSI support for the Marvell EBU PCIe driver. The driver now looks at the 'msi-parent' property of the PCIe controller DT node, and if it exists, it gets the associated IRQ domain, which should be the MSI interrupt controller registered by the IRQ controller driver. Using this,

[RFCv1 08/11] PCI: Introduce new MSI chip infrastructure

2013-03-26 Thread Thomas Petazzoni
From: Thierry Reding The new struct msi_chip is used to associated an MSI controller with a PCI bus. It is automatically handed down from the root to its children during bus enumeration. This patch provides default (weak) implementations for the architecture- specific MSI functions (arch_setup_m

[RFCv1 06/11] irqchip: armada-370-xp: use a separate mpic node

2013-03-26 Thread Thomas Petazzoni
In the Marvell hardware, MSI interrupts are supported using doorbells, and those doorbells are handled through registers that are part of the registers managed by the IRQ controller driver: they are the same registers used for handling IPI interrupts. Therefore, it is clearly the responsability of

[RFCv1 07/11] irqchip: armada-370-xp: add MSI support to interrupt controller driver

2013-03-26 Thread Thomas Petazzoni
This commit introduces the support for the MSI interrupts in the armada-370-xp interrupt controller driver. It registers an IRQ domain associated with the 'msi' node in the Device Tree, which the PCI controller will refer to in a followup commit. The MSI interrupts use the 16 high doorbells, and a

[RFCv1 05/11] arm: mvebu: do not duplicate the mpic alias

2013-03-26 Thread Thomas Petazzoni
The mpic alias is already defined in the common armada-370-xp.dtsi, so there's no need to repeat it at the armada-xp.dtsi and armada-370.dtsi level. Moreover, we're going to slightly change how the interrupt controller is declared in the common armada-370-xp.dtsi file. Signed-off-by: Thomas Petazz

[RFCv1 04/11] irqchip: armada-370-xp: slightly cleanup irq controller driver

2013-03-26 Thread Thomas Petazzoni
In preparation for the introduction of MSI support in the IRQ controller driver, we clarify the implementation of IPI using additional defines for the manipulation of doorbells. Just like IPIs are implemented using doorbells, MSIs will also use doorbells, so it makes sense to do this preparatory cl

[RFCv1 03/11] irqchip: armada-370-xp: move IRQ handler to avoid forward declaration

2013-03-26 Thread Thomas Petazzoni
If we move the IRQ handler function above the initialization function, we avoid a forward declaration. This wasn't done as part of the previous commit, in order to increase the readibility of the previous commit, who was also moving the IRQ controller driver from arch/arm to drivers/irqchip. Signe

[RFCv1 02/11] irqchip: move IRQ driver for Armada 370/XP

2013-03-26 Thread Thomas Petazzoni
When the Marvell Armada 370/XP support was included in the kernel, the drivers/irqchip/ directory didn't exist and the minimal infrastructure in it also didn't exist. Now that we have those things in place, we move the Armada 370/XP IRQ controller driver from arch/arm/mach-mvebu/irq-armada-370-xp.c

[RFCv1 01/11] arm: mvebu: move L2 cache initialization in init_early()

2013-03-26 Thread Thomas Petazzoni
In preparation for moving the IRQ controller driver to drivers/irqchip/, we don't want the IRQ controller driver to be responsible for initializing the L2 cache. Instead, let's initialize the L2 cache at the init_early() level, like mach-exynos/common.c is doing. Signed-off-by: Thomas Petazzoni -

[RFCv1 00/11] MSI support for Marvell EBU PCIe driver

2013-03-26 Thread Thomas Petazzoni
Hello, This set of patches introduces Message Signaled Interrupt support in the Marvell EBU PCIe driver. It has been successfully tested on the Armada XP GP platform and the Armada 370 DB platform with an Intel e1000e PCIe network card that supports MSI. This is based on work done by Lior Amsalem

Re: [PATCH v5 0/6] Device tree support for Exynos SoC camera subsystem

2013-03-26 Thread Sylwester Nawrocki
On 03/26/2013 05:39 PM, Sylwester Nawrocki wrote: > Changes in this iteration include mostly adaptation to changes at the > V4L2 OF parser lib and an addition of clocks/clock-names properties > in the bindings of the IP blocks. > > If there is no more comments I intend to send a pull request inclu

[PATCH v5 6/6] s5p-fimc: Use pinctrl API for camera ports configuration

2013-03-26 Thread Sylwester Nawrocki
Before the camera ports can be used the pinmux needs to be configured properly. This patch adds a function to set the camera ports pinctrl to a default state within the media driver's probe(). The camera port(s) are then configured for the video bus operation. Signed-off-by: Sylwester Nawrocki Si

[PATCH v5 5/6] s5p-fimc: Add device tree based sensors registration

2013-03-26 Thread Sylwester Nawrocki
The sensor (I2C and/or SPI client) devices are instantiated by their corresponding control bus drivers. Since the I2C client's master clock is often provided by a video bus receiver (host interface) or other than I2C/SPI controller device, the drivers of those client devices are not accessing hardw

[PATCH v5 4/6] s5p-fimc: Add device tree support for the media device driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds changes required for the main camera media device driver corresponding to the top level 'camera' device node. The drivers of devices corresponding to child nodes of the 'camera' node are looked up and and registered as sub-devices to the top level driver. The main driver's probing

[PATCH v5 3/6] s5p-fimc: Add device tree support for FIMC-LITE device driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds the device tree support for FIMC-LITE device driver. The bindings include compatible property for the Exynos5 SoC series, however the actual implementation for these SoCs will be added in a separate patch. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Change

[PATCH v5 2/6] s5p-fimc: Add device tree support for FIMC device driver

2013-03-26 Thread Sylwester Nawrocki
This patch adds device tree support for FIMC driver on S5PV210 and Exynos4 SoCs. The FIMC IP block's features and quirks encoded statically in the driver are now parsed from the device tree. Once all relevant platforms are converted to device tree based booting the FIMC variant data structures wil

[PATCH v5 1/6] s5p-csis: Add device tree support

2013-03-26 Thread Sylwester Nawrocki
This patch support for binding the driver to the MIPI-CSIS devices instantiated from device tree and parsing the SoC and board specific properties. The MIPI CSI-2 channel is determined by the value of reg property placed in csis' port subnode. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyun

[PATCH v5 0/6] Device tree support for Exynos SoC camera subsystem

2013-03-26 Thread Sylwester Nawrocki
Changes in this iteration include mostly adaptation to changes at the V4L2 OF parser lib and an addition of clocks/clock-names properties in the bindings of the IP blocks. If there is no more comments I intend to send a pull request including the DT bindings documentation, the V4L2 OF parser and t

Re: [PATCH v2 0/7] Add G2D nodes to Exynos4 machines

2013-03-26 Thread Sachin Kamat
On 11 March 2013 12:24, Kukjin Kim wrote: > Sachin Kamat wrote: >> >> Hi Kukjin, >> >> Can you please look into this series as it is pending since quite some time. >> > Applied, I have another opinion about the compatible string though... Couldn't find this series in your latest for-next. Please

Re: [PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Jason Gunthorpe
On Tue, Mar 26, 2013 at 05:18:32PM +0100, Thomas Petazzoni wrote: > + pcie-controller { > + compatible = "marvell,armada-370-pcie"; > + status = "disabled"; > + device_type = "pci"; > + > + #address-cells =

Re: [PATCHv6 00/17] PCIe support for the Armada 370 and Armada XP SoCs

2013-03-26 Thread Arnd Bergmann
On Tuesday 26 March 2013, Thomas Petazzoni wrote: > This series of patches introduces PCIe support for the Marvell Armada > 370 and Armada XP. In the future, we plan to extend the driver to > cover Kirkwood platforms, and possibly other Marvell EBU platforms as > well. > > As we are approaching 3.

Re: [PATCH v3] USB: PHY: Palmas USB Transceiver Driver

2013-03-26 Thread Stephen Warren
On 03/26/2013 03:27 AM, Graeme Gregory wrote: ... > If we are tightly coupling as above then using platform_irq is an extra > inefficiency. You both have to populate this then parse it afterwards. > Why not just use the regmap helper? Ill admit this code is like this as > there was a period where p

[PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-03-26 Thread Andrew Murray
This patch factors out common implementation patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's ranges property without relying on architecture specific DT handling. This will make it easier to write archiecture indep

[PATCHv6 16/17] arm: mvebu: PCIe Device Tree informations for Armada XP GP

2013-03-26 Thread Thomas Petazzoni
The Marvell Armada XP GP board has 3 physical full-size PCIe slots, so we enable the corresponding PCIe interfaces in the Device Tree. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-xp-gp.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot

[PATCHv6 17/17] arm: mvebu: update defconfig with PCI and USB support

2013-03-26 Thread Thomas Petazzoni
Now that we have the necessary drivers and Device Tree informations to support PCIe on Armada 370 and Armada XP, enable the CONFIG_PCI option. Also, since the Armada 370 Mirabox has a built-in USB XHCI controller connected on the PCIe bus, enable the corresponding options as well. Signed-off-by:

[PATCHv6 15/17] arm: mvebu: PCIe Device Tree informations for Armada 370 DB

2013-03-26 Thread Thomas Petazzoni
The Marvell evaluation board (DB) for the Armada 370 SoC has 2 physical full-size PCIe slots, so we enable the corresponding PCIe interfaces in the Device Tree. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-370-db.dts | 17 + 1 file changed, 17 insertions(+) dif

[PATCHv6 13/17] arm: mvebu: PCIe Device Tree informations for Armada XP DB

2013-03-26 Thread Thomas Petazzoni
The Marvell evaluation board (DB) for the Armada XP SoC has 6 physicals full-size PCIe slots, so we enable the corresponding PCIe interfaces in the Device Tree. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-xp-db.dts | 33 + 1 file changed, 33 ins

[PATCHv6 14/17] arm: mvebu: PCIe Device Tree informations for Armada 370 Mirabox

2013-03-26 Thread Thomas Petazzoni
The Globalscale Mirabox platform uses one PCIe interface for an available mini-PCIe slot, and the other PCIe interface for an internal USB 3.0 controller. We add the necessary Device Tree informations to enable those two interfaces. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-37

[PATCHv6 11/17] arm: mvebu: add PCIe Device Tree informations for Armada XP

2013-03-26 Thread Thomas Petazzoni
The Armada XP SoCs have multiple PCIe interfaces. The MV78230 has 2 PCIe units (one 4x or quad 1x, the other 1x only), the MV78260 has 3 PCIe units (two 4x or quad 1x and one 4x/1x), the MV78460 has 4 PCIe units (two 4x or quad 1x and two 4x/1x). We therefore add the necessary Device Tree informati

[PATCHv6 12/17] arm: mvebu: PCIe Device Tree informations for OpenBlocks AX3-4

2013-03-26 Thread Thomas Petazzoni
The PlatHome OpenBlocks AX3-4 has an internal mini-PCIe slot that can be used to plug mini-PCIe devices. We therefore enable the PCIe interface that corresponds to this slot. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-xp-openblocks-ax3-4.dts |9 + 1 file changed, 9

[PATCHv6 10/17] arm: mvebu: add PCIe Device Tree informations for Armada 370

2013-03-26 Thread Thomas Petazzoni
The Armada 370 SoC has two 1x PCIe 2.0 interfaces, so we add the necessary Device Tree informations to make these interfaces availabel. Signed-off-by: Thomas Petazzoni --- arch/arm/boot/dts/armada-370.dtsi | 45 + 1 file changed, 45 insertions(+) diff --git

[PATCHv6 08/17] pci: PCIe driver for Marvell Armada 370/XP systems

2013-03-26 Thread Thomas Petazzoni
This driver implements the support for the PCIe interfaces on the Marvell Armada 370/XP ARM SoCs. In the future, it might be extended to cover earlier families of Marvell SoCs, such as Dove, Orion and Kirkwood. The driver implements the hw_pci operations needed by the core ARM PCI code to setup PC

[PATCHv6 09/17] arm: mvebu: PCIe support is now available on mvebu

2013-03-26 Thread Thomas Petazzoni
Now that the PCIe driver for mvebu has been integrated and all its relevant dependencies, we can mark the ARCH_MVEBU platform has MIGHT_HAVE_PCI, which allows to select the PCI bus support if needed. Signed-off-by: Thomas Petazzoni --- arch/arm/mach-mvebu/Kconfig |2 ++ 1 file changed, 2 ins

[PATCHv6 07/17] clk: mvebu: add more PCIe clocks for Armada XP

2013-03-26 Thread Thomas Petazzoni
The current revision of the datasheet only mentions the gatable clocks for the PCIe 0.0, 0.1, 0.2 and 0.3 interfaces, and forgot to mention the ones for the PCIe 1.0, 1.1, 1.2, 1.3, 2.0 and 3.0 interfaces. After confirmation with Marvell engineers, this patch adds the missing gatable clocks for tho

[PATCHv6 05/17] arm: pci: add a align_resource hook

2013-03-26 Thread Thomas Petazzoni
The PCI specifications says that an I/O region must be aligned on a 4 KB boundary, and a memory region aligned on a 1 MB boundary. However, the Marvell PCIe interfaces rely on address decoding windows (which allow to associate a range of physical addresses with a given device). For PCIe memory win

[PATCHv6 06/17] clk: mvebu: create parent-child relation for PCIe clocks on Armada 370

2013-03-26 Thread Thomas Petazzoni
The Armada 370 has two gatable clocks for each PCIe interface, and we want both of them to be enabled. We therefore make one of the two clocks a child of the other, as we did for the sataX and sataXlnk clocks on Armada XP. Signed-off-by: Thomas Petazzoni Cc: Mike Turquette --- drivers/clk/mvebu

[PATCHv6 04/17] pci: infrastructure to add drivers in drivers/pci/host

2013-03-26 Thread Thomas Petazzoni
As agreed by the community, PCI host drivers will now be stored in drivers/pci/host. This commit adds this directory and the related Kconfig/Makefile changes to allow new drivers to be added in this directory. Signed-off-by: Thomas Petazzoni --- drivers/pci/Kconfig |2 ++ drivers/pci/Ma

[PATCHv6 03/17] of/pci: Add of_pci_parse_bus_range() function

2013-03-26 Thread Thomas Petazzoni
From: Thierry Reding This function can be used to parse a bus-range property as specified by device nodes representing PCI bridges. Signed-off-by: Thierry Reding --- drivers/of/of_pci.c| 25 + include/linux/of_pci.h |1 + 2 files changed, 26 insertions(+) dif

[PATCHv6 02/17] of/pci: Add of_pci_get_devfn() function

2013-03-26 Thread Thomas Petazzoni
From: Thierry Reding This function can be used to parse the device and function number from a standard 5-cell PCI resource. PCI_SLOT() and PCI_FUNC() can be used on the returned value obtain the device and function numbers respectively. Signed-off-by: Thierry Reding --- drivers/of/of_pci.c

[PATCHv6 01/17] of/pci: Provide support for parsing PCI DT ranges property

2013-03-26 Thread Thomas Petazzoni
From: Andrew Murray This patch factors out common implementations patterns to reduce overall kernel code and provide a means for host bridge drivers to directly obtain struct resources from the DT's ranges property without relying on architecture specific DT handling. This will make it easier to

  1   2   >