Re: [PATCH v4 3/3] soc: mediatek: mtk-pmic-pwrap: Add MT6789 support

From: Roman Vivchar

Date: Fri Nov 27 2026 - 13:12:50 EST


On Friday, November 27th, 2026 at 5:00 AM, Ilia Snezhkov via B4 Relay <devnull+iasnezhkov.gmail.com@xxxxxxxxxx> wrote:

> From: Arseniy Velikanov <me@xxxxxxxxxxx>
>
> Add PMIC-Wrapper support for the MediaTek MT6789 (Helio G99) SoC.
>
> MT6789 uses the PMIF-SPI arbiter interface with bank 3 interrupt
> registers (INT_EN at 0x450, INT_FLG at 0x458, INT_CLR at 0x45C, mask
> 0x180000) and WACS2 software interface at 0x880..0x8A8. Register offsets
> and wrapper parameters are verified on live MT6789 hardware (iKKO
> MindOne, MT6366 PMIC).
>
> Signed-off-by: Arseniy Velikanov <me@xxxxxxxxxxx>
> Signed-off-by: Ilia Snezhkov <iasnezhkov@xxxxxxxxx>
> ---
> Changes since v2:
> - Added PWRAP_INT_FLG (0x458) and PWRAP_INT_CLR (0x45C) matching bank 3
> PWRAP_INT_EN (0x450).

I don't see INT_FLG and INT_CLR in the 5.10 kernel [1]. Where did you
find them?

Also, the series doesn't apply on next-20261125. It might be due to
recent mt6572 changes. Please rebase.

[1] https://github.com/xiaomi-mt6789-devs/kernel_xiaomi-yunluo/blob/d92da041e3ad824c273877abeeeb07c145c37d02/drivers/soc/mediatek/mtk-pmic-wrap.c#L667

Best regards,
Roman