[PATCH 1/2] dt-bindings: mtd: spi-nor: document new flag

From: Michael Walle
Date: Sat Dec 14 2019 - 14:21:53 EST


Document the new flag "no-unlock".

Signed-off-by: Michael Walle <michael@xxxxxxxx>
---
Does the property need a prefix? I couldn't find any hint. If so, what
should it be? "m25p," or "spi-nor," ?

Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
index f03be904d3c2..2d305c893ed7 100644
--- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
+++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
@@ -78,6 +78,12 @@ Optional properties:
cannot reboot properly if the flash is left in the "wrong"
state. This boolean flag can be used on such systems, to
denote the absence of a reliable reset mechanism.
+- no-unlock : By default, linux unlocks the whole flash because there
+ are legacy flash devices which are locked by default
+ after reset. Set this flag if you don't want linux to
+ unlock the whole flash automatically. In this case you
+ can control the non-volatile bits by the
+ flash_lock/flash_unlock tools.

Example:

--
2.20.1