Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3683382iog; Mon, 27 Jun 2022 23:57:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sA+ruSzyIXpgWiYu3ICnrUy2UCAPlVvscndESqOmRILNaYxr4L+6pm/v8Ca7Yl1M4+HYn6 X-Received: by 2002:a05:6402:b34:b0:435:d064:8762 with SMTP id bo20-20020a0564020b3400b00435d0648762mr21443782edb.238.1656399447796; Mon, 27 Jun 2022 23:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656399447; cv=none; d=google.com; s=arc-20160816; b=lC+BddBtEwau1i4R0BKfUXRvZ6io0zlH8ShE30D/zo8YhN5tQ5yxwZWoMrtOtOPloH Z1UZp1vSRn6VacaeiVFGFovcXxTm6sU+XKWxgBREKdqJM/xJiB6Jv5mOrA32pnAcCmvG 1gMebXDbXyrjoHiJ5cnqM8vWND/IYkgDC+TOYdAkenXpOnpcFYQxp0+LvbFYHTTpv3uI 7+AwVoqaciEx243YAFOIXkHyy2qJkSF93WQy70nOSZ/Tki4ugSlQbpC3MZ2OqE+O0VrY xCqwG3177QGgUtCY1SzG6vqD5ai4L4w+UzWX2gDRdu2I28eDyZa+41Azo0cXV1wF2Szs A63A== 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=P0PEUiqfXGK+I7VufF98mY30ECT5uEEn6PnV7WAZ1Ig=; b=dZTrwJiGNOzoenILssj73YQxK731suZg0mR0AheAEdapoaCyG18Gjwl51UcKK+0ZBR A2YRQ7T8kNwP9KqFvBXktCU4tyZa5dOzqWdYs+TEdkZG/Atqa2xQ0JrjlTqXlf3fgKj1 v/3Dt1nOWPk91iHxzz0uRtbGfZSsgVLO2WKF6hk7UeZ14Th5kftI2G1TUbFGm/ysIKe9 Pi3AnpdODUO8HAzfzP4Ql+WJcl2y3IiGOGlM0akwPaj9d0qmY03adoNohNXgnR+1F4sb Dc2TvfjcldufA3IKAmALqFzspAT1P7mutHT2oLvt8tVeZZAgXjGn0bEzI+0zYEaxtF+6 d3tg== 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 l13-20020a170906794d00b006fef771604csi11726638ejo.497.2022.06.27.23.57.01; Mon, 27 Jun 2022 23:57:27 -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 S245594AbiF1Gd7 (ORCPT + 99 others); Tue, 28 Jun 2022 02:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245666AbiF1Gdp (ORCPT ); Tue, 28 Jun 2022 02:33:45 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0C13D63F2 for ; Mon, 27 Jun 2022 23:33:39 -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(20103:0:AUTH_RELAY) (envelope-from ); Tue, 28 Jun 2022 14:27:00 +0800 (CST) From: Qin Jian To: sboyd@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, mturquette@baylibre.com, linux@armlinux.org.uk, arnd@arndb.de, olof@lixom.net, soc@kernel.org, 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 v20 07/11] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Tue, 28 Jun 2022 14:26:47 +0800 Message-Id: <86d703e52fd9380f0973c539c1e12d8860def0ea.1656396767.git.qinjian@cqplus1.com> 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 --- .../sunplus,sp7021-intc.yaml | 62 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 67 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 63aa492a4..ca11740e8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2832,8 +2832,13 @@ 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: arch/arm/boot/dts/sunplus-sp7021*.dts* +F: arch/arm/configs/sp7021_*defconfig +F: arch/arm/mach-sunplus/ F: drivers/clk/clk-sp7021.c +F: drivers/irqchip/irq-sp7021-intc.c F: drivers/reset/reset-sunplus.c F: include/dt-bindings/clock/sunplus,sp7021-clkc.h F: include/dt-bindings/reset/sunplus,sp7021-reset.h -- 2.33.1