summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2020-03-02 17:43:59 +0300
committerHeiko Schocher <hs@denx.de>2020-03-16 10:05:00 +0300
commit80e8b8add057d2c947394d9d57fc2dcc7ff886d1 (patch)
tree4fbddbddec49d22c714965af6c0ff6ec36ed435f /doc
parent27d483bfa34c1695c2be230efc50c52d5a3d04e2 (diff)
downloadu-boot-80e8b8add057d2c947394d9d57fc2dcc7ff886d1.tar.xz
bootcounter: add DM support for memory based bootcounter
add DM/DTS support for the memory based bootcounter in drivers/bootcount/bootcount.c. Let the old implementation in, so boards which have not yet convert to DM/DTS do not break. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/device-tree-bindings/misc/bootcounter.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/misc/bootcounter.txt b/doc/device-tree-bindings/misc/bootcounter.txt
new file mode 100644
index 0000000000..d32fbc37b2
--- /dev/null
+++ b/doc/device-tree-bindings/misc/bootcounter.txt
@@ -0,0 +1,21 @@
+U-Boot bootcounter Devicetree Binding
+=====================================
+
+The device tree node describes the U-Boot bootcounter
+memory based device binding.
+
+Required properties :
+
+- compatible : "u-boot,bootcount";
+- single-word : set this, if you have only one word space
+ for storing the bootcounter.
+
+Example
+-------
+
+MPC83xx based board:
+
+bootcount@0x13ff8 {
+ compatible = "u-boot,bootcount";
+ reg = <0x13ff8 0x08>;
+};