Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4729702iob; Sun, 8 May 2022 23:31:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz58wEqgVrsC+zhV7vSUEFaVxI1+xdfHTaKdtmnFHVe78y3XyBtw3gjj3GZz07rPNzjD2Ii X-Received: by 2002:a17:902:d5ce:b0:158:48db:9719 with SMTP id g14-20020a170902d5ce00b0015848db9719mr14834444plh.7.1652077891878; Sun, 08 May 2022 23:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652077891; cv=none; d=google.com; s=arc-20160816; b=dd0cTiPwttpLhDRdS0mNmdRZeQWoGp2BBaoBblXObizBijzjVYN+NYzJ3Q1FYrfBjS mrvIPQIGkDMfRrNkGHTJe0NW3bEe+alnqMDFPf3feOh1hagPTDEFKBIAO9vuQiLYCg/d 9iicZRalu31VYPa/CesMWbyGtRjO9eMT5b9r1Fe62JIwQ3bi81dwpBM+M83Tmk5V+tg1 bTOSufw+XVs4JZqPyzwALb/hKTSIazGMKINw8zgSYUfB87Aj5TjV+fwF2YhJZtyiqGa5 eICWvEOZ6z4WIapNCWvACfwx8cq/9sVU8Wn/SguelXb99y0aSGyj+w+ctsbUziMf+uPq YUUw== 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=i+DvW8QWQaT1UKpqYI4Jaj0rCIyjVLD0dqhUBGHZx78=; b=sJZRfDa8453KR6B4BsHVGrtCg73T0XuNSRssxKL3qUJ25VnDHsYOEYsTucvqr8fbfc nVV5loysL6c7Ek9AxKwDrsIdX8NLYw0QoQE+1K52a4N2FZQVk6kgNLePxhjn7cvyCBU5 PQOsoadtelVF5XWVBIffY2Ti7xvG6eDjwU4sasFW9qlVVGb/1ExMR3Frc+wxpM5xlnrZ z0VosX369wrMXKhz3Ca48ALtxRsArza9Vknykqo5jYn/AS3aVTK3QJASzYh9cTR7nHsH LX/nqXvwt+OlKDuEPtoGf43jM5LzNnrSZUTde9u1jNGgjN3D7GeiiskXGO8RYjLnle/8 7vwA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d14-20020a63f24e000000b003c67a501c74si7550995pgk.636.2022.05.08.23.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 278011498D0; Sun, 8 May 2022 23:27:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353149AbiEFDem (ORCPT + 99 others); Thu, 5 May 2022 23:34:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388597AbiEFDeF (ORCPT ); Thu, 5 May 2022 23:34:05 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 54D27D74 for ; Thu, 5 May 2022 20:30: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(24048:0:AUTH_RELAY) (envelope-from ); Fri, 06 May 2022 11:23:29 +0800 (CST) From: Qin Jian To: krzysztof.kozlowski@linaro.org 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 , Rob Herring Subject: [PATCH v14 6/9] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Fri, 6 May 2022 11:23:20 +0800 Message-Id: <56fb5e9a35a901f15d8e9721385c7e916c181377.1651805790.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.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 | 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