Re: [PATCH 2/5] iio: adc: Add ti-ads1262 driver
From: Jonathan Cameron
Date: Sun Jun 21 2026 - 10:33:35 EST
On Mon, 15 Jun 2026 06:30:28 +0200
Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
> On 14/06/2026 22:56, Kurt Borja wrote:
> > On Sat Jun 13, 2026 at 1:59 PM -05, Krzysztof Kozlowski wrote:
> >
> > [...]
> >
> >> Functions used by probe() should be before probe(), not somewhere in the
> >> middle of the code. IOW, entire probe is together.
> >
> > I they all are, it's just that regmap stuff takes a huge chunk. I'll
> > check how to reorganize.
> >
> > [...]
> >
> >>> +static const struct of_device_id ads1262_of_match[] = {
> >>> + { .compatible = "ti,ads1262" },
> >>> + { .compatible = "ti,ads1263" },
> >>
> >> So devices are fully compatible? Then it should be expressed in the
> >> binding and drop one entry here.
> >
> > Not fully compatible as Jonathan said. One is a subset of the other.
>
> This is THE meaning of compatible!
This one I'm in agreement with. It is a strict subset, so should be
using a fallback. If the fallback is used, you just get support of the
stuff in the simpler chip (or if you can override it with a chip ID
you might still 'upgrade' to the more complex driver support).
If you do end up with properties that only apply to 'new' parts of
the more complex chip then they should be verified as part of the
binding (assuming you can do that without the verifier complaining
- I haven't checked!)
The SLF3F discussion is about (to me) less obvious case of not a strict
subset, but rather being detectable parts with different channel related
properties. In that case the ID match is necessary for anything to work.
Anyhow, that discussion is in a different thread and not really relevant
here.
Jonathan
>
>
> Best regards,
> Krzysztof