Commit 05b743db authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Thierry Reding
Browse files

dt-bindings: pwm: restrict node name suffixes



Make the pattern matching node names a bit stricter to improve DTS
consistency.  The pattern is restricted to:
1. Only one unit address or one -N suffix,
2. -N suffixes to decimal numbers.

Suggested-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 8bfc651a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ select: false

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

  "#pwm-cells":
    description: