Skip to content

Commit

Permalink
boards: arm: stm32 disco kit has ospi nor flash node
Browse files Browse the repository at this point in the history
Define the reg and size property for the stm32 disco kits
which have an octospi instance
Refer to the dts/bindings/flash_controller/st,stm32-ospi-nor.yaml.
Also remove the <size> property for the stm362h750 disco kit.

Signed-off-by: Francois Ramu <[email protected]>
  • Loading branch information
FRASTM committed Feb 5, 2024
1 parent d7328ea commit ff9f11a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
5 changes: 2 additions & 3 deletions boards/arm/adi_eval_adin1110ebz/adi_eval_adin1110ebz.dts
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,10 @@ zephyr_udc0: &usbotg_fs {

status = "okay";

mx25r6435f: ospi-nor-flash@0 {
mx25r6435f: ospi-nor-flash@90000000 {
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
size = <DT_SIZE_M(64)>; /* 64 Megabits */
spi-bus-width = <OSPI_QUAD_MODE>;
data-rate = <OSPI_STR_TRANSFER>;
writeoc="PP_1_4_4";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,10 @@ zephyr_udc0: &usbotg_fs {

status = "okay";

mx25r6435f: ospi-nor-flash@0 {
mx25r6435f: ospi-nor-flash@90000000 {
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(8)>; /* 64 Megabits */
ospi-max-frequency = <DT_FREQ_M(26)>; /* for Voltage Range 2 */
size = <DT_SIZE_M(64)>; /* 64 Megabits */
spi-bus-width = <OSPI_QUAD_MODE>;
data-rate = <OSPI_STR_TRANSFER>;
writeoc="PP_1_4_4";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,10 @@

status = "okay";

mx25lm51245: ospi-nor-flash@0 {
mx25lm51245: ospi-nor-flash@90000000 {
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
ospi-max-frequency = <DT_FREQ_M(50)>;
size = <DT_SIZE_M(512)>; /* 64 MBytes */
spi-bus-width = <OSPI_OPI_MODE>;
data-rate = <OSPI_DTR_TRANSFER>;
four-byte-opcodes;
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32h735g_disco/stm32h735g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,10 @@

status = "okay";

mx25lm51245: ospi-nor-flash@0 {
mx25lm51245: ospi-nor-flash@90000000 {
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
ospi-max-frequency = <DT_FREQ_M(50)>;
size = <DT_SIZE_M(512)>; /* 64 MBytes */
spi-bus-width = <OSPI_OPI_MODE>;
data-rate = <OSPI_DTR_TRANSFER>;
status = "okay";
Expand Down
1 change: 0 additions & 1 deletion boards/arm/stm32h750b_dk/stm32h750b_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
compatible = "st,stm32-qspi-nor";
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/stm32h7b3i_dk/stm32h7b3i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,10 @@

status = "okay";

mx25lm51245: ospi-nor-flash@0 {
mx25lm51245: ospi-nor-flash@90000000 {
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
ospi-max-frequency = <DT_FREQ_M(50)>;
size = <DT_SIZE_M(512)>; /* 512 Megabits */
spi-bus-width = <OSPI_OPI_MODE>;
data-rate = <OSPI_DTR_TRANSFER>;
status = "okay";
Expand Down
5 changes: 2 additions & 3 deletions boards/arm/stm32l4r9i_disco/stm32l4r9i_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,11 @@ zephyr_udc0: &usbotg_fs {
&octospim_p2_dqs_pg15>;
pinctrl-names = "default";

mx25lm51245: ospi-nor-flash@0 {
mx25lm51245: ospi-nor-flash@90000000 {
status = "okay";
compatible = "st,stm32-ospi-nor";
reg = <0>;
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
ospi-max-frequency = <DT_FREQ_M(25)>;
size = <DT_SIZE_M(512)>; /* 512 Mbits = 64 MBytes */
spi-bus-width = <OSPI_OPI_MODE>;
data-rate = <OSPI_STR_TRANSFER>;
four-byte-opcodes;
Expand Down

0 comments on commit ff9f11a

Please sign in to comment.