summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/eeprom/at25.txt
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2020-01-07 10:29:21 +0100
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-01-14 16:05:03 +0100
commit821e2c705fb9d4b7f54fd17e7a13614ee515a181 (patch)
treeda4d8e7e0ed171fcd769e8d8eaea4d6e07816f6a /Documentation/devicetree/bindings/eeprom/at25.txt
parenta99d2c6ccd15570a74a39992efa82fd169026b4c (diff)
dt-bindings: at25: add reference for the wp-gpios property
As the at25 uses the NVMEM subsystem, and the property is now being handled, adding reference for it in the device tree binding document, which allows to specify the GPIO line to which the write-protect pin is connected. Signed-off-by: Khouloud Touil <ktouil@baylibre.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'Documentation/devicetree/bindings/eeprom/at25.txt')
-rw-r--r--Documentation/devicetree/bindings/eeprom/at25.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/eeprom/at25.txt b/Documentation/devicetree/bindings/eeprom/at25.txt
index 42577dd113dd..fcacd97abd0a 100644
--- a/Documentation/devicetree/bindings/eeprom/at25.txt
+++ b/Documentation/devicetree/bindings/eeprom/at25.txt
@@ -20,6 +20,7 @@ Optional properties:
- spi-cpha : SPI shifted clock phase, as per spi-bus bindings.
- spi-cpol : SPI inverse clock polarity, as per spi-bus bindings.
- read-only : this parameter-less property disables writes to the eeprom
+- wp-gpios : GPIO to which the write-protect pin of the chip is connected
Obsolete legacy properties can be used in place of "size", "pagesize",
"address-width", and "read-only":
@@ -36,6 +37,7 @@ Example:
spi-max-frequency = <5000000>;
spi-cpha;
spi-cpol;
+ wp-gpios = <&gpio1 3 0>;
pagesize = <64>;
size = <32768>;