[PATCH 1/6] dt-bindings: interrupt-controller: Add NXP S32N79 MRU MSI controller
From: Ghennadi Procopciuc via B4 Relay
Date: Fri Dec 04 2026 - 07:57:48 EST
From: Ghennadi Procopciuc <ghennadi.procopciuc@xxxxxxxxxxx>
Add the binding for the Message Receive Unit (MRU) MSI controller found on
the NXP S32N79 SoC.
On S32N79, a hardware erratum prevents the MSI writes of the integrated
NETC endpoints from being translated by the GIC ITS. The MSIs of these
endpoints are therefore targeted at the mailboxes of MRU instances, and
the MRUs raise GIC SPIs on their behalf.
An MRU instance has a 64 KiB page with the channel controls, followed by
one 64 KiB mailbox page per channel. A write to the first mailbox of a
channel raises the channel interrupt, and the channel interrupts of an
instance are ORed into one GIC SPI. Each reg entry covers the control page
and the mailbox pages, because the mailboxes are the MSI targets.
The node groups up to 32 MRU instances into a single MSI controller, with
one register region and one SPI per instance. One node per instance with
a list of msi-parent entries does not work: the vectors of a PCI function
come from a single MSI parent domain, and that domain has to span all the
instances so that consecutive vectors land on different SPIs.
marvell,odmi-controller.yaml describes its frames the same way.
The other MRU instances of the SoC are mailboxes of other subsystems,
such as the FSS and the other cohorts, and are not part of the node.
The MSI specifier is empty, because the MRU does not use the requester ID
of the device, so #msi-cells is required and must be 0.
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@xxxxxxxxxxx>
---
.../interrupt-controller/nxp,s32n79-mru-msi.yaml | 86 ++++++++++++++++++++++
1 file changed, 86 insertions(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/nxp,s32n79-mru-msi.yaml b/Documentation/devicetree/bindings/interrupt-controller/nxp,s32n79-mru-msi.yaml
new file mode 100644
index 000000000000..a24dbe1bbd93
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/nxp,s32n79-mru-msi.yaml
@@ -0,0 +1,86 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/nxp,s32n79-mru-msi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP S32N79 Message Receive Unit (MRU) MSI controller
+
+maintainers:
+ - Ghennadi Procopciuc <ghennadi.procopciuc@xxxxxxxxxxx>
+
+description: |
+ The Message Receive Unit (MRU) has a set of channels, each with its own
+ mailbox page. A write to the first mailbox of a channel raises the
+ interrupt of that channel. On S32N79, the channel interrupts of an MRU
+ instance are ORed into a single GIC SPI.
+
+ This binding groups the MRU instances reserved for this use into one MSI
+ controller, so that PCIe endpoints can target the mailboxes with MSI and
+ MSI-X writes. The S32N79 integrated NETC endpoints need it, because a
+ hardware erratum keeps their MSI writes from being translated by the GIC
+ ITS.
+
+ All the instances are described in a single node, with one reg and one
+ interrupts entry per instance, so that the vectors of one PCI function
+ can be spread over the instances and therefore over different SPIs.
+
+allOf:
+ - $ref: /schemas/interrupt-controller/msi-controller.yaml#
+
+properties:
+ compatible:
+ const: nxp,s32n79-mru-msi
+
+ reg:
+ minItems: 1
+ maxItems: 32
+ description:
+ Register space of each MRU instance, covering the channel control page
+ and the mailbox pages.
+
+ interrupts:
+ minItems: 1
+ maxItems: 32
+ description:
+ SPI of each MRU instance, in the same order as the reg entries.
+
+ msi-controller: true
+
+ "#msi-cells":
+ const: 0
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - msi-controller
+ - "#msi-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ msi-controller@40a40000 {
+ compatible = "nxp,s32n79-mru-msi";
+ msi-controller;
+ #msi-cells = <0>;
+ reg = <0x40a40000 0x40000>,
+ <0x40a80000 0x40000>,
+ <0x40ac0000 0x40000>,
+ <0x40b00000 0x40000>,
+ <0x41a40000 0x40000>,
+ <0x41a80000 0x40000>,
+ <0x41ac0000 0x40000>,
+ <0x41b00000 0x40000>;
+ interrupts = <GIC_SPI 705 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 706 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 707 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 708 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 735 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 736 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 737 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 738 IRQ_TYPE_LEVEL_HIGH>;
+ };
--
2.43.0