[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqJ-5gwycTRQCdX=ZsefEJ=F1GyTjjDW6QB1PBynibFzLg@mail.gmail.com>
Date: Fri, 11 Dec 2020 16:30:22 -0600
From: Rob Herring <robh+dt@...nel.org>
To: Rasmus Villemoes <rasmus.villemoes@...vas.dk>
Cc: "open list:REAL TIME CLOCK (RTC) SUBSYSTEM"
<linux-rtc@...r.kernel.org>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>, Qiang Zhao <qiang.zhao@....com>,
Bruno Thomsen <bruno.thomsen@...il.com>
Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: add reset-source property
On Fri, Dec 11, 2020 at 3:56 PM Rasmus Villemoes
<rasmus.villemoes@...vas.dk> wrote:
>
> Some RTCs, e.g. the pcf2127, can be used as a hardware watchdog. But
> if the reset pin is not actually wired up, the driver exposes a
> watchdog device that doesn't actually work.
>
> Provide a standard binding that can be used to indicate that a given
> RTC can perform a reset of the machine, similar to wakeup-source.
Why not use the watchdog 'timeout-sec' property?
Please send DT patches to the DT list.
>
> Suggested-by: Alexandre Belloni <alexandre.belloni@...tlin.com>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@...vas.dk>
> ---
> Documentation/devicetree/bindings/rtc/rtc.yaml | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml
> index ee237b2ed66a..b5e24dc24b0b 100644
> --- a/Documentation/devicetree/bindings/rtc/rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/rtc.yaml
> @@ -47,4 +47,9 @@ properties:
> description:
> Enables wake up of host system on alarm.
>
> + reset-source:
> + $ref: /schemas/types.yaml#/definitions/flag
> + description:
> + The RTC is able to reset the machine.
> +
> ...
> --
> 2.23.0
>
Powered by blists - more mailing lists