Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2037294imm; Sun, 12 Aug 2018 05:25:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyahJXH8f0cpXwHJKxtm5APt71DpaLoVD4/76OGI3VeJhuMmLc3Toegp9wA1T8I88U04xGA X-Received: by 2002:a62:1d49:: with SMTP id d70-v6mr14998117pfd.101.1534076716789; Sun, 12 Aug 2018 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534076716; cv=none; d=google.com; s=arc-20160816; b=RKhZqvG9pcEt7w4w7mLMMTiYpd3/sg7TaZT+nIg36dCC6cLJtTEL0B4Arxty+eYhKB c3kIJMeWrWJ2+jB9FVhccE1q5XUgCddz9HEJTQL4aWDC6BWD/8yVmtZ1O20p1jIni3dF KpRFQN/h/dV+aJ99+p88h8L3xbDWfMm4chmHY4+jY6OCt0lkHUpAJCcBV6cPMN56vkQf TctpKRxRfIfRURrocFB+ub3eTq4+xvh3934hz8ovNLEBbKIUUnUhm5QH+loeKj0uGvpU vzAHiXqwEzQMPBUx+iWGaizN1yCLJB8oavG39eoNCFMEIQU8XK+CDYYlKehvCf66t2QK Rkpw== 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:arc-authentication-results; bh=gU/mDGHjz9DARAFsdJZ6V/GH8DC0QbwGLHoIlx44tPc=; b=cV2xirdiB0n7lEINSscPz2bemOEfOctV3yhzYc1VStUCriCMm/sD1R9800znEC8nEC Af3mE3eV1RdGa4ka7E3ApCrCPV3CkRS3HGo5rFAFJpJoMknhgALhS2XXyOZiFcbIiIDg wD4W4Ea4eOJLdIPmRbPaioJgJ5VICjojoiWTcB7nENT7QPSPUIUsxxoBTZ43rX63Hv9x UcGgS7anNwPJ2TYbxoUuESIujFBBQ811QDPpJYuM8/pdtLOnnhOfyBlYkHAKxL4IAvVm BMqW4ZXRGC4SQa/Eg0IXTQ9I+vYJ/Itr7eUB9jdmn/z4pa9BjQPX/gmS21cm5i6QtqEt ZaVg== 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 j8-v6si14036665pgi.575.2018.08.12.05.25.02; Sun, 12 Aug 2018 05:25:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbeHLPAl (ORCPT + 99 others); Sun, 12 Aug 2018 11:00:41 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:38139 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbeHLPAk (ORCPT ); Sun, 12 Aug 2018 11:00:40 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 41pJ0K5sNBz1qw0L; Sun, 12 Aug 2018 14:22:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 41pJ0F4yrhz1qqlC; Sun, 12 Aug 2018 14:22:37 +0200 (CEST) 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 zO0_PMVjUjdA; Sun, 12 Aug 2018 14:22:36 +0200 (CEST) X-Auth-Info: ziT/UQMC++VVoDzLAnscmMod9iRE01uTcv4cc55oAs8= 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; Sun, 12 Aug 2018 14:22:36 +0200 (CEST) From: Parthiban Nallathambi To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, 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, 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, Parthiban Nallathambi Subject: [PATCH v2 1/3] dt-bindings: interrupt-controller: Actions external interrupt controller Date: Sun, 12 Aug 2018 14:22:13 +0200 Message-Id: <20180812122215.1079590-2-pn@denx.de> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180812122215.1079590-1-pn@denx.de> References: <20180812122215.1079590-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 | 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). +- 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. + +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>; + 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