dt-binding: mtd: nand: Document the wp-gpios property
authorChristophe Kerello <christophe.kerello@foss.st.com>
Thu, 17 Feb 2022 14:47:52 +0000 (15:47 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 18 Feb 2022 14:15:00 +0000 (15:15 +0100)
A few drivers use this property to describe the GPIO pin used to protect
the NAND during program/erase operations.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220217144755.270679-2-christophe.kerello@foss.st.com
Documentation/devicetree/bindings/mtd/nand-controller.yaml

index bd217e6f5018a0b4700f67b0a7ade652e0d88cd7..53b21aed0ac5fc1d2aa93d034f7e875e72f618ef 100644 (file)
@@ -154,6 +154,13 @@ patternProperties:
           Ready/Busy pins. Active state refers to the NAND ready state and
           should be set to GPIOD_ACTIVE_HIGH unless the signal is inverted.
 
+      wp-gpios:
+        description:
+          Contains one GPIO descriptor for the Write Protect pin.
+          Active state refers to the NAND Write Protect state and should be
+          set to GPIOD_ACTIVE_LOW unless the signal is inverted.
+        maxItems: 1
+
       secure-regions:
         $ref: /schemas/types.yaml#/definitions/uint64-matrix
         description: