Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuberfran/ce6861c962e8c5fa361ff9453ce85a10 to your computer and use it in GitHub Desktop.
Save neuberfran/ce6861c962e8c5fa361ff9453ce85a10 to your computer and use it in GitHub Desktop.
/*
* Copyright 2018 TechNexion Ltd.
*
* Author: Tapani Utriainen <tapani@technexion.com>
* Richard Hu <richard.hu@technexion.com>
* Ray Chang <ray.chang@technexion.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#include "imx7d-pico-pi-qca.dts"
/ {
memory {
linux,usable-memory = <0x80000000 0x1ff00000>;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
// mailbox_reserved: vrings0@30ab0000 {
// reg = <0x30ab0000 0x10000>;
// no-map;
// };
// m4_reserved: m4@8ff00000 {
// reg = <0x8ff00000 0x100000>;
// no-map;
// };
vdev0vring0: vdev0vring0@00920000 {
compatible = "shared-dma-pool";
// compatible = "shared-dma-pool";
// reg = <0x9ff00000 0x8000>;
reg = <0x00920000 0x2000>;
no-map;
};
vdev0vring1: vdev0vring1@00922000 {
compatible = "shared-dma-pool";
// compatible = "shared-dma-pool";
// reg = <0x9ff08000 0x8000>;
reg = <0x00922000 0x2000>;
no-map;
};
// rsc_table: rsc_table@900ff000 {
// reg = <0x900ff000 0x1000>;
// no-map;
// };
vdev0buffer: vdev0buffer@00924000 {
compatible = "shared-dma-pool";
// reg = <0x9ff10000 0x80000>;
reg = <0x00924000 0x4000>;
no-map;
};
// vdev0vring0: vdev0vring0@8ff00000 {
// compatible = "shared-dma-pool";
// // compatible = "shared-dma-pool";
// reg = <0x8ff00000 0x8000>;
// no-map;
// };
// vdev0vring1: vdev0vring1@8ff08000 {
// compatible = "shared-dma-pool";
// // compatible = "shared-dma-pool";
// reg = <0x8ff08000 0x8000>;
// no-map;
// };
// // rsc_table: rsc_table@900ff000 {
// // reg = <0x900ff000 0x1000>;
// // no-map;
// // };
// vdev0buffer: vdev0buffer@8ff10000 {
// compatible = "shared-dma-pool";
// reg = <0x8ff10000 0x80000>;
// no-map;
// };
cm4tcmcode: cm4tcmcode@0x7f8000 {
compatible = "shared-dma-pool";
reg = <0x007f8000 0x8000>;
no-map;
};
// cm4sramcode: cm4sramcode@0x900000 {
// compatible = "shared-dma-pool";
// reg = <0x00900000 0x40000>;
// no-map;
// };
};
imx7d-cm4 {
compatible = "fsl,imx7d-cm4";
clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>;
// fsl,auto-boot;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = <&mub 0 1
&mub 1 1
&mub 3 1>;
// memory-region = <&rpmsg_vrings>, <&cm4tcmcode>, <&cm4sramcode>;
memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>;
fsl,rproc-auto-boot = <1>;
fsl,rproc-fw-name="zephyr_openamp_rsc_table.elf";
syscon = <&src>;
status = "okay";
};
m4_tcm: tcml@007f8000 {
compatible = "fsl, m4_tcml";
reg = <0x007f8000 0x8000>;
};
gpio-leds {
status = "disabled";
};
};
&adc1 {
status = "disabled";
};
&adc2 {
status = "disabled";
};
&gpt3 {
status = "disabled";
};
&gpt4 {
status = "disabled";
};
&ocram {
reg = <0x00901000 0xf000>;
};
&rpmsg{
vdev-nums = <1>;
memory-region = <&vdev0buffer>;
// memory-region = <&vdev0vring0>, <&vdev0vring1>, <&vdevbuffer>, <&cm4tcmcode>, <&cm4sramcode>;
reg = <0x9fff0000 0x10000>;
status = "okay"; // Tava disabled
};
&uart6 {
status = "disabled";
};
&mub {
status = "okay";
};
&wdog3{
status = "disabled";
};
==================================================
CONFIG_KERNEL_BIN_NAME="zephyr_openamp_rsc_table"
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_OPENAMP=y
CONFIG_OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF=128
CONFIG_OPENAMP_RSC_TABLE=y
CONFIG_OPENAMP_MASTER=n
======================================================
CONFIG_LOG_PRINTK=n
CONFIG_IPM_IMX_MAX_DATA_SIZE_16=n
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y
======================================================
/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &ocramfake;
zephyr,ipc = &mub;
};
ocramfake: memory@00901000 {
compatible = "mmio-sram";
reg = <0x00901000 0xf000>;
};
// ocramfake: memory@8ff00000 {
// compatible = "mmio-sram";
// reg = <0x8ff00000 0x110000>;
// };
};
&mub {
status = "okay";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment