[RFC PATCH 16/24] dt-bindings: media: i2c: max96712: use pattern properties for input ports

Cosmin Tanislav demonsingur at gmail.com
Sat Mar 8 10:33:45 PST 2025


The input ports are all the same, use patternProperties for them.

Signed-off-by: Cosmin Tanislav <demonsingur at gmail.com>
---
 .../bindings/media/i2c/maxim,max96712.yaml     | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml
index efdece2b33b9..148d196b9acc 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml
@@ -40,22 +40,10 @@ properties:
   ports:
     $ref: /schemas/graph.yaml#/properties/ports
 
-    properties:
-      port at 0:
+    patternProperties:
+      port@[0-3]:
         $ref: /schemas/graph.yaml#/properties/port
-        description: GMSL Input 0
-
-      port at 1:
-        $ref: /schemas/graph.yaml#/properties/port
-        description: GMSL Input 1
-
-      port at 2:
-        $ref: /schemas/graph.yaml#/properties/port
-        description: GMSL Input 2
-
-      port at 3:
-        $ref: /schemas/graph.yaml#/properties/port
-        description: GMSL Input 3
+        description: GMSL Input port
 
       port at 4:
         $ref: /schemas/graph.yaml#/$defs/port-base
-- 
2.48.1




More information about the linux-arm-kernel mailing list