lkml.org 
[lkml]   [2022]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 2/4] media: dt-bindings: Document Renesas RZ/G2L CRU block
On Wed, Sep 21, 2022 at 05:51:29PM +0200, Krzysztof Kozlowski wrote:
> On 21/09/2022 14:43, Laurent Pinchart wrote:
> > On Thu, Sep 08, 2022 at 01:40:39PM +0200, Krzysztof Kozlowski wrote:
> >> On 06/09/2022 01:04, Lad Prabhakar wrote:
> >>> Document the CRU block found on Renesas RZ/G2L (and alike) SoCs.
> >>>
> >>> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> >>> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> >>
> >> Thank you for your patch. There is something to discuss/improve.
> >>
> >>> +properties:
> >>> + compatible:
> >>> + items:
> >>> + - enum:
> >>> + - renesas,r9a07g044-cru # RZ/G2{L,LC}
> >>> + - renesas,r9a07g054-cru # RZ/V2L
> >>> + - const: renesas,rzg2l-cru
> >>> +
> >>> + reg:
> >>> + maxItems: 1
> >>> +
> >>> + interrupts:
> >>> + maxItems: 3
> >>> +
> >>> + interrupt-names:
> >>> + items:
> >>> + - const: image_conv
> >>> + - const: image_conv_err
> >>> + - const: axi_mst_err
> >>> +
> >>> + clocks:
> >>> + items:
> >>> + - description: CRU Main clock
> >>> + - description: CPU Register access clock
> >>> + - description: CRU image transfer clock
> >>> +
> >>> + 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 ?

--
Regards,

Laurent Pinchart

\
 
 \ /
  Last update: 2022-09-21 19:31    [W:0.189 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site