Skip to content

Commit 26f2f5e

Browse files
abajkWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: lantiq,wdt: convert bindings to dtschema
Convert the Lantiq WDT Watchdog bindings to yaml format. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent a8c762c commit 26f2f5e

2 files changed

Lines changed: 57 additions & 24 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/lantiq,wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Lantiq WTD watchdog
8+
9+
maintainers:
10+
- Hauke Mehrtens <hauke@hauke-m.de>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- enum:
16+
- lantiq,falcon-wdt
17+
- lantiq,wdt
18+
- lantiq,xrx100-wdt
19+
- items:
20+
- enum:
21+
- lantiq,xrx200-wdt
22+
- const: lantiq,xrx100-wdt
23+
24+
reg:
25+
maxItems: 1
26+
27+
lantiq,rcu:
28+
$ref: /schemas/types.yaml#/definitions/phandle
29+
description: Phandle to the RCU syscon node
30+
31+
required:
32+
- compatible
33+
- reg
34+
35+
allOf:
36+
- $ref: watchdog.yaml#
37+
- if:
38+
properties:
39+
compatible:
40+
contains:
41+
enum:
42+
- lantiq,xrx100-wdt
43+
- lantiq,falcon-wdt
44+
then:
45+
required:
46+
- lantiq,rcu
47+
48+
unevaluatedProperties: false
49+
50+
examples:
51+
- |
52+
watchdog@803f0 {
53+
compatible = "lantiq,xrx200-wdt", "lantiq,xrx100-wdt";
54+
reg = <0x803f0 0x10>;
55+
56+
lantiq,rcu = <&rcu0>;
57+
};

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

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

0 commit comments

Comments
 (0)