Pali Rohár | a134aaa | 2022-02-14 11:34:28 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | |
Pali Rohár | a134aaa | 2022-02-14 11:34:28 +0100 | [diff] [blame] | 3 | &spi0 { |
Pali Rohár | 8285b92 | 2022-03-23 17:19:42 +0100 | [diff] [blame] | 4 | 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ár | a134aaa | 2022-02-14 11:34:28 +0100 | [diff] [blame] | 13 | 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ár | 8285b92 | 2022-03-23 17:19:42 +0100 | [diff] [blame] | 28 | #endif |
Pali Rohár | a134aaa | 2022-02-14 11:34:28 +0100 | [diff] [blame] | 29 | }; |
| 30 | }; |
Pali Rohár | 6560bf4 | 2022-02-14 11:34:29 +0100 | [diff] [blame] | 31 | |
| 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 | }; |