Skip to content

Commit af34a25

Browse files
robherringWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: Convert TI OMAP to DT schema
Convert the TI OMAP watchdog binding to DT schema format. The compatible string list was incomplete. The "reg" and "interrupts" properties were missing. "ti,hwmods" is also deprecated and not required. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 13e8664 commit af34a25

2 files changed

Lines changed: 51 additions & 15 deletions

File tree

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

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/ti,omap2-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI OMAP Watchdog Timer Controller
8+
9+
maintainers:
10+
- Aaro Koskinen <aaro.koskinen@iki.fi>
11+
12+
allOf:
13+
- $ref: watchdog.yaml#
14+
15+
properties:
16+
compatible:
17+
oneOf:
18+
- enum:
19+
- ti,omap2-wdt
20+
- ti,omap3-wdt
21+
- items:
22+
- enum:
23+
- ti,am4372-wdt
24+
- ti,omap4-wdt
25+
- ti,omap5-wdt
26+
- const: ti,omap3-wdt
27+
28+
reg:
29+
maxItems: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
ti,hwmods:
35+
description: Name of the hardware module associated with the watchdog.
36+
$ref: /schemas/types.yaml#/definitions/string
37+
deprecated: true
38+
39+
required:
40+
- compatible
41+
- reg
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
watchdog@48314000 {
48+
compatible = "ti,omap3-wdt";
49+
reg = <0x48314000 0x80>;
50+
ti,hwmods = "wd_timer2";
51+
};

0 commit comments

Comments
 (0)