[PATCH v2 2/3] iio: adc: mt6359: fix MT6357 ISENSE/VCDT and MT6358 VCDT request bits

Roman Vivchar rva333 at protonmail.com
Wed Nov 25 23:32:53 PST 2026


On Thursday, November 26th, 2026 at 5:11 AM, Ilia Snezhkov via B4 Relay <devnull+iasnezhkov.gmail.com at kernel.org> wrote:

> From: Ilia Snezhkov <iasnezhkov at gmail.com>
> 
> mt6357_auxadc_ch_desc[] sets req_bit to 0 for both ISENSE and VCDT, and
> mt6358_auxadc_ch_desc[] sets req_bit to 0 for VCDT. Bit 0 of
> PMIC_AUXADC_RQST0 triggers BATADC (ADC0) rather than ISENSE (ADC1) or
> VCDT (ADC2), so polling the ready bit of ADC1/ADC2 times out unless the
> channel was triggered externally.
> 
> Use the actual hardware request bits in PMIC_AUXADC_RQST0: bit 1 for
> MT6357 ISENSE and bit 2 for MT6357/MT6358 VCDT (matching MT6363 VCDT
> and the MediaTek PMIC AUXADC hardware registers).
> 
> Fixes: 3587914bf61d ("iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC")
> Signed-off-by: Ilia Snezhkov <iasnezhkov at gmail.com>
> ---

VCDT timeout is gone.

Tested-by: Roman Vivchar <rva333 at protonmail.com> # mt6358
Reviewed-by: Roman Vivchar <rva333 at protonmail.com>

Best regards,
Roman



More information about the linux-arm-kernel mailing list