1/*
2 * Copyright (c) 2025 Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
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, you may need to change miso port. Please
11 *  check the schematic before 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};
33