Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5559185imu; Mon, 26 Nov 2018 02:07:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XQRkP9owJWQBclenYYlEXX7uSYtwX0CBx2+eBMGsbm9/G7Jv5aL9aMQK1eXlgsCA6uWs0v X-Received: by 2002:a17:902:110a:: with SMTP id d10-v6mr27174139pla.85.1543226842169; Mon, 26 Nov 2018 02:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543226842; cv=none; d=google.com; s=arc-20160816; b=v4Cl4OXAo7nz+S0WcDWIt1ECJ4EwT+tVePGFlly1D2AWF46iyexYFerEXDbsJfJlhv p3D5NRlQxGUbWNX9bhfi8DmHYNZghIf8bIsTUMutMJGWJ77JjiAwa+7Dj1seSedbephT VnXy8RjAk5JGxSWjk40EjUts7wjuElt+EuKPD40UF/4YAfuaSvfKXju5V19R7aJBIvh3 +NmB89t5NRc14ZMO4so6qR4iu7XXKFlqxMZrGd3cQ99XHnvb7CdaAbEUHoFqROFLVaml yB3PZvcvZ/fKgs0l4eE3nRhtDIfWgS1DDOU8L1QFT6uqNnK06DrHbGP5IRg2ryzrpY8+ e/nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=zo5Klk/ev0mPBf1cCGgw/nmr2uaWFNpwSnEfVxi52p0=; b=wF1UqEZR7c6HNw3aP8YoFVwFqUuU3P1fVnPkDEsy+InQb+pJCT3EbqhpaqaFh37OWc INEQsxAo2xRhK1ASfAoyjLzB7eS3gMWl0CcUp2DBw/DV0eiS1vedLhC/Be6B55T89oXg SgDrNnX6POOvaHJwEYSkXTPxlbUwUDqQxAbs/BgOsV0hVZT8FadawApc/Loj4gr8pTh4 sk+CsENKliNKCCr1zjFrfFzB3GrCnpkk1pgJ3r22LvZlaF7D+HQS8tUbfXUrE7kq3XS4 14xcBuQGCsbO73NjjtpJoilPLMDuBx5DJBYUZqCCNAZOU3ETw7BNpOoHJZBa9q6vs7nn Lgrg== 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 g7si23673571plb.107.2018.11.26.02.06.47; Mon, 26 Nov 2018 02:07:22 -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 S1726390AbeKZU6G (ORCPT + 99 others); Mon, 26 Nov 2018 15:58:06 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:53595 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbeKZU6F (ORCPT ); Mon, 26 Nov 2018 15:58:05 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 433Mvr58TQz1qxl3; Mon, 26 Nov 2018 11:04:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 433Mvq6tQpz1qrnK; Mon, 26 Nov 2018 11:04:23 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id aiGLJ7jpUzTr; Mon, 26 Nov 2018 11:04:22 +0100 (CET) X-Auth-Info: /v6QzJWtDJiTB7LYpRVnI6QDf2mH7ifJJ6VoC8U71Qw= Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 26 Nov 2018 11:04:22 +0100 (CET) From: Parthiban Nallathambi To: marc.zyngier@arm.com, tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, afaerber@suse.de, catalin.marinas@arm.com, will.deacon@arm.com, manivannan.sadhasivam@linaro.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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, Parthiban Nallathambi , Saravanan Sekar Subject: [PATCH v3 1/4] dt-bindings: interrupt-controller: Actions external interrupt controller Date: Mon, 26 Nov 2018 11:03:53 +0100 Message-Id: <20181126100356.2840578-2-pn@denx.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181126100356.2840578-1-pn@denx.de> References: <20181126100356.2840578-1-pn@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 57 +++++++++++++++++++ 1 file changed, 57 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..b3adc4bddf40 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt @@ -0,0 +1,57 @@ +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 + region. +- 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-reg-offset: register offset for SIRQ interrupts. When registers are + shared, all the three offsets will be same (S500 and S700). +- actions,ext-irq-range: Identifies external irq number range in different SoCs. + +Example for S900: + +sirq: interrupt-controller@e01b0000 { + compatible = "actions,owl-sirq"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <3>; + actions,sirq-offset = <0x200 0x528 0x52c>; + actions,ext-irq-range = <13 15>; +}; + +Example for S700: + +sirq: interrupt-controller@e01b0000 { + compatible = "actions,owl-sirq"; + reg = <0x0 0xe01b0000 0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <3>; + actions,sirq-shared-reg; + actions,sirq-reg-offset = <0x200 0x200 0x200>; + actions,ext-irq-range = <13 15>; +}; + +Example for S500: + +sirq: interrupt-controller@b01b0000 { + compatible = "actions,owl-sirq"; + reg = <0x0 0xb01b0000 0x0 0x1000>; + interrupt-controller; + #interrupt-cells = <3>; + actions,sirq-shared-reg; + actions,sirq-offset = <0x200 0x200 0x200>; + actions,ext-irq-range = <13 15>; +}; -- 2.17.2