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

dt-bindings: watchdog: convert zii,rave-sp-wdt.txt to yaml format

Convert device binding doc zii,rave-sp-wdt.txt to yaml format.
Additional changes:
- Ref to watchdog.yaml.
- Remove mfd node in example.
- Remove eeprom part in example.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241010-zii_yaml-v2-4-0ab730607422@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
b213f06d a9c2d9de

+47 -39
-39
Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.txt
··· 1 - Zodiac Inflight Innovations RAVE Supervisory Processor Watchdog Bindings 2 - 3 - RAVE SP watchdog device is a "MFD cell" device corresponding to 4 - watchdog functionality of RAVE Supervisory Processor. It is expected 5 - that its Device Tree node is specified as a child of the node 6 - corresponding to the parent RAVE SP device (as documented in 7 - Documentation/devicetree/bindings/mfd/zii,rave-sp.txt) 8 - 9 - Required properties: 10 - 11 - - compatible: Depending on wire protocol implemented by RAVE SP 12 - firmware, should be one of: 13 - - "zii,rave-sp-watchdog" 14 - - "zii,rave-sp-watchdog-legacy" 15 - 16 - Optional properties: 17 - 18 - - wdt-timeout: Two byte nvmem cell specified as per 19 - Documentation/devicetree/bindings/nvmem/nvmem.txt 20 - 21 - Example: 22 - 23 - rave-sp { 24 - compatible = "zii,rave-sp-rdu1"; 25 - current-speed = <38400>; 26 - 27 - eeprom { 28 - wdt_timeout: wdt-timeout@8E { 29 - reg = <0x8E 2>; 30 - }; 31 - }; 32 - 33 - watchdog { 34 - compatible = "zii,rave-sp-watchdog"; 35 - nvmem-cells = <&wdt_timeout>; 36 - nvmem-cell-names = "wdt-timeout"; 37 - }; 38 - } 39 -
+47
Documentation/devicetree/bindings/watchdog/zii,rave-sp-wdt.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/zii,rave-sp-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Zodiac Inflight Innovations RAVE Supervisory Processor Watchdog 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + description: 13 + RAVE SP watchdog device is a "MFD cell" device corresponding to 14 + watchdog functionality of RAVE Supervisory Processor. It is expected 15 + that its Device Tree node is specified as a child of the node 16 + corresponding to the parent RAVE SP device (as documented in 17 + Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml) 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - zii,rave-sp-watchdog 23 + - zii,rave-sp-watchdog-legacy 24 + 25 + nvmem-cell-names: 26 + items: 27 + - const: wdt_timeout 28 + 29 + nvmem-cells: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + 35 + allOf: 36 + - $ref: watchdog.yaml# 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + watchdog { 43 + compatible = "zii,rave-sp-watchdog"; 44 + nvmem-cells = <&wdt_timeout>; 45 + nvmem-cell-names = "wdt_timeout"; 46 + }; 47 +