[PATCH v3 0/4] soc/spi: mediatek: Add MT6789 PMIC wrapper and SPI support

From: Ilia Snezhkov via B4 Relay

Date: Wed Nov 25 2026 - 22:10:16 EST


This series continues the stalled July 2025 MediaTek MT6789 (Helio G99)
initial bring-up patches originally posted by Arseniy Velikanov (on CC):
- pwrap v1: https://lore.kernel.org/linux-mediatek/20250715225746.1321-1-me@xxxxxxxxxxx/
- spi v1: https://lore.kernel.org/linux-mediatek/20250715231921.4527-1-me@xxxxxxxxxxx/

Original authorship and Signed-off-by are preserved on patches 1, 3,
and 4.

Changes since v2:
- Patch 2 (new): guard PWRAP_WDT_SRC_EN, PWRAP_WDT_SRC_EN_1, and cold
pwrap_init() with !HAS_CAP(wrp->master->caps, PWRAP_CAP_ARB) so
arbiter SoCs (MT6873, MT8195, MT6789) do not write wdt_src to offset
0x0 (PWRAP_INIT_DONE2) during probe.
- Patch 3 (was 2/3): add [PWRAP_INT_FLG] = 0x458 and
[PWRAP_INT_CLR] = 0x45C to mt6789_regs[] matching PMIF-SPI bank 3
(INT_EN at 0x450, int_en_all = 0x180000) so pwrap_interrupt() does
not clobber offset 0x0 and leave a level-high IRQ asserted.
- Patch 4 (was 3/3): renumbered to 4/4, unchanged.

The v3 rebase and fixes were prepared with an AI coding assistant.

Base: torvalds/linux master 4dce97c6c265.

Arseniy Velikanov (3):
dt-bindings: soc: mediatek: pwrap: Add compatible for MT6789
soc: mediatek: mtk-pmic-pwrap: Add MT6789 support
dt-bindings: spi: mediatek,spi-mt65xx: Add compatible for MT6789

Ilia Snezhkov (1):
soc: mediatek: mtk-pmic-pwrap: Skip WDT source and init on arbiter SoCs

.../bindings/soc/mediatek/mediatek,pwrap.yaml | 1 +
.../bindings/spi/mediatek,spi-mt65xx.yaml | 4 +++
drivers/soc/mediatek/mtk-pmic-wrap.c | 44 ++++++++++++++++---
3 files changed, 43 insertions(+), 6 deletions(-)

--
2.54.0 (Apple Git-157)