1
linux/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.yaml
Marek Vasut 6c8def1e8e dt-bindings: watchdog: stm32-iwdg: Document interrupt and wakeup properties
The watchdog IP can generate pre-timeout interrupt and can be used as
a wake up source. Document both properties.

Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240705115052.116705-1-marex@denx.de
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2024-09-17 13:41:21 +02:00

65 lines
1.2 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/st,stm32-iwdg.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: STMicroelectronics STM32 Independent WatchDoG (IWDG)
maintainers:
- Yannick Fertre <yannick.fertre@foss.st.com>
- Christophe Roullier <christophe.roullier@foss.st.com>
allOf:
- $ref: watchdog.yaml#
properties:
compatible:
enum:
- st,stm32-iwdg
- st,stm32mp1-iwdg
reg:
maxItems: 1
clocks:
items:
- description: Low speed clock
- description: Optional peripheral clock
minItems: 1
clock-names:
items:
enum:
- lsi
- pclk
minItems: 1
maxItems: 2
interrupts:
maxItems: 1
description: Pre-timeout interrupt from the watchdog.
wakeup-source: true
required:
- compatible
- reg
- clocks
- clock-names
unevaluatedProperties: false
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>;
};
...