power: supply: max1720x: add support for reading internal and thermistor temperatures
authorDimitri Fedrau <dimitri.fedrau@liebherr.com>
Thu, 16 Jan 2025 08:04:29 +0000 (09:04 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 17 Jan 2025 21:33:04 +0000 (22:33 +0100)
commitb4a95b8fd3e67c1222c76bdd1078d43c9a11d132
treeadda98dd40e649c3f409fdba83748192b81ebeb1
parent92c71aa1a8942057e228c09d37f8513abbab5fea
power: supply: max1720x: add support for reading internal and thermistor temperatures

If enabled in the nPackCfg register, the Temp1, Temp2 and IntTemp registers
contain the temperature readings from the AIN1 thermistor, AIN2 thermistor
and internal die temperature respectively. Registers are shared between SBS
and normal IC functions and are always readable regardless of IC settings.

Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Link: https://lore.kernel.org/r/20250116-max1720x-temperature-v2-1-9638969d091a@liebherr.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/ABI/testing/sysfs-class-power-max1720x [new file with mode: 0644]
drivers/power/supply/max1720x_battery.c