xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/dlg,da9062-watchdog.yaml (revision a90b9d0159070121c221b966469c3e36d912bf82)
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 DA906{1,2,3} Watchdog Timer
8
9maintainers:
10  - Steve Twiss <stwiss.opensource@diasemi.com>
11
12allOf:
13  - $ref: watchdog.yaml#
14
15properties:
16  compatible:
17    oneOf:
18      - enum:
19          - dlg,da9062-watchdog
20          - dlg,da9063-watchdog
21      - items:
22          - const: dlg,da9061-watchdog
23          - const: dlg,da9062-watchdog
24
25  dlg,use-sw-pm:
26    type: boolean
27    description:
28      Add this property to disable the watchdog during suspend.
29      Only use this option if you can't use the watchdog automatic suspend
30      function during a suspend (see register CONTROL_B).
31
32  dlg,wdt-sd:
33    $ref: /schemas/types.yaml#/definitions/uint32
34    enum: [0, 1]
35    description:
36      Set what happens on watchdog timeout. If this bit is set the
37      watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers
38      POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
39      default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT
40      set the WATCHDOG_SD bit and on timeout watchdog behavior will match the
41      chip's OTP settings.
42
43required:
44  - compatible
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    watchdog {
51      compatible = "dlg,da9062-watchdog";
52      dlg,use-sw-pm;
53      dlg,wdt-sd = <1>;
54    };
55