From: Alexandre Mergnat <amergnat@baylibre.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Thomas Gleixner <tglx@kernel.org>, Radu Rendec <radu@rendec.net>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-mediatek@lists.infradead.org,
Alexandre Mergnat <amergnat@baylibre.com>
Subject: [PATCH 1/2] dt-bindings: interrupt-controller: Add MT8196 SMMU wrapper
Date: Tue, 17 Nov 2026 17:31:04 +0000 [thread overview]
Message-ID: <20261117-mt8196-smmu-wrapper-v1-1-229f04d9f693@baylibre.com> (raw)
In-Reply-To: <20261117-mt8196-smmu-wrapper-v1-0-229f04d9f693@baylibre.com>
On MT8196, a MediaTek wrapper holds the integration settings of the
multimedia SMMUv3 and merges its interrupts into one GIC line.
Describe it as an interrupt controller, in its own node next to
the SMMU.
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
.../mediatek,mt8196-smmu-wp.yaml | 70 ++++++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 76 insertions(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt8196-smmu-wp.yaml b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt8196-smmu-wp.yaml
new file mode 100644
index 000000000000..b841d9d0e3fc
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt8196-smmu-wp.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/mediatek,mt8196-smmu-wp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek MT8196 SMMU Wrapper Interrupt Controller
+
+maintainers:
+ - Alexandre Mergnat <amergnat@baylibre.com>
+
+description:
+ The multimedia SMMUv3 of MT8196 is integrated with a wrapper block that
+ collects the interrupt outputs of the SMMU into a single interrupt line.
+ The wrapper latches each SMMU interrupt and keeps that line asserted
+ until the latched interrupts are acknowledged in the wrapper. The
+ wrapper also holds integration settings of the SMMU, such as clock
+ gating and system level cache attributes.
+
+properties:
+ compatible:
+ const: mediatek,mt8196-mm-smmu-wp
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ interrupt-controller: true
+
+ '#interrupt-cells':
+ const: 1
+ description: |
+ The SMMU interrupt source:
+ 0 - Global error
+ 1 - CMD_SYNC complete
+ 2 - Event queue not empty
+ 3 - PRI queue not empty
+ 4 - Performance monitor
+ 5 - RAS critical error
+ 6 - RAS error recovery
+ 7 - RAS fault handling
+
+ power-domains:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - interrupt-controller
+ - '#interrupt-cells'
+ - power-domains
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/power/mediatek,mt8196-power.h>
+
+ interrupt-controller@309e0000 {
+ compatible = "mediatek,mt8196-mm-smmu-wp";
+ reg = <0x309e0000 0x1000>;
+ interrupts = <GIC_SPI 477 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ power-domains = <&hfrpsys_hwv MT8196_POWER_DOMAIN_MM_INFRA1>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index fe23913b1e43..5cc65a753ad2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -17223,6 +17223,12 @@ F: Documentation/devicetree/bindings/memory-controllers/mediatek,smi*
F: drivers/memory/mtk-smi.c
F: include/soc/mediatek/smi.h
+MEDIATEK SMMU WRAPPER INTERRUPT CONTROLLER DRIVER
+M: Alexandre Mergnat <amergnat@baylibre.com>
+L: linux-mediatek@lists.infradead.org (moderated for non-subscribers)
+S: Maintained
+F: Documentation/devicetree/bindings/interrupt-controller/mediatek,mt8196-smmu-wp.yaml
+
MEDIATEK SWITCH DRIVER
M: Chester A. Unal <chester.a.unal@arinc9.com>
M: Daniel Golle <daniel@makrotopia.org>
--
2.43.0
next prev parent reply other threads:[~2026-11-17 17:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 17:31 [PATCH 0/2] Add MediaTek MT8196 SMMU wrapper interrupt controller Alexandre Mergnat
2026-11-17 17:31 ` Alexandre Mergnat [this message]
2026-12-01 2:50 ` [PATCH 1/2] dt-bindings: interrupt-controller: Add MT8196 SMMU wrapper Rob Herring (Arm)
2026-11-17 17:31 ` [PATCH 2/2] irqchip: Add MediaTek SMMU wrapper driver Alexandre Mergnat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261117-mt8196-smmu-wrapper-v1-1-229f04d9f693@baylibre.com \
--to=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=radu@rendec.net \
--cc=robh@kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®