xref: /linux/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1606f53b0SBenjamin Gaignard# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2606f53b0SBenjamin Gaignard%YAML 1.2
3606f53b0SBenjamin Gaignard---
4606f53b0SBenjamin Gaignard$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#
5606f53b0SBenjamin Gaignard$schema: http://devicetree.org/meta-schemas/core.yaml#
6606f53b0SBenjamin Gaignard
784e85359SKrzysztof Kozlowskititle: STMicroelectronics STM32 Independent WatchDoG (IWDG)
8606f53b0SBenjamin Gaignard
9606f53b0SBenjamin Gaignardmaintainers:
10f4eedebdSPatrice Chotard  - Yannick Fertre <yannick.fertre@foss.st.com>
11f4eedebdSPatrice Chotard  - Christophe Roullier <christophe.roullier@foss.st.com>
12606f53b0SBenjamin Gaignard
13606f53b0SBenjamin GaignardallOf:
1481c00b58SRob Herring  - $ref: watchdog.yaml#
15606f53b0SBenjamin Gaignard
16606f53b0SBenjamin Gaignardproperties:
17606f53b0SBenjamin Gaignard  compatible:
18606f53b0SBenjamin Gaignard    enum:
19606f53b0SBenjamin Gaignard      - st,stm32-iwdg
20606f53b0SBenjamin Gaignard      - st,stm32mp1-iwdg
21606f53b0SBenjamin Gaignard
22606f53b0SBenjamin Gaignard  reg:
23606f53b0SBenjamin Gaignard    maxItems: 1
24606f53b0SBenjamin Gaignard
25606f53b0SBenjamin Gaignard  clocks:
26606f53b0SBenjamin Gaignard    items:
27606f53b0SBenjamin Gaignard      - description: Low speed clock
28606f53b0SBenjamin Gaignard      - description: Optional peripheral clock
29606f53b0SBenjamin Gaignard    minItems: 1
30606f53b0SBenjamin Gaignard
31606f53b0SBenjamin Gaignard  clock-names:
32606f53b0SBenjamin Gaignard    items:
33606f53b0SBenjamin Gaignard      enum:
34606f53b0SBenjamin Gaignard        - lsi
35606f53b0SBenjamin Gaignard        - pclk
36606f53b0SBenjamin Gaignard    minItems: 1
37606f53b0SBenjamin Gaignard    maxItems: 2
38606f53b0SBenjamin Gaignard
39*6c8def1eSMarek Vasut  interrupts:
40*6c8def1eSMarek Vasut    maxItems: 1
41*6c8def1eSMarek Vasut    description: Pre-timeout interrupt from the watchdog.
42*6c8def1eSMarek Vasut
43*6c8def1eSMarek Vasut  wakeup-source: true
44*6c8def1eSMarek Vasut
45606f53b0SBenjamin Gaignardrequired:
46606f53b0SBenjamin Gaignard  - compatible
47606f53b0SBenjamin Gaignard  - reg
48606f53b0SBenjamin Gaignard  - clocks
49606f53b0SBenjamin Gaignard  - clock-names
50606f53b0SBenjamin Gaignard
516fdc6e23SRob HerringunevaluatedProperties: false
526fdc6e23SRob Herring
53606f53b0SBenjamin Gaignardexamples:
54606f53b0SBenjamin Gaignard  - |
55606f53b0SBenjamin Gaignard    #include <dt-bindings/clock/stm32mp1-clks.h>
56606f53b0SBenjamin Gaignard    watchdog@5a002000 {
57606f53b0SBenjamin Gaignard        compatible = "st,stm32mp1-iwdg";
58606f53b0SBenjamin Gaignard        reg = <0x5a002000 0x400>;
59606f53b0SBenjamin Gaignard        clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
60606f53b0SBenjamin Gaignard        clock-names = "pclk", "lsi";
61606f53b0SBenjamin Gaignard        timeout-sec = <32>;
62606f53b0SBenjamin Gaignard    };
63606f53b0SBenjamin Gaignard
64606f53b0SBenjamin Gaignard...
65