From patchwork Wed Aug 19 16:37:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 11724601 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBEDD138C for ; Wed, 19 Aug 2020 16:38:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C569A207BB for ; Wed, 19 Aug 2020 16:38:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vdRNoJoC"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D/8D7+ku" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C569A207BB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O/EIwvwrZqRAoKmGPu7qOri0Gz4p1c+FgKx34iJ/Efg=; b=vdRNoJoCSzy8RfgIx36ZxWDUr cts8rFYvzsPZ/N2lrGwyuJ6+/GDCC4uXGZ9Y0Iukh1NmunguZJUNM4rHYNSO5Gy2HJ+Z38CNcIj5T ATji+GNH0PMQGVYRXShtBQtJfNOLCtRMuCiRGfGXwhjilqAfQlr/p7k2OUuYwx3xTQk+H/OxUDxcn U4Hr4S0ARRN1+GcTj7Ng8TCHpk4xnUEh9T8HPTDv1xXq7gSrOMcKCH0/38zGZfLXBbORyKA5Bggka jlFTz4c0vzS0ip7l6bBv1ea2+z+ddQ+sX08aE1T0NAcAmU1eebVZh4VYQ9T73ggW64Uegu/V9MXzI pdH7D5/6w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8R6H-00083S-0P; Wed, 19 Aug 2020 16:38:09 +0000 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8R6B-00081f-9A; Wed, 19 Aug 2020 16:38:04 +0000 Received: by mail-ej1-x641.google.com with SMTP id o23so27103596ejr.1; Wed, 19 Aug 2020 09:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TuH/A+TLhIqSrIh/+j5/Udbr5P8a39mUMZfeyoIlU/w=; b=D/8D7+ku6SuLxAxkrqYBmZtTY2pwUEyxTVhSH6OKU7hhbUc+xJIZ8x60PLkIX2fofP mmVUFjE+Uy3G/Mcwsloq3bLkpaPZTg6DeB3hh6AwhJbq2BREsjJAOkns9J2UnH99k6S2 lncVGYk97MOTBtMRGZbA7gN2a0GIThuXF5lYj6SsEL7Yu3PP15GxLRED4RtX3Dp3YiVz LFN1x8oa6Rha41fIsB2RH1avptfU371iKfRGMCt6iq/Bs6E/b3agcZM4vBIAr5jjPpl5 R+H7V26Q4C0bpiPCScX/X9Dh++dwA7O/BcAMCUeiSRdkJkehGmctFpeWe9nt9uy686+g dJ8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TuH/A+TLhIqSrIh/+j5/Udbr5P8a39mUMZfeyoIlU/w=; b=ASWTcMEZEqlpN8JfxR2TcGWHEvl7wy8DPLJy/+vsXDnMIDF3bKIuFiPSMsRm+Fme8H /a7EoIbvqP+kOV/+9ny7yXkfIrK23IJe3QP0jyD+qYWFZtlAobvwYAH7XsEKLYyi9NKf epz5j+rX6jaoVTyszvHgtgrXhz96gOnrzXaluCyR6d2EAl1fTCwAwEZr8AEVYfyns05R bmNjBkH3ptUvupiVubemiuNGibqY4gJU3k1jCKTDoWiIcH7MXYh5V///SHKcQuuX7SRG aqwhU6J3o0gWcESWcSB4htJJT5TWtyinGLPFkJnavWTDbR1nsqRGg8G/BmOt2SkEzrbw bVtw== X-Gm-Message-State: AOAM530dwn72c7ecrrq5V/d7UmQOJfMQ33qINI2ARPXgJu5+IMtI7fq5 8/MPoPaiJGLtFFTXjJFLb+s= X-Google-Smtp-Source: ABdhPJyo3385Y+2uIOP+A+Fice2EOP+hjz7YqhO0o8J64f+YbCPbsU8/1z50hqp4u3O3AJ+fhvMxtQ== X-Received: by 2002:a17:906:841:: with SMTP id f1mr5185696ejd.158.1597855082086; Wed, 19 Aug 2020 09:38:02 -0700 (PDT) Received: from localhost.localdomain ([188.24.144.238]) by smtp.gmail.com with ESMTPSA id m13sm18310774edi.89.2020.08.19.09.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 09:38:01 -0700 (PDT) From: Cristian Ciocaltea To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam Subject: [PATCH v5 1/3] dt-bindings: interrupt-controller: Add Actions SIRQ controller binding Date: Wed, 19 Aug 2020 19:37:56 +0300 Message-Id: <6bd99d4a7e50904b57bb3ad050725fbb418874b7.1597852360.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200819_123803_368685_65C33128 X-CRM114-Status: GOOD ( 17.71 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:641 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [cristian.ciocaltea[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Actions Semi Owl SoCs SIRQ interrupt controller is found in S500, S700 and S900 SoCs and provides support for handling up to 3 external interrupt lines. Signed-off-by: Cristian Ciocaltea --- Changes in v5: - Updated controller description statements both in the commit message and the binding doc .../actions,owl-sirq.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.yaml b/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.yaml new file mode 100644 index 000000000000..cf9b7a514e4e --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/actions,owl-sirq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl SoCs SIRQ interrupt controller + +maintainers: + - Manivannan Sadhasivam + - Cristian Ciocaltea + +description: | + This interrupt controller is found in the Actions Semi Owl SoCs (S500, S700 + and S900) and provides support for handling up to 3 external interrupt lines. + +properties: + compatible: + oneOf: + - items: + - enum: + - actions,s500-sirq + - actions,s700-sirq + - actions,s900-sirq + - const: actions,owl-sirq + - const: actions,owl-sirq + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + description: + The first cell is the input IRQ number, between 0 and 2, while the second + cell is the trigger type as defined in interrupt.txt in this directory. + + 'actions,ext-interrupts': + description: | + Contains the GIC SPI IRQ numbers mapped to the external interrupt + lines. They shall be specified sequentially from output 0 to 2. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 3 + maxItems: 3 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - 'actions,ext-interrupts' + +additionalProperties: false + +examples: + - | + sirq: interrupt-controller@b01b0200 { + compatible = "actions,s500-sirq", "actions,owl-sirq"; + reg = <0xb01b0200 0x4>; + interrupt-controller; + #interrupt-cells = <2>; + actions,ext-interrupts = <13>, /* SIRQ0 */ + <14>, /* SIRQ1 */ + <15>; /* SIRQ2 */ + }; + +...