StarFive Watchdog for JH7100 and JH7110 SoC

Schema identifier ($id): "http://devicetree.org/schemas/watchdog/starfive,jh7100-wdt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Xingyu Wu <xingyu.wu@starfivetech.com>", "Samin Guo <samin.guo@starfivetech.com>"

The JH7100 and JH7110 watchdog both are 32 bit counters. JH7100 watchdog has only one timeout phase and reboots. And JH7110 watchdog has two timeout phases. At the first phase, the signal of watchdog interrupt output(WDOGINT) will rise when counter is 0. The counter will reload the timeout value. And then, if counter decreases to 0 again and WDOGINT isn't cleared, the watchdog will reset the system unless the watchdog reset is disabled.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "starfive,jh7100-wdt", "starfive,jh7110-wdt"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "starfive,jh8100-wdt"

Item 2

Exact value (const): "starfive,jh7110-wdt"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

APB clock

Item 2

Core clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

Item 2

Exact value (const): "core"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): watchdog.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "starfive,jh8100-wdt"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Array item rules (items)

Item 1

Core reset

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Array item rules (items)

Item 1

APB reset

Item 2

Core reset

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

watchdog@12480000 {
    compatible = "starfive,jh7100-wdt";
    reg = <0x12480000 0x10000>;
    clocks = <&clk 171>,
             <&clk 172>;
    clock-names = "apb", "core";
    resets = <&rst 99>,
             <&rst 100>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page