Date
1 - 4 of 4
[PATCH 4.19.y-cip 2/6] arm64: dts: renesas: r8a774c0-cat874: Add RWDT support
Biju Das <biju.das@...>
From: Fabrizio Castro <fabrizio.castro@...>
commit 79223ca1f57776d2770da9561c26cc2f2dd42205 upstream. Enable RWDT and use 60 seconds as default timeout. Signed-off-by: Fabrizio Castro <fabrizio.castro@...> Reviewed-by: Chris Paterson <chris.paterson2@...> Signed-off-by: Simon Horman <horms+renesas@...> Signed-off-by: Biju Das <biju.das@...> --- arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts index af396bb..9241407 100644 --- a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts +++ b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts @@ -137,6 +137,11 @@ }; }; +&rwdt { + timeout-sec = <60>; + status = "okay"; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default"; -- 2.7.4
|
|
Pavel Machek
On Mon 2019-07-15 15:28:46, Biju Das wrote:
From: Fabrizio Castro <fabrizio.castro@...>So this will reboot machine if userspace does not ping it within 60 seconds by default? Will that break user configurations that worked up till now, but do not contain watchdog support? Do we care? Thanks, Pavel @@ -137,6 +137,11 @@-- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
|
|
Biju Das <biju.das@...>
Hi Pavel,
Thanks for the feedback. Subject: Re: [cip-dev] [PATCH 4.19.y-cip 2/6] arm64: dts: renesas: r8a774c0-Yes, if you enable watchdog in user space and there is no ping activity for 60 sec. We can verify this by using the below command cat > /dev/watchdog0 & for i in $(seq 100); do echo $i; sleep 1; done Will that break user configurations that worked up till now, but do notAs per [1] - timeout-sec : Contains the watchdog timeout in seconds [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/watchdog/renesas-wdt.txt?h=v5.2 If time-out is not specified, then it uses the default timeout mentioned by the driver. Regards, Biju @@ -137,6 +137,11 @@--
|
|
Pavel Machek
Hi!
Aha. But if userspace does nothing, no reboot happens. Good.cat874: Add RWDT supportYes, if you enable watchdog in user space and there is no ping activity for 60 sec. Best regards, Pavel -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
|
|