watchdog_init_timeout() will allways pick timeout_param since it defaults to a valid timeout. By following best practice described in Documentation/watchdog/watchdog-kernel-api.txt, it also let us to set timout-sec property in devicetree. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
18 lines
427 B
Text
18 lines
427 B
Text
Allwinner SoCs Watchdog timer
|
|
|
|
Required properties:
|
|
|
|
- compatible : should be either "allwinner,sun4i-a10-wdt" or
|
|
"allwinner,sun6i-a31-wdt"
|
|
- reg : Specifies base physical address and size of the registers.
|
|
|
|
Optional properties:
|
|
- timeout-sec : Contains the watchdog timeout in seconds
|
|
|
|
Example:
|
|
|
|
wdt: watchdog@1c20c90 {
|
|
compatible = "allwinner,sun4i-a10-wdt";
|
|
reg = <0x01c20c90 0x10>;
|
|
timeout-sec = <10>;
|
|
};
|