Re: [PATCH net-next v16 03/13] dt-bindings: dpll: add SiTime SiT95316 clock generator

From: Ali Rouhi

Date: Tue Dec 01 2026 - 18:54:02 EST


On Tue, 24 Nov 2026 00:40:38 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:

> > + maxItems: 1
> > + description:
> > + The rate wired to the input, in Hz, as a single entry. An
> > + input runs at the rate the board feeds it and has no
> > + frequency to select, so that entry is what the pin reports
> > + as its frequency.
>
> [Severity: Low]
> Should this binding state the cell width of supported-frequencies-hz?
>
> The shared definition in dpll-pin.yaml has no type:
>
> supported-frequencies-hz:
> description: List of supported frequencies for this pin, expressed in Hz.
>
> The only other binding that uses it, microchip,zl30731.yaml, writes it
> as 64-bit:
>
> supported-frequencies-hz = /bits/ 64 <1>;
>
> zl3073x_pin_props_get() in drivers/dpll/zl3073x/prop.c reads it with
> fwnode_property_count_u64().
>
> The example in this binding uses 32-bit cells. The sit9531x driver added
> later in this series reads the property with fwnode_property_count_u32()
> and fwnode_property_read_u32_array().
>
> A DTB does not record cell width. So a sitime node written the zl30731
> way, for example:
>
> supported-frequencies-hz = /bits/ 64 <10000000>;
>
> would be read by the sit9531x driver as two u32 entries, [0, 10000000].
>
> For an input pin, the driver takes the pin rate from freqs[0], so the
> pin would report 0 Hz. For an output pin, an extra 0 Hz entry would be
> advertised. Output pins have no maxItems limit, so validation would not
> catch that case.
>
> Could the encoding be stated here, for example with a uint32-array $ref
> or a note in the per-pin description? Or could the type be fixed once in
> dpll-pin.yaml, so the two DPLL bindings don't use different encodings
> without saying so?

Yes. In v17 the description says each rate is one 32-bit cell, the
convention for -hz properties, and patch 5 refuses a 0 Hz entry, which
is what a rate written in 64-bit cells gives.