[PATCH v4 0/5] SPMI: MediaTek: Add support for multi-bus

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Fri Oct 24 01:32:42 PDT 2025


Changes in v4:
 - Refactored IRQ domain handling due to deprecation of function
   irq_domain_add_tree() to use the new irq_domain_create_tree()
 - Added .irq_eoi() callback for rcs_irq as that better reflects
   the actual functionality of this interrupt controller (as its
   SLV_x_y_EINT registers are really signaling "EOI", not "ACK")
 - Fixed to use generic_handle_domain_irq_safe() to avoid races
 - Tested again on MT8196 Chromebook

Changes in v3:
 - Added Fixes tag to commit 3, collected R-b tag from wenst

Changes in v2:
 - Fixed indentation error in dt-bindings

This series adds basic support for multi-bus (multi-master) SPMI
controllers, as found in the MediaTek MT8196 Chromebook SoC and
the MediaTek MT6991 Dimensity 9400 Smartphone SoC, including RCS
interrupt handling and per-bus registration.

AngeloGioacchino Del Regno (5):
  dt-bindings: spmi: Add MediaTek MT8196 SPMI 2 Arbiter/Controllers
  spmi: mtk-pmif: Add multi-bus support for SPMI 2.0
  spmi: mtk-pmif: Keep spinlock until read is fully done
  spmi: mtk-pmif: Implement Request Capable Slave (RCS) interrupt
  spmi: mtk-pmif: Add support for MT8196 SPMI Controller

 .../bindings/spmi/mediatek,mt8196-spmi.yaml   | 138 +++++
 drivers/spmi/spmi-mtk-pmif.c                  | 472 +++++++++++++++---
 2 files changed, 530 insertions(+), 80 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spmi/mediatek,mt8196-spmi.yaml

-- 
2.51.1




More information about the Linux-mediatek mailing list