Re: [PATCH 2/4] dt-bindings: clock: add binding header for sf21-topcrm

From: Conor Dooley

Date: Sun May 17 2026 - 16:52:17 EST


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, and half the
time this number ends up changing anyway.

Also, squash this with the patch adding the clock binding.

Cheers,
Conor.


Attachment: signature.asc
Description: PGP signature