Skip to content

am243x_evm/am2434: initial support #87321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions boards/phytec/phyboard_electra/phyboard_electra_am6442_m4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/dts-v1/;

#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <ti/am64x_m4.dtsi>

/ {
Expand All @@ -15,8 +17,8 @@

chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,console = &mcu_uart0;
zephyr,shell-uart = &mcu_uart0;
zephyr,ipc_shm = &ddr0;
zephyr,sram1 = &ddr1;
};
Expand Down Expand Up @@ -52,13 +54,15 @@
leds: leds {
compatible = "gpio-leds";
heartbeat_led: led_0 {
gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
gpios = <&mcu_gpio0 6 GPIO_ACTIVE_HIGH>;
label = "Heartbeat LED";
};
};
};

&pinctrl {
&mcu_pinctrl {
status = "okay";

mcu_uart0_rx_default: mcu_uart0_rx_default {
pinmux = <K3_PINMUX(0x028, PIN_INPUT, MUX_MODE_0)>;
};
Expand All @@ -70,14 +74,14 @@
};
};

&uart0 {
&mcu_uart0 {
current-speed = <115200>;
pinctrl-0 = <&mcu_uart0_rx_default &mcu_uart0_tx_default>;
pinctrl-names = "default";
status = "okay";
};

&gpio0 {
&mcu_gpio0 {
pinctrl-0 = <&mcu_gpio0_led_default>;
pinctrl-names = "default";
status = "okay";
Expand Down
9 changes: 9 additions & 0 deletions boards/ti/am243x_evm/Kconfig.am243x_evm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Texas Instruments Sitara AM243x EVM
#
# Copyright (c) 2025 Texas Instruments Incorporated
#
# SPDX-License-Identifier: Apache-2.0

config BOARD_AM243X_EVM
select SOC_AM2434_M4 if BOARD_AM243X_EVM_AM2434_M4
select SOC_AM2434_R5F0_0 if BOARD_AM243X_EVM_AM2434_R5F0_0
23 changes: 23 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_m4-pinctrl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2025 Texas Instruments Incorporated
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>

&mcu_pinctrl {
status = "okay";

mcu_uart0_rx: mcu_uart0_rx_default {
pinmux = <K3_PINMUX(0x028, PIN_INPUT, MUX_MODE_0)>;
};

mcu_uart0_tx: mcu_uart0_tx_default {
pinmux = <K3_PINMUX(0x02C, PIN_OUTPUT, MUX_MODE_0)>;
};

mcu_gpio0_led: mcu_gpio0_led_default {
pinmux = <K3_PINMUX(0x014, PIN_INPUT, MUX_MODE_7)>;
};
};
79 changes: 79 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_m4.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* Copyright (c) 2025 Texas Instruments Incorporated
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <ti/am64x_m4.dtsi>
#include "am243x_evm_am2434_m4-pinctrl.dtsi"

/ {
model = "TI AM243x EVM M4 core";
compatible = "ti,am243x-evm-m4";

chosen {
zephyr,sram = &sram0;
zephyr,console = &mcu_uart0;
zephyr,shell-uart = &mcu_uart0;
zephyr,ipc = &ipc0;
zephyr,ipc-shm = &ipc_shm0;
};

aliases {
led0 = &ld26;
};

cpus {
cpu@0 {
status = "okay";
clock-frequency = <DT_FREQ_M(400)>;
};
};

leds: leds {
compatible = "gpio-leds";

ld26: led_0 {
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
};
};

rsc_table: memory@a4100000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0xa4100000 DT_SIZE_K(4)>;
zephyr,memory-region = "RSC_TABLE";
};

ipc_shm0: memory@a5000000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0xa5000000 DT_SIZE_M(8)>;
zephyr,memory-region = "IPC_SHM";
};

ipc0: ipc {
compatible = "zephyr,mbox-ipm";
mboxes = <&mbox6 0>, <&mbox6 1>;
mbox-names = "tx", "rx";
};
};

&mcu_uart0 {
current-speed = <115200>;
pinctrl-0 = <&mcu_uart0_rx &mcu_uart0_tx>;
pinctrl-names = "default";
status = "okay";
};

&mcu_gpio0 {
pinctrl-0 = <&mcu_gpio0_led>;
pinctrl-names = "default";
status = "okay";
};

&mbox6 {
usr-id = <3>;
status = "okay";
};
12 changes: 12 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_m4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2025 Texas Instruments Incorporated
#
# SPDX-License-Identifier: Apache-2.0

identifier: am243x_evm/am2434/m4
name: TI AM243x M4
type: mcu
arch: arm
toolchain:
- zephyr
ram: 192
vendor: ti
16 changes: 16 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_m4_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) 2025 Texas Instruments Incorporated
#
# SPDX-License-Identifier: Apache-2.0

# Platform Configuration
CONFIG_CORTEX_M_SYSTICK=y

# Zephyr Kernel Configuration
CONFIG_XIP=n

# Serial Driver
CONFIG_SERIAL=y

# Enable Console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
35 changes: 35 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0-pinctrl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2025 Texas Instruments Incorporated
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h>

&pinctrl {
status = "okay";

uart0_rx: uart0_rx_default {
pinmux = <K3_PINMUX(0x230, PIN_INPUT, MUX_MODE_0)>;
};

uart0_tx: uart0_tx_default {
pinmux = <K3_PINMUX(0x234, PIN_OUTPUT, MUX_MODE_0)>;
};

i2c0_scl: i2c0_scl_default {
pinmux = <K3_PINMUX(0x260, PIN_INPUT_PULLUP, MUX_MODE_0)>;
};

i2c0_sda: i2c0_sda_default {
pinmux = <K3_PINMUX(0x264, PIN_INPUT_PULLUP, MUX_MODE_0)>;
};
};

&mcu_pinctrl {
status = "okay";

mcu_gpio0_led: mcu_gpio0_led_default {
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_7)>;
};
};
85 changes: 85 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/* Copyright (c) 2025 Texas Instruments Incorporated
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <ti/am64x_r5.dtsi>
#include "am243x_evm_am2434_r5f0_0-pinctrl.dtsi"

/ {
model = "TI AM243x EVM R50 Core 0";
compatible = "ti,am243x-evm-r5";

chosen {
zephyr,sram = &sram;
zephyr,sram1 = &atcm;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,ipc = &ipc0;
zephyr,ipc-shm = &ipc_shm0;
};

aliases {
led0 = &ld26;
};

leds: leds {
compatible = "gpio-leds";

ld26: led_0 {
gpios = <&mcu_gpio0 5 GPIO_ACTIVE_HIGH>;
};
};

rsc_table: memory@a0100000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0xa0100000 DT_SIZE_K(4)>;
zephyr,memory-region = "RSC_TABLE";
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
};

ipc_shm0: memory@a5000000 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0xa5000000 DT_SIZE_M(8)>;
zephyr,memory-region = "IPC_SHM";
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>;
};

ipc0: ipc {
compatible = "zephyr,mbox-ipm";
mboxes = <&mbox6 0>, <&mbox6 1>;
mbox-names = "rx", "tx";
};
};

/* system timer */
&timer8 {
status = "okay";
};

&uart0 {
status = "okay";
pinctrl-0 = <&uart0_tx &uart0_rx>;
pinctrl-names = "default";
current-speed = <115200>;
};

&mcu_gpio0 {
pinctrl-0 = <&mcu_gpio0_led>;
pinctrl-names = "default";
status = "okay";
};

&i2c0 {
pinctrl-0 = <&i2c0_scl &i2c0_sda>;
pinctrl-names = "default";
status = "okay";
};

&mbox6 {
usr-id = <0>;
status = "okay";
};
13 changes: 13 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright (c) 2025 Texas Instruments Incorporated
#
# SPDX-License-Identifier: Apache-2.0

identifier: am243x_evm/am2434/r5f0_0
name: AM243x R5 Core
type: mcu
arch: arm
ram: 256
toolchain:
- zephyr
- gnuarmemb
vendor: ti
17 changes: 17 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2025 Texas Instruments Incorporated
#
# SPDX-License-Identifier: Apache-2.0

# Zephyr Kernel Configuration
CONFIG_XIP=n

# Serial Driver
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# Enable Console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Enable MPU
CONFIG_ARM_MPU=y
6 changes: 6 additions & 0 deletions boards/ti/am243x_evm/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
board:
name: am243x_evm
full_name: TI AM243x-EVM
vendor: ti
socs:
- name: am2434
Binary file not shown.
Loading