Commit f4dc5290 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Wim Van Sebroeck
Browse files

dt-bindings: watchdog: restrict node name suffixes



Make the pattern matching node names a bit stricter to improve DTS
consistency.  The pattern is restricted to -N suffixes to decimal
numbers.

Suggested-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Link: https://lkml.kernel.org/r/20230530144851.92059-8-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent e62c63ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -17,11 +17,11 @@ description: |
select:
  properties:
    $nodename:
      pattern: "^watchdog(@.*|-[0-9a-f])?$"
      pattern: "^watchdog(@.*|-([0-9]|[1-9][0-9]+))?$"

properties:
  $nodename:
    pattern: "^(timer|watchdog)(@.*|-[0-9a-f])?$"
    pattern: "^(timer|watchdog)(@.*|-([0-9]|[1-9][0-9]+))?$"

  timeout-sec:
    description: