Skip to content

Commit fdd81e9

Browse files
Yttrium-32robherring
authored andcommitted
dt-bindings: watchdog: img,pdc-wdt: Convert to dtschema
Convert txt bindings of ImgTec's PDC watchdog timer to dtschema to allow for validation. Signed-off-by: Shresth Prasad <[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 (Arm) <[email protected]>
1 parent bd7db32 commit fdd81e9

File tree

2 files changed

+55
-19
lines changed

2 files changed

+55
-19
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/img,pdc-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT)
8+
9+
maintainers:
10+
- Shresth Prasad <[email protected]>
11+
12+
allOf:
13+
- $ref: watchdog.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- img,pdc-wdt
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
items:
25+
- description: watchdog counter clock
26+
- description: register interface clock
27+
28+
clock-names:
29+
items:
30+
- const: wdt
31+
- const: sys
32+
33+
interrupts:
34+
maxItems: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- clocks
40+
- clock-names
41+
- interrupts
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/irq.h>
48+
49+
watchdog@18102100 {
50+
compatible = "img,pdc-wdt";
51+
reg = <0x18102100 0x100>;
52+
clocks = <&pdc_wdt_clk>, <&sys_clk>;
53+
clock-names = "wdt", "sys";
54+
interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>;
55+
};

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

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

0 commit comments

Comments
 (0)