1/*
2 * Copyright (C) 2024 PHYTEC Messtechnik GmbH
3 * Author: Daniel Schultz <d.schultz@phytec.de>
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8/dts-v1/;
9
10#include <ti/am64x_m4.dtsi>
11
12/ {
13	model = "PHYTEC phyBOARD-Electra AM64x M4";
14	compatible = "phytec,phyboard-electra-am64xx-m4", "ti,am6442";
15
16	chosen {
17		zephyr,sram = &sram0;
18		zephyr,console = &uart0;
19		zephyr,shell-uart = &uart0;
20		zephyr,sram1 = &ddr0;
21	};
22
23	aliases {
24		led0 = &heartbeat_led;
25	};
26
27	cpus {
28		cpu@0 {
29			status = "okay";
30			clock-frequency = <DT_FREQ_M(400)>;
31		};
32	};
33
34	ddr0:memory@a4100000 {
35		compatible = "zephyr,memory-region", "mmio-sram";
36		reg = <0xa4100000 DT_SIZE_K(4)>;
37		zephyr,memory-region = "DDR";
38	};
39
40	leds: leds {
41		compatible = "gpio-leds";
42		heartbeat_led: led_0 {
43			gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
44			label = "Heartbeat LED";
45		};
46	};
47};
48
49&pinctrl {
50	mcu_uart0_rx_default: mcu_uart0_rx_default {
51		pinmux = <K3_PINMUX(0x028, PIN_INPUT, MUX_MODE_0)>;
52	};
53	mcu_uart0_tx_default: mcu_uart0_tx_default {
54		pinmux = <K3_PINMUX(0x002C, PIN_OUTPUT, MUX_MODE_0)>;
55	};
56	mcu_gpio0_led_default: mcu_gpio0_led_default {
57		pinmux = <K3_PINMUX(0x0018, PIN_OUTPUT, MUX_MODE_7)>;
58	};
59};
60
61&uart0 {
62	current-speed = <115200>;
63	pinctrl-0 = <&mcu_uart0_rx_default &mcu_uart0_tx_default>;
64	pinctrl-names = "default";
65	status = "okay";
66};
67
68&gpio0 {
69	pinctrl-0 = <&mcu_gpio0_led_default>;
70	pinctrl-names = "default";
71	status = "okay";
72};
73