Skip to content

soc/spi: mediatek: Add MT6789 PMIC wrapper and SPI support

Ilia Snezhkov b4-sent linux-arm-kernel linux-devicetree linux-mediatek linux-spi lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v23 patches 1 replySuperseded

Changes in v3 from the cover letter

- 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.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: soc: mediatek: pwrap: Add compatible for MT6789Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml+1 -00 replies
2/4soc: mediatek: mtk-pmic-pwrap: Skip WDT source and init on arbiter SoCsdrivers/soc/mediatek/mtk-pmic-wrap.c+12 -90 replies
3/4soc: mediatek: mtk-pmic-pwrap: Add MT6789 supportdrivers/soc/mediatek/mtk-pmic-wrap.c+29 -00 replies
4/4dt-bindings: spi: mediatek,spi-mt65xx: Add compatible for MT6789Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml+4 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/4A-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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

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/[email protected]/
- spi v1: https://lore.kernel.org/linux-mediatek/[email protected]/

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(-)
Signature · 1 line
2.54.0 (Apple Git-157)