~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/nvmem/layouts/u-boot,env.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/nvmem/layouts/u-boot,env.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: U-Boot environment variables layout
  8 
  9 description: |
 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
 12   info.
 13 
 14   Data is stored using U-Boot specific formats (variant specific header and NUL
 15   separated key-value pairs).
 16 
 17   Environment data can be stored on various storage entities, e.g.:
 18   1. Raw flash partition
 19   2. UBI volume
 20 
 21   This binding allows marking storage device (as containing env data) and
 22   specifying used format.
 23 
 24   Variables can be defined as NVMEM device subnodes.
 25 
 26 maintainers:
 27   - Rafał Miłecki <rafal@milecki.pl>
 28 
 29 properties:
 30   compatible:
 31     oneOf:
 32       - description: A standalone env data block
 33         const: u-boot,env
 34       - description: Two redundant blocks with active one flagged
 35         const: u-boot,env-redundant-bool
 36       - description: Two redundant blocks with active having higher counter
 37         const: u-boot,env-redundant-count
 38       - description: Broadcom's variant with custom header
 39         const: brcm,env
 40 
 41   reg:
 42     description: Partition offset and size for env on top of MTD
 43     maxItems: 1
 44 
 45   bootcmd:
 46     type: object
 47     description: Command to use for automatic booting
 48 
 49   ethaddr:
 50     type: object
 51     description: Ethernet interfaces base MAC address.
 52     additionalProperties: false
 53 
 54     properties:
 55       "#nvmem-cell-cells":
 56         description: The first argument is a MAC address offset.
 57         const: 1
 58 
 59 allOf:
 60   - if:
 61       properties:
 62         $nodename:
 63           not:
 64             contains:
 65               pattern: "^partition@[0-9a-f]+$"
 66     then:
 67       properties:
 68         reg: false
 69 
 70 additionalProperties: false
 71 
 72 examples:
 73   - |
 74     partitions {
 75         compatible = "fixed-partitions";
 76         #address-cells = <1>;
 77         #size-cells = <1>;
 78 
 79         partition@0 {
 80             reg = <0x0 0x40000>;
 81             label = "u-boot";
 82             read-only;
 83         };
 84 
 85         env: partition@40000 {
 86             compatible = "u-boot,env";
 87             reg = <0x40000 0x10000>;
 88 
 89             mac: ethaddr {
 90                 #nvmem-cell-cells = <1>;
 91             };
 92         };
 93     };
 94   - |
 95     partitions {
 96         compatible = "fixed-partitions";
 97         #address-cells = <1>;
 98         #size-cells = <1>;
 99 
100         partition@0 {
101             reg = <0x0 0x100000>;
102             compatible = "brcm,u-boot";
103             label = "u-boot";
104 
105             partition-u-boot-env {
106                 compatible = "brcm,env";
107 
108                 ethaddr {
109                 };
110             };
111         };
112     };
113   - |
114     partition@0 {
115         reg = <0x0 0x100000>;
116         label = "ubi";
117         compatible = "linux,ubi";
118 
119         volumes {
120             ubi-volume-u-boot-env {
121                 volname = "env";
122 
123                 nvmem-layout {
124                     compatible = "u-boot,env";
125 
126                     ethaddr {
127                         #nvmem-cell-cells = <1>;
128                     };
129                 };
130             };
131         };
132     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php