Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1256017iog; Tue, 14 Jun 2022 02:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze3HIl3ClqIGzdB7ZwhBztQGArTTBV1R87vXf8ZA+Ol0cNMzUwAYMmtguHfK+mE4zkL+r3 X-Received: by 2002:a17:907:3f0a:b0:711:f0e2:ad67 with SMTP id hq10-20020a1709073f0a00b00711f0e2ad67mr3358577ejc.277.1655198775125; Tue, 14 Jun 2022 02:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655198775; cv=none; d=google.com; s=arc-20160816; b=JhRoA0gPpn2W5JxYrWrUwNPPwymaoLyjP+VFy0BNdkiaV+bj7bcXO+Kz+ir+P53POA MdzWzMfgmnpt72tDXqMjgl2WVAEChfiDMAVUuJvLMVcI9HpuJEKtFDbf7ORiEewdJy+l eRcpyzBOaIALtfFSSdx7GphKYY8iJ4Vhp/+/2M826vy3ig9y+Y5EFoff7amXon8LYs7K 5kamDb981ULk08S0JHz5AATHyRE1dCnv1X4ncZHjrCXHtsOQaZogsj+hOZJ7ZopyYY6n HuKp1plpeii9oySr0hdcZvmK8SjpQFUzzyb5+phNCTUFgqU4O3sUhMffovVSDEeidg5y 5LJg== 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=/nco/VPrYpMt2VE36zouFXjiUC7o5WHPuSGb24JSyjI=; b=h/r8PpLs8RgVA/eQQlFfuWfLWRCdBETMAyaSL3datDLTUzDV+D043RFnd3tmvUg1lv oLtQ3pdIDFOxzG3w5B+dXio/VxOcHeR2CUQjyhym+sDzdv/1xfHQdxah/RXAEY/sdACW WOtRuvhzVjYODwnRGzb+4zG6w/iJpSgFQjbfS5meF2Sa0sYDaDMUyekNEoJqlyHzfgV7 I/A2CtzUN2Vvp94QqmzTckrIPMv5jJO0/ORZsZWx+NEz9c+lLpjNAgRsUQbWiTRMMRud wPGyBAH/QsL9BzlFVIcBJD/NSNKp3JozzAA8CWq4K9HPcUNY3Q9oXhSHYtSDcNssmtkO hRZg== 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 b11-20020a056402278b00b0042e2a928df9si13004634ede.287.2022.06.14.02.25.49; Tue, 14 Jun 2022 02:26:15 -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 S241060AbiFNIph (ORCPT + 99 others); Tue, 14 Jun 2022 04:45:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355475AbiFNIoY (ORCPT ); Tue, 14 Jun 2022 04:44:24 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0402EBF2 for ; Tue, 14 Jun 2022 01:44:02 -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(29251:0:AUTH_RELAY) (envelope-from ); Tue, 14 Jun 2022 16:31:20 +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 v18 06/10] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Tue, 14 Jun 2022 16:31:05 +0800 Message-Id: <59ca4816d90a63bf69254d67b79b28c47e6b1089.1655194858.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 b90bb93a3..23774ee07 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2812,8 +2812,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