iio: adc: axp20x: add support for NTC thermistor
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iio:adc:axp20x: add support for NTC thermistordrivers/ | +39 | 3 replies | |
| 2/2 | dt-bindings: iio: adc: document TS voltage in AXP PMICsDocumentation/ | +3 | 15 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Maxime Ripard | Rob Herring | Quentin Schulz |
|---|---|---|---|
| 1/2 | A-b | R-b R-b | |
| 2/2 | A-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.
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