Skip to contentSkip to conversation

dt-bindings: display: rockchip: Allow single 'port' node for DP input port

PATCH In review Rob Herring (Arm) 2 participants 2 messages Nov 9 – Nov 22

Subsystems (5)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: display: rockchip: Allow single 'port' node for DP input port

Existing RK3399 users have only a single 'port' node. This was common before connector nodes were defined. Allow for this since there are already stable users.

---
 .../rockchip/rockchip,rk3399-cdn-dp.yaml      | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/display/rockchip/rockchip,rk3399-cdn-dp.yaml +11 -8
index 195f665970bf..425b27346132 100644
@@ -63,7 +63,12 @@ properties:
     $ref: /schemas/graph.yaml#/properties/ports
 
     properties:
-      port@0:
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description: Output of the CDN DP
+
+    patternProperties:
+      '^port(@0)?$':
         $ref: /schemas/graph.yaml#/properties/port
         description: Input of the CDN DP
 
@@ -74,13 +79,11 @@ properties:
           endpoint@1:
             description: Connection to the VOPL
 
-      port@1:
-        $ref: /schemas/graph.yaml#/properties/port
-        description: Output of the CDN DP
-
-    required:
-      - port@0
-      - port@1
+    oneOf:
+      - required:
+          - port@0
+      - required:
+          - port
 
   power-domains:
     maxItems: 1
Signature · 1 line
2.53.0