Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/mtd/partitions/u-boot.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: U-Boot bootloader partition |
| 8 | |
| 9 | description: | |
| 10 | U-Boot is a bootlodaer commonly used in embedded devices. It's almost always |
| 11 | located on some kind of flash device. |
| 12 | |
| 13 | Device configuration is stored as a set of environment variables that are |
| 14 | located in a (usually standalone) block of data. |
| 15 | |
| 16 | maintainers: |
| 17 | - Rafał Miłecki <rafal@milecki.pl> |
| 18 | |
| 19 | allOf: |
| 20 | - $ref: partition.yaml# |
| 21 | |
| 22 | properties: |
| 23 | compatible: |
| 24 | oneOf: |
| 25 | - const: brcm,u-boot |
| 26 | description: | |
| 27 | Broadcom stores environment variables inside a U-Boot partition. They |
| 28 | can be identified by a custom header with magic value. |
| 29 | |
| 30 | patternProperties: |
| 31 | "^partition-.*$": |
| 32 | $ref: partition.yaml# |
| 33 | |
| 34 | unevaluatedProperties: false |
| 35 | |
| 36 | examples: |
| 37 | - | |
| 38 | partitions { |
| 39 | compatible = "fixed-partitions"; |
| 40 | #address-cells = <1>; |
| 41 | #size-cells = <1>; |
| 42 | |
| 43 | partition@0 { |
| 44 | compatible = "brcm,u-boot"; |
| 45 | reg = <0x0 0x100000>; |
| 46 | label = "u-boot"; |
| 47 | |
| 48 | partition-u-boot-env { |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | partition@100000 { |
| 53 | reg = <0x100000 0x1ff00000>; |
| 54 | label = "firmware"; |
| 55 | }; |
| 56 | }; |