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