dts: stm32u5: add memory package variants

Corrects stm32u53/45xx variants and adds u575Xg and u599Xi

Signed-off-by: Harris Tomy <harristomy@gmail.com>
This commit is contained in:
Harris Tomy 2025-05-22 12:56:16 +00:00 committed by Dan Kalowsky
commit 97876b5d1e
6 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,28 @@
/*
* Copyright (c) 2025 Harris Tomy
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/u5/stm32u535.dtsi>
/ {
sram0: memory@20000000 {
/* SRAM1 + SRAM2 */
reg = <0x20000000 DT_SIZE_K(256)>;
};
sram1: memory@28000000 {
/* SRAM4, low-power background autonomous mode */
reg = <0x28000000 DT_SIZE_K(16)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(128)>;
};
};
};
};

View file

@ -0,0 +1,28 @@
/*
* Copyright (c) 2025 Harris Tomy
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/u5/stm32u535.dtsi>
/ {
sram0: memory@20000000 {
/* SRAM1 + SRAM2 */
reg = <0x20000000 DT_SIZE_K(256)>;
};
sram1: memory@28000000 {
/* SRAM4, low-power background autonomous mode */
reg = <0x28000000 DT_SIZE_K(16)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(256)>;
};
};
};
};

View file

@ -0,0 +1,27 @@
/*
* Copyright (c) 2025 Harris Tomy
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/u5/stm32u575.dtsi>
/ {
sram0: memory@20000000 {
/* SRAM1 + SRAM2 + SRAM3 */
reg = <0x20000000 DT_SIZE_K(768)>;
};
sram1: memory@28000000 {
/* SRAM4, low-power background autonomous mode */
reg = <0x28000000 DT_SIZE_K(16)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_M(1)>;
};
};
};
};

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2025 Harris Tomy
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/u5/stm32u599.dtsi>
/ {
sram0: memory@20000000 {
/* SRAM1 + SRAM2 + SRAM3 + SRAM5 */
reg = <0x20000000 DT_SIZE_K(2496)>;
};
sram1: memory@28000000 {
/* SRAM4 */
reg = <0x28000000 DT_SIZE_K(16)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_M(2)>;
};
};
};
};