diff options
author | Hiago De Franco <hiago.franco@toradex.com> | 2023-06-29 15:57:56 +0200 |
---|---|---|
committer | Hiago De Franco <hiago.franco@toradex.com> | 2023-07-21 11:11:54 -0300 |
commit | 5297da3ffa516a203d8144ca13564b4159b117a4 (patch) | |
tree | 59476376e596af16a219f8bdde876cc48739682c | |
parent | 760aa56ac4cd3a706d19581787caf1af8f773df5 (diff) |
colibri-imx8x: add hmp dt overlaytoradex_5.15-2.1.x-imx
Enable RPMsg for Cortex-M and reserve necessary memory regions
for RPMsg buffers.
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
-rw-r--r-- | overlays/Makefile | 1 | ||||
-rw-r--r-- | overlays/colibri-imx8x_hmp_overlay.dts | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/overlays/Makefile b/overlays/Makefile index e95317b..0da7e48 100644 --- a/overlays/Makefile +++ b/overlays/Makefile @@ -32,6 +32,7 @@ dtb-y += apalis-imx8_spi1_spidev_overlay.dtbo dtb-y += apalis-imx8_spi2_spidev_overlay.dtbo dtb-y += colibri-imx8x_disable-cm40-uart_overlay.dtbo dtb-y += colibri-imx8x_dsihdmi_overlay.dtbo +dtb-y += colibri-imx8x_hmp_overlay.dtbo dtb-y += colibri-imx8x_ov5640_overlay.dtbo dtb-y += colibri-imx8x_panel-cap-touch-7inch_overlay.dtbo dtb-y += colibri-imx8x_panel-cap-touch-7inch_adapter_overlay.dtbo diff --git a/overlays/colibri-imx8x_hmp_overlay.dts b/overlays/colibri-imx8x_hmp_overlay.dts new file mode 100644 index 0000000..e7276fe --- /dev/null +++ b/overlays/colibri-imx8x_hmp_overlay.dts @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2023 Toradex + */ + +// Enable RPMSG for Colibri iMX8X + +/dts-v1/; +/plugin/; + +/ { + compatible = "toradex,colibri-imx8x"; +}; + +&{/} { + #address-cells = <2>; + #size-cells = <2>; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + rsctable: rsctable@900ff000 { + reg = <0 0x900ff000 0 0x1000>; + no-map; + }; + + vdev0vring0: vdev0vring0@90000000 { + reg = <0 0x90000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@90008000 { + reg = <0 0x90008000 0 0x8000>; + no-map; + }; + + vdev1vring0: vdev1vring0@90010000 { + reg = <0 0x90010000 0 0x8000>; + no-map; + }; + + vdev1vring1: vdev1vring1@90018000 { + reg = <0 0x90018000 0 0x8000>; + no-map; + }; + + vdevbuffer: vdevbuffer@90400000 { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + no-map; + }; + }; + + rpmsg { + compatible = "fsl,imx8qxp-rpmsg"; + reg = <0 0x90000000 0 0x20000>; + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&lsio_mu5 0 1 + &lsio_mu5 1 1 + &lsio_mu5 3 1>; + memory-region = <&vdevbuffer>; + mub-partition = <3>; + vdev-nums = <2>; + }; +}; |