1
1
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2
2
%YAML 1.2
3
3
---
4
- $id : http://devicetree.org/schemas/nvmem/u-boot,env.yaml#
4
+ $id : http://devicetree.org/schemas/nvmem/layouts/ u-boot,env.yaml#
5
5
$schema : http://devicetree.org/meta-schemas/core.yaml#
6
6
7
- title : U-Boot environment variables
7
+ title : U-Boot environment variables layout
8
8
9
9
description : |
10
10
U-Boot uses environment variables to store device parameters and
@@ -21,9 +21,6 @@ description: |
21
21
This binding allows marking storage device (as containing env data) and
22
22
specifying used format.
23
23
24
- Right now only flash partition case is covered but it may be extended to e.g.
25
- UBI volumes in the future.
26
-
27
24
Variables can be defined as NVMEM device subnodes.
28
25
29
26
maintainers :
@@ -42,6 +39,7 @@ properties:
42
39
const : brcm,env
43
40
44
41
reg :
42
+ description : Partition offset and size for env on top of MTD
45
43
maxItems : 1
46
44
47
45
bootcmd :
@@ -58,6 +56,17 @@ properties:
58
56
description : The first argument is a MAC address offset.
59
57
const : 1
60
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
+
61
70
additionalProperties : false
62
71
63
72
examples :
@@ -101,3 +110,23 @@ examples:
101
110
};
102
111
};
103
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
+ };
0 commit comments