linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema
@ 2021-06-07 19:40 Rob Herring
  2021-06-09 19:03 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2021-06-07 19:40 UTC (permalink / raw)
  To: Guenter Roeck, Wim Van Sebroeck
  Cc: devicetree, linux-kernel, Fu Wei, linux-watchdog

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>
---
 .../bindings/watchdog/arm,sbsa-gwdt.yaml      | 51 +++++++++++++++++++
 .../bindings/watchdog/sbsa-gwdt.txt           | 31 -----------
 2 files changed, 51 insertions(+), 31 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
 delete mode 100644 Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt

diff --git a/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml b/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
new file mode 100644
index 000000000000..6bfa46353c4e
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/arm,sbsa-gwdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SBSA (Server Base System Architecture) Generic Watchdog
+
+maintainers:
+  - Fu Wei <fu.wei@linaro.org>
+
+description: |
+  The SBSA Generic Watchdog Timer is used to force a reset of the system after
+  two stages of timeout have elapsed. A detailed definition of the watchdog
+  timer can be found in the ARM document: ARM-DEN-0029 - Server Base System
+  Architecture (SBSA)
+
+allOf:
+  - $ref: watchdog.yaml#
+
+properties:
+  compatible:
+    const: arm,sbsa-gwdt
+
+  reg:
+    items:
+      - description: Watchdog control frame
+      - description: Refresh frame
+
+  interrupts:
+    description: The Watchdog Signal 0 (WS0) SPI (Shared Peripheral Interrupt)
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+
+    watchdog@2a440000 {
+        compatible = "arm,sbsa-gwdt";
+        reg = <0x2a440000 0x1000>,
+              <0x2a450000 0x1000>;
+        interrupts = <0 27 4>;
+        timeout-sec = <30>;
+    };
+...
diff --git a/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt b/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
deleted file mode 100644
index 6f2d5f91964d..000000000000
--- a/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-* SBSA (Server Base System Architecture) Generic Watchdog
-
-The SBSA Generic Watchdog Timer is used to force a reset of the system
-after two stages of timeout have elapsed.  A detailed definition of the
-watchdog timer can be found in the ARM document: ARM-DEN-0029 - Server
-Base System Architecture (SBSA)
-
-Required properties:
-- compatible: Should at least contain "arm,sbsa-gwdt".
-
-- reg: Each entry specifies the base physical address of a register frame
-  and the length of that frame; currently, two frames must be defined,
-  in this order:
-  1: Watchdog control frame;
-  2: Refresh frame.
-
-- interrupts: Should contain the Watchdog Signal 0 (WS0) SPI (Shared
-  Peripheral Interrupt) number of SBSA Generic Watchdog.
-
-Optional properties
-- timeout-sec: Watchdog timeout values (in seconds).
-
-Example for FVP Foundation Model v8:
-
-watchdog@2a440000 {
-	compatible = "arm,sbsa-gwdt";
-	reg = <0x0 0x2a440000 0 0x1000>,
-	      <0x0 0x2a450000 0 0x1000>;
-	interrupts = <0 27 4>;
-	timeout-sec = <30>;
-};
-- 
2.27.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema
  2021-06-07 19:40 [PATCH] dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema Rob Herring
@ 2021-06-09 19:03 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2021-06-09 19:03 UTC (permalink / raw)
  To: Rob Herring
  Cc: Wim Van Sebroeck, devicetree, linux-kernel, Fu Wei, linux-watchdog

On Mon, Jun 07, 2021 at 02:40:22PM -0500, Rob Herring wrote:
> 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>

> ---
>  .../bindings/watchdog/arm,sbsa-gwdt.yaml      | 51 +++++++++++++++++++
>  .../bindings/watchdog/sbsa-gwdt.txt           | 31 -----------
>  2 files changed, 51 insertions(+), 31 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
>  delete mode 100644 Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
> 
> diff --git a/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml b/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
> new file mode 100644
> index 000000000000..6bfa46353c4e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/watchdog/arm,sbsa-gwdt.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SBSA (Server Base System Architecture) Generic Watchdog
> +
> +maintainers:
> +  - Fu Wei <fu.wei@linaro.org>
> +
> +description: |
> +  The SBSA Generic Watchdog Timer is used to force a reset of the system after
> +  two stages of timeout have elapsed. A detailed definition of the watchdog
> +  timer can be found in the ARM document: ARM-DEN-0029 - Server Base System
> +  Architecture (SBSA)
> +
> +allOf:
> +  - $ref: watchdog.yaml#
> +
> +properties:
> +  compatible:
> +    const: arm,sbsa-gwdt
> +
> +  reg:
> +    items:
> +      - description: Watchdog control frame
> +      - description: Refresh frame
> +
> +  interrupts:
> +    description: The Watchdog Signal 0 (WS0) SPI (Shared Peripheral Interrupt)
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +
> +    watchdog@2a440000 {
> +        compatible = "arm,sbsa-gwdt";
> +        reg = <0x2a440000 0x1000>,
> +              <0x2a450000 0x1000>;
> +        interrupts = <0 27 4>;
> +        timeout-sec = <30>;
> +    };
> +...
> diff --git a/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt b/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
> deleted file mode 100644
> index 6f2d5f91964d..000000000000
> --- a/Documentation/devicetree/bindings/watchdog/sbsa-gwdt.txt
> +++ /dev/null
> @@ -1,31 +0,0 @@
> -* SBSA (Server Base System Architecture) Generic Watchdog
> -
> -The SBSA Generic Watchdog Timer is used to force a reset of the system
> -after two stages of timeout have elapsed.  A detailed definition of the
> -watchdog timer can be found in the ARM document: ARM-DEN-0029 - Server
> -Base System Architecture (SBSA)
> -
> -Required properties:
> -- compatible: Should at least contain "arm,sbsa-gwdt".
> -
> -- reg: Each entry specifies the base physical address of a register frame
> -  and the length of that frame; currently, two frames must be defined,
> -  in this order:
> -  1: Watchdog control frame;
> -  2: Refresh frame.
> -
> -- interrupts: Should contain the Watchdog Signal 0 (WS0) SPI (Shared
> -  Peripheral Interrupt) number of SBSA Generic Watchdog.
> -
> -Optional properties
> -- timeout-sec: Watchdog timeout values (in seconds).
> -
> -Example for FVP Foundation Model v8:
> -
> -watchdog@2a440000 {
> -	compatible = "arm,sbsa-gwdt";
> -	reg = <0x0 0x2a440000 0 0x1000>,
> -	      <0x0 0x2a450000 0 0x1000>;
> -	interrupts = <0 27 4>;
> -	timeout-sec = <30>;
> -};
> -- 
> 2.27.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-09 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 19:40 [PATCH] dt-bindings: watchdog: Convert arm,sbsa-gwdt to DT schema Rob Herring
2021-06-09 19:03 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).