summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-05 12:08:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-05 12:08:20 +0100
commit052d1c9e0756db2b02da98c97a6c50d26b8c28ce (patch)
treecd9c072425c9e333e4be744d47aab96fed2cd430 /Documentation
parente2d5e447e6b5035f9e78a29037d15f7fd9606918 (diff)
parent7518e1c47765bb66ee854acb97bd285e9320df36 (diff)
downloadbarebox-052d1c9e0756db2b02da98c97a6c50d26b8c28ce.tar.gz
barebox-052d1c9e0756db2b02da98c97a6c50d26b8c28ce.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/mtd/m25p80.rst2
-rw-r--r--Documentation/user/state.rst46
2 files changed, 45 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/mtd/m25p80.rst b/Documentation/devicetree/bindings/mtd/m25p80.rst
index d7c8914ec5..09e8b8eff6 100644
--- a/Documentation/devicetree/bindings/mtd/m25p80.rst
+++ b/Documentation/devicetree/bindings/mtd/m25p80.rst
@@ -1,7 +1,7 @@
MTD SPI driver for ST M25Pxx (and similar) serial flash chips
=============================================================
-Additionally to the Linux bindings in ``dts/Bindings/mtd/m25p80.txt``
+Additionally to the Linux bindings in ``dts/Bindings/mtd/jedec,spi-nor.txt``
the barebox driver has the following optional properties:
- use-large-blocks : Use large blocks rather than the 4K blocks some devices
diff --git a/Documentation/user/state.rst b/Documentation/user/state.rst
index 7d6c5770d5..d17f39befb 100644
--- a/Documentation/user/state.rst
+++ b/Documentation/user/state.rst
@@ -39,8 +39,8 @@ Backends (e.g. Supported Memory Types)
Some non-volatile memory is need for storing a *state* variable set:
-- all kinds of NOR flash memories
-- all kinds of NAND flash memories
+- Disk like devices: SD, (e)MMC, ATA
+- all kinds of NAND and NOR flash memories (mtd)
- MRAM
- EEPROM
- all kind of SRAMs (backup battery assumed)
@@ -531,6 +531,48 @@ content, its backend-type and *state* variable layout.
};
};
+SD/eMMC and ATA
+###############
+
+The following devicetree node entry defines some kind of SD/eMMC memory and
+a partition at a specific offset inside it to be used as the backend for the
+*state* variable set. Note that currently there is no support for on-disk
+partition tables. Instead, a ofpart partition description must be used. You
+have to make sure that this partition does not conflict with any other partition
+in the partition table.
+
+.. code-block:: text
+
+ backend_state_sd: part@100000 {
+ label = "state";
+ reg = <0x100000 0x20000>;
+ };
+
+With this 'backend' definition its possible to define the *state* variable set
+content, its backend-type and *state* variable layout.
+
+.. code-block:: text
+
+ aliases {
+ state = &state_sd;
+ };
+
+ state_sd: state_memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "barebox,state";
+ magic = <0xab67421f>;
+ backend-type = "raw";
+ backend = <&backend_state_sd>;
+ backend-stridesize = <0x40>;
+
+ variable {
+ reg = <0x0 0x1>;
+ type ="uint8";
+ default = <0x1>;
+ };
+ };
+
SRAM
####