RPMSG on a Toradex Apalis iMX8

Hi @Juli7478,

I’m sorry for the delay.

For TorizonCore 5 or BSP 5, can you please try the following code?

/dts-v1/;
/plugin/;

#include <dt-bindings/firmware/imx/rsrc.h>

/* Enable RPMSG for Apalis iMX8 */

/ {
	compatible = "toradex,apalis-imx8-v1.1",
		     "toradex,apalis-imx8",
		     "fsl,imx8qm";
};


&{/} {

    reserved-memory {

		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

        /* Allocate TX and RX buffers for communication between m4 cores
        with Linux and m4 core0 with m4 core1. Allocate the necessary resource
        tables as well. */
        
        vdev0vring0: vdev0vring0@90000000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90000000 0 0x8000>;
			no-map;
		};

		vdev0vring1: vdev0vring1@90008000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90008000 0 0x8000>;
			no-map;
		};

		vdev1vring0: vdev1vring0@90010000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90010000 0 0x8000>;
			no-map;
		};

		vdev1vring1: vdev1vring1@90018000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90018000 0 0x8000>;
			no-map;
		};

        rsc_table0: rsc_table0@0x900ff000 {
			reg = <0 0x900ff000 0 0x1000>;
			no-map;
		};
		
        rsc_table1: rsc_table1@0x901ff000 {
			reg = <0 0x901ff000 0 0x1000>;
			no-map;
		};

        vdev2vring0: vdev0vring0@90100000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90100000 0 0x8000>;
			no-map;
		};

		vdev2vring1: vdev0vring1@90108000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90108000 0 0x8000>;
			no-map;
		};

		vdev3vring0: vdev1vring0@90110000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90110000 0 0x8000>;
			no-map;
		};

		vdev3vring1: vdev1vring1@90118000 {
			compatible = "shared-dma-pool";
			reg = <0 0x90118000 0 0x8000>;
			no-map;
		};
    };
};

&rpmsg0 {
    status = "okay";
};

&rpmsg1 {
    status = "okay";
};

It should be possible to compile and use it with TorizonCore 5 and the rpmsg will be enabled. Can you please check on your side and see if it works?

Best Regards,
Hiago.