]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: clock: mpfs-clkcfg: Add pic64gx compatibility
authorPierre-Henry Moussay <pierre-henry.moussay@microchip.com>
Tue, 13 Jan 2026 22:11:47 +0000 (22:11 +0000)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Fri, 16 Jan 2026 06:48:38 +0000 (08:48 +0200)
pic64gx has a clock controller compatible with mpfs-clkcfg. Don't permit
the deprecated configuration that was never supported for this SoC.

Signed-off-by: Pierre-Henry Moussay <pierre-henry.moussay@microchip.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Co-developed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20260113-glue-justifier-566ffab2ffd3@spud
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Documentation/devicetree/bindings/clock/microchip,mpfs-clkcfg.yaml

index ee4f31596d9788cb35f2177b9cc7e53fbb5a4879..a23703c281d16fe65559e289e8fca473843de1f6 100644 (file)
@@ -19,7 +19,11 @@ description: |
 
 properties:
   compatible:
-    const: microchip,mpfs-clkcfg
+    oneOf:
+      - items:
+          - const: microchip,pic64gx-clkcfg
+          - const: microchip,mpfs-clkcfg
+      - const: microchip,mpfs-clkcfg
 
   reg:
     oneOf:
@@ -69,6 +73,16 @@ required:
   - clocks
   - '#clock-cells'
 
+if:
+  properties:
+    compatible:
+      contains:
+        const: microchip,pic64gx-clkcfg
+then:
+  properties:
+    reg:
+      maxItems: 1
+
 additionalProperties: false
 
 examples: