From: Guenter Roeck <linux@roeck-us.net>
To: Sander Vanheule <sander@svanheule.net>
Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Rob Herring <robh+dt@kernel.org>,
linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>
Subject: Re: [PATCH v3 1/2] dt-bindings: watchdog: Realtek Otto WDT binding
Date: Tue, 16 Nov 2021 21:21:25 -0800 [thread overview]
Message-ID: <20211117052125.GB215087@roeck-us.net> (raw)
In-Reply-To: <62b3d83fcd56c46d070e7f2a9387fef2a2789499.1636018117.git.sander@svanheule.net>
On Thu, Nov 04, 2021 at 10:32:12AM +0100, Sander Vanheule wrote:
> Add a binding description for Realtek's watchdog timer as found on
> several of their MIPS-based SoCs (codenamed Otto), such as the RTL838x,
> RTL839x, and RTL930x series of switch SoCs.
>
> Signed-off-by: Sander Vanheule <sander@svanheule.net>
> Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>
> --
For the future, change log after '---', please.
> v2:
> - add realtek,rtl9300-wdt compatible
> - make interrupts property required
> - add Rob's Reviewed-by tag
> ---
> .../bindings/watchdog/realtek,otto-wdt.yaml | 91 +++++++++++++++++++
> 1 file changed, 91 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/watchdog/realtek,otto-wdt.yaml
>
> diff --git a/Documentation/devicetree/bindings/watchdog/realtek,otto-wdt.yaml b/Documentation/devicetree/bindings/watchdog/realtek,otto-wdt.yaml
> new file mode 100644
> index 000000000000..11b220a5e0f6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/realtek,otto-wdt.yaml
> @@ -0,0 +1,91 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/realtek,otto-wdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Realtek Otto watchdog timer
> +
> +maintainers:
> + - Sander Vanheule <sander@svanheule.net>
> +
> +description: |
> + The timer has two timeout phases. Both phases have a maximum duration of 32
> + prescaled clock ticks, which is ca. 43s with a bus clock of 200MHz. The
> + minimum duration of each phase is one tick. Each phase can trigger an
> + interrupt, although the phase 2 interrupt will occur with the system reset.
> + - Phase 1: During this phase, the WDT can be pinged to reset the timeout.
> + - Phase 2: Starts after phase 1 has timed out, and only serves to give the
> + system some time to clean up, or notify others that it's going to reset.
> + During this phase, pinging the WDT has no effect, and a reset is
> + unavoidable, unless the WDT is disabled.
> +
> +allOf:
> + - $ref: watchdog.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - realtek,rtl8380-wdt
> + - realtek,rtl8390-wdt
> + - realtek,rtl9300-wdt
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + interrupts:
> + items:
> + - description: interrupt specifier for pretimeout
> + - description: interrupt specifier for timeout
> +
> + interrupt-names:
> + items:
> + - const: phase1
> + - const: phase2
> +
> + realtek,reset-mode:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: |
> + Specify how the system is reset after a timeout. Defaults to "cpu" if
> + left unspecified.
> + oneOf:
> + - description: Reset the entire chip
> + const: soc
> + - description: |
> + Reset the CPU and IPsec engine, but leave other peripherals untouched
> + const: cpu
> + - description: |
> + Reset the execution pointer, but don't actually reset any hardware
> + const: software
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +dependencies:
> + interrupts: [ interrupt-names ]
> +
> +examples:
> + - |
> + watchdog: watchdog@3150 {
> + compatible = "realtek,rtl8380-wdt";
> + reg = <0x3150 0xc>;
> +
> + realtek,reset-mode = "soc";
> +
> + clocks = <&lxbus_clock>;
> + timeout-sec = <20>;
> +
> + interrupt-parent = <&rtlintc>;
> + interrupt-names = "phase1", "phase2";
> + interrupts = <19>, <18>;
> + };
> +
> +...
> --
> 2.31.1
>
next prev parent reply other threads:[~2021-11-17 5:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 9:32 [PATCH v3 0/2] Add Realtek Otto WDT support Sander Vanheule
2021-11-04 9:32 ` [PATCH v3 1/2] dt-bindings: watchdog: Realtek Otto WDT binding Sander Vanheule
2021-11-17 5:21 ` Guenter Roeck [this message]
2021-11-04 9:32 ` [PATCH v3 2/2] watchdog: Add Realtek Otto watchdog timer Sander Vanheule
2021-11-17 5:20 ` Guenter Roeck
2021-11-17 7:13 ` Sander Vanheule
2021-11-17 12:42 ` Guenter Roeck
2021-11-17 12:59 ` Sander Vanheule
2021-11-18 17:15 ` Sander Vanheule
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211117052125.GB215087@roeck-us.net \
--to=linux@roeck-us.net \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sander@svanheule.net \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).