summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/watchdog/amlogic,meson6-wdt.yaml
blob: 84732cb58ec44d05ccc608478f96f8b37f51e99d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/amlogic,meson6-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Amlogic Meson6 SoCs Watchdog timer

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>
  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    oneOf:
      - enum:
          - amlogic,meson6-wdt
          - amlogic,meson8-wdt
          - amlogic,meson8b-wdt
      - items:
          - const: amlogic,meson8m2-wdt
          - const: amlogic,meson8b-wdt

  interrupts:
    maxItems: 1

  reg:
    maxItems: 1

required:
  - compatible
  - interrupts
  - reg

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    wdt: watchdog@c1109900 {
        compatible = "amlogic,meson6-wdt";
        reg = <0xc1109900 0x8>;
        interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>;
        timeout-sec = <10>;
    };