1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
4 $id: http://devicetree.org/schemas/nvmem/u-boot,env.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: U-Boot environment variables
10 U-Boot uses environment variables to store device parameters and
11 configuration. They may be used for booting process, setup or keeping end user
14 Data is stored using U-Boot specific formats (variant specific header and NUL
15 separated key-value pairs).
17 Environment data can be stored on various storage entities, e.g.:
18 1. Raw flash partition
21 This binding allows marking storage device (as containing env data) and
22 specifying used format.
24 Right now only flash partition case is covered but it may be extended to e.g.
25 UBI volumes in the future.
27 Variables can be defined as NVMEM device subnodes.
30 - Rafał Miłecki <rafal@milecki.pl>
35 - description: A standalone env data block
37 - description: Two redundant blocks with active one flagged
38 const: u-boot,env-redundant-bool
39 - description: Two redundant blocks with active having higher counter
40 const: u-boot,env-redundant-count
41 - description: Broadcom's variant with custom header
49 description: Command to use for automatic booting
53 description: Ethernet interfaces base MAC address.
54 additionalProperties: false
58 description: The first argument is a MAC address offset.
61 additionalProperties: false
66 compatible = "fixed-partitions";
76 env: partition@40000 {
77 compatible = "u-boot,env";
78 reg = <0x40000 0x10000>;
81 #nvmem-cell-cells = <1>;
87 compatible = "fixed-partitions";
93 compatible = "brcm,u-boot";
96 partition-u-boot-env {
97 compatible = "brcm,env";