WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / watchdog / samsung-wdt.yaml
blob76cb9586ee00cab46858e1004089ab505c8c9a0c
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#
7 title: Samsung SoC Watchdog Timer Controller
9 maintainers:
10   - Krzysztof Kozlowski <krzk@kernel.org>
12 description: |+
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.
17 properties:
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
26   reg:
27     maxItems: 1
29   clocks:
30     maxItems: 1
32   clock-names:
33     items:
34       - const: watchdog
36   interrupts:
37     maxItems: 1
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       and Exynos5420).
45 required:
46   - compatible
47   - clocks
48   - clock-names
49   - interrupts
50   - reg
52 allOf:
53   - $ref: watchdog.yaml#
54   - if:
55       properties:
56         compatible:
57           contains:
58             enum:
59               - samsung,exynos5250-wdt
60               - samsung,exynos5420-wdt
61     then:
62       required:
63         - samsung,syscon-phandle
65 unevaluatedProperties: false
67 examples:
68   - |
69     watchdog@101d0000 {
70         compatible = "samsung,exynos5250-wdt";
71         reg = <0x101D0000 0x100>;
72         interrupts = <0 42 0>;
73         clocks = <&clock 336>;
74         clock-names = "watchdog";
75         samsung,syscon-phandle = <&pmu_syscon>;
76     };