Synopsys Designware Watchdog Timer

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

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

Maintainers (maintainers): "Jamie Iles <jamie@jamieiles.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "snps,dw-wdt"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-wdt", "rockchip,rk3066-wdt", "rockchip,rk3128-wdt", "rockchip,rk3188-wdt", "rockchip,rk3228-wdt", "rockchip,rk3288-wdt", "rockchip,rk3308-wdt", "rockchip,rk3328-wdt", "rockchip,rk3368-wdt", "rockchip,rk3399-wdt", "rockchip,rk3506-wdt", "rockchip,rk3562-wdt", "rockchip,rk3568-wdt", "rockchip,rk3576-wdt", "rockchip,rk3588-wdt", "rockchip,rv1108-wdt", "rockchip,rv1126-wdt"

Item 2

Exact value (const): "snps,dw-wdt"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

DW Watchdog pre-timeout interrupt

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Watchdog timer reference clock

Item 2

APB3 interface clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "tclk"

Item 2

Exact value (const): "pclk"

resets — not listed as required here #

Phandle to the DW Watchdog reset lane

Maximum number of items (maxItems): 1

snps,watchdog-tops — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

DW APB Watchdog custom timer intervals - Timeout Period ranges (TOPs). Each TOP is a number loaded into the watchdog counter at the moment of the timer restart. The counter decrementing happens each tick of the reference clock. Therefore the TOPs array is equivalent to an array of the timer expiration intervals supported by the DW APB Watchdog. Note DW APB Watchdog IP-core might be synthesized with fixed TOP values, in which case this property is unnecessary with default TOPs utilized.

Default value (default): "0x0001000 0x0002000 0x0004000 0x0008000 0x0010000 0x0020000 0x0040000 0x0080000 0x0100000 0x0200000 0x0400000 0x0800000 0x1000000 0x2000000 0x4000000 0x8000000"

Minimum number of items (minItems): 16

Maximum number of items (maxItems): 16

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

watchdog@ffd02000 {
    compatible = "snps,dw-wdt";
    reg = <0xffd02000 0x1000>;
    interrupts = <0 171 4>;
    clocks = <&per_base_clk>;
    resets = <&wdt_rst>;
};
watchdog@ffd02000 {
    compatible = "snps,dw-wdt";
    reg = <0xffd02000 0x1000>;
    interrupts = <0 171 4>;
    clocks = <&per_base_clk>;
    clock-names = "tclk";
    snps,watchdog-tops = <0x000000FF 0x000001FF 0x000003FF
                          0x000007FF 0x0000FFFF 0x0001FFFF
                          0x0003FFFF 0x0007FFFF 0x000FFFFF
                          0x001FFFFF 0x003FFFFF 0x007FFFFF
                          0x00FFFFFF 0x01FFFFFF 0x03FFFFFF
                          0x07FFFFFF>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Edit this page