Skip to content

Commit f31ee3c

Browse files
dmosbergerKalle Valo
authored andcommitted
wilc1000: Document enable-gpios and reset-gpios properties
Add documentation for the ENABLE and RESET GPIOs that may be needed by wilc1000-spi. Signed-off-by: David Mosberger-Tang <davidm@egauge.net> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20211221212531.4011609-3-davidm@egauge.net
1 parent ec031ac commit f31ee3c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Documentation/devicetree/bindings/net/wireless/microchip,wilc1000.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ properties:
3232
clock-names:
3333
const: rtc
3434

35+
enable-gpios:
36+
maxItems: 1
37+
description: Used by wilc1000-spi to determine the GPIO line
38+
connected to the ENABLE line. If specified, reset-gpios
39+
must be specified as well as otherwise the driver cannot
40+
ensure the timing required between asserting ENABLE
41+
and deasserting RESET. This should be declared as an
42+
active-high signal.
43+
44+
reset-gpios:
45+
maxItems: 1
46+
description: Used by wilc1000-spi to determine the GPIO line
47+
connected to the RESET line. This should be declared as an
48+
active-low signal.
49+
3550
required:
3651
- compatible
3752
- interrupts
@@ -40,6 +55,8 @@ additionalProperties: false
4055

4156
examples:
4257
- |
58+
#include <dt-bindings/gpio/gpio.h>
59+
4360
spi {
4461
#address-cells = <1>;
4562
#size-cells = <0>;
@@ -51,6 +68,8 @@ examples:
5168
interrupts = <27 0>;
5269
clocks = <&pck1>;
5370
clock-names = "rtc";
71+
enable-gpios = <&pioA 5 GPIO_ACTIVE_HIGH>;
72+
reset-gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
5473
};
5574
};
5675

0 commit comments

Comments
 (0)