Skip to content

Commit 0917135

Browse files
krzkWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: Restrict timeout-sec to one number
Linux kernel expects only one number for the watchdog timeout and the type is an array (defined in property-units.yaml in DT schema), so restrict the property. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent babe81b commit 0917135

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Documentation/devicetree/bindings/watchdog/watchdog.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ properties:
2424
pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"
2525

2626
timeout-sec:
27+
maxItems: 1
2728
description:
2829
Contains the watchdog timeout in seconds.
2930

0 commit comments

Comments
 (0)