Skip to content

Instantly share code, notes, and snippets.

@neuberfran
Created April 7, 2024 22:16
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/62a300a43b6d4ab2b8a6276042b1e8e0 to your computer and use it in GitHub Desktop.
Save neuberfran/62a300a43b6d4ab2b8a6276042b1e8e0 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;
vdev0vring0: vdev0vring0@900000 {
compatible = "shared-dma-pool";
reg = <0x900000 0x1000>;
no-map;
};
vdev0vring1: vdev0vring1@901000 {
compatible = "shared-dma-pool";
reg = <0x901000 0x1000>;
no-map;
};
vdev0buffer: vdev0buffer@902000 {
compatible = "shared-dma-pool";
reg = <0x902000 0xfe000>;
no-map;
};
cm4tcmcode: cm4tcmcode@7f8000 {
compatible = "shared-dma-pool";
reg = <0x007f8000 0x8000>;
no-map;
};
cm4sramcode: cm4sramcode@0x900000 {
compatible = "shared-dma-pool";
reg = <0x00900000 0x40000>;
no-map;
};
};
// vdev0vring0: vdev0vring0@00902000 {
// compatible = "shared-dma-pool";
// // compatible = "shared-dma-pool";
// // reg = <0x9ff00000 0x8000>;
// reg = <0x00902000 0x2000>;
// no-map;
// };
// vdev0vring1: vdev0vring1@00904000 {
// compatible = "shared-dma-pool";
// // compatible = "shared-dma-pool";
// // reg = <0x9ff08000 0x8000>;
// reg = <0x00904000 0x2000>;
// no-map;
// };
// vdev0buffer: vdev0buffer@00906000 {
// compatible = "shared-dma-pool";
// // reg = <0x9ff10000 0x80000>;
// reg = <0x00906000 0x9C40>;
// no-map;
// };
// cm4tcmcode: cm4tcmcode@0x7f8000 {
// compatible = "shared-dma-pool";
// reg = <0x007f8000 0x8000>;
// no-map;
// };
// };
imx7d-cm4 {
compatible = "fsl,imx7d-cm4";
clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>;
// fsl,auto-boot;
mbox-names = "tx0", "rx0", "rxdb0";
mboxes = <&mu0a 0 1
&mu0a 1 1
&mu0a 3 1>;
// memory-region = <&rpmsg_vrings>, <&cm4tcmcode>, <&cm4sramcode>;
memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&cm4tcmcode>, <&cm4sramcode>;
// <&cm4sramcode>;
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 = <&vdevbuffer>;
// // memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>, <&cm4tcmcode>, <&cm4sramcode>;
// reg = <0x9fff0000 0x10000>;
// status = "disabled"; // Tava disabled
// };
&uart6 {
status = "disabled";
};
&mu0a {
status = "okay";
};
&wdog3{
status = "disabled";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment