1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/dlg,da9062-watchdog.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Dialog Semiconductor DA9062/61 Watchdog Timer
8
9maintainers:
10  - Steve Twiss <stwiss.opensource@diasemi.com>
11
12allOf:
13  - $ref: watchdog.yaml#
14
15properties:
16  compatible:
17    enum:
18      - dlg,da9061-watchdog
19      - dlg,da9062-watchdog
20
21  dlg,use-sw-pm:
22    type: boolean
23    description:
24      Add this property to disable the watchdog during suspend.
25      Only use this option if you can't use the watchdog automatic suspend
26      function during a suspend (see register CONTROL_B).
27
28  dlg,wdt-sd:
29    $ref: /schemas/types.yaml#/definitions/uint32
30    enum: [0, 1]
31    description:
32      Set what happens on watchdog timeout. If this bit is set the
33      watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers
34      POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
35      default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT
36      set the WATCHDOG_SD bit and on timeout watchdog behavior will match the
37      chip's OTP settings.
38
39required:
40  - compatible
41
42unevaluatedProperties: false
43
44examples:
45  - |
46    watchdog {
47      compatible = "dlg,da9062-watchdog";
48      dlg,use-sw-pm;
49      dlg,wdt-sd = <1>;
50    };
51