Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp428436iob; Thu, 28 Apr 2022 05:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQq2UGhPL4Zb8bwwzQAvQg5woZP26NsluAtkrRSOdi9abR63lkphWTzu7HqE9CwssUfO/W X-Received: by 2002:a17:90b:1d84:b0:1d9:9f02:bceb with SMTP id pf4-20020a17090b1d8400b001d99f02bcebmr18777475pjb.98.1651149690585; Thu, 28 Apr 2022 05:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651149690; cv=none; d=google.com; s=arc-20160816; b=Nv1i4fXPGMhJYE3BFZGLZyIg8J0V5lQcE/l//sq7O2vRgy2qOCLcD/MONhPNwh0IQt 5pY75pBXecjHMYSI8qkhWH9R1K3wxlYj21vGh6AlD9aLhnWAF/vW9Du/T76py7x0iiwG 6je6H0uKZC66A1oiZ+zRzvhwsZI4FGD1aF+7DLa6af/wyzgSoIIFEr+f/oB+tje0ZNat 3XZJkhplvNlsKpDVPDIHXJ0+Hf5gxiUvrTmKBZnLaXXstdlbGdmQEhjEmYzzKYK/YaT/ /2gRLKXSZbZKowOAHwuwAnUySHCTZr68Lr3A33U5SO7UJBoWMYnxIb4iZzVWL/Lw/w/d 09+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=XxrucvC/NAbMhAGxWgmP+P246fNaW3Hi7ZrfYXkN5TU=; b=vrVKB5tbWFhzRU/whP03w9fYBNmLLzkg+sWRDjckeMO/4/dJr7lkd77+gJfCtvyfzk 7TMLslxocLKolSKyIAU515o2owVqhSkxgm5JPOBnvfJqRPuXKDNO+yRPrZLQ/Fo0c2V3 MzwdXEaeADZcPmDNRqx0UOkK/MqtXUj9a+aJpHGBjDyMF3KlKd3UoaNmGa8jwdhtt8lN 4MEc/LDfNTCC5wikzjScSrPrX6ihakA87GNoq1J7xtVWFCr9WzqiK/FmVSS6+d0BnZBt Kermj8aNFJ1dLoeNw2I89i/yfIQpNKxx/eKliD5OdS1Ej38m1DcA1JUwlohPIZCPACc+ Cz5w== 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 l63-20020a639142000000b003aba3e87b34si4332782pge.124.2022.04.28.05.41.15; Thu, 28 Apr 2022 05:41:30 -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 S230460AbiD1JtG (ORCPT + 99 others); Thu, 28 Apr 2022 05:49:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347895AbiD1Jfe (ORCPT ); Thu, 28 Apr 2022 05:35:34 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E15BF95486; Thu, 28 Apr 2022 02:32:20 -0700 (PDT) Received: by mail-qk1-f171.google.com with SMTP id s4so3195791qkh.0; Thu, 28 Apr 2022 02:32:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XxrucvC/NAbMhAGxWgmP+P246fNaW3Hi7ZrfYXkN5TU=; b=JUOn690e8hRPPVUa5vhEFKjj719h6ekxjI8U1Z3FWaiCTeTTRNgJaJUSXRSfjd801W ZqUv3kzdBFk0Bpw0DWYz5XGfDSr5LaL3UqYNyU0qfp7F2FAG5M75OqWV/nnV1INIbCQ+ S1rdpqOhPbn7LwUejCGhKOhDAVyLyIWIx5eO6fKTEsnffubW6rXvkjP7R7+WgHWXeFxS 9unMT/kSvhSDccsPHudCWzoAtqI1fvkftoViIJrRqlUGEHi97+wMSfvMmYMkVNPALJyH tQEXKX43khIrYspHEFXTSu30OdgeV/EYyuCJgH52v6+AN1Z8R+JKcjJvQm+3YbwEnGIa Nv7Q== X-Gm-Message-State: AOAM5320tCIZu9PcPtp7VnIKaCuJIRgDAPoLnqRGNZq0XKaNcnJCwuRu d1TkKKJLF3PuPkQgUp+aU0Gn3NFG8wklcg== X-Received: by 2002:a05:620a:404e:b0:69e:a5db:22cb with SMTP id i14-20020a05620a404e00b0069ea5db22cbmr18894611qko.735.1651138339897; Thu, 28 Apr 2022 02:32:19 -0700 (PDT) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com. [209.85.219.174]) by smtp.gmail.com with ESMTPSA id i198-20020a379fcf000000b0069f869bcd49sm3039513qke.75.2022.04.28.02.32.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Apr 2022 02:32:18 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id w17so7923266ybh.9; Thu, 28 Apr 2022 02:32:18 -0700 (PDT) X-Received: by 2002:a25:d393:0:b0:648:4871:3b91 with SMTP id e141-20020a25d393000000b0064848713b91mr20880320ybf.506.1651138338366; Thu, 28 Apr 2022 02:32:18 -0700 (PDT) MIME-Version: 1.0 References: <20220421221159.31729-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220421221159.31729-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220421221159.31729-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 28 Apr 2022 11:32:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: interrupt-controller: Add Renesas RZ/G2L Interrupt Controller To: Lad Prabhakar Cc: Marc Zyngier , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Geert Uytterhoeven , Linux Kernel Mailing List , Linux-Renesas , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi Prabhakar, On Fri, Apr 22, 2022 at 12:12 AM Lad Prabhakar wrote: > Add DT bindings for the Renesas RZ/G2L Interrupt Controller. > > Signed-off-by: Lad Prabhakar Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/interrupt-controller/renesas,rzg2l-irqc.yaml > @@ -0,0 +1,131 @@ > +# 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': > + const: 2 What is the meaning of the cells? IRQ number + flags, I assume? How are the numbers mapped, do you need a DT bindings header? Perhaps it would make sense to increase to 3 cells, so you can use one cell for the type (cfr. e.g. GIC_SPI), and the second for the plain index within the type? The rest LGTM, but I'm not an interrupt expert, so I'm curious in hearing Marc's opinion. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds