Hi Prabhakar, On Thu, May 30, 2024 at 12:00 PM Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > On Thu, May 30, 2024 at 8:12 AM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote: > > On Wed, May 29, 2024 at 11:10 PM Lad, Prabhakar > > <prabhakar.csengg@xxxxxxxxx> wrote: > > > On Mon, May 27, 2024 at 10:18 AM Geert Uytterhoeven > > > <geert@xxxxxxxxxxxxxx> wrote: > > > > On Fri, May 24, 2024 at 10:29 AM Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote: > > > > > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx> > > > > > > > > > > Define RZ/V2H(P) (R9A09G057) Clock Pulse Generator module clock outputs > > > > > (CPG_CLK_ON* registers), and reset definitions (CPG_RST_* registers) > > > > > in Section 4.4.2 and 4.4.3 ("List of Clock/Reset Signals") of the RZ/V2H(P) > > > > > Hardware User's Manual (Rev.1.01, Feb. 2024). > > > > > > > > > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx> > > > > > > > > > --- /dev/null > > > > > +++ b/include/dt-bindings/clock/r9a09g057-cpg.h > > > > > @@ -0,0 +1,644 @@ > > > > > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > > + * > > > > > + * Copyright (C) 2024 Renesas Electronics Corp. > > > > > + */ > > > > > +#ifndef __DT_BINDINGS_CLOCK_R9A09G057_CPG_H__ > > > > > +#define __DT_BINDINGS_CLOCK_R9A09G057_CPG_H__ > > > > > + > > > > > +#include <dt-bindings/clock/renesas-cpg-mssr.h> > > > > > + > > > > > +/* Clock list */ > > > > > > > > No distinction between Core and Module clocks? > > > > > > > I was in two minds here. Would you prefer clocks with no CGC support > > > to be listed as core clocks? > > > > What's CGC support? (Obviously I need some more reading before > > I can tackle the rest of this series :-) > > > I meant the clocks which cannot be controlled by the CPG_CLKON_m > register. Shall I add them as CORE clocks? If you don't need to refer to these clocks from DT, there is no need to add them to the bindings header file. > > My comments are due to the bindings saying: > > > > '#clock-cells': > > description: | > > - For CPG core clocks, the two clock specifier cells must be "CPG_CORE" > > and a core clock reference, as defined in > > <dt-bindings/clock/r9a09g057-cpg.h>, > > - For module clocks, the two clock specifier cells must be "CPG_MOD" and > > a module number, as defined in <dt-bindings/clock/r9a09g057-cpg.h>. > > const: 2 > > > > while the header file does not make it obvious whether a clock needs > > CPG_CORE or CPG_MOD. > > > I was intending to drop the CPG_CORE description in the next version. OK. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx 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