Re: [PATCH v3 2/3] dt-bindings: iio: flow: add Sensirion SLF3S liquid flow sensor
From: Wadim Mueller
Date: Wed Jun 03 2026 - 10:15:05 EST
On Mon, 1 Jun 2026 15:09:59 +0100
Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> > And here something else. Confusing. Didn't you say device variants are
> > auto-detectable? So you have only one compatible sensirion,slf3s.
>
> And then future fallback compatibles can never work. [...] this is why
> generic compatibles are almost always the wrong way to go. If we get a
> future part with an unknown ID and don't have these existing specific
> compatibles, then we have no way to specify which one it is compatible
> with. [...] Note for this type of device I absolutely expect there to be
> future parts with different IDs and same ranges as here [...]
The scale comes from the detected sub-type and
there is no real feature discovery, only the opaque product-id. So for a
future part a generic-only compatible would give the right driver but the
wrong scale. For me the per-variant compatibles are the safer way.
Krzysztof, is this ok for you, or you still want the single generic one?
Wadim