mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/5] iio: pressure: dps310: add Zilltek ZTS8032
@ 2026-10-19  8:36 Paulius Zaleckas
  2026-10-19  8:36 ` [PATCH v5 1/5] dt-bindings: vendor-prefixes: Add ZillTek Technology Paulius Zaleckas
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Paulius Zaleckas @ 2026-10-19  8:36 UTC (permalink / raw)
  To: Jonathan Cameron, linux-iio
  Cc: Eddie James, Joel Stanley, David Lechner, Nuno Sá,
	Andy Shevchenko, Andy Shevchenko, Uwe Kleine-König,
	Joshua Crofts, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Rupesh Majhi, devicetree, linux-kernel, Paulius Zaleckas

The Zilltek ZTS8032 is a register compatible DPS310 with two more
pressure calibration coefficients (c31, c40) and a different TMP_CFG
layout. The FIFO is the same as on the DPS310.

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 external sensor flag,
   and a Horner step each for c40 and c31.

Based on iio/testing (43ffda3c7f84), on top of the FIFO series.

There is no public ZTS8032 datasheet.

Testing: ZTS8032 on an arm64 (MT7987) board, with dps310.c from this
series 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. Buffered capture without a trigger runs through the FIFO
(CFG_REG reads 0x02 while enabled, 0x00 after) and returns the same
pressure and temperature as direct reads, with pressure only and with
both channels. 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.

Changes in v5:
- Rebase onto iio/testing with the FIFO series. The ZTS8032 FIFO is the
  same (FIFO_EN, 32 entries, FIFO_STS, RESET FIFO_FLUSH), so it needs no
  chip flag (Rupesh)
- Replace the tmp_cfg chip field with coef_for_ext_sensor and build the
  TMP_CFG startup value with FIELD_PREP() (Jonathan)
- Drop the TMP_CFG comment on the ZTS8032 chip data (Jonathan)
- Use get_unaligned_be16() for c31 and c40 (Jonathan)
- Link to v4: https://lore.kernel.org/r/20261016153533.3701000-1-paulius.zaleckas@gmail.com

Changes in v4:
- Rename DPS310_MAX_COEF_LEN to MAX_COEF_LEN, separated from the
  per-chip lengths by a blank line (Andy)
- Add Andy's and Joshua's Reviewed-by tags
- Link to v3: https://lore.kernel.org/r/20261015104945.2687162-1-paulius.zaleckas@gmail.com

Changes in v3:
- Drop v2 1/6, superseded by a22dc7ebb21a in iio/testing; rebase onto
  it and add c40 and c31 as Horner steps. This also covers the Sashiko
  overflow report on v2 1/6.
- C99 initializers for the ACPI ID (Andy, Uwe)
- Add DPS310_MAX_COEF_LEN in patch 3 and bump it in patch 5 (Andy)
- Parse c31/c40 based on a chip flag, not the coefficient count (Andy)
- List the supported sensors one per line in Kconfig (Andy)
- Link to v2: https://lore.kernel.org/r/20261013112124.1878296-1-paulius.zaleckas@gmail.com

Changes in v2:
- Split the driver patch into per-chip data, OF match table and
  ZTS8032 support (Andy)
- Drop the linux/mod_devicetable.h include (Andy, Uwe)
- Return -ENODATA when there is no match data (Andy)
- Add Conor's Acked-by to the bindings
- Link to v1: https://lore.kernel.org/r/20261012114550.1680054-1-paulius.zaleckas@ui.com

Paulius Zaleckas (5):
  dt-bindings: vendor-prefixes: Add ZillTek Technology
  dt-bindings: iio: pressure: infineon,dps310: Add Zilltek ZTS8032
  iio: pressure: dps310: add per-chip data
  iio: pressure: dps310: add an OF match table
  iio: pressure: dps310: add Zilltek ZTS8032 support

 .../iio/pressure/infineon,dps310.yaml         |  4 +-
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 drivers/iio/pressure/Kconfig                  |  6 +-
 drivers/iio/pressure/dps310.c                 | 80 ++++++++++++++++---
 4 files changed, 77 insertions(+), 15 deletions(-)


base-commit: 43ffda3c7f8456bbe641ae8249a077a361b97880
-- 
2.55.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-19 14:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19  8:36 [PATCH v5 0/5] iio: pressure: dps310: add Zilltek ZTS8032 Paulius Zaleckas
2026-10-19  8:36 ` [PATCH v5 1/5] dt-bindings: vendor-prefixes: Add ZillTek Technology Paulius Zaleckas
2026-10-19  8:36 ` [PATCH v5 2/5] dt-bindings: iio: pressure: infineon,dps310: Add Zilltek ZTS8032 Paulius Zaleckas
2026-10-19  8:36 ` [PATCH v5 3/5] iio: pressure: dps310: add per-chip data Paulius Zaleckas
2026-10-19  8:36 ` [PATCH v5 4/5] iio: pressure: dps310: add an OF match table Paulius Zaleckas
2026-10-19  8:36 ` [PATCH v5 5/5] iio: pressure: dps310: add Zilltek ZTS8032 support Paulius Zaleckas
2026-10-19 14:16 ` [PATCH v5 0/5] iio: pressure: dps310: add Zilltek ZTS8032 Rupesh Majhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®