Skip to contentSkip to conversation

arm64: dts: freescale: imx93-var: Add Cortex-M33 configurations

PATCH Superseded Stefano Radaelli 1 participant 3 messages Nov 19

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover arm64: dts: freescale: imx93-var: Add Cortex-M33 configurations

This series adds Cortex-M33 overlays and combined DTBs for DART-MX93 on Sonata and VAR-SOM-MX93 on Symphony.

The first patch extracts the existing DART-MX93 remoteproc configuration into a common include without changing the resulting DTB. The second adds the M33 variants, reserving the peripherals used by the firmware and keeping dependent devices disabled. Remoteproc and MU1 are then enabled only through the M33 overlays.

Changes in v3:
- Split the common configuration extraction and the M33 overlays into two patches
- Use "reserved" for peripherals assigned to the M33 firmware; keep "disabled" for dependent devices.

Changes in v2:
- Enable cm33 and MU1 only through the M33 overlay on DART-MX93.

Patch 2 uses the following binding and driver commits, already 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")

Validation used the remoteproc binding update and cebd1c0961d8 ("dt-bindings: gpio: vf610: fix clock requirements per SoC"), which fixes pre-existing GPIO schema errors. The base and M33 DTBs build and pass schema validation.
No hardware testing was performed.

Stefano Radaelli (2):
arm64: dts: freescale: imx93-var: Extract common Cortex-M33
configuration
arm64: dts: freescale: imx93-var: Add Cortex-M33 configurations

 arch/arm64/boot/dts/freescale/Makefile        |  9 +++
 .../dts/freescale/imx93-var-common-m33.dtsi   | 24 ++++++++
 .../freescale/imx93-var-dart-sonata-m33.dtso  | 55 +++++++++++++++++++
 .../dts/freescale/imx93-var-dart-sonata.dts   |  2 +-
 .../boot/dts/freescale/imx93-var-dart.dtsi    | 14 -----
 .../freescale/imx93-var-som-symphony-m33.dtso | 50 +++++++++++++++++
 6 files changed, 139 insertions(+), 15 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-common-m33.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-dart-sonata-m33.dtso
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som-symphony-m33.dtso

base-commit: 33adc96ac217d6e95b7c44ac383c19ca4ae2ff52

Signature · 1 line
2.47.3
#1 lore raw

PATCH v3 1/2 arm64: dts: freescale: imx93-var: Extract common Cortex-M33 configuration

From: Stefano Radaelli <[email protected]>

Move the DART-MX93 remoteproc and MU1 configuration into a common include so it can be reused by the Variscite Cortex-M33 overlays.

Keep the common file included from imx93-var-dart.dtsi to preserve the existing configuration.

---
Changes in v3:
- Split the common configuration extraction into a separate patch, preserving the existing DART-MX93 configuration.

 .../dts/freescale/imx93-var-common-m33.dtsi   | 22 +++++++++++++++++++
 .../boot/dts/freescale/imx93-var-dart.dtsi    | 15 +------------
 2 files changed, 23 insertions(+), 14 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-common-m33.dtsi
arch/arm64/boot/dts/freescale/imx93-var-common-m33.dtsi new file +22 -0
new file mode 100644
index 000000000000..de0e56f322a2
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Common Cortex-M33 configuration for Variscite i.MX93 modules
+ *
+ * Copyright (C) 2026 Variscite Ltd. - https://www.variscite.com/
+ *
+ */
+
+/* Use the reserved memory and resource table address from the carrier DTS. */
+&cm33 {
+	mbox-names = "tx", "rx", "rxdb";
+	mboxes = <&mu1 0 1
+		  &mu1 1 1
+		  &mu1 3 1>;
+	memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>,
+			<&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
+	status = "okay";
+};
+
+&mu1 {
+	status = "okay";
+};
arch/arm64/boot/dts/freescale/imx93-var-dart.dtsi +1 -14
index 69495bb7fc9f..4ee4d74cadea 100644
@@ -12,6 +12,7 @@
 
 #include <dt-bindings/usb/pd.h>
 #include "imx93.dtsi"
+#include "imx93-var-common-m33.dtsi"
 
 / {
 	model = "Variscite DART-MX93 Module";
@@ -54,16 +55,6 @@ wifi_pwrseq: wifi-pwrseq {
 	};
 };
 
-&cm33 {
-	mbox-names = "tx", "rx", "rxdb";
-	mboxes = <&mu1 0 1>,
-		 <&mu1 1 1>,
-		 <&mu1 3 1>;
-	memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>,
-			<&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
-	status = "okay";
-};
-
 &eqos {
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&pinctrl_eqos>;
@@ -221,10 +212,6 @@ bluetooth {
 	};
 };
 
-&mu1 {
-	status = "okay";
-};
-
 &mu2 {
 	status = "okay";
 };
Signature · 1 line
2.47.3
#2 lore raw

PATCH v3 2/2 arm64: dts: freescale: imx93-var: Add Cortex-M33 configurations

In reply to Stefano Radaelli

From: Stefano Radaelli <[email protected]>

Add Cortex-M33 overlays and combined DTBs for DART-MX93 on Sonata and VAR-SOM-MX93 on Symphony. Use the common remoteproc configuration and identify the existing reserved memory with memory-region-names.

Include the common configuration only from the overlays, so remoteproc and MU1 are enabled only in the M33 variants. Use the -m33 DTB when remoteproc support is needed.

Mark the peripherals used by the M33 firmware as reserved. Disable Wi-Fi, Bluetooth and the devices depending on GPIO4. On Sonata, also disable USB OTG1 because its USB-C role controller is unavailable.

---
Changes in v3:
- Move the common configuration extraction to patch 1.
- Use "reserved" for peripherals assigned to the M33 firmware; keep "disabled" for dependent devices.

Changes in v2:
- Enable cm33 and MU1 only through the M33 overlay on DART-MX93.

This patch uses the following binding and driver commits, already 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        |  9 +++
 .../dts/freescale/imx93-var-common-m33.dtsi   |  2 +
 .../freescale/imx93-var-dart-sonata-m33.dtso  | 55 +++++++++++++++++++
 .../dts/freescale/imx93-var-dart-sonata.dts   |  2 +-
 .../boot/dts/freescale/imx93-var-dart.dtsi    |  1 -
 .../freescale/imx93-var-som-symphony-m33.dtso | 50 +++++++++++++++++
 6 files changed, 117 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-dart-sonata-m33.dtso
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som-symphony-m33.dtso
arch/arm64/boot/dts/freescale/Makefile +9 -0
index cfd548284358..05a7556e9de9 100644
@@ -956,8 +956,17 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-mini-ezurio-wlan.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-mini-lvds-tm070jvhg33.dtb
+
+imx93-var-dart-sonata-m33-dtbs := imx93-var-dart-sonata.dtb imx93-var-dart-sonata-m33.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx93-var-dart-sonata.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-var-dart-sonata-m33.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-var-dart-sonata-m33.dtbo
+
+imx93-var-som-symphony-m33-dtbs := imx93-var-som-symphony.dtb imx93-var-som-symphony-m33.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony-m33.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony-m33.dtbo
+
 dtb-$(CONFIG_ARCH_MXC) += imx93w-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93w-frdm.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx943-evk.dtb
arch/arm64/boot/dts/freescale/imx93-var-common-m33.dtsi +2 -0
index de0e56f322a2..51b4cfe143d4 100644
@@ -14,6 +14,8 @@ &mu1 1 1
 		  &mu1 3 1>;
 	memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>,
 			<&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
+	memory-region-names = "vdev0buffer", "vdev0vring0", "vdev0vring1",
+			      "vdev1vring0", "vdev1vring1", "rsc-table";
 	status = "okay";
 };
 
arch/arm64/boot/dts/freescale/imx93-var-dart-sonata-m33.dtso new file +55 -0

55 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-var-dart-sonata.dts +1 -1
index 1ca3ec8330d0..e3afd0efe5c7 100644
@@ -291,7 +291,7 @@ ft5x06_ts: touchscreen@38 {
 	};
 
 	/* USB Type-C Controller */
-	typec@3d {
+	ptn5150: typec@3d {
 		compatible = "nxp,ptn5150";
 		reg = <0x3d>;
 		interrupt-parent = <&gpio4>;
arch/arm64/boot/dts/freescale/imx93-var-dart.dtsi +0 -1
index 4ee4d74cadea..6c596d61bd21 100644
@@ -12,7 +12,6 @@
 
 #include <dt-bindings/usb/pd.h>
 #include "imx93.dtsi"
-#include "imx93-var-common-m33.dtsi"
 
 / {
 	model = "Variscite DART-MX93 Module";
arch/arm64/boot/dts/freescale/imx93-var-som-symphony-m33.dtso new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.47.3