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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: watchdog: cdns,wdt-r1p2: Convert cadence watchdog to yaml

Convert cadence watchdog bindings to DT schema format using json-schema.

Signed-off-by: Srinivas Neeli <srinivas.neeli@amd.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230601052237.2604997-1-srinivas.neeli@amd.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Srinivas Neeli and committed by
Rob Herring
6592d293 ecdb0048

+62 -23
-23
Documentation/devicetree/bindings/watchdog/cadence-wdt.txt
··· 1 - Zynq Watchdog Device Tree Bindings 2 - ------------------------------------------- 3 - 4 - Required properties: 5 - - compatible : Should be "cdns,wdt-r1p2". 6 - - clocks : This is pclk (APB clock). 7 - - interrupts : This is wd_irq - watchdog timeout interrupt. 8 - 9 - Optional properties 10 - - reset-on-timeout : If this property exists, then a reset is done 11 - when watchdog times out. 12 - - timeout-sec : Watchdog timeout value (in seconds). 13 - 14 - Example: 15 - watchdog@f8005000 { 16 - compatible = "cdns,wdt-r1p2"; 17 - clocks = <&clkc 45>; 18 - interrupt-parent = <&intc>; 19 - interrupts = <0 9 1>; 20 - reg = <0xf8005000 0x1000>; 21 - reset-on-timeout; 22 - timeout-sec = <10>; 23 - };
+62
Documentation/devicetree/bindings/watchdog/cdns,wdt-r1p2.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/cdns,wdt-r1p2.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cadence watchdog timer controller 8 + 9 + maintainers: 10 + - Neeli Srinivas <srinivas.neeli@amd.com> 11 + 12 + description: 13 + The cadence watchdog timer is used to detect and recover from 14 + system malfunctions. This watchdog contains 24 bit counter and 15 + a programmable reset period. The timeout period varies from 1 ms 16 + to 30 seconds while using a 100Mhz clock. 17 + 18 + allOf: 19 + - $ref: watchdog.yaml# 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - cdns,wdt-r1p2 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + interrupts: 33 + maxItems: 1 34 + 35 + reset-on-timeout: 36 + type: boolean 37 + description: | 38 + If this property exists, then a reset is done when watchdog 39 + times out. 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - clocks 45 + - interrupts 46 + 47 + unevaluatedProperties: false 48 + 49 + examples: 50 + - | 51 + #include <dt-bindings/interrupt-controller/arm-gic.h> 52 + 53 + watchdog@f8005000 { 54 + compatible = "cdns,wdt-r1p2"; 55 + reg = <0xf8005000 0x1000>; 56 + clocks = <&clkc 45>; 57 + interrupt-parent = <&intc>; 58 + interrupts = <GIC_SPI 9 IRQ_TYPE_EDGE_RISING>; 59 + reset-on-timeout; 60 + timeout-sec = <10>; 61 + }; 62 + ...