blob: 07293ab72d1fa75f6ae0d30035fe2f0b278a50e3 [file] [log] [blame]
Pali Rohár118f9a42022-02-14 11:34:28 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
Pali Rohár118f9a42022-02-14 11:34:28 +01003&spi0 {
Pali Rohárc13d3a72022-03-23 17:19:42 +01004 flash@0 {
5 /*
6 * For some unknown reason U-Boot SPI driver cannot access
7 * SPI-NOR with higher frequency. Linux kernel SPI driver
8 * does not have this problem.
9 */
10 spi-max-frequency = <50000000>;
11
12#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
Pali Rohár118f9a42022-02-14 11:34:28 +010013 partitions {
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@firmware {
19 reg = <0 CONFIG_ENV_OFFSET>;
20 label = "firmware";
21 };
22
23 partition@u-boot-env {
24 reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
25 label = "u-boot-env";
26 };
27 };
Pali Rohárc13d3a72022-03-23 17:19:42 +010028#endif
Pali Rohár118f9a42022-02-14 11:34:28 +010029 };
30};
Pali Rohárf60c6002022-02-14 11:34:29 +010031
32/*
33 * U-Boot requires to have this eMMC node by default in "okay" status. U-Boot
34 * at runtime changes status to "disabled" if eMMC is not present on the board.
35 */
36&sdhci0 {
37 status = "okay";
38};