Skip to content

Commit a23c83a

Browse files
Om ParikhWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: alphascale-asm9260: convert to DT schema
Makes alphascale-asm9260 dt bindings adhere to the dt json-schema by replacing txt file with yaml file. Signed-off-by: Om Parikh <hack3r-0m@proton.me> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230418051446.24288-1-hack3r-0m@proton.me Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 2a31bf2 commit a23c83a

2 files changed

Lines changed: 70 additions & 35 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/watchdog/alphascale,asm9260-wdt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Alphascale asm9260 Watchdog timer
8+
9+
allOf:
10+
- $ref: watchdog.yaml#
11+
12+
maintainers:
13+
- Oleksij Rempel <linux@rempel-privat.de>
14+
15+
properties:
16+
compatible:
17+
const: alphascale,asm9260-wdt
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
items:
24+
- description: source clock, used for tick counter
25+
- description: ahb gate
26+
27+
clock-names:
28+
items:
29+
- const: mod
30+
- const: ahb
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
resets:
36+
maxItems: 1
37+
38+
reset-names:
39+
items:
40+
- const: wdt_rst
41+
42+
alphascale,mode:
43+
description: |
44+
Specifies the reset mode of operation. If set to sw, then reset is handled
45+
via interrupt request, if set to debug, then it does nothing and logs.
46+
$ref: /schemas/types.yaml#/definitions/string
47+
enum: [hw, sw, debug]
48+
default: hw
49+
50+
required:
51+
- compatible
52+
- reg
53+
- clocks
54+
- clock-names
55+
- interrupts
56+
57+
unevaluatedProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/clock/alphascale,asm9260.h>
62+
watchdog0: watchdog@80048000 {
63+
compatible = "alphascale,asm9260-wdt";
64+
reg = <0x80048000 0x10>;
65+
clocks = <&acc CLKID_SYS_WDT>, <&acc CLKID_AHB_WDT>;
66+
clock-names = "mod", "ahb";
67+
interrupts = <55>;
68+
timeout-sec = <30>;
69+
alphascale,mode = "hw";
70+
};

Documentation/devicetree/bindings/watchdog/alphascale-asm9260.txt

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

0 commit comments

Comments
 (0)