Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp238422iol; Thu, 9 Jun 2022 02:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8fUpH7fbeCSmtVvbBpcS2ebrZZe1RGvg183gGpdHqj02KUULKV/Oj9taXNr+T2GlhesVU X-Received: by 2002:a05:6402:90d:b0:428:bda9:3e6b with SMTP id g13-20020a056402090d00b00428bda93e6bmr43908009edz.132.1654768710404; Thu, 09 Jun 2022 02:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654768710; cv=none; d=google.com; s=arc-20160816; b=Wy0tNmAIuKeJpflN621oo7dpq+iVnwuZ/4cb8ZEsjfnfsj+fArR5+DA9PY3+o92haj 91RyWJk76toYWbX6y3u1yTgMQiFoOLW7Br1FxC8zRQoJ+ElaqgsbbcxtdE0e1LFtUAze AoVYhFGdp4blYtByzTMnpOHMW7rYCcuXKlH0HFGB6GkYtjL+NDE3MJtYbZ8SLtqB6Dyq Wr99XRm3U3d8IyTSXIBt6RAzK+onZ/9gb4HGzaKfZ/2Azn/gI8ilKrYkA1CjbLwkN7RP CNhsW8On6kxUPsJveqqWyh7/lzYGcqgAlNBGZfdd5qiXmUHXiir5VX+W3l83sHOt4T/2 ehWg== 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=CdScqDIt7cletpD0dszRyDkdpl0EPlQmkhSL9q4U+Ck=; b=CqZPG1hkEclM8Yj12W8AWo3t1KerXrw7x05PjWptoPrRqAA0MFdza8wLX+Mm8o4TPf z+jDwWvXacIIhVEbLxZKMf0PbTvPDISfutbUXTfBQ3RR2mPyhr4nOm2uDUdINpsnJfqp UVcEqh6hgAkzv0BOh7yK88wvRsS4ljH94gVBv6kj2eSpG549jQ3WbzoEzONnp/xqIGgY nODizFT6D8r1acRrQWwV5hlLXsoIAzX+Y3Q+0qdr8yhcpE5wXAgnNZ62QP8PpTS6TEiY dVsL/fG4mBoQQjCovLO2tn+O46mN5TZkK1CWvbZO+sBkNxQOR+8WYX/r0bAdVmxMtH39 RVEw== 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 b9-20020a056402278900b00430f6f56a0dsi18469685ede.265.2022.06.09.02.58.04; Thu, 09 Jun 2022 02:58: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 S242037AbiFIJmj (ORCPT + 99 others); Thu, 9 Jun 2022 05:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242882AbiFIJmb (ORCPT ); Thu, 9 Jun 2022 05:42:31 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9065B50B14; Thu, 9 Jun 2022 02:42:24 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id k6so14280624qkf.4; Thu, 09 Jun 2022 02:42:24 -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=CdScqDIt7cletpD0dszRyDkdpl0EPlQmkhSL9q4U+Ck=; b=ceds/elGnpkjID5ZoIdSwaSld41Dac4zAVRQ+xs7tmk+Cu6VrDmMqe0S4dyQ0J0rHd aFt8KDxCidnvaEVsMV69K+rr9G8Au5rTM1fNo2LfJsheidTmFO4s4J/I9YBj9ENbBByE 7I5dy9RM1L8zRBHMWc7pFZvUS7DA89qqAQpT2AXRZ669ZsK4MmDGtUE970sV2aZPePf3 ksoz/BZWSwq8zDJaTr90X+/9OrcH9e58QSa3NmuHCv5zW3KSKCrP9SyFciTWkHLwONJ2 Nn4jR4WXsT3Ls45G7lBmAE5WXBKlXH842DSDuLiYsteSHfoP7vgNh8b4otbfE+BIJIN4 bo7A== X-Gm-Message-State: AOAM531toxFFOFWJQb68P+/O2L/+fxx1UaAKx52Kr1ungv3mbZSQx3wb w8VK5aYSVoNtCucMKidh863QQNBZJQxNgQ== X-Received: by 2002:a37:5ac4:0:b0:69a:1423:4cac with SMTP id o187-20020a375ac4000000b0069a14234cacmr25828294qkb.41.1654767743443; Thu, 09 Jun 2022 02:42:23 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id f9-20020ac80689000000b002f3e127be41sm15723549qth.20.2022.06.09.02.42.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jun 2022 02:42:22 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-31336535373so84198547b3.2; Thu, 09 Jun 2022 02:42:22 -0700 (PDT) X-Received: by 2002:a81:1dd2:0:b0:30f:a4fc:315e with SMTP id d201-20020a811dd2000000b0030fa4fc315emr43772632ywd.383.1654767742001; Thu, 09 Jun 2022 02:42:22 -0700 (PDT) MIME-Version: 1.0 References: <20220524172214.5104-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220524172214.5104-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220524172214.5104-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 9 Jun 2022 11:42:10 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 1/2] dt-bindings: interrupt-controller: sifive,plic: Document Renesas RZ/Five SoC To: Lad Prabhakar Cc: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Sagar Kadam , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , Geert Uytterhoeven , Linux Kernel Mailing List , Linux-Renesas , Prabhakar , Phil Edworthy , 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, 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 Hi Prabhakar, On Tue, May 24, 2022 at 7:22 PM Lad Prabhakar wrote: > Document Renesas RZ/Five (R9A07G043) SoC. > > Signed-off-by: Lad Prabhakar Thanks for your patch! > --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > @@ -28,7 +28,10 @@ description: > > While the PLIC supports both edge-triggered and level-triggered interrupts, > interrupt handlers are oblivious to this distinction and therefore it is not > - specified in the PLIC device-tree binding. > + specified in the PLIC device-tree binding for SiFive PLIC (and similar PLIC's), > + but for the Renesas RZ/Five Soc (AX45MP AndesCore) which has NCEPLIC100 we need > + to specify the interrupt type as the flow for EDGE interrupts is different > + compared to LEVEL interrupts. > > While the RISC-V ISA doesn't specify a memory layout for the PLIC, the > "sifive,plic-1.0.0" device is a concrete implementation of the PLIC that > @@ -57,6 +60,7 @@ properties: > - enum: > - allwinner,sun20i-d1-plic > - const: thead,c900-plic > + - const: renesas-r9a07g043-plic renesas,r9a07g043-plic > > reg: > maxItems: 1 > @@ -64,8 +68,7 @@ properties: > '#address-cells': > const: 0 > > - '#interrupt-cells': > - const: 1 > + '#interrupt-cells': true > > interrupt-controller: true > > @@ -91,6 +94,35 @@ required: > - interrupts-extended > - riscv,ndev > > +if: > + properties: > + compatible: > + contains: > + const: renesas-r9a07g043-plic renesas,r9a07g043-plic > +then: > + properties: > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > + '#interrupt-cells': > + const: 2 > + > + required: > + - clocks > + - resets > + - power-domains > + > +else: > + properties: > + '#interrupt-cells': > + const: 1 > + > additionalProperties: false > > examples: 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