Skip to content

Commit 0b58b33

Browse files
committed
dts: arm: st: add stm32h523Xe support
Provide support for STM32H523XE. Signed-off-by: Filip Stojanovic <[email protected]>
1 parent 5e63a5a commit 0b58b33

File tree

3 files changed

+65
-21
lines changed

3 files changed

+65
-21
lines changed

dts/arm/st/h5/stm32h523.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
3+
* Copyright (c) 2025 Filip Stojanovic
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
#include <st/h5/stm32h5.dtsi>
8+
9+
/ {
10+
soc {
11+
compatible = "st,stm32h533", "st,stm32h5", "simple-bus";
12+
13+
gpiof: gpio@42021400 {
14+
compatible = "st,stm32-gpio";
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
reg = <0x42021400 0x400>;
18+
clocks = <&rcc STM32_CLOCK(AHB2, 7U)>;
19+
};
20+
21+
fmc: memory-controller@47000400 {
22+
compatible = "st,stm32-fmc";
23+
reg = <0x47000400 0x400>;
24+
clocks = <&rcc STM32_CLOCK(AHB4, 16U)>;
25+
status = "disabled";
26+
};
27+
};
28+
};

dts/arm/st/h5/stm32h523Xe.dtsi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
3+
* Copyright (c) 2025 Filip Stojanovic
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
#include <mem.h>
8+
#include <st/h5/stm32h533.dtsi>
9+
10+
/ {
11+
sram1: memory@20000000 {
12+
compatible = "zephyr,memory-region", "mmio-sram";
13+
reg = <0x20000000 DT_SIZE_K(128)>;
14+
zephyr,memory-region = "SRAM1";
15+
};
16+
17+
sram2: memory@20040000 {
18+
compatible = "zephyr,memory-region", "mmio-sram";
19+
reg = <0x20040000 DT_SIZE_K(80)>;
20+
zephyr,memory-region = "SRAM2";
21+
};
22+
23+
sram3: memory@20050000 {
24+
compatible = "zephyr,memory-region", "mmio-sram";
25+
reg = <0x20050000 DT_SIZE_K(64)>;
26+
zephyr,memory-region = "SRAM3";
27+
};
28+
29+
soc {
30+
flash-controller@40022000 {
31+
flash0: flash@8000000 {
32+
reg = <0x08000000 DT_SIZE_K(512)>;
33+
};
34+
};
35+
};
36+
};

dts/arm/st/h5/stm32h533.dtsi

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,5 @@
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
#include <st/h5/stm32h5.dtsi>
76

8-
/ {
9-
soc {
10-
compatible = "st,stm32h533", "st,stm32h5", "simple-bus";
11-
12-
gpiof: gpio@42021400 {
13-
compatible = "st,stm32-gpio";
14-
gpio-controller;
15-
#gpio-cells = <2>;
16-
reg = <0x42021400 0x400>;
17-
clocks = <&rcc STM32_CLOCK(AHB2, 7U)>;
18-
};
19-
20-
fmc: memory-controller@47000400 {
21-
compatible = "st,stm32-fmc";
22-
reg = <0x47000400 0x400>;
23-
clocks = <&rcc STM32_CLOCK(AHB4, 16U)>;
24-
status = "disabled";
25-
};
26-
};
27-
};
7+
#include <st/h5/stm32h523.dtsi>

0 commit comments

Comments
 (0)