Skip to content

Commit a9c6ab0

Browse files
committed
Boards: Infineon: cyw920829m2evk_02: Reorganizing board hardware
Reorganizing board hardware definition in the device tree to better reflect hardware design of separate processor board and base board. Signed-off-by: John Batch <john.batch@infineon.com>
1 parent bbcc974 commit a9c6ab0

File tree

8 files changed

+252
-158
lines changed

8 files changed

+252
-158
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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 <zephyr/dt-bindings/misc/ifx_cyw20829.h>
10+
11+
/ {
12+
sram0: memory@20000000 {
13+
#address-cells = <1>;
14+
#size-cells = <1>;
15+
16+
compatible = "mmio-sram";
17+
reg = <SRAM0_SAHB_BASE SRAM0_SIZE>;
18+
19+
/* SRAM aliased address path */
20+
sram_sahb: sram_sahb@20000000 {
21+
reg = <SRAM0_SAHB_BASE SRAM0_SIZE>; /* SAHB address */
22+
};
23+
24+
sram_cbus: sram_cbus@4000000 {
25+
reg = <SRAM0_CBUS_BASE SRAM0_SIZE>; /* CBUS address */
26+
};
27+
};
28+
29+
/* sram_bootstrap address calculation:
30+
* sram_sahb + sram_size (256k) - bootstrap size
31+
* (e.g. 0x20000000 + 0x40000 - 16K (0x4000) = 0x2003C000)
32+
*/
33+
sram_bootstrap: memory@2003c000 {
34+
#address-cells = <1>;
35+
#size-cells = <1>;
36+
compatible = "zephyr,memory-region", "mmio-sram";
37+
zephyr,memory-region = "BOOTSTRAP_RAM";
38+
reg = <BOOTSTRAP_SAHB_BASE BOOTSTRAP_SIZE>;
39+
40+
/* SRAM aliased address path */
41+
sram_bootstrap_sahb: sram_bootstrap_sahb@2003c000 {
42+
reg = <BOOTSTRAP_SAHB_BASE BOOTSTRAP_SIZE>; /* SAHB address */
43+
};
44+
45+
sram_bootstrap_cbus: sram_bootstrap_cbus@403c000 {
46+
reg = <BOOTSTRAP_CBUS_BASE BOOTSTRAP_SIZE>; /* CBUS address */
47+
};
48+
};
49+
};
50+
51+
/* Flash Memory Partitioning is defined here.
52+
*
53+
* Note that the flash memory is located in different locations for different
54+
* parts in the family. For the following parts, flash is located inside the
55+
* SOC package but still accessed via the qspi interface.
56+
* - CYW20829B1340
57+
* - CYW20829B1240
58+
* - CYW89829B0232
59+
* - CYW89829B1232
60+
*
61+
* For other parts in the family, flash is external to the part. For the
62+
* CYW920829M2EVK_02 board, the flash is located on the processor board
63+
* (CYW920829M2IPA2) these parts.
64+
*/
65+
&flash0 {
66+
bootstrap_region: bootstrap_region@0 {
67+
reg = <0 BOOTSTRAP_SIZE>;
68+
};
69+
70+
partitions {
71+
compatible = "fixed-partitions";
72+
#address-cells = <1>;
73+
#size-cells = <1>;
74+
75+
boot_partition: partition@0 {
76+
label = "mcuboot";
77+
reg = <0x0 0x20000>;
78+
read-only;
79+
};
80+
81+
slot0_partition: partition@20000 {
82+
label = "image-0";
83+
reg = <0x20000 0x60000>;
84+
};
85+
86+
slot1_partition: partition@80000 {
87+
label = "image-1";
88+
reg = <0x80000 0x60000>;
89+
};
90+
91+
storage_partition: storage_partition@E0000 {
92+
compatible = "soc-nv-flash";
93+
reg = <0xE0000 DT_SIZE_K(64)>;
94+
};
95+
};
96+
};

boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02.dts

Lines changed: 0 additions & 147 deletions
This file was deleted.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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/infineon/cat1b/cyw20829/system_clocks.dtsi>
9+
#include "cyw920829m2evk_02-memory_map.dtsi"
10+
#include "cyw920829m2evk_02-common.dtsi"
11+
#include "cyw920829m2evk_02-pinctrl.dtsi"
12+
13+
/ {
14+
aliases {
15+
watchdog0 = &watchdog0;
16+
};
17+
18+
chosen {
19+
zephyr,sram = &sram0;
20+
zephyr,flash = &flash0;
21+
zephyr,code-partition = &slot0_partition;
22+
zephyr,console = &uart2;
23+
zephyr,shell-uart = &uart2;
24+
zephyr,bt-hci = &bluetooth;
25+
};
26+
};
27+
28+
uart2: &scb2 {
29+
compatible = "infineon,cat1-uart";
30+
status = "okay";
31+
current-speed = <115200>;
32+
hw-flow-control;
33+
34+
pinctrl-0 = <&p3_3_scb2_uart_tx &p3_2_scb2_uart_rx &p3_1_scb2_uart_rts &p3_0_scb2_uart_cts>;
35+
pinctrl-names = "default";
36+
37+
dmas = <&dma0 8>, <&dma0 9>;
38+
dma-names = "tx", "rx";
39+
};
40+
41+
&dma0 {
42+
#address-cells = <1>;
43+
#size-cells = <0>;
44+
compatible = "infineon,cat1-dma";
45+
status = "okay";
46+
};
47+
48+
&fll0 {
49+
status = "okay";
50+
};
51+
52+
&path_mux0 {
53+
status = "okay";
54+
};
55+
56+
&path_mux1 {
57+
status = "okay";
58+
};
59+
60+
&path_mux2 {
61+
status = "okay";
62+
};
63+
64+
&path_mux3 {
65+
status = "okay";
66+
};
67+
68+
&clk_hf0 {
69+
status = "okay";
70+
clocks = <&fll0>;
71+
};
72+
73+
&clk_hf1 {
74+
status = "okay";
75+
};
76+
77+
&clk_hf2 {
78+
status = "okay";
79+
};
80+
81+
&clk_hf3 {
82+
status = "okay";
83+
};
84+
85+
&watchdog0 {
86+
status = "okay";
87+
};
88+
89+
&mcwdt0 {
90+
status = "okay";
91+
};
92+
93+
&bluetooth {
94+
status = "okay";
95+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
/dts-v1/;
9+
#include <arm/infineon/cat1b/mpns/cyw20829b0lkml.dtsi>
10+
#include "cyw920829m2ipa2.dtsi"
11+
#include "cyw920829m2evk_02.dtsi"
12+
13+
/ {
14+
model = "The Infineon AIROC™ CYW20829 Bluetooth® LE evaluation kit (CYW92089M2EVK-02) Featuring CYW20829B0LKML";
15+
compatible = "infineon,cyw920829m2evk_02", "infineon,CYW20829";
16+
};

boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02.yaml renamed to boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02_cyw20829b0lkml.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#
2-
# Copyright (c) 2024 Cypress Semiconductor Corporation.
3-
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2025 Infineon Technologies AG,
3+
# or an affiliate of Infineon Technologies AG.
44
#
5+
# SPDX-License-Identifier: Apache-2.0
56

67
identifier: cyw920829m2evk_02
7-
name: The Infineon AIROC™ CYW20829 Bluetooth® LE evaluation kit (CYW92089M2EVK-02)
8+
name: The Infineon AIROC™ CYW20829 Bluetooth® LE evaluation kit (CYW92089M2EVK-02) Featuring CYW20829B0LKML
89
type: mcu
910
arch: arm
1011
ram: 1024

boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02_defconfig renamed to boards/infineon/cyw920829m2evk_02/cyw920829m2evk_02_cyw20829b0lkml_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
# Copyright (c) 2025 Infineon Technologies AG,
2+
# or an affiliate of Infineon Technologies AG.
13
#
2-
# Copyright (c) 2024 Cypress Semiconductor Corporation.
34
# SPDX-License-Identifier: Apache-2.0
4-
#
55

66
# General configuration
77
CONFIG_ARM_MPU=y

0 commit comments

Comments
 (0)