xref: /linux/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml (revision 33950f9a36aca55c2b1e6062d9b29f3e97f91c40)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/watchdog/samsung-wdt.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung SoC Watchdog Timer Controller
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12description: |+
13  The Samsung's Watchdog controller is used for resuming system operation
14  after a preset amount of time during which the WDT reset event has not
15  occurred.
16
17properties:
18  compatible:
19    enum:
20      - samsung,s3c2410-wdt                   # for S3C2410
21      - samsung,s3c6410-wdt                   # for S3C6410, S5PV210 and Exynos4
22      - samsung,exynos5250-wdt                # for Exynos5250
23      - samsung,exynos5420-wdt                # for Exynos5420
24      - samsung,exynos7-wdt                   # for Exynos7
25
26  reg:
27    maxItems: 1
28
29  clocks:
30    maxItems: 1
31
32  clock-names:
33    items:
34      - const: watchdog
35
36  interrupts:
37    maxItems: 1
38
39  samsung,syscon-phandle:
40    $ref: /schemas/types.yaml#/definitions/phandle
41    description:
42      Phandle to the PMU system controller node (in case of Exynos5250,
43      Exynos5420 and Exynos7).
44
45required:
46  - compatible
47  - clocks
48  - clock-names
49  - interrupts
50  - reg
51
52allOf:
53  - $ref: watchdog.yaml#
54  - if:
55      properties:
56        compatible:
57          contains:
58            enum:
59              - samsung,exynos5250-wdt
60              - samsung,exynos5420-wdt
61              - samsung,exynos7-wdt
62    then:
63      required:
64        - samsung,syscon-phandle
65
66unevaluatedProperties: false
67
68examples:
69  - |
70    watchdog@101d0000 {
71        compatible = "samsung,exynos5250-wdt";
72        reg = <0x101D0000 0x100>;
73        interrupts = <0 42 0>;
74        clocks = <&clock 336>;
75        clock-names = "watchdog";
76        samsung,syscon-phandle = <&pmu_syscon>;
77    };
78