Re: [PATCH v2 3/3] hwmon: (fs1603) Add driver for TDK FS160x and FS1006 uPOL converters
From: Kevin Jia
Date: Tue Oct 27 2026 - 19:22:24 EST
On Mon, Oct 26, 2026 at 03:04:45PM -0700, Guenter Roeck wrote:
> > +static const struct of_device_id fs1603_of_match[] = {
> > + { .compatible = "tdk,fs1603", .data = &fs1603_models[fs1603] },
> > + { .compatible = "tdk,fs1604", .data = &fs1603_models[fs1604] },
> > + { .compatible = "tdk,fs1606", .data = &fs1603_models[fs1606] },
> > + { .compatible = "tdk,fs1606-0600",
> > + .data = &fs1603_models[fs1606_0600] },
> > + { .compatible = "tdk,fs1606-2500",
> > + .data = &fs1603_models[fs1606_2500] },
> > + { .compatible = "tdk,fs1006-5000",
> > + .data = &fs1603_models[fs1006] },
> > + { .compatible = "tdk,fs1006-3300",
> > + .data = &fs1603_models[fs1006] },
>
> Why those extra compatibles ? I can see that -0600 and -2500 are
> needed, but the others could just use tdk,fs1606.
The FS1606 reports in 10 mV steps from a 300 mV base, while the FS1603,
FS1604 and FS1006 report in 20 mV steps from a 600 mV base, so they can't
use tdk,fs1606. They do encode telemetry the same way as each other, as
does the FS1606-2500.
So for v3, I'd like to move the bindings to a dedicated tdk,fs1603.yaml,
where the FS1604, FS1006-3300, FS1006-5000 and FS1606-2500 list
tdk,fs1603 as a fallback. The driver would then only match tdk,fs1603,
tdk,fs1606 and tdk,fs1606-0600, with three sets of model data. I'd also
drop the OCSet check and patch 1/3.
How does that sound? And is there anything else you'd like me to change
before I send v3?
Thanks,
Kevin