xref: /linux/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml (revision 33950f9a36aca55c2b1e6062d9b29f3e97f91c40)
179df4a9bSKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0
279df4a9bSKrzysztof Kozlowski%YAML 1.2
379df4a9bSKrzysztof Kozlowski---
479df4a9bSKrzysztof Kozlowski$id: http://devicetree.org/schemas/watchdog/samsung-wdt.yaml#
579df4a9bSKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
679df4a9bSKrzysztof Kozlowski
779df4a9bSKrzysztof Kozlowskititle: Samsung SoC Watchdog Timer Controller
879df4a9bSKrzysztof Kozlowski
979df4a9bSKrzysztof Kozlowskimaintainers:
1079df4a9bSKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
1179df4a9bSKrzysztof Kozlowski
1279df4a9bSKrzysztof Kozlowskidescription: |+
1379df4a9bSKrzysztof Kozlowski  The Samsung's Watchdog controller is used for resuming system operation
1479df4a9bSKrzysztof Kozlowski  after a preset amount of time during which the WDT reset event has not
1579df4a9bSKrzysztof Kozlowski  occurred.
1679df4a9bSKrzysztof Kozlowski
1779df4a9bSKrzysztof Kozlowskiproperties:
1879df4a9bSKrzysztof Kozlowski  compatible:
1979df4a9bSKrzysztof Kozlowski    enum:
2079df4a9bSKrzysztof Kozlowski      - samsung,s3c2410-wdt                   # for S3C2410
2179df4a9bSKrzysztof Kozlowski      - samsung,s3c6410-wdt                   # for S3C6410, S5PV210 and Exynos4
2279df4a9bSKrzysztof Kozlowski      - samsung,exynos5250-wdt                # for Exynos5250
2379df4a9bSKrzysztof Kozlowski      - samsung,exynos5420-wdt                # for Exynos5420
2479df4a9bSKrzysztof Kozlowski      - samsung,exynos7-wdt                   # for Exynos7
2579df4a9bSKrzysztof Kozlowski
2679df4a9bSKrzysztof Kozlowski  reg:
2779df4a9bSKrzysztof Kozlowski    maxItems: 1
2879df4a9bSKrzysztof Kozlowski
296fd64049SKrzysztof Kozlowski  clocks:
306fd64049SKrzysztof Kozlowski    maxItems: 1
316fd64049SKrzysztof Kozlowski
326fd64049SKrzysztof Kozlowski  clock-names:
336fd64049SKrzysztof Kozlowski    items:
346fd64049SKrzysztof Kozlowski      - const: watchdog
356fd64049SKrzysztof Kozlowski
3679df4a9bSKrzysztof Kozlowski  interrupts:
3779df4a9bSKrzysztof Kozlowski    maxItems: 1
3879df4a9bSKrzysztof Kozlowski
3979df4a9bSKrzysztof Kozlowski  samsung,syscon-phandle:
4079df4a9bSKrzysztof Kozlowski    $ref: /schemas/types.yaml#/definitions/phandle
4179df4a9bSKrzysztof Kozlowski    description:
42*33950f9aSSam Protsenko      Phandle to the PMU system controller node (in case of Exynos5250,
43*33950f9aSSam Protsenko      Exynos5420 and Exynos7).
4479df4a9bSKrzysztof Kozlowski
4579df4a9bSKrzysztof Kozlowskirequired:
4679df4a9bSKrzysztof Kozlowski  - compatible
476fd64049SKrzysztof Kozlowski  - clocks
486fd64049SKrzysztof Kozlowski  - clock-names
4979df4a9bSKrzysztof Kozlowski  - interrupts
5079df4a9bSKrzysztof Kozlowski  - reg
5179df4a9bSKrzysztof Kozlowski
5279df4a9bSKrzysztof KozlowskiallOf:
5379df4a9bSKrzysztof Kozlowski  - $ref: watchdog.yaml#
5479df4a9bSKrzysztof Kozlowski  - if:
5579df4a9bSKrzysztof Kozlowski      properties:
5679df4a9bSKrzysztof Kozlowski        compatible:
5779df4a9bSKrzysztof Kozlowski          contains:
5879df4a9bSKrzysztof Kozlowski            enum:
5979df4a9bSKrzysztof Kozlowski              - samsung,exynos5250-wdt
6079df4a9bSKrzysztof Kozlowski              - samsung,exynos5420-wdt
61*33950f9aSSam Protsenko              - samsung,exynos7-wdt
6279df4a9bSKrzysztof Kozlowski    then:
6379df4a9bSKrzysztof Kozlowski      required:
6479df4a9bSKrzysztof Kozlowski        - samsung,syscon-phandle
6579df4a9bSKrzysztof Kozlowski
666fdc6e23SRob HerringunevaluatedProperties: false
676fdc6e23SRob Herring
6879df4a9bSKrzysztof Kozlowskiexamples:
6979df4a9bSKrzysztof Kozlowski  - |
7079df4a9bSKrzysztof Kozlowski    watchdog@101d0000 {
7179df4a9bSKrzysztof Kozlowski        compatible = "samsung,exynos5250-wdt";
7279df4a9bSKrzysztof Kozlowski        reg = <0x101D0000 0x100>;
7379df4a9bSKrzysztof Kozlowski        interrupts = <0 42 0>;
7479df4a9bSKrzysztof Kozlowski        clocks = <&clock 336>;
7579df4a9bSKrzysztof Kozlowski        clock-names = "watchdog";
7679df4a9bSKrzysztof Kozlowski        samsung,syscon-phandle = <&pmu_syscon>;
7779df4a9bSKrzysztof Kozlowski    };
78