Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8400545rwr; Thu, 11 May 2023 00:14:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iA5j/YyWa1x2z3WfzoDaYGrzDNVIylF2YcrTYwhv2a5pD2kC3ATqY382fG0B5C5QBjgRl X-Received: by 2002:a05:6a00:1805:b0:63c:56f5:5053 with SMTP id y5-20020a056a00180500b0063c56f55053mr33378151pfa.13.1683789260375; Thu, 11 May 2023 00:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683789260; cv=none; d=google.com; s=arc-20160816; b=tic0d06Ur49dwurIlDaGXWPgoW0tuI5MdfolRR7kMVgoYM+hAYWbUsBgpSecgSMySW pCjLNoUlC72I97aq6RbmqO3DCbIyLMXEcapFTkydWE5uXF+nO6z3IRBInqxPNrxQCK7J l9Ux3GFNNdfLGSlZfbZTGzIvWS7aF62NDlYOZD5v7RLyllWLh5WEw3rHnrakmDDw/RWA O+3KAxh0nYTSG4iPLdBEKK98DIEuHhkPASZc+i76no0SJaW8r36pL8c8qJcN4TD6RCvM 7ekWHKzED3rbF779UaREHm9+t1z0HUjqgFQvvTmMtuexZCiIKJwQrSkdo+XJDW/f6FV1 myJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Q+j0By1FxAIq3s/+LXfG3sbPk5RhmUOrASXNpG7BQis=; b=mPyKcUwmLUdmjNaOWkwMSOXtzv2ZfQ5lMgOvCF8rhj5sf5f5vtT+nILc0P638yehaJ PQv68RFPOf6gXfYmuQG+0TCfWsML9SZBILs3CMvidbMI+sOkCQ2AzqtIxKimFgoaEUf+ dNoqorUwhGkU6rFA86vDopJsyAzYbLLyZ8iY7z/vDdHoguWvzoEhOZwgT6/10t8L4kkQ dUypq1i4QVC1k+FRM+cLPdbb3XdU3lHxtmIohS+rQ/Kt9AtiqVf+z1Q9KEefhzurl8RJ NjDsAH4SUuIdpNeTtqXdP6bN5q4+MdlOy3bRYBPCF5lVIJM1Icgx6NGNh1i3uy0mQaJh otpw== 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 x15-20020aa7940f000000b006466ef42dafsi7056692pfo.179.2023.05.11.00.14.08; Thu, 11 May 2023 00:14:20 -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 S237303AbjEKHIH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 11 May 2023 03:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237397AbjEKHHj (ORCPT ); Thu, 11 May 2023 03:07:39 -0400 Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F194B65A0; Thu, 11 May 2023 00:07:37 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so39813077276.0; Thu, 11 May 2023 00:07:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683788857; x=1686380857; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xsAz4959ASyLH7I3o6usz1e8SUod/Uv6RBV6dCds1Mc=; b=Z1n32LyULtXwk+dijqJqRPOFQgGnc83LPYYaUZdAB4q2MnhQlIOY6u1XBEM4LKGUoz brrafF5A8RTs8S3BR4oxcB7/GxF/43A33pI+JbcDQ6S/NF/F5rKBa7NK+/bVCr78H/p0 OltKxSI16wUMXMzKMdfnSvT9q8VvlCsH7A7CwTML3UVBx1v1I4ueIjHVJm3iHXD98pr6 IlEM60TzolZX5RO2I3eaKJ38dD4A4XemfXOdOlnODDTzICSfVCuzBYY0E5VbZ2Hnn7Ie 26vnIAQ6GkLCEB1xxHiQOhhu4IfFR7V89EUxOHY3hPXBD93RlOnoS1dZGqjHzXx94MTL eg9A== X-Gm-Message-State: AC+VfDy+9iowsm345SRanQzAT4QflvFFmlnhzDxpb8JNEhzzEfjoy5QQ l+0EC5ItJcUvUzufsYSyJ7ZBraXL3J7wyw== X-Received: by 2002:a25:4ac9:0:b0:ba1:6bad:9270 with SMTP id x192-20020a254ac9000000b00ba16bad9270mr22602848yba.27.1683788856699; Thu, 11 May 2023 00:07:36 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id 7-20020a250a07000000b00b9dcd17cc2dsm4241467ybk.46.2023.05.11.00.07.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 May 2023 00:07:36 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-b9a6f17f2b6so39746388276.1; Thu, 11 May 2023 00:07:35 -0700 (PDT) X-Received: by 2002:a25:c086:0:b0:b9e:67ab:4f36 with SMTP id c128-20020a25c086000000b00b9e67ab4f36mr21664777ybf.10.1683788855509; Thu, 11 May 2023 00:07:35 -0700 (PDT) MIME-Version: 1.0 References: <40ff1fc7f5220db7d527c57ac4bad16c3945ae08.1683725179.git.geert+renesas@glider.be> <20230510-headsman-deskwork-6826f9f174df@spud> In-Reply-To: <20230510-headsman-deskwork-6826f9f174df@spud> From: Geert Uytterhoeven Date: Thu, 11 May 2023 09:07:23 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: timer: sifive,clint: Clean up compatible value section To: Conor Dooley Cc: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Anup Patel , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT 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 Conor, On Wed, May 10, 2023 at 6:02 PM Conor Dooley wrote: > On Wed, May 10, 2023 at 03:27:24PM +0200, Geert Uytterhoeven wrote: > > Replace the sentences in the description listing some supported variants > > by comments on the individual compatible values, to ease future > > maintenance. While at it, restore alphabetical sort order. > > > > Signed-off-by: Geert Uytterhoeven > > --- > > .../bindings/timer/sifive,clint.yaml | 21 +++++++------------ > > 1 file changed, 8 insertions(+), 13 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > index 94bef9424df1bc6a..34a81510678134eb 100644 > > --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml > > @@ -29,11 +29,11 @@ properties: > > oneOf: > > - items: > > - enum: > > - - sifive,fu540-c000-clint > > - - starfive,jh7100-clint > > - - starfive,jh7110-clint > > - - canaan,k210-clint > > - - const: sifive,clint0 > > + - canaan,k210-clint # Canaan Kendryte K210 > > + - sifive,fu540-c000-clint # SiFive FU540 > > + - starfive,jh7100-clint # StarFive JH7100 > > + - starfive,jh7110-clint # StarFive JH7110 > > + - const: sifive,clint0 # SiFive CLINT v0 IP block > > - items: > > - enum: > > - allwinner,sun20i-d1-clint > > @@ -45,14 +45,9 @@ properties: > > description: For the QEMU virt machine only > > > > description: > > - Should be ",-clint" and "sifive,clint". > > - Supported compatible strings are - > > - "sifive,fu540-c000-clint" for the SiFive CLINT v0 as integrated > > - onto the SiFive FU540 chip, "canaan,k210-clint" for the SiFive > > - CLINT v0 as integrated onto the Canaan Kendryte K210 chip, and > > - "sifive,clint0" for the SiFive CLINT v0 IP block with no chip > > - integration tweaks. > > - Please refer to sifive-blocks-ip-versioning.txt for details > > > + Should be ",-clint", followed by "sifive,clint" > > + when compatible with a SiFive CLINT. Please refer to > > + sifive-blocks-ip-versioning.txt for details regarding the latter. > > Does this section actually add any value at all? > By nature of oneOf structure above, such an ordering is required for > existing entries. For something not here, should we instead be noting > that sifive,clint0 is to be used when compatible with the SiFive/RISC-V > clint, rather than doing a sifive-blocks-ip-versioning.txt dance? I considered removing the paragraph. But I kept it, just not to loose the reference to sifive-blocks-ip-versioning.txt, which someone might find useful. > As it stands though, patch is an improvement, so: > Reviewed-by: Conor Dooley Thanks! 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