summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/watchdog/loongson,ls1x-wdt.yaml
blob: 81690d4b62a643b5c250296a5dae6d574082e8ee (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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/loongson,ls1x-wdt.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Loongson-1 Watchdog Timer

maintainers:
  - Keguang Zhang <keguang.zhang@gmail.com>

allOf:
  - $ref: watchdog.yaml#

properties:
  compatible:
    enum:
      - loongson,ls1b-wdt
      - loongson,ls1c-wdt

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/loongson,ls1x-clk.h>
    watchdog: watchdog@1fe5c060 {
        compatible = "loongson,ls1b-wdt";
        reg = <0x1fe5c060 0xc>;

        clocks = <&clkc LS1X_CLKID_APB>;
    };