Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2535448pxp; Mon, 21 Mar 2022 23:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynRYe7pZlKka3Um/4kAVUYLCA1Stp/u18rqfQ8ygvevOLg3jkw8K4/mt+Z1TnpXCuGnw5q X-Received: by 2002:a17:90a:5995:b0:1bc:be7f:f5a1 with SMTP id l21-20020a17090a599500b001bcbe7ff5a1mr3254102pji.84.1647931998400; Mon, 21 Mar 2022 23:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647931998; cv=none; d=google.com; s=arc-20160816; b=x58D5vY8GJN8vqoDLHFlmLCobuPDP1cPkhsw+rPvVVjtXX7rQkZtNHJjdncHBLqzHO OE1N/I/P1ogrkHyEk4Z2LFIS5vWT+LYVaxy6GmYBhhq95LvpH+oGhwS15YcXSgT12D0t b+t5S0iR1VP3S5+Q/yBL/ZhFZwql999hW4LwJ7tLo/DGahI2eo2eFcE9nU1JVZqA7qQE SyBM+ZeNSsByt85FVez4DjqHXk+iTEdCrXp3y0JA7VoC53e8rhMgyfQmOLEcz3GRsP9B qAU/GMOB5syRJSe/7LmCAm7N0IffGPVPyzUjSjmEzPa6/d/Q5mJ0YqV8KgdSpTFij5kO fFwg== 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=cjeVJHXNJztQA/aQS9hnSEohPDq85QaPn4YFpcdlWfU=; b=wcZ7P/6WOmizKbk7rC2KmqhNRWVHnKEQQXwLFUzBrWxjMyWGGBg4yu1GV86VIjv+2W IgNKu5Vsmn8S6ErKBfsjqTUWIVZEjFlNXvZ6DXb9fvcD/uS695gY1U+DL+dOwLCFwRGX myYdArpTzHc1H2TI3wYOOBy1HuPsmBiGHwoot1s3rzq4HrKHEjM2iHCOZqwOcPxSja+j bq1jS8HS6DOMMaWTX6Yq9pnK+XlIvubhI4+Q6pZFHXotGcAHRMKNJTkATCyc/y24xenw P86pZMhW1HpIkaifwVc5M+3jqD+IVT8M0xPoUL+1YJdS/WgHZjIPGsSZdtQ7gIQob1xN qjBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 30-20020a630a1e000000b003816043ef73si14904612pgk.360.2022.03.21.23.53.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 23:53:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 31AEB3700C; Mon, 21 Mar 2022 23:24:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237095AbiCVGZg (ORCPT + 99 others); Tue, 22 Mar 2022 02:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237013AbiCVGZ1 (ORCPT ); Tue, 22 Mar 2022 02:25:27 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 679762E6B1 for ; Mon, 21 Mar 2022 23:23:52 -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(7841:0:AUTH_RELAY) (envelope-from ); Tue, 22 Mar 2022 14:16:34 +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 , Rob Herring Subject: [PATCH v11 6/9] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Tue, 22 Mar 2022 14:16:57 +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.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..5daeab63c --- /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 + + 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. + + 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. + + interrupts: + maxItems: 2 + description: + EXT_INT0 & EXT_INT1, 2 interrupts references to primary interrupt + controller. + +required: + - compatible + - interrupt-controller + - "#interrupt-cells" + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + intc: interrupt-controller@9c000780 { + compatible = "sunplus,sp7021-intc"; + interrupt-controller; + #interrupt-cells = <2>; + reg = <0x9c000780 0x80>, <0x9c000a80 0x80>; + 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