Skip to content

Commit

Permalink
boards: arm: stm32 boards has qspi nor flash node
Browse files Browse the repository at this point in the history
Define the reg and size property for the stm32 boards with qspi inside
Refer to the dts/bindings/flash_controller/st,stm32-ospi-nor.yaml.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
  • Loading branch information
FRASTM committed Jan 31, 2024
1 parent 7e64369 commit 8192b65
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 43 deletions.
5 changes: 2 additions & 3 deletions boards/arm/arduino_giga_r1/arduino_giga_r1_m7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@
pinctrl-names = "default";
status = "okay";

n25q128a1: qspi-nor-flash@0 {
n25q128a1: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(16*8)>;
status = "okay";

partitions {
Expand Down
6 changes: 2 additions & 4 deletions boards/arm/disco_l475_iot1/disco_l475_iot1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,10 @@ zephyr_udc0: &usbotg_fs {

status = "okay";

mx25r6435f: qspi-nor-flash@0 {
mx25r6435f: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Mbits */
qspi-max-frequency = <50000000>;
/* 64 Megabits = 8 Megabytes */
size = <0x4000000>;
status = "okay";

partitions {
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/pandora_stm32l475/pandora_stm32l475.dts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@
pinctrl-names = "default";

status = "okay";
w25q128jv: qspi-nor-flash@0 {
w25q128jv: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
qspi-max-frequency = <80000000>;
size = <0x8000000>;
jedec-id = [ef 40 18];
spi-bus-width = <4>;
status = "okay";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32f412g_disco/stm32f412g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@
pinctrl-names = "default";
status = "okay";

n25q128a1: qspi-nor-flash@0 {
n25q128a1: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(16*8)>;
status = "okay";
};
};
5 changes: 2 additions & 3 deletions boards/arm/stm32f723e_disco/stm32f723e_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@
flash-id = <1>;
status = "okay";

mx25r512: qspi-nor-flash@0 {
mx25r512: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
qspi-max-frequency = <8000000>;
size = <DT_SIZE_M(512)>; /* 64 MBytes */
status = "okay";
spi-bus-width = <4>;
writeoc = "PP_1_4_4";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32f746g_disco/stm32f746g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
status = "okay";

n25q128a1: qspi-nor-flash@0 {
n25q128a1: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(16*8)>;
status = "okay";

partitions {
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32f7508_dk/stm32f7508_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
status = "okay";

n25q128a1: qspi-nor-flash@0 {
n25q128a1: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(16)>; /* 128 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(16*8)>;
status = "okay";

partitions {
Expand Down
7 changes: 3 additions & 4 deletions boards/arm/stm32f769i_disco/stm32f769i_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@ arduino_serial: &usart6 {};
pinctrl-names = "default";
status = "okay";

mx25l51245g: qspi-nor-flash@0 {
mx25l51245g: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(64*8)>;
status = "okay";

partitions {
Expand All @@ -186,7 +185,7 @@ arduino_serial: &usart6 {};

slot1_partition: partition@0 {
label = "image-1";
reg = <0x00000000 DT_SIZE_K(1664)>;
reg = <0x00000000 DT_SIZE_K(16)>;
};

storage_partition: partition@1a0000 {
Expand Down
10 changes: 4 additions & 6 deletions boards/arm/stm32h747i_disco/stm32h747i_disco_m7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,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 @@ -251,11 +250,10 @@ zephyr_udc0: &usbotg_hs {
};
};

mt25ql512ab2: qspi-nor-flash-2@0 {
mt25ql512ab2: qspi-nor-flash-2@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 */
status = "okay";
};
};
Expand Down
9 changes: 4 additions & 5 deletions boards/arm/stm32h750b_dk/stm32h750b_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@
flash-id = <1>;
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 @@ -121,9 +120,9 @@
};
};

mt25ql512ab2: qspi-nor-flash-2@1 {
mt25ql512ab2: qspi-nor-flash-2@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <1>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
qspi-max-frequency = <72000000>;
size = <DT_SIZE_M(512)>; /* 64 MBytes */
status = "okay";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32l496g_disco/stm32l496g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,10 @@ zephyr_udc0: &usbotg_fs {
flash-id = <1>;
status = "okay";

mx25r6435: qspi-nor-flash@0 {
mx25r6435: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Mbits */
qspi-max-frequency = <8000000>;
size = <DT_SIZE_M(64)>; /* 8 MBytes */
status = "okay";
spi-bus-width = <4>;
writeoc = "PP_1_4_4";
Expand Down
5 changes: 2 additions & 3 deletions samples/subsys/fs/littlefs/boards/nucleo_h743zi.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
flash-id = <2>;
status = "okay";

mx25l25645g: qspi-nor-flash@0 {
mx25l25645g: qspi-nor-flash@90000000 {
compatible = "st,stm32-qspi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(32)>; /* 256 Mbits */
qspi-max-frequency = <50000000>;
size = <DT_SIZE_M(32*8)>;
reset-gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
reset-gpios-duration = <1>;
spi-bus-width = <4>;
Expand Down

0 comments on commit 8192b65

Please sign in to comment.