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