STMicroelectronics STM32 Independent WatchDoG (IWDG)

Schema identifier ($id): "http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#"

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

Maintainers (maintainers): "Yannick Fertre <yannick.fertre@foss.st.com>", "Christophe Roullier <christophe.roullier@foss.st.com>"

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): "st,stm32-iwdg", "st,stm32mp1-iwdg"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Low speed clock

Item 2

Optional peripheral clock

Minimum number of items (minItems): 1

clock-names — required here #

Array item rules (items) #

Allowed values (enum): "lsi", "pclk"

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Pre-timeout interrupt from the watchdog.

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/stm32mp1-clks.h>
watchdog@5a002000 {
    compatible = "st,stm32mp1-iwdg";
    reg = <0x5a002000 0x400>;
    clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
    clock-names = "pclk", "lsi";
    timeout-sec = <32>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page