Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp461208imi; Fri, 22 Jul 2022 02:54:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vw5uLYTlNaPS6zemrhyg9977J2Pf9/cXHvWKp1ilNlzmKnMGS3w59zk8Gf8TPJYQ3e5ndk X-Received: by 2002:a17:907:75ce:b0:72b:305f:5985 with SMTP id jl14-20020a17090775ce00b0072b305f5985mr2455264ejc.527.1658483691019; Fri, 22 Jul 2022 02:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658483691; cv=none; d=google.com; s=arc-20160816; b=KgA7RYRLdNzhWSVaEDkZyw4bUWgGNt3EX+uSzLXaoOK9yn3IAe69A8ykm2dNOLdZYk se4xnGQTrUHK+xDGEa8MtYbdVZhGPenK5p3YKyyGVY13GkAHSkwl+MFpwtpWIkev9cjT tvlsH/qCaBawcwN7hxRu+/1YngMWBRqDm+mPM83OP9+8BzsHcQdv12bvGmOuDS5bJ1dH Zhzd2ZfokwFWBSXIAGH8KSk1eT0PRiuKS8PqaV95maVRYtj/D0/IYqJoZxpBusNHAxVe 9V3EQ+zE2WjoYPRUFtKZ2NuwxYRz6JJOQp5lWvwE9EfA1+fEmDwV5QjJ8JyWDxNCEi3T uOjA== 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=/eKtb1gRHrco8cantWWpSRLNBaxxulEKH0F25Dqd8nk=; b=OoX/7cxIqrKyh4PRKyJ4vXOLU9XZJhzdolTZMeD/+25ffu2s9ja1mlbNoDzNda1hx7 8XgaC4zspWfpOuXzaacLZ/8h6/oiVrqaTYcZ0SagTFTzv+z8/XrE0AwXXFuC44Um4Y/V rH0RKk4ZpOvukrCMmh6HDVtHWbl0r65SXIrc0PC+KN0F+iH3mKyPzge7Leskg/UkjtXl hZagb1p0dQMbvJpysg7BwHkrl82A7XbfoIVcoJrRYVzJ3aSOnnxN+M2wWdyKxmlQUeLE GpjGuw1AeJPA8mq8hEe5ZvxgGz8icvEmnqIEB+XdzKrnPVdIwv1wqGursO19JfIx0uB+ VGYA== 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 e34-20020a056402332200b0043adeeba898si5183689eda.283.2022.07.22.02.54.25; Fri, 22 Jul 2022 02:54:51 -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 S229682AbiGVJmW (ORCPT + 99 others); Fri, 22 Jul 2022 05:42:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbiGVJmB (ORCPT ); Fri, 22 Jul 2022 05:42:01 -0400 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADD6CC6; Fri, 22 Jul 2022 02:31:40 -0700 (PDT) Received: by mail-qt1-f174.google.com with SMTP id bz13so3099329qtb.7; Fri, 22 Jul 2022 02:31:40 -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=/eKtb1gRHrco8cantWWpSRLNBaxxulEKH0F25Dqd8nk=; b=eLtx8SxvSjynZPSDhTIbmnKIXrYffNIICknXUpmLVWPLilFir4eklz65BCfeqdUtI/ 2OfEefsNyLWzmXHQ9qGnLrVvnLz8b0AVaOL3rH3Q+imUf2BlAY1QtUQgZCRWHB76wOvg HoOsotx9y4Q24H9lYXwh1i3QXndsEw/Xk/nNx6mnr8boyhLk2pntiuTRKEi9rWdW8XOg x7jXdWOP6ebDa5t/PBA6x6sXubIwcG0uSe5bSTCFxIEoVNZkhXUtKJrwtoB0WdOynDSQ 6Zjk6h7Vvm8bt/fTi4lIkXa/NMJ7v3z2eg837E9IIQcxmMXAkKqAAKiiMEgvZ8yfMcjP g/Dg== X-Gm-Message-State: AJIora82l+B2ekU0kilrAsyNNEHeyRjcEzaylJtSBTQRN9ZvxcBHpL/n HC8J8J/vIWnRQ7Dfu/8aoPRP6oB20PPc+g== X-Received: by 2002:a05:622a:5d2:b0:31f:229d:441d with SMTP id d18-20020a05622a05d200b0031f229d441dmr911312qtb.277.1658482298812; Fri, 22 Jul 2022 02:31:38 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id t28-20020a37ea1c000000b006b58d8f6181sm3195045qkj.72.2022.07.22.02.31.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 02:31:38 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id r3so7102300ybr.6; Fri, 22 Jul 2022 02:31:38 -0700 (PDT) X-Received: by 2002:a25:aacc:0:b0:66f:f1ca:409c with SMTP id t70-20020a25aacc000000b0066ff1ca409cmr2301873ybi.36.1658482297883; Fri, 22 Jul 2022 02:31:37 -0700 (PDT) MIME-Version: 1.0 References: <20220721221212.18491-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220721221212.18491-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220721221212.18491-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 22 Jul 2022 11:31:26 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: soc: renesas: renesas,rzg2l-sysc: Document RZ/Five SoC To: Lad Prabhakar Cc: Magnus Damm , Rob Herring , Krzysztof Kozlowski , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , 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_H3,RCVD_IN_MSPIKE_WL,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, Jul 22, 2022 at 12:15 AM Lad Prabhakar wrote: > Document RZ/Five (R9A07G043) SYSC bindings. SYSC block found on the > RZ/Five SoC is almost identical to one found on the RZ/G2L (and alike) > SoC's. To differentiate RZ/G2UL from RZ/Five, "-rzfive" is included in > the compatible string for the RZ/Five SoC as there are no interrupts > from the SYSC block to the core. > > Signed-off-by: Lad Prabhakar Thanks for your patch! > --- > .../soc/renesas/renesas,rzg2l-sysc.yaml | 56 +++++++++++++------ > 1 file changed, 39 insertions(+), 17 deletions(-) > > diff --git a/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml b/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml > index ce2875c89329..bdaf05f8b29b 100644 > --- a/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml > +++ b/Documentation/devicetree/bindings/soc/renesas/renesas,rzg2l-sysc.yaml > @@ -20,35 +20,57 @@ description: > properties: > compatible: > enum: > - - renesas,r9a07g043-sysc # RZ/G2UL > - - renesas,r9a07g044-sysc # RZ/G2{L,LC} > - - renesas,r9a07g054-sysc # RZ/V2L > + - renesas,r9a07g043-rzfive-sysc # RZ/Five renesas,r9a07g043f-sysc? But I'm wondering if we really need a different compatible value? It looks like both blocks differ only in external wiring, so if anything needs to be handled differently (the removed/added registers are related to CPU topology), that can be inferred from the system topology (or even #ifdef CONFIG_{ARM64,RISCV} ;-) > + - renesas,r9a07g043-sysc # RZ/G2UL > + - renesas,r9a07g044-sysc # RZ/G2{L,LC} > + - renesas,r9a07g054-sysc # RZ/V2L > > reg: > maxItems: 1 > > - interrupts: > - items: > - - description: CA55/CM33 Sleep/Software Standby Mode request interrupt > - - description: CA55 Software Standby Mode release request interrupt > - - description: CM33 Software Standby Mode release request interrupt > - - description: CA55 ACE Asynchronous Bridge Master/Slave interface deny request interrupt > + interrupts: true > > - interrupt-names: > - items: > - - const: lpm_int > - - const: ca55stbydone_int > - - const: cm33stbyr_int > - - const: ca55_deny > + interrupt-names: true > > required: > - compatible > - reg > - - interrupts > - - interrupt-names > > additionalProperties: false > > +allOf: > + - if: > + not: > + properties: > + compatible: > + contains: > + enum: > + - renesas,r9a07g043-rzfive-sysc > + then: > + properties: > + interrupts: > + items: > + - description: CA55/CM33 Sleep/Software Standby Mode request interrupt > + - description: CA55 Software Standby Mode release request interrupt > + - description: CM33 Software Standby Mode release request interrupt > + - description: CA55 ACE Asynchronous Bridge Master/Slave interface deny request interrupt > + > + interrupt-names: > + items: > + - const: lpm_int > + - const: ca55stbydone_int > + - const: cm33stbyr_int > + - const: ca55_deny > + > + required: > + - interrupts > + - interrupt-names > + > + else: > + properties: > + interrupts: false > + interrupt-names: false Do all interrupts{,-names} have to be moved? Wouldn't it be sufficient to just have if [...] then: required: - interrupts - interrupt-names else: properties: interrupts: false interrupt-names: false ? But again, without a new compatible value, you could just make interrupts{,-names} not required? > + > examples: > - | > #include 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