aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorAvinash Tahakik <Avinash.Tahakik@imgtec.com>2015-12-11 13:20:09 +0530
committerGerrit Code Review <root@hhgit01>2015-12-15 11:05:23 +0000
commit48595564963fc9c8ac09e8c3936b921bf182d136 (patch)
tree2d7d369a210c7a41360082f753aae1e47a99e700 /Documentation/devicetree
parent7d3577b2a454733b3b62be65882e88726d4ae6f0 (diff)
downloadv4.1-48595564963fc9c8ac09e8c3936b921bf182d136.tar.gz
KIN-1492: drivers, misc: add U-Boot bootcount driver
This driver implements the Linux kernel half of the boot count feature - the boot counter can only be reset after it is clear that the application has been started and is running correctly, which usually can only be determined by the application code itself. Thus the reset of the boot counter must be done by application code, which thus needs an appropriate driver. Required feature by the Carrier Grade Linux Requirements Definition; see for example document "Carrier Grade Linux Requirements Definition Overview V3.0" at http://www.linuxfoundation.org/collaborate/workgroups/cgl/requirements#SMM.6.0_Boot_Cycle_Detection Description: OSDL CGL specifies that carrier grade Linux shall provide support for detecting a repeating reboot cycle due to recurring failures. This detection should happen in user space before system services are started. This driver provides read/write access to the U-Boot bootcounter through sysfs file. The bootcountregister gets configured via DTS. for example on the enbw_cmc board: bootcount@0x23060 { compatible = "uboot,bootcount"; reg = <0x23060 0x1>; }; original post from: http://lkml.indiana.edu/hypermail/linux/kernel/1112.0/01142.html Change-Id: Ie913096961043f918f515233470a9925981857bb Signed-off-by: Avinash Tahakik <Avinash.Tahakik@imgtec.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r--Documentation/devicetree/bindings/misc/uboot-bootcount.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/misc/uboot-bootcount.txt b/Documentation/devicetree/bindings/misc/uboot-bootcount.txt
new file mode 100644
index 00000000000..7ab1134c3f3
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/uboot-bootcount.txt
@@ -0,0 +1,34 @@
+U-Boot bootcount driver
+
+This driver implements the Linux kernel half of the boot count feature -
+the boot counter can only be reset after it is clear that the
+application has been started and is running correctly, which usually
+can only be determined by the application code itself. Thus the reset
+of the boot counter must be done by application code, which thus needs
+an appropriate driver.
+
+Required feature by the Carrier Grade Linux Requirements Definition;
+see for example document "Carrier Grade Linux Requirements Definition
+Overview V3.0" at
+
+http://www.linuxfoundation.org/collaborate/workgroups/cgl/requirements#SMM.6.0_Boot_Cycle_Detection
+
+ Description: OSDL CGL specifies that carrier grade Linux
+ shall provide support for detecting a repeating reboot cycle
+ due to recurring failures. This detection should happen in
+ user space before system services are started.
+
+This driver provides read/write access to the U-Boot bootcounter
+through sysfs file.
+
+Required properties:
+
+ - compatible : should be "uboot,bootcount"
+ - reg: the address of the bootcounter
+
+Example:
+
+bootcount@1c23000 {
+ compatible = "uboot,bootcount";
+ reg = <0x23060 0x1>;
+};