]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: clk: rs9: Fix DIF pattern match
authorMarek Vasut <marek.vasut@mailbox.org>
Tue, 14 Oct 2025 10:46:03 +0000 (12:46 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 3 Feb 2026 00:36:14 +0000 (16:36 -0800)
The pattern match [0-19] is incorrect and does not cover range of 0..19,
use pattern 1?[0-9] to cover range 0..19 instead. Update the example to
validate all parts of the pattern match and prevent such failures in the
future.

Fixes: 26c1bc67aa2f ("dt-bindings: clk: rs9: Add Renesas 9-series I2C PCIe clock generator")
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/renesas,9series.yaml

index af6319697b1c04bb7e4fc814a07b1670499f5886..a85f78ce29702c5fa1bdb02ae0e5f7f6b032de88 100644 (file)
@@ -62,7 +62,7 @@ properties:
     description: Output clock down spread in pcm (1/1000 of percent)
 
 patternProperties:
-  "^DIF[0-19]$":
+  "^DIF1?[0-9]$":
     type: object
     description:
       Description of one of the outputs (DIF0..DIF19).
@@ -107,6 +107,15 @@ examples:
             DIF0 {
                 renesas,slew-rate = <3000000>;
             };
+
+            /* Not present on 9FGV0241, used for DT validation only */
+            DIF2 {
+                renesas,slew-rate = <2000000>;
+            };
+
+            DIF19 {
+                renesas,slew-rate = <3000000>;
+            };
         };
     };