Skip to content

Commit 05b743d

Browse files
krzkthierryreding
authored andcommitted
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: Rob Herring <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Rob Herring <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Reviewed-by: Tony Lindgren <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 8bfc651 commit 05b743d

File tree

1 file changed

+1
-1
lines changed
  • Documentation/devicetree/bindings/pwm

1 file changed

+1
-1
lines changed

Documentation/devicetree/bindings/pwm/pwm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ select: false
1313

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

1818
"#pwm-cells":
1919
description:

0 commit comments

Comments
 (0)