xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/alphascale-asm9260.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotAlphascale asm9260 Watchdog timer
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot- compatible : should be "alphascale,asm9260-wdt".
6*c66ec88fSEmmanuel Vadot- reg : Specifies base physical address and size of the registers.
7*c66ec88fSEmmanuel Vadot- clocks : the clocks feeding the watchdog timer. See clock-bindings.txt
8*c66ec88fSEmmanuel Vadot- clock-names : should be set to
9*c66ec88fSEmmanuel Vadot	"mod" - source for tick counter.
10*c66ec88fSEmmanuel Vadot	"ahb" - ahb gate.
11*c66ec88fSEmmanuel Vadot- resets : phandle pointing to the system reset controller with
12*c66ec88fSEmmanuel Vadot	line index for the watchdog.
13*c66ec88fSEmmanuel Vadot- reset-names : should be set to "wdt_rst".
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotOptional properties:
16*c66ec88fSEmmanuel Vadot- timeout-sec : shall contain the default watchdog timeout in seconds,
17*c66ec88fSEmmanuel Vadot	if unset, the default timeout is 30 seconds.
18*c66ec88fSEmmanuel Vadot- alphascale,mode : three modes are supported
19*c66ec88fSEmmanuel Vadot	"hw" - hw reset (default).
20*c66ec88fSEmmanuel Vadot	"sw" - sw reset.
21*c66ec88fSEmmanuel Vadot	"debug" - no action is taken.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel Vadotwatchdog0: watchdog@80048000 {
26*c66ec88fSEmmanuel Vadot	compatible = "alphascale,asm9260-wdt";
27*c66ec88fSEmmanuel Vadot	reg = <0x80048000 0x10>;
28*c66ec88fSEmmanuel Vadot	clocks = <&acc CLKID_SYS_WDT>, <&acc CLKID_AHB_WDT>;
29*c66ec88fSEmmanuel Vadot	clock-names = "mod", "ahb";
30*c66ec88fSEmmanuel Vadot	interrupts = <55>;
31*c66ec88fSEmmanuel Vadot	resets = <&rst WDT_RESET>;
32*c66ec88fSEmmanuel Vadot	reset-names = "wdt_rst";
33*c66ec88fSEmmanuel Vadot	timeout-sec = <30>;
34*c66ec88fSEmmanuel Vadot	alphascale,mode = "hw";
35*c66ec88fSEmmanuel Vadot};
36