boards: arm: stm32h750b_dk: add support for QPSI flash
devicetree definition for quad spi Signed-off-by: Toon Stegen <toon@toostsolutions.be>
This commit is contained in:
parent
1dd2307b3f
commit
8ae315764c
|
@ -18,6 +18,7 @@
|
|||
zephyr,shell-uart = &usart3;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
zephyr,flash-controller = &mt25ql512ab1;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -45,6 +46,7 @@
|
|||
led0 = &green_led;
|
||||
led1 = &red_led;
|
||||
sw0 = &user_button;
|
||||
spi-flash0 = &mt25ql512ab1;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -81,3 +83,41 @@
|
|||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&quadspi {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&quadspi_clk_pf10 &quadspi_bk1_ncs_pg6
|
||||
&quadspi_bk1_io0_pd11 &quadspi_bk1_io1_pf9
|
||||
&quadspi_bk1_io2_pf7 &quadspi_bk1_io3_pf6
|
||||
&quadspi_bk2_io0_ph2 &quadspi_bk2_io1_ph3
|
||||
&quadspi_bk2_io2_pg9 &quadspi_bk2_io3_pg14>;
|
||||
flash-id = <1>;
|
||||
status = "okay";
|
||||
|
||||
mt25ql512ab1: qspi-nor-flash-1@0 {
|
||||
compatible = "st,stm32-qspi-nor";
|
||||
reg = <0>;
|
||||
qspi-max-frequency = <72000000>;
|
||||
size = <DT_SIZE_M(512)>; /* 64 MBytes */
|
||||
spi-bus-width = <4>;
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
reg = <0x0 DT_SIZE_M(64)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
mt25ql512ab2: qspi-nor-flash-2@1 {
|
||||
compatible = "st,stm32-qspi-nor";
|
||||
reg = <1>;
|
||||
qspi-max-frequency = <72000000>;
|
||||
size = <DT_SIZE_M(512)>; /* 64 MBytes */
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue