Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp51964ioo; Fri, 20 May 2022 13:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBJ6KTAOviIZeX5EDduRCAwgmt2SvDLMPIAvWY+qMXPHUWMW+e6qTGgtINr/FZd0FePWo5 X-Received: by 2002:a17:90a:b78d:b0:1d9:4f4f:bc2a with SMTP id m13-20020a17090ab78d00b001d94f4fbc2amr13393782pjr.155.1653079388555; Fri, 20 May 2022 13:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653079388; cv=none; d=google.com; s=arc-20160816; b=XtdbE5Bions1WJhAKWLDVFNp2StodO/J4JM+IWjTdKolDmapwxnlnSsKAatHcVShyL Ttz5/VWvnvs2LTZLsD1960GPj7pqESWi3Vr/OO8DcyPsUGrFX/euRZ00WM4II5VrtJFN Lds4UFaHSwnLYXITrk3Vl1Pa8TqMM6XxOD3EzBHW6WSzbZcbGbhO+AHorqE86f1qGlUH lGDTALaaO6LeNHusPiv3OH7gAyRys4D/EVeTU1T1BiV8HHjeDu06AKurvgks8P1gVxnt yI1v3N3aYifqvfqlSgM+5UbMJHMU+FDfai5FXEhzOUI/emKhSalj/Sglj/JO7gP5o3hk V4pw== 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=VymLeKmMszxT+91UK1QRAag2rP0XZE3VNPrHPbKnQqU=; b=rC95FBxWXL3xtsPPA7hpnH2yN0onB/17CYHUPG+UEwtYGR0hi8OgHqgiH1cLprcLTm OF5GgFsB/fxo/FD+OiLDiIMF3EzSsY6Vf8OgtvHgFvzPMg0ZsTwrSXjopgNc0B+XO+oc /7mqdyfDrW218P/nrOkLIAmtnNvixjoe+BZjly+aLBpBSb9YF/uaIP4Phooe9oG3nHfZ 5pczjVl+0hM4xZH0ElAiopqbf7Bz2IZcMXwvJ7hI/iIJ90QDYFmeIkcz9jgmkGT1YQZR QOQh20EAyAQbapOhtPzST2OC64EayWmxTfQDtrkgfPfFgNhFqoW/GRlVHt144JAvYffw IIuw== 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 j5-20020a170902690500b0015f3d889431si502016plk.446.2022.05.20.13.42.57; Fri, 20 May 2022 13:43:08 -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 S1345977AbiETHCw (ORCPT + 99 others); Fri, 20 May 2022 03:02:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346187AbiETHBp (ORCPT ); Fri, 20 May 2022 03:01:45 -0400 Received: from mx1.cqplus1.com (unknown [113.204.237.245]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFBE212D21 for ; Fri, 20 May 2022 00:01:23 -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(13837:0:AUTH_RELAY) (envelope-from ); Fri, 20 May 2022 14:51:16 +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 v16 06/10] dt-bindings: interrupt-controller: Add bindings for SP7021 interrupt controller Date: Fri, 20 May 2022 14:50:40 +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 --- .../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 41cd882e2..d8ba5aace 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