Skip to content

Commit 898eaa9

Browse files
youssefz24kartben
authored andcommitted
dts: arm: st: stm32mp25*_m33.dtsi: add init dtsi
Add the initial device tree source include (dtsi) files for the stm32mp25 series boards, covering non-secure configuration for zephyr on the Cortex-M33 core. These files provide the basic hardware description, including CPU (Cortex-M33), memory, RCC clock controller and NVIC interrupt controller. Key features: - Set flash and RAM addresses to DDR memory. - Adjust RCC peripheral address for non-secure context. Signed-off-by: Youssef Zini <youssef.zini@savoirfairelinux.com>
1 parent 4ea5fce commit 898eaa9

File tree

5 files changed

+103
-0
lines changed

5 files changed

+103
-0
lines changed

dts/arm/st/mp2/stm32mp251_m33.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/mp2/stm32mp2_m33.dtsi>
8+
9+
/ {
10+
soc {
11+
compatible = "st,stm32mp251", "st,stm32mp2", "simple-bus";
12+
};
13+
};

dts/arm/st/mp2/stm32mp253_m33.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/mp2/stm32mp251_m33.dtsi>
8+
9+
/ {
10+
soc {
11+
compatible = "st,stm32mp253", "st,stm32mp2", "simple-bus";
12+
};
13+
};

dts/arm/st/mp2/stm32mp255_m33.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/mp2/stm32mp253_m33.dtsi>
8+
9+
/ {
10+
soc {
11+
compatible = "st,stm32mp255", "st,stm32mp2", "simple-bus";
12+
};
13+
};

dts/arm/st/mp2/stm32mp257_m33.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <st/mp2/stm32mp255_m33.dtsi>
8+
9+
/ {
10+
ddr_code: memory0@80100000 {
11+
reg = <0x80100000 DT_SIZE_M(8)>;
12+
};
13+
14+
ddr_sys: memory1@80a00000 {
15+
reg = <0x80a00000 DT_SIZE_M(8)>;
16+
};
17+
18+
soc {
19+
compatible = "st,stm32mp257", "st,stm32mp2", "simple-bus";
20+
};
21+
};

dts/arm/st/mp2/stm32mp2_m33.dtsi

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (C) 2025 Savoir-faire Linux, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <arm/armv8-m.dtsi>
8+
#include <freq.h>
9+
#include <mem.h>
10+
11+
/ {
12+
cpus {
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
16+
cpu0: cpu@0 {
17+
device_type = "cpu";
18+
compatible = "arm,cortex-m33";
19+
reg = <0>;
20+
};
21+
};
22+
23+
ddr_code: memory0@80100000 {
24+
compatible = "mmio-sram";
25+
};
26+
27+
ddr_sys: memory1@80a00000 {
28+
compatible = "mmio-sram";
29+
};
30+
31+
soc {
32+
rcc: rcc@44200000 {
33+
compatible = "st,stm32mp2-rcc";
34+
clocks-controller;
35+
#clock-cells = <2>;
36+
reg = <0x44200000 DT_SIZE_K(64)>;
37+
};
38+
};
39+
};
40+
41+
&nvic {
42+
arm,num-irq-priority-bits = <4>;
43+
};

0 commit comments

Comments
 (0)