Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754781AbcKIS0U (ORCPT ); Wed, 9 Nov 2016 13:26:20 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:35561 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754231AbcKIS0P (ORCPT ); Wed, 9 Nov 2016 13:26:15 -0500 Date: Wed, 9 Nov 2016 12:26:13 -0600 From: Rob Herring To: Youlin Pei Cc: Marc Zyngier , Matthias Brugger , Thomas Gleixner , Jason Cooper , Mark Rutland , Russell King , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, hongkun.cao@mediatek.com, yong.wu@mediatek.com, erin.lo@mediatek.com, chieh-jay.liu@mediatek.com Subject: Re: [PATCH v2 1/3] binding: irqchip: mtk-cirq: Add binding document Message-ID: <20161109182613.7tvzewua6ewxdvjc@rob-hp-laptop> References: <1478001122-8664-1-git-send-email-youlin.pei@mediatek.com> <1478001122-8664-2-git-send-email-youlin.pei@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1478001122-8664-2-git-send-email-youlin.pei@mediatek.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2439 Lines: 63 On Tue, Nov 01, 2016 at 07:52:00PM +0800, Youlin Pei wrote: > This commit adds the device tree binding document for > the mediatek cirq. > > Signed-off-by: Youlin Pei > --- > .../interrupt-controller/mediatek,cirq.txt | 30 ++++++++++++++++++++ > 1 file changed, 30 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt b/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt > new file mode 100644 > index 0000000..84e8123 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/mediatek,cirq.txt > @@ -0,0 +1,30 @@ > +* Mediatek 27xx cirq > + > +In Mediatek SOCs, the CIRQ is a low power interrupt controller designed to > +works outside MCUSYS which comprises with Cortex-Ax cores,CCI and GIC. s/works/work/ > +The external interrupts (outside MCUSYS) will feed through CIRQ and connect > +to GIC in MCUSYS. When CIRQ is enabled, it will record the edge-sensitive > +interrupts and generated a pulse signal to parent interrupt controller when s/generated/generate/ > +flush command is executed. With CIRQ, MCUSYS can be completely turned off > +to improve the system power consumption without losing interrupts. > + > +Required properties: > +- compatible: should be: "mediatek,mtk-cirq". This should be SoC specific. This is fine as a fallback if the same block is in many SoCs, but mediatek and mtk is a bit redundant. > +- interrupt-controller : Identifies the node as an interrupt controller. > +- #interrupt-cells : Use the same format as specified by GIC in arm,gic.txt. > +- interrupt-parent: phandle of irq parent for cirq. The parent must > + use the same interrupt-cells format as GIC. > +- reg: Physical base address of the cirq registers and length of memory > + mapped region. > +- mediatek,ext-irq-start: Identifies external irq start number in different > + SOCs. Wouldn't this always be 32 if the GIC is the parent? If 32 is the common case, then use the SoC compatible to determine this value. > + > +Example: > + cirq: interrupt-controller@10204000 { > + compatible = "mediatek,mtk-cirq"; > + interrupt-controller; > + #interrupt-cells = <3>; > + interrupt-parent = <&sysirq>; > + reg = <0 0x10204000 0 0x4000>; > + mediatek,ext-irq-start = <32>; > + }; > -- > 1.7.9.5 >