Commit f9eaba57 authored by Maxime Ripard's avatar Maxime Ripard Committed by Wim Van Sebroeck
Browse files

dt-bindings: watchdog: Add YAML schemas for the generic watchdog bindings



The watchdogs have a bunch of generic properties that are needed in a
device tree. Add a YAML schemas for those.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190821143835.7294-1-mripard@kernel.org


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent b3528b48
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/watchdog/watchdog.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Watchdog Generic Bindings

maintainers:
  - Guenter Roeck <linux@roeck-us.net>
  - Wim Van Sebroeck <wim@linux-watchdog.org>

description: |
  This document describes generic bindings which can be used to
  describe watchdog devices in a device tree.

properties:
  $nodename:
    pattern: "^watchdog(@.*|-[0-9a-f])?$"

  timeout-sec:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Contains the watchdog timeout in seconds.

...