From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v2 3/6] irqchip: Add the ingenic-tcu-intc driver Date: Wed, 3 Jan 2018 14:58:17 -0600 Message-ID: <20180103205817.4hnoyyomtwmhri76@rob-hp-laptop> References: <20171229125942.27305-2-paul@crapouillou.net> <20180101143344.2099-1-paul@crapouillou.net> <20180101143344.2099-3-paul@crapouillou.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180101143344.2099-3-paul-icTtO2rgO2OTuSrc4Mpeew@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Paul Cercueil Cc: Michael Turquette , Stephen Boyd , Mark Rutland , Thomas Gleixner , Jason Cooper , Marc Zyngier , Daniel Lezcano , Lee Jones , linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Mon, Jan 01, 2018 at 03:33:41PM +0100, Paul Cercueil wrote: > This simple driver handles the IRQ chip of the TCU > (Timer Counter Unit) of the JZ47xx Ingenic SoCs. > > Signed-off-by: Paul Cercueil > --- > .../bindings/interrupt-controller/ingenic,tcu.txt | 32 +++++ > drivers/irqchip/Kconfig | 6 + > drivers/irqchip/Makefile | 1 + > drivers/irqchip/irq-ingenic-tcu.c | 151 +++++++++++++++++++++ > 4 files changed, 190 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/ingenic,tcu.txt > create mode 100644 drivers/irqchip/irq-ingenic-tcu.c > > v2: Use SPDX identifier for the license > Make KConfig option select CONFIG_IRQ_DOMAIN since we depend on it > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/ingenic,tcu.txt b/Documentation/devicetree/bindings/interrupt-controller/ingenic,tcu.txt > new file mode 100644 > index 000000000000..a3e6318f8461 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/ingenic,tcu.txt > @@ -0,0 +1,32 @@ > +Ingenic SoCs Timer/Counter Unit Interrupt Controller > + > +Required properties: > + > +- compatible : should be "ingenic,-tcu-intc". Valid strings are: > + * ingenic,jz4740-tcu-intc > + * ingenic,jz4770-tcu-intc > + * ingenic,jz4780-tcu-intc > +- interrupt-controller : Identifies the node as an interrupt controller > +- #interrupt-cells : Specifies the number of cells needed to encode an > + interrupt source. The value shall be 1. > +- interrupt-parent : phandle of the interrupt controller. > +- interrupts : Specifies the interrupt the controller is connected to. > + > +Example: > + > +/ { > + regmap { regmap is a Linuxism. > + compatible = "simple-mfd", "syscon"; Need a specific compatible string here. Neither of these are valid by themselves. > + reg = <0x10002000 0x1000>; > + > + tcu: interrupt-controller { The TCU is only an interrupt controller? > + compatible = "ingenic,jz4740-tcu-intc"; Is there a register range associated with this block? If so, add a reg property even if regmap doesn't need it. > + > + interrupt-controller; > + #interrupt-cells = <1>; > + > + interrupt-parent = <&intc>; > + interrupts = <15>; > + }; > + }; > +}; -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html