Nandor Han | c50b21b | 2021-06-10 15:40:38 +0300 | [diff] [blame] | 1 | Bootcount Configuration |
| 2 | This is the implementation of the feature as described in |
| 3 | https://www.denx.de/wiki/DULG/UBootBootCountLimit. |
| 4 | |
| 5 | Required 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 | |
| 12 | Example: |
| 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 | }; |