Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp841024rwb; Thu, 22 Sep 2022 07:06:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5fqnMKM1ACl1OzsILrgSmjz90zQj+WiUF/HLcDhbKhoJ/rsAHpD0KhLfh79sWK5ApeB391 X-Received: by 2002:a17:907:2bd8:b0:770:77f2:b7af with SMTP id gv24-20020a1709072bd800b0077077f2b7afmr2925910ejc.545.1663855582552; Thu, 22 Sep 2022 07:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663855582; cv=none; d=google.com; s=arc-20160816; b=Q5ACA0dcdqR3KgvaJjPMGUg7uisX8MbpUlbtXzbdldPC/1joGcvaCJpFTWVMxTummk 8uq8bNZlLbrZMqEK90QDpcdu98md4ysYkhNluC1aYcAUIF3t36FsRDRRmLyy1BhBvxgP sra2YJrXcqmqdYPzHbM16oCJQFZxAsFetRLFx7qxvBC4ReFLQOEm0i+XF0rqLUvU+p1Q UVkSvDBV+FPkv+Mwrwgdw6r3z6YdkAHdju/PMfv35975PlFxuEMr+YRPch7s/IkzQoAv 53LsGZr9WruEhGS3yqVQmiHS/37TzAYbzcUzV/cF+q3iYozRbtb5TNEMshEKedhJ+Soe EKAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5g2IGjDMm0o9VuaNQ5bMouz0dD4vMpsHcCzaBGocpPs=; b=0Kt9eLRG7lBhotEdXiVRWCcKJffOTcOyv4ZvgqxWKVozL81u4sxKQpBVFk02IZhihn Ee5yPQIIwjCvG0aRiBOaMV5s/AAjdPz5fyARdLtFjfvctCNe5U/ROn49lS8W93j+xHRv RtTJn1lhEBLyK+Br8wSVXd3rAWIuCNhJSKGMA0iIgpj3qM7Jl2Lssi3UJO7YuwC2LxjN hEJljyR0Mq1hIMPF1USG3z6H3hGyP5ZrasPoLGJYlM4yZfd3wH9cqarif+bZhMIesUkY ZiVqzNWVVPSIq6qhGtc0QNctaB9FAkVDlPhDyCdo96+fKTv82+y5ugxT+JykkJlG3Fd6 ZFMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="b0CKFH/q"; 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 d24-20020a50f698000000b004480a02d5f5si4874646edn.252.2022.09.22.07.05.55; Thu, 22 Sep 2022 07:06:22 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b="b0CKFH/q"; 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 S231843AbiIVNr2 (ORCPT + 99 others); Thu, 22 Sep 2022 09:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbiIVNq7 (ORCPT ); Thu, 22 Sep 2022 09:46:59 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4866B2CF9; Thu, 22 Sep 2022 06:46:32 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DAD356BE; Thu, 22 Sep 2022 15:46:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1663854390; bh=4PHTA7WJvRzkt2WYaKYBpZNp5g1S5sLG94TzQnuL42E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b0CKFH/qiOdwbJ0Nkzn8UvIK+aiNAKkFrGvXtEM9+s9f6ZosHkHM6IRKCgSzlFr++ e2gbTTwZmgpsZK9Fcj7KI164PtJu4cSKqLHQ4GTbxA9y3g6H80Bq0njmSsuFUijbQn O4wRK3mE4FMPpGha89+jx0AOJ+dUv0HWobaKNJX0= Date: Thu, 22 Sep 2022 16:46:15 +0300 From: Laurent Pinchart To: Krzysztof Kozlowski Cc: Lad Prabhakar , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Jacopo Mondi , Niklas =?utf-8?Q?S=C3=B6derlund?= , Sakari Ailus , Hans Verkuil , Geert Uytterhoeven , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das Subject: Re: [PATCH v2 2/4] media: dt-bindings: Document Renesas RZ/G2L CRU block Message-ID: References: <20220905230406.30801-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220905230406.30801-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <29d456ed-620c-8dc9-01f0-54f96b670b94@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Wed, Sep 21, 2022 at 08:58:26PM +0200, Krzysztof Kozlowski wrote: > On 21/09/2022 19:29, Laurent Pinchart wrote: > >>>>> + clock-names: > >>>>> + items: > >>>>> + - const: vclk > >>>>> + - const: pclk > >>>>> + - const: aclk > >>>> > >>>> Drop the "clk" suffixes. Remaining names could be made a bit more readable. > >>> > >>> These names come from the documentation, isn't it better to match the > >>> datasheet ? > >> > >> If datasheet calls it "vclk_really_clk_it_is_clk_clk", it's not the > >> reason to use it. :) > >> > >> The "clk" is redundant even if the hardware engineer thought different. > >> > >> The same for IRQs ("tx" not "txirq"), for dmas ("tx" not "txdma"). > > > > I'd argue that naming clocks "v", "p" and "a" would be less readable and > > more confusing. Is this a new rule ? > > Not really, but also it's only a style issue. > > Indeed "v" and "p" are not much better... but still "vclk" does not > bring any additional information over "v". It's redundant. > > You can also drop entire entry - unless it helps in particular > implementation. There are multiple clocks, so I think names are better than indices. If you really insist we could name them "v", "p" and "a", but I think the clk suffix here improves readability. If those clocks were named "videoclk", "pixelclk" and "axiclk" I'd be fine dropping the suffix, but that's not the case here. > https://lore.kernel.org/all/20220517175958.GA1321687-robh@kernel.org/ > https://lore.kernel.org/all/20210815133926.22860-1-biju.das.jz@bp.renesas.com/ > https://lore.kernel.org/all/YYFCaHI%2FDASUz+Vu@robh.at.kernel.org/ > https://lore.kernel.org/all/20220830182540.GA1797396-robh@kernel.org/ -- Regards, Laurent Pinchart