Skip to content

Commit 80eb782

Browse files
committed
soc: infineon: add soc initialization support for PSoC4100TP
Add SoC port for the Infineon PSoC4100TP series, including core initialization, respective Kconfigs and yaml files. dts: arm: Add device tree support for PSoC4100TP series Add device tree sources for the 44-pin TQFP, 48-pin QFN, 48-pin TQFP, and 64-pin TQFP pin variants, system clock configuration Signed-off-by: Sayooj K Karun <[email protected]> Signed-off-by: Manojkumar Konisetty <[email protected]>
1 parent fb01c78 commit 80eb782

25 files changed

+870
-3
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include "../psoc4100tp/psoc4100tp.64-tqfp.dtsi"
9+
10+
/ {
11+
flash0: flash@0 {
12+
compatible = "soc-nv-flash";
13+
reg = <0x00000000 0x20000>; /* 128 KB Flash */
14+
};
15+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include "psoc4100tp.dtsi"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include "psoc4100tp.dtsi"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include "psoc4100tp.dtsi"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include "psoc4100tp.dtsi"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include <arm/armv6-m.dtsi>
9+
10+
/ {
11+
cpus {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
15+
cpu0: cpu@0 {
16+
device_type = "cpu";
17+
compatible = "arm,cortex-m0plus";
18+
reg = <0>;
19+
clock-frequency = <48000000>;
20+
};
21+
};
22+
};
23+
24+
&nvic {
25+
arm,num-irq-priority-bits = <2>;
26+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include <mem.h>
9+
#include "psoc4100tp.cm0p.dtsi"
10+
11+
/ {
12+
sram0: memory@20000000 {
13+
compatible = "mmio-sram";
14+
reg = <0x20000000 0x8000>; /* 32 KB SRAM */
15+
};
16+
17+
soc {};
18+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2025 Infineon Technologies AG,
3+
* or an affiliate of Infineon Technologies AG.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/ {
9+
clocks {
10+
11+
};
12+
};

modules/hal_infineon/CMakeLists.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
if(CONFIG_HAS_XMCLIB
66
OR CONFIG_SOC_FAMILY_PSOC6_LEGACY
77
OR CONFIG_SOC_FAMILY_INFINEON_CAT1
8-
OR CONFIG_SOC_FAMILY_INFINEON_EDGE)
8+
OR CONFIG_SOC_FAMILY_INFINEON_EDGE
9+
OR CONFIG_SOC_FAMILY_INFINEON_CAT2)
910

1011
zephyr_library_named(modules_hal_infineon)
1112
zephyr_library_compile_options($<TARGET_PROPERTY:compiler,warning_no_array_bounds>)
@@ -93,3 +94,17 @@ endif()
9394
if(CONFIG_BT_PSOC6_BLESS)
9495
add_subdirectory(bless)
9596
endif()
97+
98+
if(CONFIG_SOC_FAMILY_INFINEON_CAT2)
99+
## Add core-lib sources for CAT2 devices
100+
add_subdirectory(core-lib)
101+
102+
## Add mtb-pdl-cat2 sources for CAT2 devices
103+
add_subdirectory(mtb-pdl-cat2)
104+
105+
## Add mtb-template-cat2 sources for CAT2 devices
106+
add_subdirectory(mtb-template-cat2)
107+
108+
## Add abstraction-rtos sources
109+
add_subdirectory(abstraction-rtos)
110+
endif()

modules/hal_infineon/Kconfig

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config ZEPHYR_HAL_INFINEON_MODULE
77
config ZEPHYR_HAL_INFINEON_MODULE_BLOBS
88
bool
99

10-
if SOC_FAMILY_INFINEON_CAT1 || SOC_FAMILY_INFINEON_EDGE || SOC_FAMILY_PSOC6_LEGACY
10+
if SOC_FAMILY_INFINEON_CAT1 || SOC_FAMILY_INFINEON_EDGE || SOC_FAMILY_PSOC6_LEGACY || SOC_FAMILY_INFINEON_CAT2
1111

1212
config USE_INFINEON_ADC
1313
bool
@@ -108,8 +108,28 @@ config USE_INFINEON_SMIF
108108
bool
109109
help
110110
Enable SMIF HAL driver for Infineon devices
111+
config USE_INFINEON_LP_COMP
112+
bool
113+
help
114+
Enable LP-Comp (Low-Power Comparator) HAL module driver for Infineon devices
115+
116+
config USE_INFINEON_MSCLP
117+
bool
118+
help
119+
Enable MSCLP (Multi-Speed Clock Low-Power) HAL module driver for Infineon devices
120+
121+
config USE_INFINEON_TCPWM_QUADDEC
122+
bool
123+
help
124+
Enable Timer (Timer/Counter/PWM Quadrature Decoder) HAL module driver for
125+
Infineon devices
126+
127+
config INFINEON_SMARTIO
128+
bool
129+
help
130+
Enable Smart-IO module driver for Infineon devices
111131

112-
endif # SOC_FAMILY_INFINEON_CAT1 || SOC_FAMILY_INFINEON_EDGE || SOC_FAMILY_PSOC6_LEGACY
132+
endif # SOC_FAMILY_INFINEON_CAT1 || SOC_FAMILY_INFINEON_EDGE || SOC_FAMILY_PSOC6_LEGACY || SOC_FAMILY_INFINEON_CAT2
113133

114134
config USE_INFINEON_ABSTRACTION_RTOS
115135
bool "Abstraction RTOS component (Zephyr support)"

0 commit comments

Comments
 (0)