xref: /linux/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml (revision d834019f0c1762629937b7017cae642144bd2c22)
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    oneOf:
20      - enum:
21          - samsung,s3c2410-wdt                   # for S3C2410
22          - samsung,s3c6410-wdt                   # for S3C6410, S5PV210 and Exynos4
23          - samsung,exynos5250-wdt                # for Exynos5250
24          - samsung,exynos5420-wdt                # for Exynos5420
25          - samsung,exynos7-wdt                   # for Exynos7
26          - samsung,exynos850-wdt                 # for Exynos850
27          - samsung,exynosautov9-wdt              # for Exynosautov9
28      - items:
29          - enum:
30              - tesla,fsd-wdt
31          - const: samsung,exynos7-wdt
32
33  reg:
34    maxItems: 1
35
36  clocks:
37    minItems: 1
38    maxItems: 2
39
40  clock-names:
41    minItems: 1
42    maxItems: 2
43
44  interrupts:
45    maxItems: 1
46
47  samsung,cluster-index:
48    $ref: /schemas/types.yaml#/definitions/uint32
49    description:
50      Index of CPU cluster on which watchdog is running (in case of Exynos850)
51
52  samsung,syscon-phandle:
53    $ref: /schemas/types.yaml#/definitions/phandle
54    description:
55      Phandle to the PMU system controller node (in case of Exynos5250,
56      Exynos5420, Exynos7 and Exynos850).
57
58required:
59  - compatible
60  - clocks
61  - clock-names
62  - interrupts
63  - reg
64
65allOf:
66  - $ref: watchdog.yaml#
67  - if:
68      properties:
69        compatible:
70          contains:
71            enum:
72              - samsung,exynos5250-wdt
73              - samsung,exynos5420-wdt
74              - samsung,exynos7-wdt
75              - samsung,exynos850-wdt
76              - samsung,exynosautov9-wdt
77    then:
78      required:
79        - samsung,syscon-phandle
80  - if:
81      properties:
82        compatible:
83          contains:
84            enum:
85              - samsung,exynos850-wdt
86              - samsung,exynosautov9-wdt
87    then:
88      properties:
89        clocks:
90          items:
91            - description: Bus clock, used for register interface
92            - description: Source clock (driving watchdog counter)
93        clock-names:
94          items:
95            - const: watchdog
96            - const: watchdog_src
97        samsung,cluster-index:
98          enum: [0, 1]
99      required:
100        - samsung,cluster-index
101    else:
102      properties:
103        clocks:
104          items:
105            - description: Bus clock, which is also a source clock
106        clock-names:
107          items:
108            - const: watchdog
109        samsung,cluster-index: false
110
111unevaluatedProperties: false
112
113examples:
114  - |
115    watchdog@101d0000 {
116        compatible = "samsung,exynos5250-wdt";
117        reg = <0x101D0000 0x100>;
118        interrupts = <0 42 0>;
119        clocks = <&clock 336>;
120        clock-names = "watchdog";
121        samsung,syscon-phandle = <&pmu_syscon>;
122    };
123