* [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support
@ 2026-11-23 12:49 Stefano Radaelli
2026-11-25 12:19 ` Peng Fan (OSS)
0 siblings, 1 reply; 3+ messages in thread
From: Stefano Radaelli @ 2026-11-23 12:49 UTC (permalink / raw)
To: Frank Li, linux-kernel, devicetree, imx, linux-arm-kernel
Cc: pierluigi.p, Stefano Radaelli, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support
2026-11-23 12:49 [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support Stefano Radaelli
@ 2026-11-25 12:19 ` Peng Fan (OSS)
2026-11-25 12:52 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Peng Fan (OSS) @ 2026-11-25 12:19 UTC (permalink / raw)
To: Stefano Radaelli
Cc: Peng Fan, Frank Li, linux-kernel, devicetree, imx,
linux-arm-kernel, pierluigi.p, Stefano Radaelli, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
On Mon, 23 Nov 2026 13:49:46 +0100 Stefano Radaelli <stefano.radaelli21@gmail.com> wrote:
> 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>
> +
[...]
> +/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";
Should this be disabled?
Regards
Peng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support
2026-11-25 12:19 ` Peng Fan (OSS)
@ 2026-11-25 12:52 ` Daniel Baluta
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Baluta @ 2026-11-25 12:52 UTC (permalink / raw)
To: Peng Fan (OSS), Stefano Radaelli
Cc: Frank Li, linux-kernel, devicetree, imx, linux-arm-kernel,
pierluigi.p, Stefano Radaelli, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
On 11/25/26 14:19, Peng Fan (OSS) wrote:
> On Mon, 23 Nov 2026 13:49:46 +0100 Stefano Radaelli <stefano.radaelli21@gmail.com> wrote:
>
>> 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>
>> +
>
> [...]
>> +/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";
>
> Should this be disabled?
edma1 is used by the firmware so the correct status is "reserved" as
per dt specification.
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#status
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-25 12:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 12:49 [PATCH v1 1/1] arm64: dts: freescale: imx95-var: Add Cortex-M7 support Stefano Radaelli
2026-11-25 12:19 ` Peng Fan (OSS)
2026-11-25 12:52 ` Daniel Baluta
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®