Re: [PATCH v2 3/3] iio: adc: mt6359: fix MT6358 VBAT impedance resistance ratio
From: Roman Vivchar
Date: Thu Nov 26 2026 - 02:35:25 EST
On Thursday, November 26th, 2026 at 5:11 AM, Ilia Snezhkov via B4 Relay <devnull+iasnezhkov.gmail.com@xxxxxxxxxx> wrote:
> From: Ilia Snezhkov <iasnezhkov@xxxxxxxxx>
>
> On MT6358 (and MT6366), both BATADC and the battery impedance VBAT
> channel use a 3/1 voltage divider (5400 mV full scale with 1800 mV
> VREF). mt6358_auxadc_ch_desc[PMIC_AUXADC_CHAN_VBAT] erroneously uses
> 7/2 (copied from MT6359), over-reporting VBAT impedance readings by
> 16.7%.
>
> Change MT6358 VBAT r_ratio from 7/2 to 3/1 to match MT6358 BATADC and
> hardware.
>
> Fixes: 3587914bf61d ("iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC")
> Signed-off-by: Ilia Snezhkov <iasnezhkov@xxxxxxxxx>
> ---
Although this change looks correct to me, it's a no-op given that it's
not possible to read the channel.
~ # cat /sys/bus/iio/devices/iio:device0/in_voltage13_raw
cat: read error: Operation timed out
~ # [ 243.402155] mt6359-auxadc mt6359-auxadc: Resetting stuck ADC!
You might want to fix it in the previous patch.
Best regards,
Roman