xref: /freebsd/sys/contrib/device-tree/Bindings/power/reset/ltc2952-poweroff.txt (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1c66ec88fSEmmanuel VadotBinding for the LTC2952 PowerPath controller
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotThis chip is used to externally trigger a system shut down. Once the trigger has
4c66ec88fSEmmanuel Vadotbeen sent, the chip's watchdog has to be reset to gracefully shut down.
5c66ec88fSEmmanuel VadotA full powerdown can be triggered via the kill signal.
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel VadotRequired properties:
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot- compatible:		Must contain: "lltc,ltc2952"
10c66ec88fSEmmanuel Vadot- watchdog-gpios:	phandle + gpio-specifier for the GPIO connected to the
11c66ec88fSEmmanuel Vadot			chip's watchdog line
12c66ec88fSEmmanuel Vadot- kill-gpios:		phandle + gpio-specifier for the GPIO connected to the
13c66ec88fSEmmanuel Vadot			chip's kill line
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel VadotOptional properties:
16c66ec88fSEmmanuel Vadot- trigger-gpios:	phandle + gpio-specifier for the GPIO connected to the
17c66ec88fSEmmanuel Vadot			chip's trigger line. If this property is not set, the
18c66ec88fSEmmanuel Vadot			trigger function is ignored and the chip is kept alive
19c66ec88fSEmmanuel Vadot			until an explicit kill signal is received
20*2eb4d8dcSEmmanuel Vadot- trigger-delay-ms	The number of milliseconds to wait after trigger line
21*2eb4d8dcSEmmanuel Vadot			assertion before executing shut down procedure.
22*2eb4d8dcSEmmanuel Vadot			The default is 2500ms.
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel VadotExample:
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadotltc2952 {
27c66ec88fSEmmanuel Vadot	compatible = "lltc,ltc2952";
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot	trigger-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
30*2eb4d8dcSEmmanuel Vadot	trigger-delay-ms = <2000>;
31c66ec88fSEmmanuel Vadot	watchdog-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
32c66ec88fSEmmanuel Vadot	kill-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
33c66ec88fSEmmanuel Vadot};
34