Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: watchdog: Convert Samsung SoC watchdog bindings to json-schema

Convert Samsung S3C/S5P/Exynos watchdog bindings to DT schema format
using json-schema.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
79df4a9b faf66c22

+65 -35
-35
Documentation/devicetree/bindings/watchdog/samsung-wdt.txt
··· 1 - * Samsung's Watchdog Timer Controller 2 - 3 - The Samsung's Watchdog controller is used for resuming system operation 4 - after a preset amount of time during which the WDT reset event has not 5 - occurred. 6 - 7 - Required properties: 8 - - compatible : should be one among the following 9 - - "samsung,s3c2410-wdt" for S3C2410 10 - - "samsung,s3c6410-wdt" for S3C6410, S5PV210 and Exynos4 11 - - "samsung,exynos5250-wdt" for Exynos5250 12 - - "samsung,exynos5420-wdt" for Exynos5420 13 - - "samsung,exynos7-wdt" for Exynos7 14 - 15 - - reg : base physical address of the controller and length of memory mapped 16 - region. 17 - - interrupts : interrupt number to the cpu. 18 - - samsung,syscon-phandle : reference to syscon node (This property required only 19 - in case of compatible being "samsung,exynos5250-wdt" or "samsung,exynos5420-wdt". 20 - In case of Exynos5250 and 5420 this property points to syscon node holding the PMU 21 - base address) 22 - 23 - Optional properties: 24 - - timeout-sec : contains the watchdog timeout in seconds. 25 - 26 - Example: 27 - 28 - watchdog@101d0000 { 29 - compatible = "samsung,exynos5250-wdt"; 30 - reg = <0x101D0000 0x100>; 31 - interrupts = <0 42 0>; 32 - clocks = <&clock 336>; 33 - clock-names = "watchdog"; 34 - samsung,syscon-phandle = <&pmu_syscon>; 35 - };
+65
Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
··· 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 + 7 + title: Samsung SoC Watchdog Timer Controller 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzk@kernel.org> 11 + 12 + description: |+ 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 + 17 + properties: 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 + interrupts: 30 + maxItems: 1 31 + 32 + samsung,syscon-phandle: 33 + $ref: /schemas/types.yaml#/definitions/phandle 34 + description: 35 + Phandle to the PMU system controller node (in case of Exynos5250 36 + and Exynos5420). 37 + 38 + required: 39 + - compatible 40 + - interrupts 41 + - reg 42 + 43 + allOf: 44 + - $ref: watchdog.yaml# 45 + - if: 46 + properties: 47 + compatible: 48 + contains: 49 + enum: 50 + - samsung,exynos5250-wdt 51 + - samsung,exynos5420-wdt 52 + then: 53 + required: 54 + - samsung,syscon-phandle 55 + 56 + examples: 57 + - | 58 + watchdog@101d0000 { 59 + compatible = "samsung,exynos5250-wdt"; 60 + reg = <0x101D0000 0x100>; 61 + interrupts = <0 42 0>; 62 + clocks = <&clock 336>; 63 + clock-names = "watchdog"; 64 + samsung,syscon-phandle = <&pmu_syscon>; 65 + };