From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67D213128DF for ; Mon, 19 Oct 2026 08:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792398987; cv=none; b=DgydgJUJj9VJMFI/Mq3v+7SCsFKq1YyaiWMz6I9cBrXNT+xysyIdfyYMjeczESfgjJmLz1je2Tsqd7qGHEEgL+TOtuwmapF91RFZFguydp7Cq08Huu3l4junLWYuzfZ/t0uNCvSFUTkETviKahni2ezWz8Ue8ZGDYCn5hfy9V7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792398987; c=relaxed/simple; bh=fYRj8qFKNJXm1gWOar6pgdPbjVP6k3xNpTQTpY/uZrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M5ZjlGFU7mIGAtcMVMEvNOsvIOAmP7d5DIjgm99TTBNa+mPZfqP9aKCKSpeqq3ZChaC0HMJzjVuzidMHuCHqT7j8EsmTV4Tf4qs9a6OeYxp2Z7334UVru+JM1hqa8wsKsH5pciYCmEUXVlntt+GyO61xauhVwVlZh51I0xrpv8U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HDc0Jirf; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HDc0Jirf" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-c263415982eso202539566b.0 for ; Mon, 19 Oct 2026 01:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792398985; x=1793003785; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=UyIIKcOQE3LOkHo2Iikq4ClSniu9+AZmAOWlKwdcPZg=; b=HDc0Jirf8aXAXc09oa18l2P2kguyZN9J78VYn3DXXpclPy2Zj9KrWv6RBcJLMYMzNQ Gyr17bNM3RhTWcweQ+yIw3QAt6/22LDj8vaKRwLLdaR+REpxD6FCcBzVqx6o89Yuqq52 ZV/b+6f/KgFLWNDWrLtkHr/49jDntQ8k3TwAvDMgsG5RKU+dktg7w+OIJIaW3v6TVxsm grPw6S7fQfTx0oBPq0QDgcqNchSrD9UPhGZpPrdPfkJw+y581THA8B1K/ZbcYE3nb0JV 9QykkZVvaeGLzQJL5DZMbBUgQubnsh/Q7+pmRLgEpE/GjJ8oggQn8jxOnRLV4HLvgaXU MAWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792398985; x=1793003785; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=UyIIKcOQE3LOkHo2Iikq4ClSniu9+AZmAOWlKwdcPZg=; b=XGsZEcESxRDfb7aLz/kt/fqwHj8GhD5Hg/BFZTfgogmy4RbBAmYDjtopBhR+uVAPQt Pc6zsAaxllIA6+qyYxNY7TAc/TKqA2HePCRyLbhBa50AKKMVl19RIZ5e1h32c2gHy0LC UIINDgtkgHgT7wybUsubv/CazSBr9aDMrLm3VqFs6uzfo4fVflv5A0KsW8/tS7eD67BC eZbIxv0LuolJGbdpTOIKPu+WrUcpKtEbHEdRZYHwJVqan3jmDh4xi+ONQW9xqY80NcgG Y6cvvJW4DHjkrVFdBgAH1I2wWrouQM2PZKWfor+muohzuPddFvJi4KU8RjFwjEu/IjG+ dO5Q== X-Forwarded-Encrypted: i=1; AKwUvBypYj5uCLiouhWo9FA3VCfE3fZ2vCtPrhVrd6pSF9wBl6QnC3AcMg8dyH6MIaDZs2GygIk63HorCnGf@vger.kernel.org X-Gm-Message-State: AFq9FYIOKh6WJ8R0sEbGh5ZLIM6bF+JX+K5vW5t/rRGhPNHOKeZulvGJ nOPeDeBn2QaapAVAaeBbDJHcFjLJrVIuQJvrbIuBNsVhKNeVlUuzAJAj X-Gm-Gg: AYBFou2Fr2/2uS8gClGcWgpEKJF+1fUrL2KNm0bId1/6DjONxQaEard4bCn/H4vNRee DvNuWAq23cn8NM+PJiDem510ulsJ0FEaFBezEcJiqWz2RwIGb8yrOzOA5XV1+VrmvAoRmm10Cx6 6+1bsMx8ktYubVdw1jr1hRjYELFtNwxE7bnIzp8oOfSUB3JiTFaeVdNm2eGK3El2VaJHWycgjbu vpN6iqhYuzS+V3ejMNSiECGpPuUbfV1GurWSaKr5NxtcPaOYvpYhe2Q/5RF0G0dFHK5JIOK/MTq mRGJ/4GeOjzJRxmfA9jFKuSR24UF0LMLK2/JecyjhDa8VgMne4663ZsqewIW2OVmhvi9XCUalPX 7BJr5E2k/rR8R1Tkj9GIAZB4T33IPdpFzTNXY5AF315bDYAIMQ/RKp2cVEykWOEpzHbK/cPpRX1 ib8ntakPo8hUddphQIY/FWb4i6FzsW2tSP48t7twkwMYkcmgYSp/aZTZ5fqCa+Q1n/lSltg2uLZ F5oODuzxnOHgU4/WEFsZItBVUAAxhKkkTLX36LAxiILZ1RU761S59Eu2Gm4lD/e7FhDdJMl2Vlm zeVCwK0Xs60g+l1EikBEIiHPCPQ= X-Received: by 2002:a17:907:3e15:b0:c2e:808a:f78a with SMTP id a640c23a62f3a-c419f31b40emr481793566b.32.1792398984217; Mon, 19 Oct 2026 01:36:24 -0700 (PDT) Received: from M-K2012N0113010.localdomain ([88.119.128.229]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c4090dcf98fsm323106966b.13.2026.10.19.01.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 01:36:23 -0700 (PDT) From: Paulius Zaleckas To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Eddie James , Joel Stanley , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Andy Shevchenko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Joshua Crofts , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rupesh Majhi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paulius Zaleckas Subject: [PATCH v5 0/5] iio: pressure: dps310: add Zilltek ZTS8032 Date: Mon, 19 Oct 2026 11:36:15 +0300 Message-ID: <20261019083620.1285782-1-paulius.zaleckas@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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