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 250b595831SSam Protsenko - samsung,exynos850-wdt # for Exynos850 26*eadf8c4cSChanho Park - samsung,exynosautov9-wdt # for Exynosautov9 2779df4a9bSKrzysztof Kozlowski 2879df4a9bSKrzysztof Kozlowski reg: 2979df4a9bSKrzysztof Kozlowski maxItems: 1 3079df4a9bSKrzysztof Kozlowski 316fd64049SKrzysztof Kozlowski clocks: 320b595831SSam Protsenko minItems: 1 330b595831SSam Protsenko maxItems: 2 346fd64049SKrzysztof Kozlowski 356fd64049SKrzysztof Kozlowski clock-names: 360b595831SSam Protsenko minItems: 1 370b595831SSam Protsenko maxItems: 2 386fd64049SKrzysztof Kozlowski 3979df4a9bSKrzysztof Kozlowski interrupts: 4079df4a9bSKrzysztof Kozlowski maxItems: 1 4179df4a9bSKrzysztof Kozlowski 420b595831SSam Protsenko samsung,cluster-index: 430b595831SSam Protsenko $ref: /schemas/types.yaml#/definitions/uint32 440b595831SSam Protsenko description: 450b595831SSam Protsenko Index of CPU cluster on which watchdog is running (in case of Exynos850) 460b595831SSam Protsenko 4779df4a9bSKrzysztof Kozlowski samsung,syscon-phandle: 4879df4a9bSKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/phandle 4979df4a9bSKrzysztof Kozlowski description: 5033950f9aSSam Protsenko Phandle to the PMU system controller node (in case of Exynos5250, 510b595831SSam Protsenko Exynos5420, Exynos7 and Exynos850). 5279df4a9bSKrzysztof Kozlowski 5379df4a9bSKrzysztof Kozlowskirequired: 5479df4a9bSKrzysztof Kozlowski - compatible 556fd64049SKrzysztof Kozlowski - clocks 566fd64049SKrzysztof Kozlowski - clock-names 5779df4a9bSKrzysztof Kozlowski - interrupts 5879df4a9bSKrzysztof Kozlowski - reg 5979df4a9bSKrzysztof Kozlowski 6079df4a9bSKrzysztof KozlowskiallOf: 6179df4a9bSKrzysztof Kozlowski - $ref: watchdog.yaml# 6279df4a9bSKrzysztof Kozlowski - if: 6379df4a9bSKrzysztof Kozlowski properties: 6479df4a9bSKrzysztof Kozlowski compatible: 6579df4a9bSKrzysztof Kozlowski contains: 6679df4a9bSKrzysztof Kozlowski enum: 6779df4a9bSKrzysztof Kozlowski - samsung,exynos5250-wdt 6879df4a9bSKrzysztof Kozlowski - samsung,exynos5420-wdt 6933950f9aSSam Protsenko - samsung,exynos7-wdt 700b595831SSam Protsenko - samsung,exynos850-wdt 71*eadf8c4cSChanho Park - samsung,exynosautov9-wdt 7279df4a9bSKrzysztof Kozlowski then: 7379df4a9bSKrzysztof Kozlowski required: 7479df4a9bSKrzysztof Kozlowski - samsung,syscon-phandle 750b595831SSam Protsenko - if: 760b595831SSam Protsenko properties: 770b595831SSam Protsenko compatible: 780b595831SSam Protsenko contains: 790b595831SSam Protsenko enum: 800b595831SSam Protsenko - samsung,exynos850-wdt 81*eadf8c4cSChanho Park - samsung,exynosautov9-wdt 820b595831SSam Protsenko then: 830b595831SSam Protsenko properties: 840b595831SSam Protsenko clocks: 850b595831SSam Protsenko items: 860b595831SSam Protsenko - description: Bus clock, used for register interface 870b595831SSam Protsenko - description: Source clock (driving watchdog counter) 880b595831SSam Protsenko clock-names: 890b595831SSam Protsenko items: 900b595831SSam Protsenko - const: watchdog 910b595831SSam Protsenko - const: watchdog_src 920b595831SSam Protsenko samsung,cluster-index: 930b595831SSam Protsenko enum: [0, 1] 940b595831SSam Protsenko required: 950b595831SSam Protsenko - samsung,cluster-index 960b595831SSam Protsenko else: 970b595831SSam Protsenko properties: 980b595831SSam Protsenko clocks: 990b595831SSam Protsenko items: 1000b595831SSam Protsenko - description: Bus clock, which is also a source clock 1010b595831SSam Protsenko clock-names: 1020b595831SSam Protsenko items: 1030b595831SSam Protsenko - const: watchdog 1040b595831SSam Protsenko samsung,cluster-index: false 10579df4a9bSKrzysztof Kozlowski 1066fdc6e23SRob HerringunevaluatedProperties: false 1076fdc6e23SRob Herring 10879df4a9bSKrzysztof Kozlowskiexamples: 10979df4a9bSKrzysztof Kozlowski - | 11079df4a9bSKrzysztof Kozlowski watchdog@101d0000 { 11179df4a9bSKrzysztof Kozlowski compatible = "samsung,exynos5250-wdt"; 11279df4a9bSKrzysztof Kozlowski reg = <0x101D0000 0x100>; 11379df4a9bSKrzysztof Kozlowski interrupts = <0 42 0>; 11479df4a9bSKrzysztof Kozlowski clocks = <&clock 336>; 11579df4a9bSKrzysztof Kozlowski clock-names = "watchdog"; 11679df4a9bSKrzysztof Kozlowski samsung,syscon-phandle = <&pmu_syscon>; 11779df4a9bSKrzysztof Kozlowski }; 118