Skip to contentSkip to conversation

dt-bindings: display: panel-simple: Allow optional 'ports' property

PATCH In review Liu Ying 2 participants 5 messages Nov 4, 2020 – Nov 10, 2020

Subsystems (4)
lore
Share & tools
lore

Liu Ying

author
#0 lore raw

PATCH 1/1 dt-bindings: display: panel-simple: Allow optional 'ports' property

Some simple panels have dual LVDS interfaces which receive even and odd pixels respectively, like 'nlt,nl192108ac18-02d' and 'koe,tx26d202vm0bwa'. So, let's allow optional 'ports' property so that pixel order can be got via drm_of_lvds_get_dual_link_pixel_order() if it's child nodes 'port@0' and 'port@1' contain 'dual-lvds-even-pixels' and 'dual-lvds-odd-pixels' properties respectively.

Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Rob Herring <[email protected]>
---
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +1 -0
index f9750b0..5ccb22b 100644
@@ -288,6 +288,7 @@ properties:
   backlight: true
   enable-gpios: true
   port: true
+  ports: true
   power-supply: true
 
 additionalProperties: false
Signature · 1 line
2.7.4
#1 lore raw

Hi Liu Ying

Quoted 6 lines · Liu Ying

Some simple panels have dual LVDS interfaces which receive even and odd pixels respectively, like 'nlt,nl192108ac18-02d' and 'koe,tx26d202vm0bwa'. So, let's allow optional 'ports' property so that pixel order can be got via drm_of_lvds_get_dual_link_pixel_order() if it's child nodes 'port@0' and 'port@1' contain 'dual-lvds-even-pixels' and 'dual-lvds-odd-pixels' properties respectively.

A panel with dual LVDS interfaces is no longer in the "simple" category. The panel-simple binding shall be limited to the simple pnales only.

This is also why we have for example panel-simple-dsi binding.

Please consider either a binding dedicated for the dual port displays or a dedicated binding for the specific panel.

I trust that if other readers of this mail disagrees with this recommendation that they will speak up.

Sam

Quoted 25 lines
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Rob Herring <[email protected]>
---
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +1 -0
index f9750b0..5ccb22b 100644
@@ -288,6 +288,7 @@ properties:
   backlight: true
   enable-gpios: true
   port: true
+  ports: true
   power-supply: true
 
 additionalProperties: false
Signature · 1 line
2.7.4
author
#2 lore raw

Hi Sam,

Quoted 15 lines · Sam Ravnborg

Hi Liu Ying

Quoted 11 lines · Liu Ying

Some simple panels have dual LVDS interfaces which receive even and odd
pixels respectively, like 'nlt,nl192108ac18-02d' and 'koe,tx26d202vm0bwa'.
So, let's allow optional 'ports' property so that pixel order can be got
via drm_of_lvds_get_dual_link_pixel_order() if it's child nodes 'port@0'
and 'port@1' contain 'dual-lvds-even-pixels' and 'dual-lvds-odd- pixels'
properties respectively.

Quoted 8 lines

A panel with dual LVDS interfaces is no longer in the "simple" category.
The panel-simple binding shall be limited to the simple pnales only.

This is also why we have for example panel-simple-dsi binding.

Please consider either a binding dedicated for the dual port displays or

Thanks for your review.

Does a new 'panel-simple-lvds-dual-ports.yaml' binding look ok? I assume it would inherit all properties of panel-simple.yaml and all existing compatibles of LVDS panels with dual ports in panel-simple.yaml can be moved to it.

Quoted 36 lines

a dedicated binding for the specific panel.

I trust that if other readers of this mail disagrees with this recommendation that they will speak up.

Sam

Quoted 29 lines
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
Cc David Airlie <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Rob Herring <[email protected]>

---
Documentation/devicetree/bindings/display/panel/panel-simple.yaml
| 1 +

 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index f9750b0..5ccb22b 100644
--- a/Documentation/devicetree/bindings/display/panel/panel- simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel- simple.yaml

Documentation/devicetree/bindings/display/panel/panel-simple.yaml +1 -0
@@ -288,6 +288,7 @@ properties:
   backlight: true
   enable-gpios: true
   port: true
+  ports: true
   power-supply: true
 
 additionalProperties: false
Signature · 1 line
2.7.4
Signature · 1 line
 Liu Ying
#3 lore raw

Hi Liu Ying,

Quoted 27 lines · Liu Ying

Hi Sam,

Quoted 15 lines · Sam Ravnborg

Hi Liu Ying

Quoted 11 lines · Liu Ying

Some simple panels have dual LVDS interfaces which receive even and odd
pixels respectively, like 'nlt,nl192108ac18-02d' and 'koe,tx26d202vm0bwa'.
So, let's allow optional 'ports' property so that pixel order can be got
via drm_of_lvds_get_dual_link_pixel_order() if it's child nodes 'port@0'
and 'port@1' contain 'dual-lvds-even-pixels' and 'dual-lvds-odd- pixels'
properties respectively.

Quoted 8 lines

A panel with dual LVDS interfaces is no longer in the "simple" category.
The panel-simple binding shall be limited to the simple pnales only.

This is also why we have for example panel-simple-dsi binding.

Please consider either a binding dedicated for the dual port displays or

Quoted 6 lines

Thanks for your review.

Does a new 'panel-simple-lvds-dual-ports.yaml' binding look ok? I assume it would inherit all properties of panel-simple.yaml and all existing compatibles of LVDS panels with dual ports in panel-simple.yaml can be moved to it.

Yes, that would be fine. If possible we shall have similar panels described by the same binding.

Try to send out the binding for review early before starting to move too much around - so we can get an early look at it at see if this is indeed the right direction to go.

Sam

author
#4 lore raw
Quoted 43 lines · Sam Ravnborg

Hi Liu Ying,

Quoted 33 lines · Liu Ying

Hi Sam,

Quoted 24 lines · Sam Ravnborg

Hi Liu Ying

Quoted 7 lines · Liu Ying

Some simple panels have dual LVDS interfaces which receive even and
odd
pixels respectively, like 'nlt,nl192108ac18-02d' and 'koe,tx26d202vm0bwa'.
So, let's allow optional 'ports' property so that pixel order can

Quoted 8 lines

be got
via drm_of_lvds_get_dual_link_pixel_order() if it's child nodes
'port@0'
and 'port@1' contain 'dual-lvds-even-pixels' and 'dual-lvds- odd-
pixels'
properties respectively.

A panel with dual LVDS interfaces is no longer in the "simple" category.
The panel-simple binding shall be limited to the simple pnales only.

Quoted 5 lines

This is also why we have for example panel-simple-dsi binding.

Please consider either a binding dedicated for the dual port displays
or

Quoted 7 lines

Thanks for your review.

Does a new 'panel-simple-lvds-dual-ports.yaml' binding look ok? I assume it would inherit all properties of panel-simple.yaml and all
existing compatibles of LVDS panels with dual ports in panel-simple.yaml can be moved to it.

Quoted 8 lines

Yes, that would be fine. If possible we shall have similar panels described by the same binding.

Try to send out the binding for review early before starting to move too
much around - so we can get an early look at it at see if this is indeed
the right direction to go.

Yes. I've sent out one for review:

https://lists.freedesktop.org/archives/dri-devel/2020-November/286482.html

Quoted 6 lines

Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 1 line
 Liu Ying