Commit 7f2937ef authored by Sai Krishna Potthuri's avatar Sai Krishna Potthuri Committed by Tudor Ambarus

dt-bindings: mtd: spi-nor: Add reset-gpios property

SPI-NOR flashes have RESET pin which can be toggled using GPIO
controller, for those platforms reset-gpios property can be used to
reset the flash device.
Signed-off-by: default avatarSai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220908064428.2962-2-sai.krishna.potthuri@amd.com
parent 247f34f7
...@@ -70,6 +70,12 @@ properties: ...@@ -70,6 +70,12 @@ properties:
be used on such systems, to denote the absence of a reliable reset be used on such systems, to denote the absence of a reliable reset
mechanism. mechanism.
reset-gpios:
description:
A GPIO line connected to the RESET (active low) signal of the device.
If "broken-flash-reset" is present then having this property does not
make any difference.
partitions: partitions:
type: object type: object
...@@ -88,6 +94,7 @@ unevaluatedProperties: false ...@@ -88,6 +94,7 @@ unevaluatedProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h>
spi { spi {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -97,6 +104,7 @@ examples: ...@@ -97,6 +104,7 @@ examples:
reg = <0>; reg = <0>;
spi-max-frequency = <40000000>; spi-max-frequency = <40000000>;
m25p,fast-read; m25p,fast-read;
reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
}; };
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment