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

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: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190821143835.7294-1-mripard@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Maxime Ripard and committed by
Wim Van Sebroeck
f9eaba57 b3528b48

+26
+26
Documentation/devicetree/bindings/watchdog/watchdog.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/watchdog/watchdog.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Watchdog Generic Bindings 8 + 9 + maintainers: 10 + - Guenter Roeck <linux@roeck-us.net> 11 + - Wim Van Sebroeck <wim@linux-watchdog.org> 12 + 13 + description: | 14 + This document describes generic bindings which can be used to 15 + describe watchdog devices in a device tree. 16 + 17 + properties: 18 + $nodename: 19 + pattern: "^watchdog(@.*|-[0-9a-f])?$" 20 + 21 + timeout-sec: 22 + $ref: /schemas/types.yaml#/definitions/uint32 23 + description: 24 + Contains the watchdog timeout in seconds. 25 + 26 + ...