Skip to content

Commit 00733ce

Browse files
markussmSTdanieldegrasse
authored andcommitted
dts: Add hspi to STM32U5 chips including this
The SOCs including this dts all have hspi (xspi comatible) peripheral included. Signed-off-by: Mathias Markussen <[email protected]>
1 parent 746d60b commit 00733ce

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

dts/arm/st/u5/stm32u599.dtsi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
/*
22
* Copyright (c) 2023 PSICONTROL nv
33
* Copyright (c) 2025 Harris Tomy
4+
* Copyright (c) 2025 STMicroelectronics
45
*
56
* SPDX-License-Identifier: Apache-2.0
67
*/
78

89
#include <st/u5/stm32u595.dtsi>
10+
#include <zephyr/dt-bindings/memory-attr/memory-attr.h>
11+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
12+
#include <zephyr/dt-bindings/flash_controller/xspi.h>
13+
#include <mem.h>
914

1015
/ {
1116
soc {
@@ -20,5 +25,18 @@
2025
resets = <&rctl STM32_RESET(APB2, 26)>;
2126
status = "disabled";
2227
};
28+
29+
xspi1: spi@420d3400 {
30+
compatible = "st,stm32-xspi";
31+
reg = <0x420d3400 0x400>,
32+
<0xa0000000 DT_SIZE_M(256)>;
33+
interrupts = <131 0>;
34+
clock-names = "xspix", "xspi-ker";
35+
clocks = <&rcc STM32_CLOCK(AHB2_2, 12)>,
36+
<&rcc STM32_SRC_SYSCLK HSPI_SEL(0)>;
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
status = "disabled";
40+
};
2341
};
2442
};

0 commit comments

Comments
 (0)