summaryrefslogtreecommitdiff
path: root/Documentation/ABI/stable/sysfs-bus-nvmem
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2017-07-26 12:09:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:57:52 +0200
commitc26bbb3ca9c4c58b886497efbeccac7cbd9e98a4 (patch)
tree19e648de5e133a3f335ddc71fad93838338fca18 /Documentation/ABI/stable/sysfs-bus-nvmem
parent917c8c2570e1c106ad68ee3d00eb28351b923b0a (diff)
Documentation/ABI: document the nvmem sysfs files
NVMEM has been in kernel since v4.2 but the ABI document was missing since then. userspace interface did not change since then and seems stable, so this patch documents the nvmem ABI. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ABI/stable/sysfs-bus-nvmem')
-rw-r--r--Documentation/ABI/stable/sysfs-bus-nvmem19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/ABI/stable/sysfs-bus-nvmem b/Documentation/ABI/stable/sysfs-bus-nvmem
new file mode 100644
index 000000000000..5923ab4620c5
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-bus-nvmem
@@ -0,0 +1,19 @@
+What: /sys/bus/nvmem/devices/.../nvmem
+Date: July 2015
+KernelVersion: 4.2
+Contact: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+Description:
+ This file allows user to read/write the raw NVMEM contents.
+ Permissions for write to this file depends on the nvmem
+ provider configuration.
+
+ ex:
+ hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
+
+ 0000000 0000 0000 0000 0000 0000 0000 0000 0000
+ *
+ 00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
+ 0000000 0000 0000 0000 0000 0000 0000 0000 0000
+ ...
+ *
+ 0001000