[PATCH 2/4] dt-bindings: clock: add binding header for sf21-topcrm
Chuanhong Guo
gch981213 at gmail.com
Mon May 18 04:42:43 PDT 2026
On Mon, May 18, 2026 at 4:52 AM Conor Dooley <conor at kernel.org> wrote:
>
> On Sun, May 17, 2026 at 09:47:26PM +0100, Conor Dooley wrote:
> > On Sun, May 17, 2026 at 10:12:56PM +0800, Chuanhong Guo wrote:
> > > +#define SF21_CLK_PCIE_REFP 30
> > > +#define SF21_CLK_MAX 31
> >
> > > +#define SF21_RESET_IROM 17
> > > +#define SF21_RESET_MAX 18
> >
> >
> > Having _MAX is not permitted, but is also really confusing that "max"
> > appears to be max+1, so actually represents the count not the max?
>
> To be clear, if you need a define like this, put it in the driver.
> Bindings having a "_MAX" or "NUM_CLKS" doesn't make sense,
Sure. I'll move it to the driver and rename it in v2.
> and half the
> time this number ends up changing anyway.
This one will definitely change later for the two clocks I can't test yet.
> Also, squash this with the patch adding the clock binding.
OK. I'll do so in v2.
--
Regards,
Chuanhong Guo
More information about the linux-riscv
mailing list