Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3533205imm; Mon, 13 Aug 2018 13:30:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxc8CCwNlXet0/g9nUGg+PoQ7Kuo3NjiT6g0HiJRiP6Cbsmdt1+m8yzW6i67TN0S/zCbbCJ X-Received: by 2002:a62:a05:: with SMTP id s5-v6mr20262121pfi.147.1534192230043; Mon, 13 Aug 2018 13:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534192230; cv=none; d=google.com; s=arc-20160816; b=dUk+A9anxiX/Ym9I4cYHt9ynofjFz+7rxl/YfWM4gpPFDukjOlhUIo76DyGoKsptRh RnUNU3bqrj7zuc03CpXCAYppSEjfWhUu3Eyyg+IRkhbncvbPOGX1WNJw9oiSmzHSgPKH j9M4didOCjIBBgY4rFLavjhc6mNGPa6gPKFJBX/aeDywVw+CDrIYXjDIs93hjpLLOews G7AHix2av4Bjksi55PahM0hlq4nNs1gnspipOTR/Z49RyGxL/umPM6nKRZDIcgbikLSU xTFz9ncJGxUr6DG2qVg2SzJDiiE4bNJaX0XN3b6SMvy5/dpnzalnaAndPNd77GiULisv rx/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=jn5RmfJ5S4XuNoGrDOWJ3QWkkWiWylYb+Xc4YgDD65M=; b=d7r0mmZUHrduhZhOTvEwM8CkJ9LGSrinZ2oGE67Zqe72qA1sKRBJKXb1Zs4FuOmXVu odxoUOTmVgN82EICPDo+FSGQ5+bdnVX40sVRT4Hvh938WyA52xu0kVFqYXbCVkHljoBb UIv64dvOMlNvbL2Z5SzonkuRmUIk8GfADeUpopCS7wMWy1P+mUDR3IYvKNe0IW3nrc7+ MDszU85t1hXD+2aeCTJdACLBhqNou4Z6FHdyK8+34JNxTpdBzSb8A4bcXHQbn7ypzE0Q arg7odJW0WHenkFJjp8two1wmQkVSgFH5Krb5G0IHQ9pyyv5SeEu6ypPA/5s9PzOsULt U0kA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2-v6si17997350pgh.661.2018.08.13.13.30.14; Mon, 13 Aug 2018 13:30:30 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730736AbeHMW2e (ORCPT + 99 others); Mon, 13 Aug 2018 18:28:34 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:54992 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729990AbeHMW2e (ORCPT ); Mon, 13 Aug 2018 18:28:34 -0400 Received: by mail-it0-f68.google.com with SMTP id s7-v6so14825496itb.4; Mon, 13 Aug 2018 12:44:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jn5RmfJ5S4XuNoGrDOWJ3QWkkWiWylYb+Xc4YgDD65M=; b=uoCKrccxst55lawCV2FoYtOxR3u4MrnqtjdckUMPj3MLixIve/uRrpSx2HIt/igozx q1dOM5tjgwbQQ6MCxav9Qjq7Kgfs2XVH+MoMJb3PepH/h1cRlfBWGhx0xQ2+bKzo29kp aZyfXu27NtnOMYx3zabMREAzsnK0AyZ48JZTALhwR+4KWM22AxQsXt2gDDQM5NO8+Clh rMdGZuhJQkwATvUsCVKZfrmmGnEMt/z4DEWV90dpoaPPZ3JdRqMfOXOJtzudqdSLijbB ciWNPjvFmoMD0EUL9obnVEALOEuFd7Dw4TW51QiW5yd+0C+cDcss8E9fjI/KLR56u8Nu plLA== X-Gm-Message-State: AOUpUlEX5aDqPkCc5YgsQg5zwOBQmeqDvZh9RecUlSyQZrAOcPxySr3v BhBijDccKU0xH/Jn6cBYdA== X-Received: by 2002:a24:9588:: with SMTP id m130-v6mr12847729itd.48.1534189494670; Mon, 13 Aug 2018 12:44:54 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id d197-v6sm5955392itd.22.2018.08.13.12.44.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Aug 2018 12:44:54 -0700 (PDT) Date: Mon, 13 Aug 2018 13:44:53 -0600 From: Rob Herring To: Parthiban Nallathambi Cc: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, mark.rutland@arm.com, afaerber@suse.de, catalin.marinas@arm.com, will.deacon@arm.com, manivannan.sadhasivam@linaro.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sravanhome@gmail.com, thomas.liau@actions-semi.com, mp-cs@actions-semi.com, linux@cubietech.com, edgar.righi@lsitec.org.br, laisa.costa@lsitec.org.br, guilherme.simoes@lsitec.org.br, mkzuffo@lsi.usp.br Subject: Re: [PATCH v2 1/3] dt-bindings: interrupt-controller: Actions external interrupt controller Message-ID: <20180813194453.GA30702@rob-hp-laptop> References: <20180812122215.1079590-1-pn@denx.de> <20180812122215.1079590-2-pn@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180812122215.1079590-2-pn@denx.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 12, 2018 at 02:22:13PM +0200, Parthiban Nallathambi wrote: > Actions Semi OWL family SoC's provides support for external interrupt > controller to be connected and controlled using SIRQ pins. S500, S700 > and S900 provides 3 SIRQ lines and works independently for 3 external > interrupt controllers. > > Signed-off-by: Parthiban Nallathambi > Signed-off-by: Saravanan Sekar > --- > .../interrupt-controller/actions,owl-sirq.txt | 46 ++++++++++++++++++++++ > 1 file changed, 46 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt b/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt > new file mode 100644 > index 000000000000..4b8437751331 > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt > @@ -0,0 +1,46 @@ > +Actions Semi Owl SoCs SIRQ interrupt controller > + > +S500, S700 and S900 SoC's from Actions provides 3 SPI's from GIC, > +in which external interrupt controller can be connected. 3 SPI's > +45, 46, 47 from GIC are directly exposed as SIRQ. It has > +the following properties: > + > +- inputs three interrupt signal from external interrupt controller > + > +Required properties: > + > +- compatible: should be "actions,owl-sirq" > +- reg: physical base address of the controller and length of memory mapped. > +- interrupt-controller: identifies the node as an interrupt controller > +- #interrupt-cells: specifies the number of cells needed to encode an interrupt > + source, should be 2. > +- actions,sirq-shared-reg: Applicable for S500 and S700 where SIRQ register > + details are maintained at same offset/register. > +- actions,sirq-offset: register offset for SIRQ interrupts. When registers are > + shared, all the three offsets will be same (S500 and S700). You should have more specific compatible strings if there are differences and these settings can be implied by them. > +- actions,sirq-clk-sel: external interrupt controller can be either > + connected to 32Khz or 24Mhz external/internal clock. This needs > + to be configured for per SIRQ line. Failing defaults to 32Khz clock. What are the valid values? > + > +Example for S900: > + > +sirq: interrupt-controller@e01b0000 { > + compatible = "actions,owl-sirq"; > + reg = <0 0xe01b0000 0 0x1000>; > + interrupt-controller; > + #interrupt-cells = <2>; > + actions,sirq-clk-sel = <0 0 0>; If 0 is 32khz, then having this is pointless. But I can't tell what the values correspond to. > + actions,sirq-offset = <0x200 0x528 0x52c>; > +}; > + > +Example for S500 and S700: > + > +sirq: interrupt-controller@e01b0000 { > + compatible = "actions,owl-sirq"; > + reg = <0 0xe01b0000 0 0x1000>; > + interrupt-controller; > + #interrupt-cells = <2>; > + actions,sirq-shared-reg; > + actions,sirq-clk-sel = <0 0 0>; > + actions,sirq-offset = <0x200 0x200 0x200>; > +}; > -- > 2.14.4 >