From: Stefano Radaelli <stefano.radaelli21@gmail.com>
To: Frank Li <Frank.Li@nxp.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org
Cc: pierluigi.p@variscite.com,
Stefano Radaelli <stefano.r@variscite.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Subject: [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support
Date: Mon, 23 Nov 2026 13:49:46 +0100 [thread overview]
Message-ID: <20261123124946.13887-1-stefano.r@variscite.com> (raw)
From: Stefano Radaelli <stefano.r@variscite.com>
Add a Cortex-M7 configuration for DART-MX95 on Sonata.
Place the reserved memory, remoteproc and MU7 configuration in a common
include so other carrier boards using Variscite i.MX95 modules can add
M7 variants by reusing this configuration and providing their own
peripheral assignments in a board overlay.
Add a Sonata overlay and a combined -m7 DTB for remoteproc and RPMsg
support, enabling MU7 only in the M7 configuration.
Reserve eDMA1, eDMA2, FlexCAN1, LPI2C4, LPUART3 and LPUART8 for the remote
firmware. Use PIO for the remaining active I2C, SPI and UART controllers,
and disable SAI3 and its sound card because eDMA2 is unavailable to Linux.
Signed-off-by: Stefano Radaelli <stefano.r@variscite.com>
---
This patch depends on both of the following commits, which are already
present in linux-next:
- ebb21cc5d1c0 ("dt-bindings: remoteproc: imx_rproc: Document
memory-region-names to avoid implicit ABI")
- 8396089f91fa ("remoteproc: imx_rpoc: Use memory-region-names to avoid
implicit ABI")
arch/arm64/boot/dts/freescale/Makefile | 5 ++
.../dts/freescale/imx95-var-common-m7.dtsi | 72 +++++++++++++++++++
.../freescale/imx95-var-dart-sonata-m7.dtso | 69 ++++++++++++++++++
.../boot/dts/freescale/imx95-var-dart.dtsi | 4 --
4 files changed, 146 insertions(+), 4 deletions(-)
create mode 100644 arch/arm64/boot/dts/freescale/imx95-var-common-m7.dtsi
create mode 100644 arch/arm64/boot/dts/freescale/imx95-var-dart-sonata-m7.dtso
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index 4b2081a3290b..aa78f02fdef7 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -989,7 +989,12 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-toradex-smarc-dev-ser0-mcu.dtb
dtb-$(CONFIG_ARCH_MXC) += imx95-toradex-smarc-dev.dtb
dtb-$(CONFIG_ARCH_MXC) += imx95-tqma9596la-mba95xxca.dtb
dtb-$(CONFIG_ARCH_MXC) += imx95-tqma9596sa-mb-smarc-2.dtb
+
+imx95-var-dart-sonata-m7-dtbs := imx95-var-dart-sonata.dtb imx95-var-dart-sonata-m7.dtbo
dtb-$(CONFIG_ARCH_MXC) += imx95-var-dart-sonata.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx95-var-dart-sonata-m7.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx95-var-dart-sonata-m7.dtbo
+
dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-nonwifi-dahlia.dtb
dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-nonwifi-dev.dtb
dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-nonwifi-ivy.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx95-var-common-m7.dtsi b/arch/arm64/boot/dts/freescale/imx95-var-common-m7.dtsi
new file mode 100644
index 000000000000..21e89092de9e
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx95-var-common-m7.dtsi
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Common Cortex-M7 configuration for Variscite i.MX95 modules
+ *
+ * Copyright (C) 2026 Variscite Ltd. - https://www.variscite.com/
+ *
+ */
+
+&{/} {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ m7_reserved: memory@80000000 {
+ reg = <0 0x80000000 0 0x1000000>;
+ no-map;
+ };
+
+ vdev0vring0: memory@88000000 {
+ reg = <0 0x88000000 0 0x8000>;
+ no-map;
+ };
+
+ vdev0vring1: memory@88008000 {
+ reg = <0 0x88008000 0 0x8000>;
+ no-map;
+ };
+
+ vdev1vring0: memory@88010000 {
+ reg = <0 0x88010000 0 0x8000>;
+ no-map;
+ };
+
+ vdev1vring1: memory@88018000 {
+ reg = <0 0x88018000 0 0x8000>;
+ no-map;
+ };
+
+ vdev0buffer: memory@88020000 {
+ compatible = "shared-dma-pool";
+ reg = <0 0x88020000 0 0x100000>;
+ no-map;
+ };
+
+ rsc_table: memory@88220000 {
+ reg = <0 0x88220000 0 0x1000>;
+ no-map;
+ };
+ };
+
+ remoteproc-cm7 {
+ compatible = "fsl,imx95-cm7";
+ mbox-names = "tx", "rx", "rxdb";
+ mboxes = <&mu7 0 1
+ &mu7 1 1
+ &mu7 3 1>;
+ memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>,
+ <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>,
+ <&m7_reserved>;
+ memory-region-names = "vdev0buffer", "vdev0vring0", "vdev0vring1",
+ "vdev1vring0", "vdev1vring1", "rsc-table",
+ "m7-reserved-ddr";
+ };
+};
+
+&mu7 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/freescale/imx95-var-dart-sonata-m7.dtso b/arch/arm64/boot/dts/freescale/imx95-var-dart-sonata-m7.dtso
new file mode 100644
index 000000000000..5e63f8169a08
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/imx95-var-dart-sonata-m7.dtso
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Cortex-M7 support for Variscite DART-MX95 on Sonata-Board
+ *
+ * Link: https://variscite.com/carrier-boards/sonata-board/
+ *
+ * Copyright (C) 2026 Variscite Ltd. - https://www.variscite.com/
+ *
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx95-var-common-m7.dtsi"
+
+/* SAI3 requires eDMA2, which is reserved for the Cortex-M7. */
+&{/sound-wm8904} {
+ status = "disabled";
+};
+
+/* Reserve the peripherals used by the Cortex-M7 firmware. */
+&edma1 {
+ status = "reserved";
+};
+
+&edma2 {
+ status = "reserved";
+};
+
+&flexcan1 {
+ status = "reserved";
+};
+
+/* Keep Linux I2C, SPI and UART controllers running in PIO mode. */
+&lpi2c3 {
+ dmas = <0>, <0>;
+};
+
+&lpi2c4 {
+ status = "reserved";
+};
+
+&lpi2c8 {
+ dmas = <0>, <0>;
+};
+
+&lpspi7 {
+ dmas = <0>, <0>;
+};
+
+&lpuart1 {
+ dmas = <0>, <0>;
+};
+
+&lpuart3 {
+ status = "reserved";
+};
+
+&lpuart5 {
+ dmas = <0>, <0>;
+};
+
+&lpuart8 {
+ status = "reserved";
+};
+
+&sai3 {
+ status = "disabled";
+};
diff --git a/arch/arm64/boot/dts/freescale/imx95-var-dart.dtsi b/arch/arm64/boot/dts/freescale/imx95-var-dart.dtsi
index 92ff09fe64a7..76145652b295 100644
--- a/arch/arm64/boot/dts/freescale/imx95-var-dart.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95-var-dart.dtsi
@@ -173,10 +173,6 @@ bluetooth {
};
};
-&mu7 {
- status = "okay";
-};
-
&netc_blk_ctrl {
status = "okay";
};
base-commit: 21d2357d5c1ebd2bd7726717e95765d031b55546
--
2.47.3
reply other threads:[~2026-11-23 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261123124946.13887-1-stefano.r@variscite.com \
--to=stefano.radaelli21@gmail.com \
--cc=Frank.Li@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pierluigi.p@variscite.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=stefano.r@variscite.com \
/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