From 42683c369ca161afc8b6b1f5a294d1d4d16772a5 Mon Sep 17 00:00:00 2001 From: Javad Rahimipetroudi Date: Tue, 8 Apr 2025 16:59:22 +0200 Subject: [PATCH] samples: spi_flash: add support for blackpill_f411ce This commit add spi nor flash support for blackpill_f411ce board Signed-off-by: Javad Rahimipetroudi --- .../spi_flash/boards/blackpill_f411ce.overlay | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 samples/drivers/spi_flash/boards/blackpill_f411ce.overlay diff --git a/samples/drivers/spi_flash/boards/blackpill_f411ce.overlay b/samples/drivers/spi_flash/boards/blackpill_f411ce.overlay new file mode 100644 index 00000000000..d4c0e4c1482 --- /dev/null +++ b/samples/drivers/spi_flash/boards/blackpill_f411ce.overlay @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 Javad Rahimipetroudi + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/* NOTES: + * 1- BlackPill board may be offered with/without soldered flash chips, + * Modify the following configuration based on your chip properties. + * 2- If you are using V3.1 board, you may need to change miso port. Please + * check the schematic before any change. + */ + +&spi1 { + pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pb4 &spi1_mosi_pa7>; + pinctrl-names = "default"; + cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; + + status = "okay"; + + w25q64_spi: spi-nor-flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <24000000>; + size = ; /* 64 Mbits */ + status = "okay"; + jedec-id = [ef 40 17]; + has-dpd; + t-enter-dpd = <3500>; + t-exit-dpd = <3500>; + }; +};