summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladyslav Ivashchenko <cactucatu4eckuu@gmail.com>2026-09-04 15:31:55 +0200
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-05 02:44:00 +0100
commit0f300db7b7315b2c7ea0e2d4437b88de162d191f (patch)
treee47c4ce3202a7ccf3b9f6b60519546ca916b32d7
parentda7c937e0abc86710e237e88bbaaff4a298e48d1 (diff)
downloadlinux-next-0f300db7b7315b2c7ea0e2d4437b88de162d191f.tar.gz
linux-next-0f300db7b7315b2c7ea0e2d4437b88de162d191f.zip
iio: adc: axp288: Add TS bias override for Haier HV103H
The Haier HV103H firmware configures the AXP288 TS pin bias current to 60 uA. This causes the battery temperature reading to cross the charging temperature threshold under load, incorrectly stopping battery charging. Setting the TS bias current to 80 uA fixes the temperature measurement and prevents charging from being incorrectly disabled. Add a DMI quirk to use the 80 uA TS bias current on the Haier HV103H. Fixes: 9bcf15f75cac ("iio: adc: axp288: Fix TS-pin handling") Fixes: 048058399f19 ("iio: adc: axp288: Override TS pin bias current for some models") # Add necessary infrastructure Signed-off-by: Vladyslav Ivashchenko <cactucatu4eckuu@gmail.com> Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com> Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
-rw-r--r--drivers/iio/adc/axp288_adc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
index c8283279c477..c98863d612ad 100644
--- a/drivers/iio/adc/axp288_adc.c
+++ b/drivers/iio/adc/axp288_adc.c
@@ -207,6 +207,14 @@ static const struct dmi_system_id axp288_adc_ts_bias_override[] = {
},
.driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA,
},
+ {
+ /* Haier HV103H */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Haier"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "HV103H"),
+ },
+ .driver_data = (void *)(uintptr_t)AXP288_ADC_TS_BIAS_80UA,
+ },
{ }
};