Skip to content

Commit 13b1916

Browse files
ehristevWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: sama5d4-wdt: convert to yaml
Convert the old txt binding to yaml format. Signed-off-by: Eugen Hristev <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 6da96e6 commit 13b1916

File tree

2 files changed

+73
-34
lines changed

2 files changed

+73
-34
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel SAMA5D4 Watchdog Timer (WDT) Controller
8+
9+
maintainers:
10+
- Eugen Hristev <[email protected]>
11+
12+
allOf:
13+
- $ref: "watchdog.yaml#"
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- atmel,sama5d4-wdt
19+
- microchip,sam9x60-wdt
20+
21+
reg:
22+
maxItems: 1
23+
24+
atmel,watchdog-type:
25+
$ref: /schemas/types.yaml#/definitions/string
26+
description: should be hardware or software.
27+
oneOf:
28+
- description:
29+
Enable watchdog fault reset. A watchdog fault triggers
30+
watchdog reset.
31+
const: hardware
32+
- description:
33+
Enable watchdog fault interrupt. A watchdog fault asserts
34+
watchdog interrupt.
35+
const: software
36+
default: hardware
37+
38+
atmel,idle-halt:
39+
$ref: /schemas/types.yaml#/definitions/flag
40+
description: |
41+
present if you want to stop the watchdog when the CPU is in idle state.
42+
CAUTION: This property should be used with care, it actually makes the
43+
watchdog not counting when the CPU is in idle state, therefore the
44+
watchdog reset time depends on mean CPU usage and will not reset at all
45+
if the CPU stop working while it is in idle state, which is probably
46+
not what you want.
47+
48+
atmel,dbg-halt:
49+
$ref: /schemas/types.yaml#/definitions/flag
50+
description: |
51+
present if you want to stop the watchdog when the CPU is in debug state.
52+
53+
required:
54+
- compatible
55+
- reg
56+
57+
unevaluatedProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/interrupt-controller/irq.h>
62+
63+
watchdog@fc068640 {
64+
compatible = "atmel,sama5d4-wdt";
65+
reg = <0xfc068640 0x10>;
66+
interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>;
67+
timeout-sec = <10>;
68+
atmel,watchdog-type = "hardware";
69+
atmel,dbg-halt;
70+
atmel,idle-halt;
71+
};
72+
73+
...

Documentation/devicetree/bindings/watchdog/atmel-sama5d4-wdt.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)