]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: watchdog: Restrict timeout-sec to one number
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 20 Oct 2025 16:52:20 +0000 (18:52 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 15 Nov 2025 14:19:55 +0000 (15:19 +0100)
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>
Documentation/devicetree/bindings/watchdog/watchdog.yaml

index f0a584af1223ebdf4dd8c31b98270f2bd96972c9..be0327f587ebfa5c1ab1fdc8652c9f67de1e94b2 100644 (file)
@@ -24,6 +24,7 @@ properties:
     pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"
 
   timeout-sec:
+    maxItems: 1
     description:
       Contains the watchdog timeout in seconds.