1/*
2 * Copyright (c) 2022 Lukasz Majewski, DENX Software Engineering GmbH
3 * Copyright (c) 2024 STMicroelectronics
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7/delete-node/ &storage_partition;
8
9&sdmmc1 {
10	status = "okay";
11	pinctrl-0 = <&sdmmc1_d0_pc8
12		     &sdmmc1_ck_pc12
13		     &sdmmc1_cmd_pd2>;
14
15	pinctrl-names = "default";
16};
17
18/ {
19	fstab {
20		compatible = "zephyr,fstab";
21		lfs1: lfs1 {
22			compatible = "zephyr,fstab,littlefs";
23			read-size = <32>;
24			prog-size = <32>;
25			cache-size = <256>;
26			lookahead-size = <64>;
27			block-cycles = <512>;
28			partition = <&storage_partition>;
29			mount-point = "/lfs1";
30		};
31	};
32};
33
34&quadspi {
35	pinctrl-0 = <&quadspi_clk_pf10 &quadspi_bk2_ncs_pc11
36		     &quadspi_bk2_io0_pe7 &quadspi_bk2_io1_pe8
37		     &quadspi_bk2_io2_pe9 &quadspi_bk2_io3_pe10>;
38	pinctrl-names = "default";
39
40	flash-id = <2>;
41	status = "okay";
42
43	mx25l25645g: qspi-nor-flash@90000000 {
44		compatible = "st,stm32-qspi-nor";
45		reg = <0x90000000 DT_SIZE_M(32)>; /* 256 Mbits */
46		qspi-max-frequency = <50000000>;
47		reset-gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
48		reset-gpios-duration = <1>;
49		spi-bus-width = <4>;
50		status = "okay";
51
52		partitions {
53			   compatible = "fixed-partitions";
54			   #address-cells = <1>;
55			   #size-cells = <1>;
56
57			   storage_partition: partition@0 {
58			       label = "storage";
59			       reg = <0 DT_SIZE_M(8)>;
60			   };
61		};
62	};
63};
64