Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2465301imj; Mon, 18 Feb 2019 06:30:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZJXeJzZ8NCmmNlqJABD5GHVGWxCK8Ydt1v/4ym/drx/aSeD07Y9Rxl9frXGVh4r8tjUeI5 X-Received: by 2002:a62:36c1:: with SMTP id d184mr24626943pfa.242.1550500236506; Mon, 18 Feb 2019 06:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500236; cv=none; d=google.com; s=arc-20160816; b=F0JhQEfA9t+XTBUnXvvK+pnfMGzm4/dNf9RiFSECpzGZMQOJAvKR6ZX15xODXjRRYG 29kTSujYYnwltZvac91aU07SZIYPFSiISUhmi5cYkkGuYg/il7/y4Q2WzCYa9rQBR2+2 udoiQSjBshr8xcOOEyphOs1PFzIrXZUIX4D2rRSM3tc2iELHYRc95VoRD9pf0FpIKcit UkFqkM9TwgDCVbN/LvYrpw0niDIuuwKIEVdVGO55krB3TAVuN1HWYXOTfbJg7rWM1qqN o/lLcrUuBaJhodZg/2+zDtDVTqeYfPoLxgsrR+tuAKxhqjSMDzqRYyUBYtwUzU0/ijCK VlcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=BExm7QH8zXDPafoYPXd1ASFHJdrBViP6R/Ppp4YpLfI=; b=Dq0+of8C6BLuRfbzp+pUoZ/FfY3oE4AJo8Nf04QG7Gb5ZENi4lFr4+KZyrc7W6aRZd FmAty/cz4Vnqy2kj8QWrPKpU+R/rsAyRqC324Ysgb6u8y6aLfk1JDvdCEJAG3zehnxWp Ypkcr98gNqk/5SXOnp4iGIZ5Oe+9npam9BWJ/7c+545A8Ay42Kbq4hwyC0AygaK/Tcx3 LpCQfVylAgViFqCxdF/dmwKeG0oUZnrInDOOh2jQ7DOjK/ypIsA6RooYO4cfUazVtZnt aPLFP7qOzWPu7PTcspV3E8F5Ul/Wu5ppsZWbjKmyQJj86KGJUN9OFRYdZeJKTfwFYKSZ 0mKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35si13022570plh.399.2019.02.18.06.30.19; Mon, 18 Feb 2019 06:30:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387394AbfBRO3f (ORCPT + 99 others); Mon, 18 Feb 2019 09:29:35 -0500 Received: from foss.arm.com ([217.140.101.70]:60040 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733129AbfBRO3d (ORCPT ); Mon, 18 Feb 2019 09:29:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 90ADAA78; Mon, 18 Feb 2019 06:29:33 -0800 (PST) Received: from why.wild-wind.fr.eu.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4580F3F589; Mon, 18 Feb 2019 06:29:28 -0800 (PST) Date: Mon, 18 Feb 2019 14:28:45 +0000 From: Marc Zyngier To: guoren@kernel.org Cc: tglx@linutronix.de, robh+dt@kernel.org, linux-kernel@vger.kernel.org, Guo Ren Subject: Re: [PATCH V2 5/7] dt-bindings: interrupt-controller: Update csky mpintc Message-ID: <20190218142845.4ad56ec0@why.wild-wind.fr.eu.org> In-Reply-To: <1550455483-11710-5-git-send-email-guoren@kernel.org> References: <1550455483-11710-1-git-send-email-guoren@kernel.org> <1550455483-11710-5-git-send-email-guoren@kernel.org> Organization: ARM Ltd X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Feb 2019 10:04:41 +0800 guoren@kernel.org wrote: > From: Guo Ren > > Add trigger type and priority setting for csky,mpintc. > > Changelog: > - change #interrupt-cells to <3> > > Signed-off-by: Guo Ren > Cc: Marc Zyngier > Cc: Rob Herring > --- > .../bindings/interrupt-controller/csky,mpintc.txt | 21 +++++++++++++++++---- > 1 file changed, 17 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > index ab921f1..dccd913 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > @@ -6,11 +6,18 @@ C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 > SMP soc, and it also could be used in non-SMP system. > > Interrupt number definition: > - > 0-15 : software irq, and we use 15 as our IPI_IRQ. > 16-31 : private irq, and we use 16 as the co-processor timer. > 31-1024: common irq for soc ip. > > +Interrupt triger mode: > + IRQ_TYPE_LEVEL_HIGH (default) > + IRQ_TYPE_LEVEL_LOW > + IRQ_TYPE_EDGE_RISING > + IRQ_TYPE_EDGE_FALLING > + > +Interrupt priority range: 0-255 > + > ============================= > intc node bindings definition > ============================= > @@ -26,15 +33,21 @@ intc node bindings definition > - #interrupt-cells > Usage: required > Value type: > - Definition: must be <1> > + Definition: <3> This seem to be invalidating all existing DTs. Is this an acceptable thing to do? It will require an Ack from a DT maintainer. > - interrupt-controller: > Usage: required > > -Examples: > +Examples: ("interrupts = ") > --------- > > intc: interrupt-controller { > compatible = "csky,mpintc"; > - #interrupt-cells = <1>; > + #interrupt-cells = <3>; > interrupt-controller; > }; > + > + device: device-example { > + ... > + interrupts = <34 IRQ_TYPE_EDGE_RISING 254>; > + interrupt-parent = <&intc>; > + }; Thanks, M. -- Without deviation from the norm, progress is not possible.