Re: [PATCH] iio: adc: axp288: Add TS bias override for Haier HV103H

From: Hans de Goede

Date: Fri Sep 04 2026 - 16:04:39 EST


Hi,

On 4-Sep-26 3:31 PM, Vladyslav Ivashchenko wrote:
> 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.
>
> Signed-off-by: Vladyslav Ivashchenko <cactucatu4eckuu@xxxxxxxxx>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <johannes.goede@xxxxxxxxxxxxxxxx>

Regards,

Hans


> ---
> drivers/iio/adc/axp288_adc.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/iio/adc/axp288_adc.c b/drivers/iio/adc/axp288_adc.c
> index c8283279c47..c98863d612a 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,
> + },
> { }
> };
>