4f1f653a68
Add device tree support for exynos5250 and 5420 SoCs and use syscon regmap interface to configure AUTOMATIC_WDT_RESET_DISABLE and MASK_WDT_RESET_REQUEST registers of PMU to mask/unmask enable/disable of watchdog in probe and s2r scenarios. Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com> Signed-off-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
* Samsung's Watchdog Timer Controller
|
|
|
|
The Samsung's Watchdog controller is used for resuming system operation
|
|
after a preset amount of time during which the WDT reset event has not
|
|
occurred.
|
|
|
|
Required properties:
|
|
- compatible : should be one among the following
|
|
(a) "samsung,s3c2410-wdt" for Exynos4 and previous SoCs
|
|
(b) "samsung,exynos5250-wdt" for Exynos5250
|
|
(c) "samsung,exynos5420-wdt" for Exynos5420
|
|
|
|
- reg : base physical address of the controller and length of memory mapped
|
|
region.
|
|
- interrupts : interrupt number to the cpu.
|
|
- samsung,syscon-phandle : reference to syscon node (This property required only
|
|
in case of compatible being "samsung,exynos5250-wdt" or "samsung,exynos5420-wdt".
|
|
In case of Exynos5250 and 5420 this property points to syscon node holding the PMU
|
|
base address)
|
|
|
|
Optional properties:
|
|
- timeout-sec : contains the watchdog timeout in seconds.
|
|
|
|
Example:
|
|
|
|
watchdog@101D0000 {
|
|
compatible = "samsung,exynos5250-wdt";
|
|
reg = <0x101D0000 0x100>;
|
|
interrupts = <0 42 0>;
|
|
clocks = <&clock 336>;
|
|
clock-names = "watchdog";
|
|
samsung,syscon-phandle = <&pmu_syscon>;
|
|
};
|