Skip to content

Commit 9ef48d9

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 fc72325 commit 9ef48d9

10 files changed

+250
-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,21 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments Incorporated
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>
8+
9+
&mcu_pinctrl {
10+
mcu_uart0_rx: mcu_uart0_rx_default {
11+
pinmux = <K3_PINMUX(0x028, PIN_INPUT, MUX_MODE_0)>;
12+
};
13+
14+
mcu_uart0_tx: mcu_uart0_tx_default {
15+
pinmux = <K3_PINMUX(0x02C, PIN_OUTPUT, MUX_MODE_0)>;
16+
};
17+
18+
mcu_gpio0_led: mcu_gpio0_led_default {
19+
pinmux = <K3_PINMUX(0x014, PIN_INPUT, MUX_MODE_7)>;
20+
};
21+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments Incorporated
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <zephyr/dt-bindings/gpio/gpio.h>
10+
#include <ti/am64x_am243x_m4.dtsi>
11+
#include "am243x_evm_am2434_m4-pinctrl.dtsi"
12+
13+
/ {
14+
model = "TI AM243x AM2434 M4 core";
15+
compatible = "ti,am2434";
16+
17+
chosen {
18+
zephyr,sram = &sram0;
19+
zephyr,console = &mcu_uart0;
20+
zephyr,shell-uart = &mcu_uart0;
21+
};
22+
23+
aliases {
24+
led0 = &ld26;
25+
};
26+
27+
cpus {
28+
cpu@0 {
29+
status = "okay";
30+
clock-frequency = <DT_FREQ_M(400)>;
31+
};
32+
};
33+
34+
leds: leds {
35+
compatible = "gpio-leds";
36+
37+
ld26: led_0 {
38+
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
39+
};
40+
};
41+
42+
rsc_table: memory@a4100000 {
43+
compatible = "zephyr,memory-region", "mmio-sram";
44+
reg = <0xa4100000 DT_SIZE_M(1)>;
45+
zephyr,memory-region = "RSC_TABLE";
46+
};
47+
};
48+
49+
&mcu_uart0 {
50+
current-speed = <115200>;
51+
pinctrl-0 = <&mcu_uart0_rx &mcu_uart0_tx>;
52+
pinctrl-names = "default";
53+
status = "okay";
54+
};
55+
56+
&mcu_gpio0 {
57+
pinctrl-0 = <&mcu_gpio0_led>;
58+
pinctrl-names = "default";
59+
status = "okay";
60+
};
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,31 @@
1+
/*
2+
* Copyright (c) 2025 Texas Instruments Incorporated
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>
8+
9+
&pinctrl {
10+
uart0_rx: uart0_rx_default {
11+
pinmux = <K3_PINMUX(0x230, PIN_INPUT, MUX_MODE_0)>;
12+
};
13+
14+
uart0_tx: uart0_tx_default {
15+
pinmux = <K3_PINMUX(0x234, PIN_OUTPUT, MUX_MODE_0)>;
16+
};
17+
18+
i2c0_scl: i2c0_scl_default {
19+
pinmux = <K3_PINMUX(0x260, PIN_INPUT_PULLUP, MUX_MODE_0)>;
20+
};
21+
22+
i2c0_sda: i2c0_sda_default {
23+
pinmux = <K3_PINMUX(0x264, PIN_INPUT_PULLUP, MUX_MODE_0)>;
24+
};
25+
};
26+
27+
&mcu_pinctrl {
28+
mcu_gpio0_led: mcu_gpio0_led_default {
29+
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_7)>;
30+
};
31+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/* Copyright (c) 2025 Texas Instruments Incorporated
2+
*
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include <zephyr/dt-bindings/gpio/gpio.h>
9+
#include <ti/am64x_am243x_r5.dtsi>
10+
#include "am243x_evm_am2434_r5f0_0-pinctrl.dtsi"
11+
12+
/ {
13+
model = "TI AM243x AM2434 R5";
14+
compatible = "ti,am2434";
15+
16+
chosen {
17+
zephyr,sram = &sram;
18+
zephyr,sram1 = &btcm;
19+
zephyr,console = &uart0;
20+
};
21+
22+
aliases {
23+
led0 = &ld26;
24+
};
25+
26+
cpus {
27+
cpu@0 {
28+
status = "okay";
29+
};
30+
};
31+
32+
leds: leds {
33+
compatible = "gpio-leds";
34+
35+
ld26: led_0 {
36+
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
37+
};
38+
};
39+
40+
rsc_table: memory@a0100000 {
41+
compatible = "zephyr,memory-region", "mmio-sram";
42+
reg = <0xa0100000 DT_SIZE_M(1)>;
43+
zephyr,memory-region = "RSC_TABLE";
44+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
45+
};
46+
};
47+
48+
&uart0 {
49+
status = "okay";
50+
pinctrl-0 = <&uart0_tx &uart0_rx>;
51+
pinctrl-names = "default";
52+
current-speed = <115200>;
53+
};
54+
55+
&mcu_gpio0 {
56+
pinctrl-0 = <&mcu_gpio0_led>;
57+
pinctrl-names = "default";
58+
status = "okay";
59+
};
60+
61+
&i2c0 {
62+
pinctrl-0 = <&i2c0_scl &i2c0_sda>;
63+
pinctrl-names = "default";
64+
status = "okay";
65+
};
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,17 @@
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
15+
16+
# Enable MPU
17+
CONFIG_ARM_MPU=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)