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 25*0b595831SSam Protsenko - samsung,exynos850-wdt # for Exynos850 2679df4a9bSKrzysztof Kozlowski 2779df4a9bSKrzysztof Kozlowski reg: 2879df4a9bSKrzysztof Kozlowski maxItems: 1 2979df4a9bSKrzysztof Kozlowski 306fd64049SKrzysztof Kozlowski clocks: 31*0b595831SSam Protsenko minItems: 1 32*0b595831SSam Protsenko maxItems: 2 336fd64049SKrzysztof Kozlowski 346fd64049SKrzysztof Kozlowski clock-names: 35*0b595831SSam Protsenko minItems: 1 36*0b595831SSam Protsenko maxItems: 2 376fd64049SKrzysztof Kozlowski 3879df4a9bSKrzysztof Kozlowski interrupts: 3979df4a9bSKrzysztof Kozlowski maxItems: 1 4079df4a9bSKrzysztof Kozlowski 41*0b595831SSam Protsenko samsung,cluster-index: 42*0b595831SSam Protsenko $ref: /schemas/types.yaml#/definitions/uint32 43*0b595831SSam Protsenko description: 44*0b595831SSam Protsenko Index of CPU cluster on which watchdog is running (in case of Exynos850) 45*0b595831SSam Protsenko 4679df4a9bSKrzysztof Kozlowski samsung,syscon-phandle: 4779df4a9bSKrzysztof Kozlowski $ref: /schemas/types.yaml#/definitions/phandle 4879df4a9bSKrzysztof Kozlowski description: 4933950f9aSSam Protsenko Phandle to the PMU system controller node (in case of Exynos5250, 50*0b595831SSam Protsenko Exynos5420, Exynos7 and Exynos850). 5179df4a9bSKrzysztof Kozlowski 5279df4a9bSKrzysztof Kozlowskirequired: 5379df4a9bSKrzysztof Kozlowski - compatible 546fd64049SKrzysztof Kozlowski - clocks 556fd64049SKrzysztof Kozlowski - clock-names 5679df4a9bSKrzysztof Kozlowski - interrupts 5779df4a9bSKrzysztof Kozlowski - reg 5879df4a9bSKrzysztof Kozlowski 5979df4a9bSKrzysztof KozlowskiallOf: 6079df4a9bSKrzysztof Kozlowski - $ref: watchdog.yaml# 6179df4a9bSKrzysztof Kozlowski - if: 6279df4a9bSKrzysztof Kozlowski properties: 6379df4a9bSKrzysztof Kozlowski compatible: 6479df4a9bSKrzysztof Kozlowski contains: 6579df4a9bSKrzysztof Kozlowski enum: 6679df4a9bSKrzysztof Kozlowski - samsung,exynos5250-wdt 6779df4a9bSKrzysztof Kozlowski - samsung,exynos5420-wdt 6833950f9aSSam Protsenko - samsung,exynos7-wdt 69*0b595831SSam Protsenko - samsung,exynos850-wdt 7079df4a9bSKrzysztof Kozlowski then: 7179df4a9bSKrzysztof Kozlowski required: 7279df4a9bSKrzysztof Kozlowski - samsung,syscon-phandle 73*0b595831SSam Protsenko - if: 74*0b595831SSam Protsenko properties: 75*0b595831SSam Protsenko compatible: 76*0b595831SSam Protsenko contains: 77*0b595831SSam Protsenko enum: 78*0b595831SSam Protsenko - samsung,exynos850-wdt 79*0b595831SSam Protsenko then: 80*0b595831SSam Protsenko properties: 81*0b595831SSam Protsenko clocks: 82*0b595831SSam Protsenko items: 83*0b595831SSam Protsenko - description: Bus clock, used for register interface 84*0b595831SSam Protsenko - description: Source clock (driving watchdog counter) 85*0b595831SSam Protsenko clock-names: 86*0b595831SSam Protsenko items: 87*0b595831SSam Protsenko - const: watchdog 88*0b595831SSam Protsenko - const: watchdog_src 89*0b595831SSam Protsenko samsung,cluster-index: 90*0b595831SSam Protsenko enum: [0, 1] 91*0b595831SSam Protsenko required: 92*0b595831SSam Protsenko - samsung,cluster-index 93*0b595831SSam Protsenko else: 94*0b595831SSam Protsenko properties: 95*0b595831SSam Protsenko clocks: 96*0b595831SSam Protsenko items: 97*0b595831SSam Protsenko - description: Bus clock, which is also a source clock 98*0b595831SSam Protsenko clock-names: 99*0b595831SSam Protsenko items: 100*0b595831SSam Protsenko - const: watchdog 101*0b595831SSam Protsenko samsung,cluster-index: false 10279df4a9bSKrzysztof Kozlowski 1036fdc6e23SRob HerringunevaluatedProperties: false 1046fdc6e23SRob Herring 10579df4a9bSKrzysztof Kozlowskiexamples: 10679df4a9bSKrzysztof Kozlowski - | 10779df4a9bSKrzysztof Kozlowski watchdog@101d0000 { 10879df4a9bSKrzysztof Kozlowski compatible = "samsung,exynos5250-wdt"; 10979df4a9bSKrzysztof Kozlowski reg = <0x101D0000 0x100>; 11079df4a9bSKrzysztof Kozlowski interrupts = <0 42 0>; 11179df4a9bSKrzysztof Kozlowski clocks = <&clock 336>; 11279df4a9bSKrzysztof Kozlowski clock-names = "watchdog"; 11379df4a9bSKrzysztof Kozlowski samsung,syscon-phandle = <&pmu_syscon>; 11479df4a9bSKrzysztof Kozlowski }; 115