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