blob: 3e01c64a4bdb0b13c505a2bc9dcfaa38a8b5a723 [file] [log] [blame]
Pali Rohár118f9a42022-02-14 11:34:28 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
4&spi0 {
5 spi-flash@0 {
6 partitions {
7 compatible = "fixed-partitions";
8 #address-cells = <1>;
9 #size-cells = <1>;
10
11 partition@firmware {
12 reg = <0 CONFIG_ENV_OFFSET>;
13 label = "firmware";
14 };
15
16 partition@u-boot-env {
17 reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
18 label = "u-boot-env";
19 };
20 };
21 };
22};
23#endif
Pali Rohárf60c6002022-02-14 11:34:29 +010024
25/*
26 * U-Boot requires to have this eMMC node by default in "okay" status. U-Boot
27 * at runtime changes status to "disabled" if eMMC is not present on the board.
28 */
29&sdhci0 {
30 status = "okay";
31};