Skip to content

iio: adc: axp20x: add support for NTC thermistor

Evgeny Boger linux-devicetree linux-iio linux-pm linux-sunxi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio:adc:axp20x: add support for NTC thermistordrivers/iio/adc/axp20x_adc.c+39 -63 replies
2/2dt-bindings: iio: adc: document TS voltage in AXP PMICsDocumentation/devicetree/bindings/iio/adc/x-powers,axp209-adc.yaml+3 -015 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMaxime RipardRob HerringQuentin Schulz
1/2A-b R-b R-b
2/2A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] iio: adc: axp20x: add support for NTC thermistor

Most AXPxxx-based reference designs place a 10k NTC thermistor on a TS pin. When appropriately configured, AXP PMICs will inject fixed current (80uA by default) into TS pin and measure the voltage across a thermistor. The PMIC itself will by default compare this voltage with predefined thresholds and disable battery charging whenever the battery is too hot or too cold.

Alternatively, the TS pin can be configured as general-purpose ADC input. This mode is not supported by the driver.

This patch series allows reading the voltage on the TS pin. The voltage can be then either processed by userspace or used by kernel consumer like hwmon ntc thermistor driver.

Evgeny Boger (2):
iio:adc:axp20x: add support for NTC thermistor
dt-bindings: iio: adc: document TS voltage in AXP PMICs

 .../bindings/iio/adc/x-powers,axp209-adc.yaml |  3 ++
 drivers/iio/adc/axp20x_adc.c                  | 45 ++++++++++++++++---
 2 files changed, 42 insertions(+), 6 deletions(-)
Signature · 1 line
2.25.1