Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/nvmem/u-boot,env.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: U-Boot environment variables
0008 
0009 description: |
0010   U-Boot uses environment variables to store device parameters and
0011   configuration. They may be used for booting process, setup or keeping end user
0012   info.
0013 
0014   Data is stored using U-Boot specific formats (variant specific header and NUL
0015   separated key-value pairs).
0016 
0017   Environment data can be stored on various storage entities, e.g.:
0018   1. Raw flash partition
0019   2. UBI volume
0020 
0021   This binding allows marking storage device (as containing env data) and
0022   specifying used format.
0023 
0024   Right now only flash partition case is covered but it may be extended to e.g.
0025   UBI volumes in the future.
0026 
0027 maintainers:
0028   - Rafał Miłecki <rafal@milecki.pl>
0029 
0030 properties:
0031   compatible:
0032     oneOf:
0033       - description: A standalone env data block
0034         const: u-boot,env
0035       - description: Two redundant blocks with active one flagged
0036         const: u-boot,env-redundant-bool
0037       - description: Two redundant blocks with active having higher counter
0038         const: u-boot,env-redundant-count
0039 
0040   reg:
0041     maxItems: 1
0042 
0043 additionalProperties: false
0044 
0045 examples:
0046   - |
0047     partitions {
0048         compatible = "fixed-partitions";
0049         #address-cells = <1>;
0050         #size-cells = <1>;
0051 
0052         partition@0 {
0053             reg = <0x0 0x40000>;
0054             label = "u-boot";
0055             read-only;
0056         };
0057 
0058         env: partition@40000 {
0059             compatible = "u-boot,env";
0060             reg = <0x40000 0x10000>;
0061         };
0062     };