bootcount-syscon.txt 739 B

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