soc/spi: mediatek: Add MT6789 PMIC wrapper and SPI support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dt-bindings: soc: mediatek: pwrap: Add compatible for MT6789Documentation/ | +1 | 0 replies | |
| 2/4 | soc: mediatek: mtk-pmic-pwrap: Skip WDT source and init on arbiter SoCsdrivers/ | +12 | 0 replies | |
| 3/4 | soc: mediatek: mtk-pmic-pwrap: Add MT6789 supportdrivers/ | +29 | 0 replies | |
| 4/4 | dt-bindings: spi: mediatek,spi-mt65xx: Add compatible for MT6789Documentation/ | +4 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Rob Herring (Arm) |
|---|---|
| 1/4 | A-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.
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)