Re: [PATCH v2 3/3] iio: adc: mt6359: fix MT6358 VBAT impedance resistance ratio

From: Ilia Snezhkov

Date: Thu Nov 26 2026 - 21:28:32 EST


Hi Roman,

Thanks for checking on MT6358. On our MT6366 board with the vendor
mt635x_auxadc driver, IMP reads the same raw value as BATADC (26737) and
converts at 3/1, so the divider itself is 3/1 — but comparing mainline
mt6359-auxadc.c against vendor mt635x_auxadc.c shows two differences that
likely explain the timeout you saw:

1. mt6359_auxadc_probe() unconditionally calls mt6359_auxadc_reset()
(pulsing PMIC_HK_TOP_RST_CON0 0x0f90 with 0x9), whereas the vendor
driver does not reset AUXADC at probe and relies on bootloader setup.
2. After pulsing HK_TOP_RST_CON0 (0x9 -> 0), the vendor reset table
(mt6358_rst_setting) also sets AUXADC_RQST0 |= 0x80 and
AUXADC_RQST1 |= 0x40, which mainline mt6359_auxadc_reset() omits; the
reset may also clear bootloader-initialized IMP0/IMP1 configuration
bits while mt6358_start_imp_conv() only sets DCM_CON (0x1260 |= 0x3)
and IMP1 (0x120a |= BIT(15)).

Since I do not have a mainline MT6358 regmap dump before/after that reset
to verify the root cause directly, I will drop patch 3/3 from v3 and send
only the Tested-by/Reviewed-by RQST0 fix.

Best regards,
Ilia