1/* 2 * Copyright 2023 NXP 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> 8 9/ { 10 chosen { 11 zephyr,ipc_shm = &ocram2_overlay; 12 }; 13 14 /* OpenAMP fails with full 512K OCRAM2 memory region as shared memory. 15 * Define a subset of the OCRAM2 region for demo to use 16 * Note that shared memory must have specific MPU attributes set. 17 */ 18 ocram2_overlay: memory@202c0000{ 19 compatible = "zephyr,memory-region", "mmio-sram"; 20 reg = <0x202c0000 DT_SIZE_K(16)>; 21 zephyr,memory-region="OCRAM2_OVERLAY"; 22 zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>; 23 }; 24}; 25