Skip to content

Commit bde047b

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 d2888cc commit bde047b

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
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_M(4)>;
25+
};
26+
};
27+
};
28+
};

0 commit comments

Comments
 (0)