blob: e124f7b614289ea323ee8d7588374a03ef96a5bd [file] [log] [blame]
Nandor Hanc50b21b2021-06-10 15:40:38 +03001Bootcount Configuration
2This is the implementation of the feature as described in
3https://www.denx.de/wiki/DULG/UBootBootCountLimit.
4
5Required Properties:
6- compatible: must be "u-boot,bootcount-syscon".
7- syscon: reference to the syscon device used.
8- reg: contains address and size of the register and the location and size of the bootcount value.
9 The driver supports a 4 bytes register length and 2 and 4 bytes bootcount value length.
10- reg-names: must be "syscon_reg", "offset";
11
12Example:
13 ...
14 syscon0: syscon@0 {
15 compatible = "sandbox,syscon0";
16 reg = <0x10 16>;
17 };
18 ...
19 bootcount@0 {
20 compatible = "u-boot,bootcount-syscon";
21 syscon = <&syscon0>;
22 reg = <0x0 0x04>, <0x0 0x04>;
23 reg-names = "syscon_reg", "offset";
24 };