Skip to content

Commit 1d084f5

Browse files
committed
boards: arm: ti: k3: add am243x_evm
This patch adds board support for am2434_evm and am2434 SoC Signed-off-by: Amneesh Singh <[email protected]>
1 parent f29060c commit 1d084f5

8 files changed

+222
-0
lines changed
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Texas Instruments Sitara AM243x EVM
2+
#
3+
# Copyright (c) 2025 Texas Instruments Incorporated
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
config BOARD_AM243X_EVM
8+
select SOC_AM2434_M4 if BOARD_AM243X_EVM_AM2434_M4
9+
select SOC_AM2434_R5F0_0 if BOARD_AM243X_EVM_AM2434_R5F0_0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments Incorporated
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <ti/am64x_am243x_m4.dtsi>
10+
11+
/ {
12+
model = "TI AM243x AM2434 M4 core";
13+
compatible = "ti,am2434";
14+
15+
chosen {
16+
zephyr,sram = &sram0;
17+
zephyr,console = &mcu_uart0;
18+
zephyr,shell-uart = &mcu_uart0;
19+
};
20+
21+
aliases {
22+
led0 = &ld26;
23+
};
24+
25+
cpus {
26+
cpu@0 {
27+
status = "okay";
28+
clock-frequency = <DT_FREQ_M(400)>;
29+
};
30+
};
31+
32+
leds: leds {
33+
compatible = "gpio-leds";
34+
ld26: led_0 {
35+
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
36+
};
37+
};
38+
39+
rsc_table: memory@a4100000 {
40+
compatible = "zephyr,memory-region", "mmio-sram";
41+
reg = <0xa4100000 DT_SIZE_M(1)>;
42+
zephyr,memory-region = "RSC_TABLE";
43+
};
44+
};
45+
46+
&mcu_pinctrl {
47+
mcu_uart0_rx: mcu_uart0_rx_default {
48+
pinmux = <K3_PINMUX(0x028, PIN_INPUT, MUX_MODE_0)>;
49+
};
50+
mcu_uart0_tx: mcu_uart0_tx_default {
51+
pinmux = <K3_PINMUX(0x02C, PIN_OUTPUT, MUX_MODE_0)>;
52+
};
53+
mcu_gpio0_led: mcu_gpio0_led_default {
54+
pinmux = <K3_PINMUX(0x014, PIN_INPUT, MUX_MODE_7)>;
55+
};
56+
};
57+
58+
&mcu_uart0 {
59+
current-speed = <115200>;
60+
pinctrl-0 = <&mcu_uart0_rx &mcu_uart0_tx>;
61+
pinctrl-names = "default";
62+
status = "okay";
63+
};
64+
65+
&mcu_gpio0 {
66+
pinctrl-0 = <&mcu_gpio0_led>;
67+
pinctrl-names = "default";
68+
status = "okay";
69+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2025 Texas Instruments Incorporated
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
identifier: am243x_evm/am2434/m4
6+
name: TI AM243x M4
7+
type: mcu
8+
arch: arm
9+
toolchain:
10+
- zephyr
11+
ram: 192
12+
vendor: ti
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2025 Texas Instruments Incorporated
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Platform Configuration
6+
CONFIG_CORTEX_M_SYSTICK=y
7+
8+
# Zephyr Kernel Configuration
9+
CONFIG_XIP=n
10+
11+
# Serial Driver
12+
CONFIG_SERIAL=y
13+
14+
# Enable Console
15+
CONFIG_CONSOLE=y
16+
CONFIG_UART_CONSOLE=y
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/* Copyright (c) 2025 Texas Instruments Incorporated
2+
*
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include <ti/am64x_am243x_r5.dtsi>
9+
10+
/ {
11+
model = "TI AM243x AM2434 R5";
12+
compatible = "ti,am2434";
13+
14+
chosen {
15+
zephyr,sram = &sram;
16+
zephyr,sram1 = &btcm;
17+
zephyr,console = &uart0;
18+
};
19+
20+
aliases {
21+
led0 = &ld26;
22+
};
23+
24+
cpus {
25+
cpu@0 {
26+
status = "okay";
27+
};
28+
};
29+
30+
leds: leds {
31+
compatible = "gpio-leds";
32+
ld26: led_0 {
33+
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
34+
};
35+
};
36+
37+
rsc_table: memory@a0100000 {
38+
compatible = "zephyr,memory-region", "mmio-sram";
39+
reg = <0xa0100000 DT_SIZE_M(1)>;
40+
zephyr,memory-region = "RSC_TABLE";
41+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
42+
};
43+
};
44+
45+
&pinctrl {
46+
uart0_rx: uart0_rx_default {
47+
pinmux = <K3_PINMUX(0x230, PIN_INPUT, MUX_MODE_0)>;
48+
};
49+
uart0_tx: uart0_tx_default {
50+
pinmux = <K3_PINMUX(0x234, PIN_OUTPUT, MUX_MODE_0)>;
51+
};
52+
i2c0_scl: i2c0_scl_default {
53+
pinmux = <K3_PINMUX(0x260, PIN_INPUT_PULLUP, MUX_MODE_0)>;
54+
};
55+
i2c0_sda: i2c0_sda_default {
56+
pinmux = <K3_PINMUX(0x264, PIN_INPUT_PULLUP, MUX_MODE_0)>;
57+
};
58+
};
59+
60+
&mcu_pinctrl {
61+
mcu_gpio0_led: mcu_gpio0_led_default {
62+
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_7)>;
63+
};
64+
};
65+
66+
&uart0 {
67+
status = "okay";
68+
pinctrl-0 = <&uart0_tx &uart0_rx>;
69+
pinctrl-names = "default";
70+
current-speed = <115200>;
71+
};
72+
73+
&mcu_gpio0 {
74+
pinctrl-0 = <&mcu_gpio0_led>;
75+
pinctrl-names = "default";
76+
status = "okay";
77+
};
78+
79+
&i2c0 {
80+
pinctrl-0 = <&i2c0_scl &i2c0_sda>;
81+
pinctrl-names = "default";
82+
status = "okay";
83+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025 Texas Instruments Incorporated
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
identifier: am243x_evm/am2434/r5f0_0
6+
name: AM243x R5 Core
7+
type: mcu
8+
arch: arm
9+
ram: 256
10+
toolchain:
11+
- zephyr
12+
- gnuarmemb
13+
vendor: ti
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2025 Texas Instruments Incorporated
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Zephyr Kernel Configuration
6+
CONFIG_XIP=n
7+
8+
# Serial Driver
9+
CONFIG_SERIAL=y
10+
CONFIG_UART_INTERRUPT_DRIVEN=y
11+
12+
# Enable Console
13+
CONFIG_CONSOLE=y
14+
CONFIG_UART_CONSOLE=y

boards/ti/am243x_evm/board.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: am243x_evm
3+
full_name: TI AM243x-EVM
4+
vendor: ti
5+
socs:
6+
- name: am2434

0 commit comments

Comments
 (0)