Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1274230
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller |
| Date | 2015-11-20 17:30 +0100 |
| Message-ID | <qwWJs-1a6-23@gated-at.bofh.it> (permalink) |
| References | <qwChI-4Cb-17@gated-at.bofh.it> <qwChJ-4Cb-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Nov 19, 2015 at 06:33:45PM +0000, Mans Rullgard wrote:
> This adds a binding for the secondary interrupt controller in
> Sigma Designs SMP86xx and SMP87xx chips.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
> .../interrupt-controller/sigma,smp8642-intc.txt | 47 ++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
> new file mode 100644
> index 0000000..f82cddf
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
> @@ -0,0 +1,47 @@
> +Sigma Designs SMP86xx/SMP87xx secondary interrupt controller
> +
> +Required properties:
> +- compatible: should be "sigma,smp8642-intc"
> +- reg: physical address of MMIO region
> +- interrupt-parent: phandle of parent interrupt controller
> +- interrupt-controller: boolean
> +
> +One child node per control block with properties:
> +- sigma,reg-offset: offset of registers from main base address
Your driver defines these offsets too.
Do you expect to have many different variations here? If not, I would
get rid of all the child nodes and just hard code it in the driver.
You could also simply do:
sigma,reg-offset = <0x0 0x100 0x300>;
> +- interrupt-controller: boolean
> +- #interrupt-cells: should be <2>, interrupt index and flags per interrupts.txt
> +- interrupts: interrupt spec of primary interrupt controller
> +- label: (optional) name for display purposes
NAK. Interrupt controllers are not really visible to users. Think of
physical labels on things like connectors or LEDs.
> +
> +Example:
> +
> +intc: interrupt-controller@6e000 {
> + compatible = "sigma,smp8642-intc";
> + reg = <0x6e000 0x400>;
> + interrupt-parent = <&gic>;
> + interrupt-controller;
> +
> + irq0: irq0 {
> + sigma,reg-offset = <0x000>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
> + label = "IRQ0";
> + };
> +
> + irq1: irq1 {
> + sigma,reg-offset = <0x100>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
> + label = "IRQ1";
> + };
> +
> + irq2: irq2 {
> + sigma,reg-offset = <0x300>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
> + label = "IRQ2";
> + };
> +};
> --
> 2.6.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/2] Support for Sigma Designs SMP86xx interrupt controller Mans Rullgard <mans@mansr.com> - 2015-11-19 19:40 +0100
[PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Mans Rullgard <mans@mansr.com> - 2015-11-19 19:40 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Marc Zyngier <marc.zyngier@arm.com> - 2015-11-20 11:20 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-20 13:10 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Mason <slash.tmp@free.fr> - 2015-11-20 13:10 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-20 13:20 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Mason <slash.tmp@free.fr> - 2015-11-25 11:40 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-25 13:20 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Mason <slash.tmp@free.fr> - 2015-11-25 13:20 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-25 13:20 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Mason <slash.tmp@free.fr> - 2015-11-26 11:30 +0100
Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-26 12:00 +0100
[PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller Mans Rullgard <mans@mansr.com> - 2015-11-19 19:40 +0100
Re: [PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller Måns Rullgård <mans@mansr.com> - 2015-11-20 17:30 +0100
Re: [PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller Rob Herring <robh@kernel.org> - 2015-11-20 17:30 +0100
csiph-web