Skip to content
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
Empty file.
6 changes: 6 additions & 0 deletions boards/infineon/kit_a2g_tc337/Kconfig.kit_a2g_tc337
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2024 Infineon Technologies AG
# SPDX-License-Identifier: Apache-2.0

config BOARD_KIT_A2G_TC337
bool "Infineon A2G TC337 Starter Kit"
select SOC_TC337LP
5 changes: 5 additions & 0 deletions boards/infineon/kit_a2g_tc337/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
board:
name: kit_a2g_tc337
vendor: infineon
socs:
- name: tc337lp
89 changes: 89 additions & 0 deletions boards/infineon/kit_a2g_tc337/kit_a2g_tc337.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Copyright (c) 2024 Infineon Technologies AG
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;

#include <infineon/tc337lp.dtsi>

/ {
model = "Infineon TC337 Starter Kit";
compatible = "infineon,kit_a2g_tc337", "infineon,tc337lp",
"infineon,tc3xx";

chosen {
zephyr,flash = &flash0;
zephyr,sram = &dsram0;
zephyr,itcm = &psram0;
zephyr,console = &uart0;
infineon,system-timer = &stm0;
};

leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&p33 4 GPIO_ACTIVE_LOW>;
};
led1: led_1 {
gpios = <&p00 6 GPIO_ACTIVE_LOW>;
};
};

aliases {
led0 = &led0;
};

can_phy0: can-phy0 {
compatible = "infineon,tle9251v", "can-transceiver-gpio";
standby-gpios = <&p20 6 0>;
max-bitrate = <5000000>;
#phy-cells = <0>;
};
};

&fosc {
clock-frequency = <DT_FREQ_M(20)>;
status = "okay";
};

&stm0 {
status = "okay";
freeze;
};

&p00 {
status = "okay";
};

&p20 {
status = "okay";
};

&p33 {
status = "okay";
};

&uart0 {
status = "okay";
pinctrl-0 = <&asclin0_tx_p14_0>, <&asclin0_rx_p14_1>;
pinctrl-names = "default";
};

&mcmcan0 {
status = "okay";
};

&mcmcan1 {
status = "okay";
};

&can00 {
status = "okay";
bus-speed = <500000>;
bus-speed-data = <2000000>;
pinctrl-0 = <&can00_tx_p20_8>, <&can00_rx_p20_7>;
pinctrl-names = "default";
phys = <&can_phy0>;
};
19 changes: 19 additions & 0 deletions boards/infineon/kit_a2g_tc337/kit_a2g_tc337.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
identifier: kit_a2g_tc337
name: A2G TC337 Starter Kit
type: mcu
arch: tricore
toolchain:
- zephyr
supported:
- gpio
- i2c
- watchdog
- uart
- can
- pwm
- spi
testing:
ignore_tags:
- net
- bluetooth
vendor: infineon
8 changes: 8 additions & 0 deletions boards/infineon/kit_a2g_tc337/kit_a2g_tc337_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=100000000

CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_LED=y

CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
19 changes: 19 additions & 0 deletions boards/infineon/kit_a2g_tc375_lite/kit_a2g_tc375_lite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
identifier: kit_a2g_tc375_lite
name: A2G TC375 Litekit
type: mcu
arch: tricore
toolchain:
- zephyr
supported:
- gpio
- i2c
- watchdog
- uart
- can
- pwm
- spi
testing:
ignore_tags:
- net
- bluetooth
vendor: infineon
2 changes: 1 addition & 1 deletion cmake/compiler/gcc/target_tricore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set(TRICORE_C_FLAGS)
list(APPEND TRICORE_C_FLAGS -mcpu=${GCC_M_CPU})

list(APPEND TOOLCHAIN_C_FLAGS ${TRICORE_C_FLAGS})
list(APPEND TOOLCHAIN_LD_FLAGS NO_SPLIT ${TRICORE_C_FLAGS})
list(APPEND TOOLCHAIN_LD_FLAGS ${TRICORE_C_FLAGS})
13 changes: 13 additions & 0 deletions dts/tricore/infineon/tc337lp.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2024 Infineon Technologies AG
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <mem.h>
#include <infineon/tc33x.dtsi>
#include <infineon/tc33x-pinctrl.dtsi>

/ {

};
Loading
Loading