dt-bindings: display: bridge: lt9211: Require data-lanes on DSI input ports
Subsystems (4)
PATCH 1/1 dt-bindings: display: bridge: lt9211: Require data-lanes on DSI input ports
The Lontium LT9211 is capable of 1..4 DSI lanes per input DSI port, describe the lane count for each input port in the schema.
---
Cc: Andrzej Hajda <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jernej Skrabec <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
NOTE: For example Linux kernel driver does already use that information
and fails to probe if it is missing. There are currently no intree users for this binding, so no new warnings will be generated once this is applied, but a new user is about to be added.
--- .../display/bridge/lontium,lt9211.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +35 -2
@@ -36,18 +36,50 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Primary MIPI DSI port-1 for MIPI input or LVDS port-1 for LVDS input or DPI input. + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + port@1: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false description: Additional MIPI port-2 for MIPI input or LVDS port-2 for LVDS input. Used in combination with primary port-1 to drive higher resolution displays + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + port@2: $ref: /schemas/graph.yaml#/properties/port description:
@@ -99,6 +131,7 @@ examples: reg = <0>; endpoint { + data-lanes = <1 2 3 4>; remote-endpoint = <&dsi0_out>; }; };
Signature · 1 line
2.53.0
Quoted 17 lines · Marek Vasut
The Lontium LT9211 is capable of 1..4 DSI lanes per input DSI port, describe the lane count for each input port in the schema.
Signed-off-by Marek Vasut <[email protected]>---
Cc: Andrzej Hajda <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Jernej Skrabec <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Robert Foss <[email protected]>
Quoted 8 lines
Cc: Simona Vetter <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
NOTE: For example Linux kernel driver does already use that information
and fails to probe if it is missing. There are currently no intree
The first sentence must be part of the commit msg. That is important reason why you are doing this... but I don't see how you achieve any of this. Look:
Quoted 2 lines
users for this binding, so no new warnings will be generated once this is applied, but a new user is about to be added.
What warnings? How?
Quoted 9 lines
--- .../display/bridge/lontium,lt9211.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +0
-0
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 39
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +1
-1@@ -36,18 +36,50 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-base
OK, that's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 48
Quoted 9 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +5
-0+ unevaluatedProperties: false description: Primary MIPI DSI port-1 for MIPI input or LVDS port-1 for LVDS input or DPI input. + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false
That's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 58
Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +10
-0+ + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4
That's almost redundant in this context - it was already there - and the point is that it solves noting in the problem you had. Binding still does not validate the ABI and does not match it, still.
Since commit foo bar, driver needs data-lanes, so what you need to do is allow them and to require them. You can also specify their constraints if device can be configured multiple ways, up to 4 lanes.
Best regards,
Krzysztof
Quoted 8 lines · Krzysztof Kozlowski
Quoted 2 lines
NOTE: For example Linux kernel driver does already use that information
and fails to probe if it is missing. There are currently no intreeThe first sentence must be part of the commit msg. That is important reason why you are doing this... but I don't see how you achieve any of this. Look:
Quoted 4 lines
Quoted 2 lines
users for this binding, so no new warnings will be generated once this is applied, but a new user is about to be added.
What warnings? How?
There are no in-tree users of this binding, so no DT checker warnings will be produced on existing in-tree DTs. I am in the process of adding a DTO which uses this binding now in arm64: dts: imx8mm: imx8mp: Add DTOs for Data Modul i.MX8M Mini and Plus eDM SBC
Quoted 40 lines
Quoted 9 lines
--- .../display/bridge/lontium,lt9211.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +0
-0Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 39
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +1
-1@@ -36,18 +36,50 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-baseOK, that's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 48
Quoted 9 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +5
-0+ unevaluatedProperties: false description: Primary MIPI DSI port-1 for MIPI input or LVDS port-1 for LVDS input or DPI input. + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: falseThat's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 58
Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +10
-0+ + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4
Quoted 7 lines
That's almost redundant in this context - it was already there - and the point is that it solves noting in the problem you had. Binding still does not validate the ABI and does not match it, still.
Since commit foo bar, driver needs data-lanes, so what you need to do is allow them and to require them. You can also specify their constraints if device can be configured multiple ways, up to 4 lanes.
Please pardon my ignorance, what exactly do you propose I change in this patch ?
Quoted 13 lines · Marek Vasut
Quoted 11 lines · Krzysztof Kozlowski
Quoted 2 lines
NOTE: For example Linux kernel driver does already use that information
and fails to probe if it is missing. There are currently no intreeThe first sentence must be part of the commit msg. That is important reason why you are doing this... but I don't see how you achieve any of this. Look:
Quoted 2 lines
users for this binding, so no new warnings will be generated once this is applied, but a new user is about to be added.
Quoted 6 lines
Quoted 1 line
What warnings? How?
There are no in-tree users of this binding, so no DT checker warnings will be produced on existing in-tree DTs. I am in the process of adding a DTO which uses this binding now in arm64: dts: imx8mm: imx8mp: Add DTOs for Data Modul i.MX8M Mini and Plus eDM SBC
So add new user, apply this and what warnings are you seeing?
Quoted 45 lines
Quoted 45 lines
Quoted 10 lines
--- .../display/bridge/lontium,lt9211.yaml | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +0
-0Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 39
Quoted 5 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +1
-1@@ -36,18 +36,50 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/properties/port + $ref: /schemas/graph.yaml#/$defs/port-baseOK, that's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 48
Quoted 9 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +5
-0+ unevaluatedProperties: false description: Primary MIPI DSI port-1 for MIPI input or LVDS port-1 for LVDS input or DPI input. + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: falseThat's correct.
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml properties: · line 58
Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/lontium,lt9211.yaml +10
-0+ + properties: + data-lanes: + description: array of physical DSI data lane indexes. + minItems: 1 + items: + - const: 1 + - const: 2 + - const: 3 + - const: 4That's almost redundant in this context - it was already there - and the point is that it solves noting in the problem you had. Binding still does not validate the ABI and does not match it, still.
Quoted 5 lines
Quoted 3 lines
Since commit foo bar, driver needs data-lanes, so what you need to do is allow them and to require them. You can also specify their constraints if device can be configured multiple ways, up to 4 lanes.
Please pardon my ignorance, what exactly do you propose I change in this patch ?
Follow the subject - require data-lanes. That's was the main point of this change, no?
Best regards,
Krzysztof
Quoted 2 lines · Marek Vasut
The Lontium LT9211 is capable of 1..4 DSI lanes per input DSI port, describe the lane count for each input port in the schema.
Ah, and subject does not really match what you did in the patch. It will match when you fix the patch, though...
Best regards,
Krzysztof