* [PATCH v1] Documentation: provide documentation for NVMEM interfaces.
@ 2017-05-17 10:03 Oleksij Rempel
2017-05-19 5:15 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Oleksij Rempel @ 2017-05-17 10:03 UTC (permalink / raw)
To: barebox; +Cc: Oleksij Rempel
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
Documentation/user/nvmem.rst | 30 ++++++++++++++++++++++++++++++
Documentation/user/user-manual.rst | 1 +
2 files changed, 31 insertions(+)
create mode 100644 Documentation/user/nvmem.rst
diff --git a/Documentation/user/nvmem.rst b/Documentation/user/nvmem.rst
new file mode 100644
index 0000000000..f860b80fd5
--- /dev/null
+++ b/Documentation/user/nvmem.rst
@@ -0,0 +1,30 @@
+NVMEM subsystem
+===============
+
+The NVMEM framework was partially ported from linux kernel.
+
+Except from linux kernel documentation:
+*NVMEM* is the abbreviation for Non Volatile Memory layer. It is used to
+retrieve configuration of SOC or Device specific data from non volatile
+memories like eeprom, efuses and so on.
+
+Userspace binary interface
+^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Userspace can read/write the raw NVMEM file located at
+/dev/nvmem*
+
+.. code-block:: sh
+
+ md -s /dev/nvmem0 0+4
+ 00000000: 00000000 ....
+
+ mw -d /dev/nvmem0 0 0x12345678
+
+ md -s /dev/nvmem0 0+4
+ 00000000: 12345678 xV4.
+
+DeviceTree Binding
+^^^^^^^^^^^^^^^^^^
+
+See linux kernel Documentation/devicetree/bindings/nvmem/nvmem.txt
diff --git a/Documentation/user/user-manual.rst b/Documentation/user/user-manual.rst
index 791c8e0979..b66782ef6a 100644
--- a/Documentation/user/user-manual.rst
+++ b/Documentation/user/user-manual.rst
@@ -34,6 +34,7 @@ Contents:
system-reset
state
random
+ nvmem
* :ref:`search`
* :ref:`genindex`
--
2.11.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v1] Documentation: provide documentation for NVMEM interfaces.
2017-05-17 10:03 [PATCH v1] Documentation: provide documentation for NVMEM interfaces Oleksij Rempel
@ 2017-05-19 5:15 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-05-19 5:15 UTC (permalink / raw)
To: Oleksij Rempel; +Cc: barebox
On Wed, May 17, 2017 at 12:03:48PM +0200, Oleksij Rempel wrote:
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
> Documentation/user/nvmem.rst | 30 ++++++++++++++++++++++++++++++
> Documentation/user/user-manual.rst | 1 +
> 2 files changed, 31 insertions(+)
> create mode 100644 Documentation/user/nvmem.rst
Applied, thanks
Sascha
>
> diff --git a/Documentation/user/nvmem.rst b/Documentation/user/nvmem.rst
> new file mode 100644
> index 0000000000..f860b80fd5
> --- /dev/null
> +++ b/Documentation/user/nvmem.rst
> @@ -0,0 +1,30 @@
> +NVMEM subsystem
> +===============
> +
> +The NVMEM framework was partially ported from linux kernel.
> +
> +Except from linux kernel documentation:
> +*NVMEM* is the abbreviation for Non Volatile Memory layer. It is used to
> +retrieve configuration of SOC or Device specific data from non volatile
> +memories like eeprom, efuses and so on.
> +
> +Userspace binary interface
> +^^^^^^^^^^^^^^^^^^^^^^^^^^
> +
> +Userspace can read/write the raw NVMEM file located at
> +/dev/nvmem*
> +
> +.. code-block:: sh
> +
> + md -s /dev/nvmem0 0+4
> + 00000000: 00000000 ....
> +
> + mw -d /dev/nvmem0 0 0x12345678
> +
> + md -s /dev/nvmem0 0+4
> + 00000000: 12345678 xV4.
> +
> +DeviceTree Binding
> +^^^^^^^^^^^^^^^^^^
> +
> +See linux kernel Documentation/devicetree/bindings/nvmem/nvmem.txt
> diff --git a/Documentation/user/user-manual.rst b/Documentation/user/user-manual.rst
> index 791c8e0979..b66782ef6a 100644
> --- a/Documentation/user/user-manual.rst
> +++ b/Documentation/user/user-manual.rst
> @@ -34,6 +34,7 @@ Contents:
> system-reset
> state
> random
> + nvmem
>
> * :ref:`search`
> * :ref:`genindex`
> --
> 2.11.0
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-19 5:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-17 10:03 [PATCH v1] Documentation: provide documentation for NVMEM interfaces Oleksij Rempel
2017-05-19 5:15 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox