Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp232700imn; Wed, 27 Jul 2022 04:55:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvFFtf1wVYawr6JtJJ6BLApDjxp+2Cf7I3Nbx1xYrjR2NQJpyfqf3gZLZHdZlM526afG0o X-Received: by 2002:a05:6402:2549:b0:43a:dcf2:27f8 with SMTP id l9-20020a056402254900b0043adcf227f8mr22742792edb.143.1658922937129; Wed, 27 Jul 2022 04:55:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658922937; cv=none; d=google.com; s=arc-20160816; b=pUhZW0dGeM8/k7eJChxLgv1EWW5rpR5EzC/KxsxIwVXNpEa5OIwnGOBTn3Q/t77VfO fSd7Pu4XHl8l/GD6kwSaTIeZXGyfp8L6bc9cr2HwdteGHHiGW090F+HhYfiNPfDsVtxx VXaEjfIqTFEZ4+pctpkJ0dG62PZj5pPdBavE8rJmdKO93ppdl1KrWWouX9PtjSXMOqNl TSbuWPtKYtskgHSAo2gShwENXjmw061uU0yBCqoVURJWWo1MuoGGEtQIGGCOSksqKUXq 9rCki8dBz2qZ9owZg2RyZH+Wu7Lt7CcrLFfEDynEsWLSO6D85al45DCLlNWcjv2yBQDC wbrw== 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:dkim-signature; bh=fUe3ZPHnv3mne953AtKNlkKN9ecK/p0RKLrloPpqCts=; b=FhTMSaIIS0gZEuIEuijVxLH7BrVz1tUdmGKlmfZqLru8oCJRGOSpIUx+fSwa8ivxfC wgaNT4t6YUMJsZZAzD61HHoBeIp9hhIzDHa0Lxf7AtJTk/zKWrvlySO+sMdN68J/P2l4 XMFuNcOzZxlko49cABK30nKu8ogzt7lsVJSaYzQ53eX8luCmnxKTQfcd1InNJezAr2Lc Li0VFdU1ktKRw+l8GpyLRVkYFjjNh/oqyiYeGlEJ6Kpr/b0FbLqpLI/sCjeyJTzd2PN4 r0qGTsiL79835mVgnnh4kLnCxIBW6GklTs660xQDXBD7qE0UYh5qvp2ErF8Fi3ipEkJ7 nGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K1YSA94w; 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 dp18-20020a170906c15200b0072b60c7df5csi18974686ejc.204.2022.07.27.04.55.12; Wed, 27 Jul 2022 04:55:37 -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=K1YSA94w; 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 S232430AbiG0LjR (ORCPT + 99 others); Wed, 27 Jul 2022 07:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232479AbiG0LjB (ORCPT ); Wed, 27 Jul 2022 07:39:01 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92B744AD51; Wed, 27 Jul 2022 04:38:19 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id j195so10385222ybj.11; Wed, 27 Jul 2022 04:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fUe3ZPHnv3mne953AtKNlkKN9ecK/p0RKLrloPpqCts=; b=K1YSA94w7f1jm0mGfMBGTj4RDOeDsH5BdZYnKdj+ltvE01uB52qrkFVPQswgNq/6/f MNUEbKdU6xkDgPDPLA81boaWlH4bnwjhdQQ5xAIt2g1/tuenHsM8TSSKYjjun4bFEeys XldrNCP4c32arY7cDQFRNmTu0CL9PAkzjLHXcaUVoSNXh6lk7T0oUdfMrRpRaEIWe8Rj WhzFHunzCcgQ8+v2QYKyYHHqFT0NNAG1FqCP5SWKOm+M9MHFGaTkT7MKSBibE1Gnzawi BihjbXPoXNMA4vNyb6g3RyotpVNoT6lQJivBdjz1E+oDJQpAEHkRfddQNSPyQIb5Tf8z 3CYg== 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=fUe3ZPHnv3mne953AtKNlkKN9ecK/p0RKLrloPpqCts=; b=fmUtoePimh6ifQwB5LGjGVUms0BDs2Ei0tXDf6xKeTkDC4OKxu4D40a6ptM/SSAPrh mTqgMpnZMCWqVM7gRtw5OR6Brc28N4vGQYvRg9O9ixZ+EZ77w9SlKC9ukhvCfhLGHhar zT8adWZUkqN2uo3DtE4l4QfeeX+jgY/JEMD01OfSWOEmFqon3Qoamf3aB/mvlPkxIKD9 J53M2uNwisUffrYdrDIGscsehM9CEiPsSEDzCqubq0J25cx0V93buQRC71F3AC8dcB/u xpXKN7mXFx11v44+Gxv2EYpLE5d7WX2wm2KSfzz7NFeL3BVtT6ofi5aJREAnyqh3Dcss FfGA== X-Gm-Message-State: AJIora94uCcuxOjkfctWuyu4f8hY4jO525TYZnyXVXgEexJWwuGL/XGU g68XQXBbjIwOc8xsN9lauT/JCuC+9QzY+iz8d3s= X-Received: by 2002:a25:bd83:0:b0:670:fc70:67f3 with SMTP id f3-20020a25bd83000000b00670fc7067f3mr16485485ybh.244.1658921897467; Wed, 27 Jul 2022 04:38:17 -0700 (PDT) MIME-Version: 1.0 References: <20220726180623.1668-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220726180623.1668-5-prabhakar.mahadev-lad.rj@bp.renesas.com> <636e9214-4b36-e9a6-3c6b-b6edb944335e@linaro.org> In-Reply-To: From: "Lad, Prabhakar" Date: Wed, 27 Jul 2022 12:37:50 +0100 Message-ID: Subject: Re: [PATCH 4/6] dt-bindings: riscv: Add DT binding documentation for Renesas RZ/Five SoC and SMARC EVK To: Krzysztof Kozlowski Cc: Lad Prabhakar , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" 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 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 Hi Krzysztof, On Wed, Jul 27, 2022 at 11:09 AM Krzysztof Kozlowski wrote: > > On 27/07/2022 12:06, Lad, Prabhakar wrote: > > Hi Krzysztof, > > > > On Wed, Jul 27, 2022 at 10:54 AM Krzysztof Kozlowski > > wrote: > >> > >> On 27/07/2022 11:05, Lad, Prabhakar wrote: > >>> Hi Krzysztof, > >>> > >>> Thank you for the review. > >>> > >>> On Wed, Jul 27, 2022 at 9:54 AM Krzysztof Kozlowski > >>> wrote: > >>>> > >>>> On 26/07/2022 20:06, Lad Prabhakar wrote: > >>>>> Document Renesas RZ/Five (R9A07G043) SoC and SMARC EVK based on this SoC. > >>>>> > >>>>> Signed-off-by: Lad Prabhakar > >>>>> --- > >>>>> .../devicetree/bindings/riscv/renesas.yaml | 49 +++++++++++++++++++ > >>>>> 1 file changed, 49 insertions(+) > >>>>> create mode 100644 Documentation/devicetree/bindings/riscv/renesas.yaml > >>>>> > >>>>> diff --git a/Documentation/devicetree/bindings/riscv/renesas.yaml b/Documentation/devicetree/bindings/riscv/renesas.yaml > >>>>> new file mode 100644 > >>>>> index 000000000000..f72f8aea6a82 > >>>>> --- /dev/null > >>>>> +++ b/Documentation/devicetree/bindings/riscv/renesas.yaml > >>>>> @@ -0,0 +1,49 @@ > >>>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >>>>> +%YAML 1.2 > >>>>> +--- > >>>>> +$id: http://devicetree.org/schemas/riscv/renesas.yaml# > >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>>>> + > >>>>> +title: Renesas RZ/Five Platform Device Tree Bindings > >>>>> + > >>>>> +maintainers: > >>>>> + - Geert Uytterhoeven > >>>>> + - Lad Prabhakar > >>>>> + > >>>>> +# We want to ignore this schema if the board is SMARC EVK based on ARM64 arch > >>>>> +select: > >>>>> + not: > >>>>> + properties: > >>>>> + compatible: > >>>>> + contains: > >>>>> + items: > >>>> > >>>> I think you should rather ignore the RiscV SoCs, not specific board. > >>>> > >>> You mean to ignore ARM/64 SoCs? > >>> > >>> Agreed just the below enum, should do the trick. > >>> > >>> - enum: > >>> - renesas,r9a07g043u11 > >>> - renesas,r9a07g043u12 > >>> - renesas,r9a07g044c1 > >>> - renesas,r9a07g044c2 > >>> - renesas,r9a07g044l1 > >>> - renesas,r9a07g044l2 > >>> - renesas,r9a07g054l1 > >>> - renesas,r9a07g054l2 > >>> > >>> > >>>>> + - const: renesas,smarc-evk > >>>>> + - enum: > >>>>> + - renesas,r9a07g043u11 > >>>>> + - renesas,r9a07g043u12 > >>>>> + - renesas,r9a07g044c1 > >>>>> + - renesas,r9a07g044c2 > >>>>> + - renesas,r9a07g044l1 > >>>>> + - renesas,r9a07g044l2 > >>>>> + - renesas,r9a07g054l1 > >>>>> + - renesas,r9a07g054l2 > >>>>> + - enum: > >>>>> + - renesas,r9a07g043 > >>>>> + - renesas,r9a07g044 > >>>>> + - renesas,r9a07g054 > >>>> > >>>> Did you actually test that it works and properly matches? > >>>> > >>> Yes I have run the dtbs_check and dt_binding _check for ARM64 and > >>> RISC-V. Do you see any cases where it can fail? > >> > >> > >> Just remove the renesas,smarc-evk2 from > >> arch/arm64/boot/dts/renesas/r9a07g043u11-smarc.dts. Do you see the > >> error? Not from this schema. The only error you will see is that no > >> matching schema was found. > >> > > I did run the dtbs_check test as per your suggestion (below is the > > log) and didn't see "no matching schema error" > > > > So you do not see any errors at all. Then it does not work, does it? > Right I reverted my changes I can see it complaining, dtb_check seems to have returned false positive in my case. What approach would you suggest to ignore the schema here? Cheers, Prabhakar