enable remoteproc on imx8mn var son

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

enable remoteproc on imx8mn var son

995 Views
prabhatel131
Contributor I

please provide  me a device tree node setup for enabling remote from for this file imx8mn-var-som-symphony-m7.dtsi  and imx8mn-var-som-symphony-m7.dts  i am unable to setup remoteproc .....in sys/class/ remoteproc/   there is no remoteproc0 folder is availble that i can able to on or off m7 core plxx provide me content for these file to enable remoteproc i am new in this  

0 Kudos
Reply
5 Replies

956 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @prabhatel131,

I hope you are doing well
 
For the device tree setup for the remoteproc on iMX8M Nano, kindly refer to imx8mn-evk-rpmsg.dts device tree file.
 
For further information, please refer to the Chapter 9 Linux Remote Processor (RPROC) framework from the AN5317.
 
I hope this information helps you.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply

935 Views
prabhatel131
Contributor I

Hi @Dhruvit i have variscite imx8mn symphony board not evk type ... so should i have to make change is imx8mn-evk-rpmsg.dts  file for enabling remoteproc .

this is the content of imx8mn-var-som-symphony-m7.dtsi file . please suggest me what changes should i do in this .

#include <dt-bindings/clock/imx8mn-clock.h>

/ {
imx8mn-cm7 {
compatible = "fsl,imx8mn-cm7";
rsc-da = <0x40000000>;
mbox-names = "tx", "rx", "rxdb";
mboxes = <&mu 0 1
&mu 1 1
&mu 3 1>;
// memory-region = <&vdev0vring0>, <&vdev0vring1>, <&vdevbuffer>, <&m_core_reserved>;
memory-region = <&vdev0vring0>, <&vdev0vring1>, <&vdevbuffer>, <&m_core_reserved>, <&rsc_table> ,<&m7_ddr_alias>,<&m7_itcm>, <&m7_dtcm>;
status = "okay";
};

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

/delete-node/linux,cma;

m_core_reserved: m_core@0x7e000000 {
no-map;
reg = <0 0x7e000000 0 0x1000000>;
};

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

vdev0vring1: vdev0vring1@40008000 {
compatible = "shared-dma-pool";
reg = <0 0x40008000 0 0x8000>;
no-map;
};
vdevbuffer: vdevbuffer@0x40400000 {
compatible = "shared-dma-pool";
reg = <0 0x40400000 0 0x100000>;
no-map;
};
rsc_table: rsc_table@40000000 {
compatible = "fsl,imx8mn-resource-table";
reg = <0x40000000 0x1000>;
no-map;
};
m7_ddr_alias: m4@0x10000000 {
no-map;
reg = <0 0x10000000 0 0x1000000>;
};
m7_itcm: m4@0x7E0000 {
no-map;
reg = <0 0x7E0000 0 0x20000>;
};
m7_dtcm: m4@0x800000 {
no-map;
reg = <0 0x800000 0 0x20000>;
};
};
};

&clk {
init-on-array = <
IMX8MN_CLK_UART4_ROOT
>;
};

/*
* ATTENTION: M7 may use IPs like below
* ECSPI1, GPIO4, GPT1, I2C4, WDOG1, PWM3, SDMA1/3, UART3
*/

&ecspi1 {
status = "disabled";
};

&i2c4 {
status = "disabled";
};

&pwm3 {
status = "disabled";
};

&rpmsg{
/*
* 64K for one rpmsg instance:
* --0x40000000~0x4000ffff: pingpong
*/
vdev-nums = <1>;
reg = <0x0 0x40000000 0x0 0x10000>;
memory-region = <&vdevbuffer>;
// status = "disabled";
status = "okay";
};

&sdma1{
status = "disabled";
};

&uart3 {
status = "disabled";
}
~
~
~

0 Kudos
Reply

883 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @prabhatel131,

I hope you are doing well

The device tree files are for your reference. As your board contains the IMX8M Nano processor, one can refer to the same for your board as well.
One can check the rsc table, reserved memory addresses, etc. from the above device tree files.
 
Please refer to the below information for the VAR-SOM-MX8M-NANO.
 
Please make sure the kernel driver configuration for remoteproc is correctly done according to your board. 
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply

890 Views
prabhatel131
Contributor I

Hi NXP Support Team,plzz give your suggestion to solve the issue

0 Kudos
Reply

966 Views
prabhatel131
Contributor I

Hi NXP Support Team, please respond as soon as possible

Tags (1)
0 Kudos
Reply