[PATCH 7/7] ARM: dts: i.MX8MP: Add Cortex-M7 Coprocessor node

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The i.MX8MQ has a Cortex-M7 Coprocessor. Add a node for controlling it.
To make use of it the board has to provide the reserved memory nodes,
for example:

reserved-memory {
       #address-cells = <2>;
       #size-cells = <2>;
       ranges;

       m7_reserved_sysmem1: rproc@40000000 {
               reg = <0 0x40000000 0 0x800000>;
               no-map;
       };

       m7_reserved_sysmem2: rproc@40800000 {
               reg = <0 0x40800000 0 0x800000>;
               no-map;
       };

       m7_reserved_sysmem3: rproc@80000000 {
               reg = <0 0x80000000 0 0x800000>;
               no-map;
       };
};

&remoteproc_cm7 {
       memory-region = <&m7_reserved_sysmem1>, <&m7_reserved_sysmem2>, <&m7_reserved_sysmem3>;
};

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 arch/arm/dts/imx8mp-evk.dts | 1 +
 arch/arm/dts/imx8mp.dtsi    | 9 +++++++++
 2 files changed, 10 insertions(+)
 create mode 100644 arch/arm/dts/imx8mp.dtsi

diff --git a/arch/arm/dts/imx8mp-evk.dts b/arch/arm/dts/imx8mp-evk.dts
index bb255e2c94..3264ade4b8 100644
--- a/arch/arm/dts/imx8mp-evk.dts
+++ b/arch/arm/dts/imx8mp-evk.dts
@@ -7,6 +7,7 @@
 /dts-v1/;
 
 #include <arm64/freescale/imx8mp-evk.dts>
+#include "imx8mp.dtsi"
 
 / {
 	chosen {
diff --git a/arch/arm/dts/imx8mp.dtsi b/arch/arm/dts/imx8mp.dtsi
new file mode 100644
index 0000000000..b251ebeada
--- /dev/null
+++ b/arch/arm/dts/imx8mp.dtsi
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+
+/ {
+	remoteproc_cm7: remoteproc-cm7 {
+		compatible = "fsl,imx8mp-cm7";
+		clocks = <&clk IMX8MP_CLK_M7_CORE>;
+		syscon = <&src>;
+	};
+};
-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux