Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp915599iob; Thu, 12 May 2022 07:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUQKfCto66kB83qRQ4yomK0zW0M0slc/XKxBPlRmygLKWsOkc+geuo0x6LgixT2ydxyj/X X-Received: by 2002:a05:6402:5253:b0:427:ed62:bb8b with SMTP id t19-20020a056402525300b00427ed62bb8bmr35041090edd.65.1652365295187; Thu, 12 May 2022 07:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652365295; cv=none; d=google.com; s=arc-20160816; b=cpv4iFQObL076OOtvJYnNdxrs0fyWzlF3Dypcr4nBj8XmYWizBa56U5HepvdgnFxs4 guEwXhuQmN2haXx+I5B3zRhuV+OB5OxSShFjiDDr+DV0Datyke2U0LYE4fHQvgva/pQ5 PdVEzmL7Wu0P7T8IyAilVs010zyxqZkCUFWuO9cxFiRDU7A+iL91B5sn1iahijP9vxDB 3UF2GmJ3ZQFIXtwYS0IkEQTBDkqR9B0MYoReqcMIqU6zNi2aw+zFHyeF3ESRrjgKrWRS euKJMUpj7332+qD+OlVOM48GMEBe3TfSQW0NmtopXboQYqpbW+bDq03AAPCkF+hqbZ7u yoQw== 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=ZVITYJMPeYoaVvi6ktfV9e/cDvXXKVFrEXV7YmoZYjc=; b=jiMljXTmlIX/Q5u1gUt/raeYn4Tpbq3uTRnXBJcEzcIehw45CViMwwNq3VotsrNSYY RdyKVBi/3eh13vTyz5+CrTrI+wlJP2oWfj6DmQhoL7EeG5Njc86xaU0fXp+WubLdTUqI Ze5SfGKrK5xF2HNmQWs9qydKfyKbUItr2yS/CJS7H8PmbsIWpZ5khjfq0SQKA7VqqcFo u61mqSmcvec6lHPbaxVhe0l/nxvofYjWno7TFgWEHzV/bUXv1pRBAoFHOBV+B1IbfNP0 S2he98/nVXjOLRwLvfV4dPawsXztBbLAPZQFbI9Kjxccgn3jgGzRMtALsCeS9smgwVS5 QOVw== 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 r13-20020a508d8d000000b00425dffc65dfsi681898edh.380.2022.05.12.07.21.08; Thu, 12 May 2022 07:21:35 -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 S1350478AbiELGjw (ORCPT + 99 others); Thu, 12 May 2022 02:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350467AbiELGjj (ORCPT ); Thu, 12 May 2022 02:39:39 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 465E066FB8 for ; Wed, 11 May 2022 23:39:14 -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(26385:0:AUTH_RELAY) (envelope-from ); Thu, 12 May 2022 14:32:13 +0800 (CST) From: Qin Jian To: sboyd@kernel.org Cc: krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, mturquette@baylibre.com, 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 , Rob Herring Subject: [PATCH v15 06/10] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Thu, 12 May 2022 14:31:01 +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. Reviewed-by: Rob Herring Signed-off-by: Qin Jian --- Remove "Device Tree Bindings" from title --- .../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..bd0021dba --- /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 + +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 26b77b68b..8dfab70f0 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