Realtek Otto watchdog timer
Schema identifier ($id): "http://devicetree.org/schemas/watchdog/realtek,otto-wdt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sander Vanheule <sander@svanheule.net>"
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.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):watchdog.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "realtek,rtl8380-wdt", "realtek,rtl8390-wdt", "realtek,rtl9300-wdt", "realtek,rtl9310-wdt"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
interrupt specifier for pretimeout
Item 2
interrupt specifier for timeout
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"phase1"
Item 2
Exact value (
const):"phase2"
realtek,reset-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Specify how the system is reset after a timeout. Defaults to "cpu" if left unspecified.
Exactly one of these rules must match (oneOf) #
Rule 1
Reset the entire chip
Exact value (
const):"soc"
Rule 2
Reset the CPU and IPsec engine, but leave other peripherals untouched
Exact value (
const):"cpu"
Rule 3
Reset the execution pointer, but don't actually reset any hardware
Exact value (
const):"software"
Required in this object (required): "compatible", "reg", "clocks", "interrupts", "interrupt-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (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>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause