Re: [PATCH 2/6] dt-bindings: drm/bridge: ti-sn65dsi83: add documentation for reverse lvds lanes

2022-06-05 Thread Rob Herring
On Mon, May 30, 2022 at 05:05:45PM +0200, Marco Felsch wrote:
> The TI converter chip can swap the LVDS data lanes in a pre-defined
> manner. This can be useful to improve the layout characteristic.
> 
> Signed-off-by: Marco Felsch 
> ---
>  .../bindings/display/bridge/ti,sn65dsi83.yaml | 58 ++-
>  1 file changed, 56 insertions(+), 2 deletions(-)

Reviewed-by: Rob Herring 


[PATCH 2/6] dt-bindings: drm/bridge: ti-sn65dsi83: add documentation for reverse lvds lanes

2022-05-30 Thread Marco Felsch
The TI converter chip can swap the LVDS data lanes in a pre-defined
manner. This can be useful to improve the layout characteristic.

Signed-off-by: Marco Felsch 
---
 .../bindings/display/bridge/ti,sn65dsi83.yaml | 58 ++-
 1 file changed, 56 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml 
b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml
index 48a97bb3e2e0..7306b9874dc3 100644
--- a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml
@@ -80,13 +80,67 @@ properties:
   - const: 4
 
   port@2:
-$ref: /schemas/graph.yaml#/properties/port
+$ref: /schemas/graph.yaml#/$defs/port-base
+unevaluatedProperties: false
 description: Video port for LVDS Channel-A output (panel or bridge).
 
+properties:
+  endpoint:
+$ref: /schemas/media/video-interfaces.yaml#
+unevaluatedProperties: false
+
+properties:
+  data-lanes:
+description: |
+  Array of physical LVDS data lane indexes in reverse or normal
+  order. Specify it in reverse order to enable the bridge CHA
+  reverse ordering. If not specified normal order is used.
+items:
+  oneOf:
+# reverse order
+- items:
+- const: 4
+- const: 3
+- const: 2
+- const: 1
+# normal order
+- items:
+- const: 1
+- const: 2
+- const: 3
+- const: 4
+
   port@3:
-$ref: /schemas/graph.yaml#/properties/port
+$ref: /schemas/graph.yaml#/$defs/port-base
+unevaluatedProperties: false
 description: Video port for LVDS Channel-B output (panel or bridge).
 
+properties:
+  endpoint:
+$ref: /schemas/media/video-interfaces.yaml#
+unevaluatedProperties: false
+
+properties:
+  data-lanes:
+description: |
+  Array of physical LVDS data lane indexes in reverse or normal
+  order. Specify it in reverse order to enable the bridge CHB
+  reverse ordering. If not specified normal order is used.
+items:
+  oneOf:
+# reverse order
+- items:
+- const: 4
+- const: 3
+- const: 2
+- const: 1
+# normal order
+- items:
+- const: 1
+- const: 2
+- const: 3
+- const: 4
+
 required:
   - port@0
   - port@2
-- 
2.30.2