summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/reset/gpio-reset.txt
blob: 7d45d8b810ea68d1350572ae7c7320a84377ca4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
GPIO reset controller
=====================

A GPIO reset controller controls a single GPIO that is connected to the reset
pin of a peripheral IC. Please also refer to reset.txt in this directory for
common reset controller binding usage.

Required properties:
- compatible: Should be "gpio-reset"
- reset-gpios: A gpio used as reset line. The gpio specifier for this property
               depends on the gpio controller that provides the gpio.
- #reset-cells: 0, see below

Optional properties:
- reset-delay-us: delay in microseconds. The gpio reset line will be asserted for
                  this duration to reset.
- reset-post-delay-ms: delay in milliseconds to wait after reset.
- initially-in-reset: boolean. If not set, the initial state should be a
                      deasserted reset line. If this property exists, the
                      reset line should be kept in reset.

example:

sii902x_reset: gpio-reset {
	compatible = "gpio-reset";
	reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
	reset-delay-us = <10000>;
	initially-in-reset;
	#reset-cells = <0>;
};

/* Device with nRESET pin connected to GPIO5_0 */
sii902x@39 {
	/* ... */
	resets = <&sii902x_reset>; /* active-low GPIO5_0, 10 ms delay */
};