xref: /freebsd/sys/contrib/device-tree/Bindings/watchdog/samsung-wdt.yaml (revision 43a5ec4eb41567cc92586503212743d89686d78f)
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      and Exynos5420).
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    then:
62      required:
63        - samsung,syscon-phandle
64
65unevaluatedProperties: false
66
67examples:
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    };
77