Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp301410pxb; Thu, 31 Mar 2022 05:56:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDMw27eGTmTUY15y99HyS9LRrPJQodvQAddLSBfH+cEhBY6JIfcoNZL6bbHG5rHWzsOzHK X-Received: by 2002:a63:c048:0:b0:381:7aad:57c5 with SMTP id z8-20020a63c048000000b003817aad57c5mr10637912pgi.595.1648731414473; Thu, 31 Mar 2022 05:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648731414; cv=none; d=google.com; s=arc-20160816; b=xeuXdr+4HEkbyv9HLVCyQ/E/FsAYpyL0CN/bT2RWcg24+oFyEE4qudlbSiO4TMCGMt gVk83mJyZj8GHrgnbDiFeNnr7se0UaP2N+KehKrQjBK9I9aUZDvnL5c3skVVXQUEj6yN wIGZYnFpXvuYo3claSPN9niT4m3IY71qmnhcONpwNPaw4J0a+uiwp1y8MPSWxIkIVf+0 s6PwK2jSTEgkQNfkOlt+fSwJfZ9O537PjXgTEa/ruty3PDHKPcepao5s2FJU/cX+aKFo W9bkiawNG+nJL15TlGe6Ed3VXLOAHddGwLgTkk+jbGDRV626vW5DG+bkHd3jGiK6q00A LJJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Hi/h2nJjrw0rcQ2KHcG0EXYAH1rleCNXvQ3Jl88DqUs=; b=cDPeq9/5O8UlOz6GzleFO9Tyz+Sx/G0/zrF1CLNzfjQ2ho1IsK6mQZz9QjyiZEkyKv 3D+3YFj5FUoBzeqZItDDQHGTZdUJGXnWA4YP/P34owzy6+tyjd2snJjgR4o3/RMrytx5 Mxa56KJsMVbupcLzhZYraySkraLpJE+5z6rpQ3PVjg3praSyrCI+Ee4Ee6Mje2b/har7 nMPrMOgZao5uJ+yv9s+5T0MmO33F0bI0IcnlZ2A0GOTBBCd0sp4B0obkNGWT4PlCQr8K OaZGuCsxiZkTw8eWy4lBeFnIJd3bpEIe/lX7cuqcspJmm/irWHKUWwKPLA3LgqFriMve ZyXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170902c9c200b00154304022c6si20338746pld.564.2022.03.31.05.56.40; Thu, 31 Mar 2022 05:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233100AbiCaIjd (ORCPT + 99 others); Thu, 31 Mar 2022 04:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233004AbiCaIjG (ORCPT ); Thu, 31 Mar 2022 04:39:06 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 367AA1F1614 for ; Thu, 31 Mar 2022 01:37:00 -0700 (PDT) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 172.28.114.216 by mx1.cqplus1.com with MailGates ESMTP Server V5.0(1188:0:AUTH_RELAY) (envelope-from ); Thu, 31 Mar 2022 16:29:00 +0800 (CST) From: Qin Jian To: krzysztof.kozlowski@canonical.com Cc: robh+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, tglx@linutronix.de, maz@kernel.org, p.zabel@pengutronix.de, linux@armlinux.org.uk, arnd@arndb.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Qin Jian Subject: [PATCH v12 6/9] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Thu, 31 Mar 2022 16:29:53 +0800 Message-Id: X-Mailer: git-send-email 2.33.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation to describe Sunplus SP7021 interrupt controller bindings. Signed-off-by: Qin Jian --- Move 'reg' after 'compatible' --- .../sunplus,sp7021-intc.yaml | 62 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml new file mode 100644 index 000000000..f26d8b213 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) Sunplus Co., Ltd. 2021 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/sunplus,sp7021-intc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sunplus SP7021 SoC Interrupt Controller Device Tree Bindings + +maintainers: + - Qin Jian + +properties: + compatible: + items: + - const: sunplus,sp7021-intc + + reg: + maxItems: 2 + description: + Specifies base physical address(s) and size of the controller regs. + The 1st region include type/polarity/priority/mask regs. + The 2nd region include clear/masked_ext0/masked_ext1/group regs. + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + description: + The first cell is the IRQ number, the second cell is the trigger + type as defined in interrupt.txt in this directory. + + interrupts: + maxItems: 2 + description: + EXT_INT0 & EXT_INT1, 2 interrupts references to primary interrupt + controller. + +required: + - compatible + - reg + - interrupt-controller + - "#interrupt-cells" + - interrupts + +additionalProperties: false + +examples: + - | + #include + + intc: interrupt-controller@9c000780 { + compatible = "sunplus,sp7021-intc"; + reg = <0x9c000780 0x80>, <0x9c000a80 0x80>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = , /* EXT_INT0 */ + ; /* EXT_INT1 */ + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 8b77f7ae4..9fba67159 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2745,6 +2745,7 @@ S: Maintained W: https://sunplus-tibbo.atlassian.net/wiki/spaces/doc/overview F: Documentation/devicetree/bindings/arm/sunplus,sp7021.yaml F: Documentation/devicetree/bindings/clock/sunplus,sp7021-clkc.yaml +F: Documentation/devicetree/bindings/interrupt-controller/sunplus,sp7021-intc.yaml F: Documentation/devicetree/bindings/reset/sunplus,reset.yaml F: drivers/clk/clk-sp7021.c F: drivers/reset/reset-sunplus.c -- 2.33.1