Skip to content

Commit bd888a4

Browse files
n2h9robherring
authored andcommitted
dt-bindings: watchdog: da9062-wdt: convert txt to yaml
Convert txt file to yaml. Add a mainterner block. Took a value from dlg,da9063 PMIC. Signed-off-by: Nik Bune <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 7b43add commit bd888a4

File tree

2 files changed

+50
-34
lines changed

2 files changed

+50
-34
lines changed

Documentation/devicetree/bindings/watchdog/da9062-wdt.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
7+
title: Dialog Semiconductor DA9062/61 Watchdog Timer
8+
9+
maintainers:
10+
- Steve Twiss <[email protected]>
11+
12+
allOf:
13+
- $ref: watchdog.yaml#
14+
15+
properties:
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+
39+
required:
40+
- compatible
41+
42+
unevaluatedProperties: false
43+
44+
examples:
45+
- |
46+
watchdog {
47+
compatible = "dlg,da9062-watchdog";
48+
dlg,use-sw-pm;
49+
dlg,wdt-sd = <1>;
50+
};

0 commit comments

Comments
 (0)