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: Convert Xilinx watchdog bindings to json-schema

Convert Xilinx watchdog bindings to DT schema format using json-schema

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220818150637.815-1-srinivas.neeli@xilinx.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Srinivas Neeli and committed by
Wim Van Sebroeck
dc1f12b9 19f04459

+68 -26
-26
Documentation/devicetree/bindings/watchdog/of-xilinx-wdt.txt
··· 1 - Xilinx AXI/PLB soft-core watchdog Device Tree Bindings 2 - --------------------------------------------------------- 3 - 4 - Required properties: 5 - - compatible : Should be "xlnx,xps-timebase-wdt-1.00.a" or 6 - "xlnx,xps-timebase-wdt-1.01.a". 7 - - reg : Physical base address and size 8 - 9 - Optional properties: 10 - - clocks : Input clock specifier. Refer to common clock 11 - bindings. 12 - - clock-frequency : Frequency of clock in Hz 13 - - xlnx,wdt-enable-once : 0 - Watchdog can be restarted 14 - 1 - Watchdog can be enabled just once 15 - - xlnx,wdt-interval : Watchdog timeout interval in 2^<val> clock cycles, 16 - <val> is integer from 8 to 31. 17 - 18 - Example: 19 - axi-timebase-wdt@40100000 { 20 - clock-frequency = <50000000>; 21 - compatible = "xlnx,xps-timebase-wdt-1.00.a"; 22 - clocks = <&clkc 15>; 23 - reg = <0x40100000 0x10000>; 24 - xlnx,wdt-enable-once = <0x0>; 25 - xlnx,wdt-interval = <0x1b>; 26 - } ;
+68
Documentation/devicetree/bindings/watchdog/xlnx,xps-timebase-wdt.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/xlnx,xps-timebase-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Xilinx AXI/PLB softcore and window Watchdog Timer 8 + 9 + maintainers: 10 + - Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> 11 + - Srinivas Neeli <srinivas.neeli@xilinx.com> 12 + 13 + description: 14 + The Timebase watchdog timer(WDT) is a free-running 32 bit counter. 15 + WDT uses a dual-expiration architecture. After one expiration of 16 + the timeout interval, an interrupt is generated and the WDT state 17 + bit is set to one in the status register. If the state bit is not 18 + cleared (by writing a one to the state bit) before the next 19 + expiration of the timeout interval, a WDT reset is generated. 20 + 21 + allOf: 22 + - $ref: watchdog.yaml# 23 + 24 + properties: 25 + compatible: 26 + enum: 27 + - xlnx,xps-timebase-wdt-1.01.a 28 + - xlnx,xps-timebase-wdt-1.00.a 29 + 30 + reg: 31 + maxItems: 1 32 + 33 + clocks: 34 + maxItems: 1 35 + 36 + clock-frequency: 37 + description: Frequency of clock in Hz 38 + 39 + xlnx,wdt-interval: 40 + $ref: /schemas/types.yaml#/definitions/uint32 41 + description: Watchdog timeout interval 42 + minimum: 8 43 + maximum: 32 44 + 45 + xlnx,wdt-enable-once: 46 + $ref: /schemas/types.yaml#/definitions/uint32 47 + enum: [0, 1] 48 + description: If watchdog is configured as enable once, 49 + then the watchdog cannot be disabled after 50 + it has been enabled. 51 + 52 + required: 53 + - compatible 54 + - reg 55 + 56 + unevaluatedProperties: false 57 + 58 + examples: 59 + - | 60 + watchdog@40100000 { 61 + compatible = "xlnx,xps-timebase-wdt-1.00.a"; 62 + reg = <0x40100000 0x1000>; 63 + clock-frequency = <50000000>; 64 + clocks = <&clkc 15>; 65 + xlnx,wdt-enable-once = <0x0>; 66 + xlnx,wdt-interval = <0x1b>; 67 + }; 68 + ...