Re: [PATCH v3 0/5] iio: pressure: dps310: add Zilltek ZTS8032

From: Andy Shevchenko

Date: Thu Oct 15 2026 - 09:43:59 EST


On Thu, Oct 15, 2026 at 01:49:40PM +0300, Paulius Zaleckas wrote:
> The Zilltek ZTS8032 is a register compatible DPS310 with two more
> pressure calibration coefficients (c31, c40) and a different TMP_CFG
> layout.
>
> 1-2: Vendor prefix and the zilltek,zts8032 compatible.
> 3: Per-chip data in the I2C and ACPI match data, no functional change.
> 4: OF match table.
> 5: ZTS8032 chip data: the coefficient count, the TMP_CFG startup value,
> and a Horner step each for c40 and c31.
>
> Based on iio/testing, on top of a22dc7ebb21a ("iio: pressure: dps310:
> fix overflow in pressure compensation"). That fix replaces v2's patch 1,
> and patch 5 extends its Horner evaluation.
>
> There is no public ZTS8032 datasheet.
>
> Testing: ZTS8032 on an arm64 (MT7987) board, the series and a22dc7ebb21a
> backported to 6.12. in_pressure_input matches the datasheet formula
> evaluated from the raw and coefficient registers to within 1 Pa at every
> oversampling rate from 1 to 128, and TMP_CFG reads 0x00 after probe.
> Every patch builds without warnings with W=1 on x86_64 and i386,
> dt_binding_check passes. I have no DPS310, so patches 3-4 are untested
> on one.
>
> An LLM coding assistant (Claude Code) was used for this series: it
> ported the ZTS8032 support from the vendor driver, wrote the code and
> changelogs and the hardware test scripts, under my direction. I
> reviewed and tested the result.

I have a single nit-pick (but two patches might be updated), otherwise
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
for the whole series.

--
With Best Regards,
Andy Shevchenko