Allwinner A10 Watchdog

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

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

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): "allwinner,sun4i-a10-wdt"

Rule 2

Exact value (const): "allwinner,sun6i-a31-wdt"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun50i-a64-wdt", "allwinner,sun50i-a100-wdt", "allwinner,sun50i-h6-wdt", "allwinner,sun50i-h616-wdt", "allwinner,sun50i-r329-wdt", "allwinner,sun50i-r329-wdt-reset", "allwinner,suniv-f1c100s-wdt"

Item 2

Exact value (const): "allwinner,sun6i-a31-wdt"

Rule 4

Exact value (const): "allwinner,sun20i-d1-wdt"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun20i-d1-wdt-reset"

Item 2

Exact value (const): "allwinner,sun20i-d1-wdt"

Rule 6

Exact value (const): "allwinner,sun55i-a523-wdt"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

32 KHz input clock

Item 2

secondary clock source

interrupts — required here #

Maximum number of items (maxItems): 1

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

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "allwinner,sun20i-d1-wdt", "allwinner,sun20i-d1-wdt-reset", "allwinner,sun50i-r329-wdt", "allwinner,sun50i-r329-wdt-reset", "allwinner,sun55i-a523-wdt"

When the condition matches (then) #

Properties and child nodes (properties) #

clocks — not listed as required here #

Array item rules (items)

Item 1

High-frequency oscillator input, divided internally

Item 2

Low-frequency oscillator input

clock-names — required here #

Array item rules (items)

Item 1

Exact value (const): "hosc"

Item 2

Exact value (const): "losc"

Required in this object (required): "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties) #

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

wdt: watchdog@1c20c90 {
    compatible = "allwinner,sun4i-a10-wdt";
    reg = <0x01c20c90 0x10>;
    interrupts = <24>;
    clocks = <&osc24M>;
    timeout-sec = <10>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page