]> Git Repo - linux.git/commitdiff
dt-bindings: timestamp: restrict node name suffixes
authorKrzysztof Kozlowski <[email protected]>
Tue, 30 May 2023 14:48:50 +0000 (16:48 +0200)
committerRob Herring <[email protected]>
Fri, 30 Jun 2023 17:38:11 +0000 (11:38 -0600)
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: Rob Herring <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Tony Lindgren <[email protected]>
Acked-by: Rob Herring <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Documentation/devicetree/bindings/timestamp/hardware-timestamps-common.yaml

index fd6a7b51f571b3a7dac2ca8465268e8000fe4a6a..95f42acd0c54fe58ad410dc06a14c333fc33f27a 100644 (file)
@@ -17,7 +17,7 @@ description:
 
 properties:
   $nodename:
-    pattern: "^timestamp(@.*|-[0-9a-f])?$"
+    pattern: "^timestamp(@.*|-([0-9]|[1-9][0-9]+))?$"
 
   "#timestamp-cells":
     description:
This page took 0.060567 seconds and 4 git commands to generate.