Skip to content

Commit

Permalink
boards: arm: stm32h747 disco kit for XiP on external quadflash
Browse files Browse the repository at this point in the history
Define the Device tree of the stm32h747i_disco board
to access the external NOR quad-flash in MemoryMapped mode
for XiP

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM committed Sep 6, 2023
1 parent c2c00dd commit 35e4044
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions boards/arm/stm32h747i_disco/stm32h747i_disco_m7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,flash-controller = &mt25ql512ab1;
zephyr,code-partition = &slot1_partition;
};

sdram2: sdram@d0000000 {
Expand Down Expand Up @@ -100,6 +101,14 @@
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(416)>;
};
/* Set 2KB of storage at the end of first 1MB flash */
storage_partition: partition@ff800 {
label = "storage";
Expand Down Expand Up @@ -217,11 +226,10 @@ zephyr_udc0: &usbotg_hs {
pinctrl-names = "default";
status = "okay";

mt25ql512ab1: qspi-nor-flash-1@0 {
mt25ql512ab1: qspi-nor-flash-1@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(512)>; /* 64 MBytes */
spi-bus-width = <4>;
status = "okay";

Expand All @@ -230,8 +238,10 @@ zephyr_udc0: &usbotg_hs {
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
/* put image at offset 0 in slot1 */
slot1_partition:partition@0 {
label = "nor";
reg = <0x00000000 DT_SIZE_M(32)>;
};
};
};
Expand Down

0 comments on commit 35e4044

Please sign in to comment.