Skip to content

Commit 8993aa7

Browse files
committed
dts: arm: stm32h7rs mcu with xspi instance
Defines the the xspi peripheral of the stm32h7rs serie Requires the corresponding memory area of the MPU. Signed-off-by: Francois Ramu <[email protected]>
1 parent d07a83e commit 8993aa7

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

dts/arm/st/h7rs/stm32h7rs.dtsi

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <zephyr/dt-bindings/adc/adc.h>
1616
#include <zephyr/dt-bindings/memory-attr/memory-attr.h>
1717
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
18+
#include <zephyr/dt-bindings/flash_controller/xspi.h>
1819
#include <freq.h>
1920

2021
/*
@@ -81,7 +82,8 @@
8182
compatible = "zephyr,memory-region";
8283
reg = <0x70000000 DT_SIZE_M(256)>;
8384
zephyr,memory-region = "EXTMEM";
84-
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_EXTMEM) )>;
85+
/* The ATTR_MPU_EXTMEM attribut causing a MPU FAULT */
86+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>;
8587
};
8688

8789
clocks {
@@ -769,6 +771,32 @@
769771
st,adc-oversampler = "OVERSAMPLER_MINIMAL";
770772
};
771773

774+
xspi1: spi@52005000 {
775+
compatible = "st,stm32-xspi";
776+
reg = <0x52005000 0x1000>, <0x90000000 DT_SIZE_M(256)>;
777+
interrupts = <105 0>;
778+
clock-names = "xspix", "xspi-ker", "xspi-mgr";
779+
clocks = <&rcc STM32_CLOCK(AHB5, 5U)>,
780+
<&rcc STM32_SRC_PLL2_S XSPI1_SEL(1)>,
781+
<&rcc STM32_CLOCK(AHB5, 14U)>;
782+
#address-cells = <1>;
783+
#size-cells = <0>;
784+
status = "disabled";
785+
};
786+
787+
xspi2: spi@5200a000 {
788+
compatible = "st,stm32-xspi";
789+
reg = <0x5200a000 0x1000>, <0x70000000 DT_SIZE_M(256)>;
790+
interrupts = <106 0>;
791+
clock-names = "xspix", "xspi-ker", "xspi-mgr";
792+
clocks = <&rcc STM32_CLOCK(AHB5, 12U)>,
793+
<&rcc STM32_SRC_PLL2_S XSPI2_SEL(1)>,
794+
<&rcc STM32_CLOCK(AHB5, 14U)>;
795+
#address-cells = <1>;
796+
#size-cells = <0>;
797+
status = "disabled";
798+
};
799+
772800
rng: rng@48020000 {
773801
compatible = "st,stm32-rng";
774802
reg = <0x48020000 0x400>;

0 commit comments

Comments
 (0)