* [PATCH v2 0/2] ARM: gic: Document optional Clock and Power Domain properties @ 2015-09-14 20:06 Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 1/2] irqchip: gic: Add arm,pl390 support Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven 0 siblings, 2 replies; 4+ messages in thread From: Geert Uytterhoeven @ 2015-09-14 20:06 UTC (permalink / raw) To: Pawel Moll, Mark Rutland, Kumar Gala, Thomas Gleixner, Jason Cooper, Marc Zyngier, Rob Herring, Ian Campbell Cc: devicetree, linux-kernel, linux-clk, linux-pm, linux-arm-kernel, linux-sh, Geert Uytterhoeven Hi, On some SoCs, the GIC may be part of a PM Domain (hardware Power and/or Clock Domain). Document the related optional DT properties. This patch series: - Adds support for the PL390 GIC variant, as the PL390 has different clock inputs than the A9 MPCore GIC that is currently (incorrectly) described in various Renesas DTSes instead, - Documents optional Clock and Power Domain properties. This will allow to properly describe later the relationship between the GIC and the Clock and/or Power Domain topology on Renesas SoCs, and prevent clocks from being disabled inadvertently. This is v2 of "[PATCH] ARM: gic: Document Power and Clock Domain optional properties" (https://lkml.org/lkml/2015/4/27/401). Changes since v1: - Add "arm,pl390", - Add "clock-names" to DT bindings, - Document clock inputs on various GIC variants. Thanks for your comments! Geert Uytterhoeven (2): irqchip: gic: Add arm,pl390 support irqchip: gic: Document optional Clock and Power Domain properties Documentation/devicetree/bindings/arm/gic.txt | 24 ++++++++++++++++++++---- drivers/irqchip/irq-gic.c | 1 + 2 files changed, 21 insertions(+), 4 deletions(-) -- 1.9.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] irqchip: gic: Add arm,pl390 support 2015-09-14 20:06 [PATCH v2 0/2] ARM: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven @ 2015-09-14 20:06 ` Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven 1 sibling, 0 replies; 4+ messages in thread From: Geert Uytterhoeven @ 2015-09-14 20:06 UTC (permalink / raw) To: Pawel Moll, Mark Rutland, Kumar Gala, Thomas Gleixner, Jason Cooper, Marc Zyngier, Rob Herring, Ian Campbell Cc: devicetree, linux-kernel, linux-clk, linux-pm, linux-arm-kernel, linux-sh, Geert Uytterhoeven Add support for the PrimeCell® Generic Interrupt Controller (PL390) to the GIC DT bindings and driver. Currently the GIC driver treats this GIC variant the same as other GIC variants, but there are differences in hardware topology (e.g. clock inputs). Sort the list of compatible values while we're at it. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- v2: - New. Documentation/devicetree/bindings/arm/gic.txt | 9 +++++---- drivers/irqchip/irq-gic.c | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/gic.txt b/Documentation/devicetree/bindings/arm/gic.txt index 2da059a4790cb3c6..24742853ba460223 100644 --- a/Documentation/devicetree/bindings/arm/gic.txt +++ b/Documentation/devicetree/bindings/arm/gic.txt @@ -11,13 +11,14 @@ have PPIs or SGIs. Main node required properties: - compatible : should be one of: - "arm,gic-400" + "arm,arm1176jzf-devchip-gic" + "arm,arm11mp-gic" "arm,cortex-a15-gic" - "arm,cortex-a9-gic" "arm,cortex-a7-gic" - "arm,arm11mp-gic" + "arm,cortex-a9-gic" + "arm,gic-400" + "arm,pl390" "brcm,brahma-b15-gic" - "arm,arm1176jzf-devchip-gic" "qcom,msm-8660-qgic" "qcom,msm-qgic2" - interrupt-controller : Identifies the node as an interrupt controller diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 4b2255317e4764f9..81179d01f14de2fe 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -1046,6 +1046,7 @@ IRQCHIP_DECLARE(cortex_a9_gic, "arm,cortex-a9-gic", gic_of_init); IRQCHIP_DECLARE(cortex_a7_gic, "arm,cortex-a7-gic", gic_of_init); IRQCHIP_DECLARE(msm_8660_qgic, "qcom,msm-8660-qgic", gic_of_init); IRQCHIP_DECLARE(msm_qgic2, "qcom,msm-qgic2", gic_of_init); +IRQCHIP_DECLARE(pl390, "arm,pl390", gic_of_init); #endif -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties 2015-09-14 20:06 [PATCH v2 0/2] ARM: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 1/2] irqchip: gic: Add arm,pl390 support Geert Uytterhoeven @ 2015-09-14 20:06 ` Geert Uytterhoeven 2015-09-15 18:57 ` Rob Herring 1 sibling, 1 reply; 4+ messages in thread From: Geert Uytterhoeven @ 2015-09-14 20:06 UTC (permalink / raw) To: Pawel Moll, Mark Rutland, Kumar Gala, Thomas Gleixner, Jason Cooper, Marc Zyngier, Rob Herring, Ian Campbell Cc: devicetree, linux-kernel, linux-clk, linux-pm, linux-arm-kernel, linux-sh, Geert Uytterhoeven Depending on the GIC variant, the GIC module has one or more clock inputs. Document the optional "clocks" and "clock-names" properties, and their possible values, based on the Technical Reference Manuals. optional. Add the optional "power-domains" property. This will allow to describe in DT the relationship between the GIC and the Clock and/or Power Domain topology on SoCs where this is relevant and needed for proper operation. Note: As the current GIC driver doesn't support Runtime PM yet, PM Domain constraints must be handled elsewhere in e.g. platform code. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- Note: v1 was Acked-by: Rob Herring <robh@kernel.org>, but I didn't add it, due to the addition of clock-names. v2: - Add "clock-names", - Document clock inputs on various GIC variants. Clock inputs are based on the following documentation: - "ARM11 MPCore Processor Technical Reference Manual" (r2p0), - "Cortex-A9 MPCore Technical Reference Manual" (r4p1, r2p0), - "Cortex-A15 Technical Reference Manual" (r4p0, r2p0), - "CoreLink GIC-400 Generic Interrupt Controller Technical Reference Manual" (r0p1, r0p0), - "PrimeCell Generic Interrupt Controller (PL390) Technical Reference Manual" (r0p0). I could not find clock input information in: - "ARM1176JZF Development Chip Technical Reference Manual" (r0p0), - "Cortex-A7 MPCore processors" (r0p5, r0p3). Other: - "brcm,brahma-b15-gic" seems to be always used together with "arm,cortex-a15-gic". No access to datasheets: - "qcom,msm-8660-qgic", - "qcom,msm-qgic2". --- Documentation/devicetree/bindings/arm/gic.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/gic.txt b/Documentation/devicetree/bindings/arm/gic.txt index 24742853ba460223..cc56021eb60babea 100644 --- a/Documentation/devicetree/bindings/arm/gic.txt +++ b/Documentation/devicetree/bindings/arm/gic.txt @@ -59,6 +59,21 @@ Optional regions, used when the GIC doesn't have banked registers. The offset is cpu-offset * cpu-nr. +- clocks : List of phandle and clock-specific pairs, one for each entry + in clock-names. +- clock-names : List of names for the GIC clock input(s). Valid clock names + depend on the GIC variant: + "ic_clk" (for "arm,arm11mp-gic") + "PERIPHCLKEN" (for "arm,cortex-a15-gic") + "PERIPHCLK", "PERIPHCLKEN" (for "arm,cortex-a9-gic") + "clk" (for "arm,gic-400") + "gclk" (for "arm,pl390") + +- power-domains : A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle, used when the GIC + is part of a Power or Clock Domain. + + Example: intc: interrupt-controller@fff11000 { -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties 2015-09-14 20:06 ` [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven @ 2015-09-15 18:57 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2015-09-15 18:57 UTC (permalink / raw) To: Geert Uytterhoeven, Pawel Moll, Mark Rutland, Kumar Gala, Thomas Gleixner, Jason Cooper, Marc Zyngier, Rob Herring, Ian Campbell Cc: devicetree, linux-kernel, linux-clk, linux-pm, linux-arm-kernel, linux-sh On 09/14/2015 03:06 PM, Geert Uytterhoeven wrote: > Depending on the GIC variant, the GIC module has one or more clock > inputs. Document the optional "clocks" and "clock-names" properties, > and their possible values, based on the Technical Reference Manuals. > optional. > > Add the optional "power-domains" property. > > This will allow to describe in DT the relationship between the GIC and > the Clock and/or Power Domain topology on SoCs where this is relevant > and needed for proper operation. > > Note: As the current GIC driver doesn't support Runtime PM yet, PM > Domain constraints must be handled elsewhere in e.g. platform code. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > --- > Note: v1 was Acked-by: Rob Herring <robh@kernel.org>, but I didn't add > it, due to the addition of clock-names. For both: ack. > > v2: > - Add "clock-names", > - Document clock inputs on various GIC variants. > > Clock inputs are based on the following documentation: > - "ARM11 MPCore Processor Technical Reference Manual" (r2p0), > - "Cortex-A9 MPCore Technical Reference Manual" (r4p1, r2p0), > - "Cortex-A15 Technical Reference Manual" (r4p0, r2p0), > - "CoreLink GIC-400 Generic Interrupt Controller Technical Reference > Manual" (r0p1, r0p0), > - "PrimeCell Generic Interrupt Controller (PL390) Technical Reference > Manual" (r0p0). > > I could not find clock input information in: > - "ARM1176JZF Development Chip Technical Reference Manual" (r0p0), > - "Cortex-A7 MPCore processors" (r0p5, r0p3). > > Other: > - "brcm,brahma-b15-gic" seems to be always used together with > "arm,cortex-a15-gic". > > No access to datasheets: > - "qcom,msm-8660-qgic", > - "qcom,msm-qgic2". > --- > Documentation/devicetree/bindings/arm/gic.txt | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/gic.txt b/Documentation/devicetree/bindings/arm/gic.txt > index 24742853ba460223..cc56021eb60babea 100644 > --- a/Documentation/devicetree/bindings/arm/gic.txt > +++ b/Documentation/devicetree/bindings/arm/gic.txt > @@ -59,6 +59,21 @@ Optional > regions, used when the GIC doesn't have banked registers. The offset is > cpu-offset * cpu-nr. > > +- clocks : List of phandle and clock-specific pairs, one for each entry > + in clock-names. > +- clock-names : List of names for the GIC clock input(s). Valid clock names > + depend on the GIC variant: > + "ic_clk" (for "arm,arm11mp-gic") > + "PERIPHCLKEN" (for "arm,cortex-a15-gic") > + "PERIPHCLK", "PERIPHCLKEN" (for "arm,cortex-a9-gic") > + "clk" (for "arm,gic-400") > + "gclk" (for "arm,pl390") > + > +- power-domains : A phandle and PM domain specifier as defined by bindings of > + the power controller specified by phandle, used when the GIC > + is part of a Power or Clock Domain. > + > + > Example: > > intc: interrupt-controller@fff11000 { > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-15 18:57 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-09-14 20:06 [PATCH v2 0/2] ARM: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 1/2] irqchip: gic: Add arm,pl390 support Geert Uytterhoeven 2015-09-14 20:06 ` [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties Geert Uytterhoeven 2015-09-15 18:57 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).