Skip to content

Commit e31a6be

Browse files
harristomykartben
authored andcommitted
soc: st: add stm32u535 support
Adds the u535 soc, similar to the u545 except without the AES HW accelerator signed-off-by: Harris Tomy <[email protected]>
1 parent 0b0cfd5 commit e31a6be

File tree

5 files changed

+84
-0
lines changed

5 files changed

+84
-0
lines changed

dts/arm/st/u5/stm32u535.dtsi

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2025 Harris Tomy
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/u5/stm32u5.dtsi>
8+
9+
/ {
10+
soc {
11+
/* USB-C PD is not available on this part. */
12+
/delete-node/ ucpd@4000dc00;
13+
14+
/* Advanced Encryption Standard HW accelerator is not available on this part. */
15+
/delete-node/ aes@420c0000;
16+
17+
compatible = "st,stm32u535", "st,stm32u5", "simple-bus";
18+
19+
usb: usb@40016000 {
20+
compatible = "st,stm32-usb";
21+
reg = <0x40016000 0x400>;
22+
interrupts = <73 0>;
23+
interrupt-names = "usb";
24+
num-bidir-endpoints = <8>;
25+
ram-size = <2048>;
26+
maximum-speed = "full-speed";
27+
clocks = <&rcc STM32_CLOCK(APB2, 24)>,
28+
<&rcc STM32_SRC_HSI48 ICKLK_SEL(0)>;
29+
phys = <&usb_fs_phy>;
30+
status = "disabled";
31+
};
32+
};
33+
34+
usb_fs_phy: usb_fs_phy {
35+
compatible = "usb-nop-xceiv";
36+
#phy-cells = <0>;
37+
};
38+
};

dts/arm/st/u5/stm32u535Xi.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 Harris Tomy
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <st/u5/stm32u535.dtsi>
9+
10+
/ {
11+
sram0: memory@20000000 {
12+
/* SRAM1 + SRAM2 */
13+
reg = <0x20000000 DT_SIZE_K(256)>;
14+
};
15+
16+
sram1: memory@28000000 {
17+
/* SRAM4, low-power background autonomous mode */
18+
reg = <0x28000000 DT_SIZE_K(16)>;
19+
};
20+
21+
soc {
22+
flash-controller@40022000 {
23+
flash0: flash@8000000 {
24+
reg = <0x08000000 DT_SIZE_K(512)>;
25+
};
26+
};
27+
};
28+
};

soc/st/stm32/soc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ family:
206206
- name: stm32u5a5xx
207207
- name: stm32u5a9xx
208208
- name: stm32u5g9xx
209+
- name: stm32u535xx
209210
- name: stm32u545xx
210211
- name: stm32u575xx
211212
- name: stm32u585xx
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ST Microelectronics STM32U535XX MCU
2+
3+
# Copyright (c) 2025 Harris Tomy
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32U535XX
7+
8+
config NUM_IRQS
9+
default 126
10+
11+
endif # SOC_STM32U535XX

soc/st/stm32/stm32u5x/Kconfig.soc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright (c) 2023 PSICONTROL nv
55
# Copyright (c) 2023 STMicroelectronics
66
# Copyright (c) 2025 Charles Dias
7+
# Copyright (c) 2025 Harris Tomy
78
# SPDX-License-Identifier: Apache-2.0
89

910
config SOC_SERIES_STM32U5X
@@ -13,6 +14,10 @@ config SOC_SERIES_STM32U5X
1314
config SOC_SERIES
1415
default "stm32u5x" if SOC_SERIES_STM32U5X
1516

17+
config SOC_STM32U535XX
18+
bool
19+
select SOC_SERIES_STM32U5X
20+
1621
config SOC_STM32U545XX
1722
bool
1823
select SOC_SERIES_STM32U5X
@@ -49,6 +54,7 @@ config SOC
4954
default "stm32u5a5xx" if SOC_STM32U5A5XX
5055
default "stm32u5a9xx" if SOC_STM32U5A9XX
5156
default "stm32u5g9xx" if SOC_STM32U5G9XX
57+
default "stm32u535xx" if SOC_STM32U535XX
5258
default "stm32u545xx" if SOC_STM32U545XX
5359
default "stm32u575xx" if SOC_STM32U575XX
5460
default "stm32u585xx" if SOC_STM32U585XX

0 commit comments

Comments
 (0)