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 ziirave-wdt.txt to yaml

Convert ziirave-wdt.txt to yaml format.

Additional change:
- Add i2c node in example.
- Add ref to watchdog.yaml

Fix below warning:
arch/arm64/boot/dts/freescale/imx8mq-zii-ultra-rmb3.dtb: /soc@0/bus@30800000/i2c@30a40000/watchdog@38:
failed to match any schema with compatible: ['zii,rave-wdt']

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240814161250.4017427-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
90e09575 d9b5ca66

+49 -19
+49
Documentation/devicetree/bindings/watchdog/zii,rave-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-wdt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Zodiac RAVE Watchdog Timer 8 + 9 + maintainers: 10 + - Martyn Welch <martyn.welch@collabora.co.uk> 11 + - Guenter Roeck <linux@roeck-us.net> 12 + - Wim Van Sebroeck <wim@iguana.be> 13 + 14 + properties: 15 + compatible: 16 + const: zii,rave-wdt 17 + 18 + reg: 19 + maxItems: 1 20 + description: i2c slave address of device, usually 0x38 21 + 22 + reset-duration-ms: 23 + description: 24 + Duration of the pulse generated when the watchdog times 25 + out. 26 + 27 + required: 28 + - compatible 29 + - reg 30 + 31 + allOf: 32 + - $ref: watchdog.yaml# 33 + 34 + unevaluatedProperties: false 35 + 36 + examples: 37 + - | 38 + i2c { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + watchdog@38 { 43 + compatible = "zii,rave-wdt"; 44 + reg = <0x38>; 45 + timeout-sec = <30>; 46 + reset-duration-ms = <30>; 47 + }; 48 + }; 49 +
-19
Documentation/devicetree/bindings/watchdog/ziirave-wdt.txt
··· 1 - Zodiac RAVE Watchdog Timer 2 - 3 - Required properties: 4 - - compatible: must be "zii,rave-wdt" 5 - - reg: i2c slave address of device, usually 0x38 6 - 7 - Optional Properties: 8 - - timeout-sec: Watchdog timeout value in seconds. 9 - - reset-duration-ms: Duration of the pulse generated when the watchdog times 10 - out. Value in milliseconds. 11 - 12 - Example: 13 - 14 - watchdog@38 { 15 - compatible = "zii,rave-wdt"; 16 - reg = <0x38>; 17 - timeout-sec = <30>; 18 - reset-duration-ms = <30>; 19 - };