Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH v5 0/1] thermal: thermal-generic-adc: add temp sensor function
@ 2025-04-30  5:58 Svyatoslav Ryhel
  2025-04-30  5:58 ` [PATCH v5 1/1] thermal: thermal-generic-adc: add temperature sensor channel Svyatoslav Ryhel
  0 siblings, 1 reply; 5+ messages in thread
From: Svyatoslav Ryhel @ 2025-04-30  5:58 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Jonathan Cameron, Svyatoslav Ryhel
  Cc: linux-pm, devicetree, linux-kernel

To avoid duplicating sensor functionality and conversion tables, this
design allows converting an ADC IIO channel's output directly into a
temperature IIO channel. This is particularly useful for devices where
hwmon isn't suitable or where temperature data must be accessible through
IIO.

One such device is, for example, the MAX17040 fuel gauge.

---
Changes on switching from v4 to v5:
- switched back to IIO_CHAN_INFO_PROCESSED
- dropped schema commit
- applied Jonathan Cameron code improvement suggestions

Changes on switching from v3 to v4:
- switch to use of RAW and SCALED channels to provide more accurate data

Changes on switching from v2 to v3:
- rephrased commit headers

Changes on switching from v1 to v2:
- documented #iio-channel-cells property
- switched to IIO_CHAN_INFO_PROCESSED
---

Svyatoslav Ryhel (1):
  thermal: thermal-generic-adc: add temperature sensor channel

 drivers/thermal/thermal-generic-adc.c | 55 ++++++++++++++++++++++++++-
 1 file changed, 54 insertions(+), 1 deletion(-)

-- 
2.48.1


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

end of thread, other threads:[~2025-08-24  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30  5:58 [PATCH v5 0/1] thermal: thermal-generic-adc: add temp sensor function Svyatoslav Ryhel
2025-04-30  5:58 ` [PATCH v5 1/1] thermal: thermal-generic-adc: add temperature sensor channel Svyatoslav Ryhel
2025-05-02  9:19   ` Jonathan Cameron
2025-05-05  8:56   ` Daniel Lezcano
2025-08-24  9:15     ` Svyatoslav Ryhel

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