lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251008100713.1198461-1-lakshay.piplani@nxp.com>
Date: Wed,  8 Oct 2025 15:37:11 +0530
From: Lakshay Piplani <lakshay.piplani@....com>
To: linux-kernel@...r.kernel.org,
	linux-iio@...r.kernel.org,
	jic23@...nel.org,
	dlechner@...libre.com,
	nuno.sa@...log.com,
	andy@...nel.org,
	marcelo.schmitt1@...il.com,
	gregkh@...uxfoundation.org,
	viro@...iv.linux.org.uk,
	peterz@...radead.org,
	jstephan@...libre.com,
	robh@...nel.org,
	krzk+dt@...nel.org,
	conor+dt@...nel.org,
	devicetree@...r.kernel.org
Cc: jdelvare@...e.com,
	linux@...ck-us.net,
	vikash.bansal@....com,
	priyanka.jain@....com,
	shashank.rebbapragada@....com,
	Lakshay Piplani <lakshay.piplani@....com>
Subject: [PATCH v4 0/2] iio: temperature: Add support for NXP P3T175x temperature sensors

This patch adds support for the P3T1750/P3T1755 temperature sensors under the IIO subsystem.

P3T1750/P3T1755 support two operational modes:
1. Comparator Mode
2. Interrupt (Latched) Mode

The HWMON subsystem is more suitable for implementing drivers for comparator mode operations.
Reason:
  - Temperature thresholds can be polled and exposed via sysfs.
  - Register reads do not clear status, allowing safe alarm state derivation.
  - Matches existing drivers under hwmon.

The IIO subsystem is more suitable for implementing drivers for interrupt (latched) mode operations.
Reason:
  - Interrupt mode uses edge-triggered ALERT/IBI signal interrupts, which can be pushed to user space using iio_push_event.
  - IIO’s event API (IIO_EV_TYPE_THRESH) supports timestamped rising/falling edge events.
  - I3C IBI integration maps naturally to IIO’s event push model.
  - No persistent alarm bits are available; so polling in HWMON may result in  missing events.

This patch adds interrupt mode support under IIO while leaving comparator mode support in hwmon untouched.
The split reflects the sensor’s dual behavior and aligns with subsystem semantics.

Changes since v3:
  - Added cover letter for the first time.
  - Updated commit message to clarify P3T1750 vs P3T1755 difference.
  - Minor cleanups and style fixes.

Thanks for your time and review.
-------------------------------------------------

Lakshay Piplani (2):
  dt-bindings: iio: temperature: Add NXP P3T175x support
  iio: temperature: Add driver for NXP P3T175x temperature sensor

 .../bindings/iio/temperature/nxp,p3t1755.yaml |  62 +++
 drivers/iio/temperature/Kconfig               |   2 +
 drivers/iio/temperature/p3t/Kconfig           |  28 ++
 drivers/iio/temperature/p3t/Makefile          |   5 +
 drivers/iio/temperature/p3t/p3t1755.h         |  45 +++
 drivers/iio/temperature/p3t/p3t1755_core.c    | 363 ++++++++++++++++++
 drivers/iio/temperature/p3t/p3t1755_i2c.c     |  67 ++++
 drivers/iio/temperature/p3t/p3t1755_i3c.c     | 108 ++++++
 8 files changed, 680 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/temperature/nxp,p3t1755.yaml
 create mode 100644 drivers/iio/temperature/p3t/Kconfig
 create mode 100644 drivers/iio/temperature/p3t/Makefile
 create mode 100644 drivers/iio/temperature/p3t/p3t1755.h
 create mode 100644 drivers/iio/temperature/p3t/p3t1755_core.c
 create mode 100644 drivers/iio/temperature/p3t/p3t1755_i2c.c
 create mode 100644 drivers/iio/temperature/p3t/p3t1755_i3c.c

-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ