Skip to content

Commit f2a7766

Browse files
javad123javadJavad Rahimipetroudi
authored and
Javad Rahimipetroudi
committed
samples: spi_flash: add support for blackpill_f411ce
This commit add spi nor flash support for blackpill_f411ce board Signed-off-by: Javad Rahimipetroudi <[email protected]>
1 parent 4680590 commit f2a7766

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Javad Rahimipetroudi <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* NOTES:
8+
* 1- BlackPill board may be offered with/without soldered flash chips,
9+
* Modify the following configuration based on your chip properties.
10+
* 2- If you are using V3.1 board, may may need to change miso port. Please
11+
* check the schematic befoare any change.
12+
*/
13+
14+
&spi1 {
15+
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pb4 &spi1_mosi_pa7>;
16+
pinctrl-names = "default";
17+
cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
18+
19+
status = "okay";
20+
21+
w25q64_spi: spi-nor-flash@0 {
22+
compatible = "jedec,spi-nor";
23+
reg = <0>;
24+
spi-max-frequency = <24000000>;
25+
size = <DT_SIZE_M(64)>; /* 64 Mbits */
26+
status = "okay";
27+
jedec-id = [ef 40 17];
28+
has-dpd;
29+
t-enter-dpd = <3500>;
30+
t-exit-dpd = <3500>;
31+
};
32+
};

0 commit comments

Comments
 (0)