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 arm,sbsa-gwdt to DT schema

Convert the arm,sbsa-gwdt binding to DT schema format.

Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Fu Wei <fu.wei@linaro.org>
Cc: linux-watchdog@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210607194022.3095736-1-robh@kernel.org

+51 -31
+51
Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/arm,sbsa-gwdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: SBSA (Server Base System Architecture) Generic Watchdog 8 + 9 + maintainers: 10 + - Fu Wei <fu.wei@linaro.org> 11 + 12 + description: | 13 + The SBSA Generic Watchdog Timer is used to force a reset of the system after 14 + two stages of timeout have elapsed. A detailed definition of the watchdog 15 + timer can be found in the ARM document: ARM-DEN-0029 - Server Base System 16 + Architecture (SBSA) 17 + 18 + allOf: 19 + - $ref: watchdog.yaml# 20 + 21 + properties: 22 + compatible: 23 + const: arm,sbsa-gwdt 24 + 25 + reg: 26 + items: 27 + - description: Watchdog control frame 28 + - description: Refresh frame 29 + 30 + interrupts: 31 + description: The Watchdog Signal 0 (WS0) SPI (Shared Peripheral Interrupt) 32 + maxItems: 1 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - interrupts 38 + 39 + unevaluatedProperties: false 40 + 41 + examples: 42 + - | 43 + 44 + watchdog@2a440000 { 45 + compatible = "arm,sbsa-gwdt"; 46 + reg = <0x2a440000 0x1000>, 47 + <0x2a450000 0x1000>; 48 + interrupts = <0 27 4>; 49 + timeout-sec = <30>; 50 + }; 51 + ...
-31
Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
··· 1 - * SBSA (Server Base System Architecture) Generic Watchdog 2 - 3 - The SBSA Generic Watchdog Timer is used to force a reset of the system 4 - after two stages of timeout have elapsed. A detailed definition of the 5 - watchdog timer can be found in the ARM document: ARM-DEN-0029 - Server 6 - Base System Architecture (SBSA) 7 - 8 - Required properties: 9 - - compatible: Should at least contain "arm,sbsa-gwdt". 10 - 11 - - reg: Each entry specifies the base physical address of a register frame 12 - and the length of that frame; currently, two frames must be defined, 13 - in this order: 14 - 1: Watchdog control frame; 15 - 2: Refresh frame. 16 - 17 - - interrupts: Should contain the Watchdog Signal 0 (WS0) SPI (Shared 18 - Peripheral Interrupt) number of SBSA Generic Watchdog. 19 - 20 - Optional properties 21 - - timeout-sec: Watchdog timeout values (in seconds). 22 - 23 - Example for FVP Foundation Model v8: 24 - 25 - watchdog@2a440000 { 26 - compatible = "arm,sbsa-gwdt"; 27 - reg = <0x0 0x2a440000 0 0x1000>, 28 - <0x0 0x2a450000 0 0x1000>; 29 - interrupts = <0 27 4>; 30 - timeout-sec = <30>; 31 - };