Skip to content

Commit 9a7b7ae

Browse files
committed
dts: arm: st: u5: add support for stm32u5g9
Add device tree support for STM32U5G9 line. Signed-off-by: Charles Dias <[email protected]>
1 parent 821356a commit 9a7b7ae

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

Diff for: dts/arm/st/u5/stm32u5g9.dtsi

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2025 Charles Dias
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/u5/stm32u595.dtsi>
8+
9+
/ {
10+
soc {
11+
compatible = "st,stm32u5g9", "st,stm32u5", "simple-bus";
12+
};
13+
};

Diff for: dts/arm/st/u5/stm32u5g9Xj.dtsi

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2025 Charles Dias
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <st/u5/stm32u5g9.dtsi>
9+
10+
/ {
11+
sram0: memory@20000000 {
12+
/* SRAM1 + SRAM2 + SRAM3 + SRAM5 + SRAM6 */
13+
/* 768K + 64K + 832K + 832K + 512 */
14+
reg = <0x20000000 DT_SIZE_K(3008)>;
15+
};
16+
17+
sram4: memory@28000000 {
18+
/* SRAM4, low-power background autonomous mode */
19+
reg = <0x28000000 DT_SIZE_K(16)>;
20+
};
21+
22+
soc {
23+
flash-controller@40022000 {
24+
flash0: flash@8000000 {
25+
reg = <0x08000000 DT_SIZE_M(4)>;
26+
};
27+
};
28+
};
29+
};

0 commit comments

Comments
 (0)