Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp937876imk; Sun, 3 Jul 2022 12:44:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s2gc1qoMnWTOwLXjEx8+5PoOvl88c0XOBR3LHjFN3jynLczSRPVcOR1hllXCFZeXk7Qv4D X-Received: by 2002:a17:906:7948:b0:6f7:d5a3:3b91 with SMTP id l8-20020a170906794800b006f7d5a33b91mr24596428ejo.354.1656877469743; Sun, 03 Jul 2022 12:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656877469; cv=none; d=google.com; s=arc-20160816; b=LnDF2ijrDPn2WxcM6L17oPt7s4f+1uFUdsxxeVsTdSgle9mcyB+jN37VlApRFIYYfj YQn56MsF34tsIcDv+c43ik/QMK3/Qu030Aji4COqDhaDrChQ/TAA1xQXc3aP7SJUOWmn E1Owf3M3M3SErd+/fCQFn7nY+bD/rvBgMYaR8z0i4YSdQGlyp+VmTaznuRVajU2dkAdg gePv5ZtCHVr7GZMNIhlB6o/qB5KQxugTo6pNv+ffHFfRbcWzHxFagI5lZb/TGr4ttxK4 xkI5SPEniATM7vVL9014kvX59+k05adyITKCLbqU27ZFAaCuFLThAcvxbmb2vFwTBJis MoYg== 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 :dkim-signature; bh=5XuEM/peWM3jBqKuamMU4NqIG4MXBojlkQGoqVrdA0g=; b=Rp5+Cs5sX04S5/m3rNT4JaGJqgTkViVFDCinriOFIaTRig3psFQtm9hhhKC7VtWO64 uKzyv5eVINmPZzT7KinIYhsF/s0FOUyl9AMMdfDsHhyDLWyg7C+2bAzgSEK0ihTEuqzb qpHlBsBBXdP1WJ5CChN9cNBrvkMncMOWRkh8nTdf7XeJDet4TU8F/i7GPQYklpYhHEPM 16trYqeeSrecJPlgs+K3gLU4ypair0dqebk+FET3KfKcWcyMvFmYB0v2UBpd4uIyiqBy KrN7P38VjMcXZHGw73GprPDwqnfw+/js5ZstcJcByZGEK9gHod0XoGJo+L/qYMREKicq mASg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pz050vur; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020a17090679d700b00722b1057bfdsi12089630ejo.592.2022.07.03.12.44.04; Sun, 03 Jul 2022 12:44:29 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pz050vur; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232565AbiGCTlj (ORCPT + 99 others); Sun, 3 Jul 2022 15:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbiGCTli (ORCPT ); Sun, 3 Jul 2022 15:41:38 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ACA02DF6; Sun, 3 Jul 2022 12:41:37 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id g16-20020a17090a7d1000b001ea9f820449so11533290pjl.5; Sun, 03 Jul 2022 12:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5XuEM/peWM3jBqKuamMU4NqIG4MXBojlkQGoqVrdA0g=; b=pz050vurpfnwHsUrLq49QpQJh/9gfG1u98HtnjQjWpYKSl0cylf+MQ6tBtfup11Mg4 PevsqLBtwPLcAcOtGAV890NEvRj0+dDSXMQhot1uNQ1fRv1eP3kPJBrKKPxGaMY3sBw7 dzrguHipndHwP99hgvmHjxaBURiuFmrH4JCG7eOBixY0oE6TrxSwbQVo5tmGJtqislkn LPLdRf/7JtA56E88+ZgGiIAZUfL7aQ7wHpe4kNh5znAFLxkQNEiOkjdPoXHWL59fbdId 7zCjUCtZwAftG2gU7bRMKoYCrPLO76wQgyZZ4C7Jbn/U+Hwamld/nnZAg87XJFgArLuH XeVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5XuEM/peWM3jBqKuamMU4NqIG4MXBojlkQGoqVrdA0g=; b=19wN1uzFbcngtUZvKDxwPNvBXbJEbRtQSr3fNvMYV+tN1a1Tong2gWrNYPsYDjzNTs OzJWpmeHA023LOPljDOHCE55y1i6mY2EQpMu4Monr2r0kj1B4umKWjGT3oHtMfoWTOFX hSctahZV++Kxmk/GfpkU5mxkD0M3k9TOTop0TLkeiP5HSqocMLHaTYQBIPmd90bhlN0A U7l4XlSMz7UA5blV6xf8ZbAQnDFBuViCGZ2muNIdOq/8tPjvGNOARY0u2//YtSl222qw tlpSl/s9HfTVxjx6r1SDzAWJphbQn1z8QHSHuQCIfWtf4T/w5WjfUciiBzNJDof3BIeD nsvg== X-Gm-Message-State: AJIora9Rnh+GfO4+rIKsg+GJ26BfSehnMiyyP8nQ+ScSMn43PKDYWW8E oxKufoE1Z4DUvG0JA7UWtMM= X-Received: by 2002:a17:90a:304b:b0:1ec:86b7:2f4f with SMTP id q11-20020a17090a304b00b001ec86b72f4fmr31903680pjl.107.1656877296390; Sun, 03 Jul 2022 12:41:36 -0700 (PDT) Received: from prasmi.domain.name ([103.219.60.86]) by smtp.gmail.com with ESMTPSA id y19-20020a17090aca9300b001e0c5da6a51sm10656104pjt.50.2022.07.03.12.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 12:41:35 -0700 (PDT) From: Lad Prabhakar X-Google-Original-From: Lad Prabhakar To: Marc Zyngier , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Linus Walleij , Bartosz Golaszewski , Philipp Zabel , devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar , Rob Herring Subject: [PATCH v7 1/5] dt-bindings: interrupt-controller: Add Renesas RZ/G2L Interrupt Controller Date: Sun, 3 Jul 2022 20:40:16 +0100 Message-Id: <20220703194020.78701-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703194020.78701-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20220703194020.78701-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 DT bindings for the Renesas RZ/G2L Interrupt Controller. Signed-off-by: Lad Prabhakar Reviewed-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- .../renesas,rzg2l-irqc.yaml | 133 ++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml b/Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml new file mode 100644 index 000000000000..ffbb4ab4d9a7 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml @@ -0,0 +1,133 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/renesas,rzg2l-irqc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G2L (and alike SoC's) Interrupt Controller (IA55) + +maintainers: + - Lad Prabhakar + - Geert Uytterhoeven + +description: | + IA55 performs various interrupt controls including synchronization for the external + interrupts of NMI, IRQ, and GPIOINT and the interrupts of the built-in peripheral + interrupts output by each IP. And it notifies the interrupt to the GIC + - IRQ sense select for 8 external interrupts, mapped to 8 GIC SPI interrupts + - GPIO pins used as external interrupt input pins, mapped to 32 GIC SPI interrupts + - NMI edge select (NMI is not treated as NMI exception and supports fall edge and + stand-up edge detection interrupts) + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a07g044-irqc # RZ/G2L + - const: renesas,rzg2l-irqc + + '#interrupt-cells': + description: The first cell should contain external interrupt number (IRQ0-7) and the + second cell is used to specify the flag. + const: 2 + + '#address-cells': + const: 0 + + interrupt-controller: true + + reg: + maxItems: 1 + + interrupts: + maxItems: 41 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: clk + - const: pclk + + power-domains: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - '#interrupt-cells' + - '#address-cells' + - interrupt-controller + - reg + - interrupts + - clocks + - clock-names + - power-domains + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + + irqc: interrupt-controller@110a0000 { + compatible = "renesas,r9a07g044-irqc", "renesas,rzg2l-irqc"; + reg = <0x110a0000 0x10000>; + #interrupt-cells = <2>; + #address-cells = <0>; + interrupt-controller; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD R9A07G044_IA55_CLK>, + <&cpg CPG_MOD R9A07G044_IA55_PCLK>; + clock-names = "clk", "pclk"; + power-domains = <&cpg>; + resets = <&cpg R9A07G044_IA55_RESETN>; + }; -- 2.25.1