1/* 2 * Copyright 2022-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 /* Switch to lpuart2, since primary core uses lpuart1 */ 11 chosen { 12 zephyr,flash = &ocram; 13 zephyr,console = &lpuart2; 14 zephyr,shell-uart = &lpuart2; 15 zephyr,ipc_shm = &ocram2_overlay; 16 }; 17 18 soc { 19 /delete-node/ gpt@400f0000; 20 21 /* Replace GPT2 with another GPT kernel timer */ 22 gpt2_hw_timer:gpt@400f0000 { 23 compatible = "nxp,gpt-hw-timer"; 24 reg = <0x400f0000 0x4000>; 25 interrupts = <120 0>; 26 status = "okay"; 27 }; 28 }; 29 30 /* OpenAMP fails with full 512K OCRAM2 memory region as shared memory. 31 * Define a subset of the OCRAM2 region for demo to use 32 * Note that shared memory must have specific MPU attributes set 33 */ 34 ocram2_overlay: memory@202c0000 { 35 compatible = "zephyr,memory-region", "mmio-sram"; 36 reg = <0x202c0000 DT_SIZE_K(16)>; 37 zephyr,memory-region="OCRAM2_OVERLAY"; 38 zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>; 39 }; 40}; 41 42/* Enable secondary LPUART */ 43&lpuart2 { 44 status = "okay"; 45 current-speed = <115200>; 46}; 47 48/* Disable primary GPT timer */ 49&gpt_hw_timer { 50 status = "disabled"; 51}; 52