Skip to contentSkip to conversation

drm/bridge/synopsys: dsi: driver-specific configuration of phy timings

PATCH Neil Armstrong 2 participants 2 messages Nov 25, 2019 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 5060226.21S8zkcLb9@phil

#3 lore raw

Hi,

Quoted 30 lines · Heiko Stuebner

Hi Neil,

Am Samstag, 23. November 2019, 13:38:41 CET schrieb Neil Armstrong:

Quoted 27 lines · Heiko Stuebner
Quoted 26 lines

From: Heiko Stuebner <[email protected]>

The timing values for dw-dsi are often dependent on the used display and according to Philippe Cornu will most likely also depend on the used phy technology in the soc-specific implementation.

To solve this and allow specific implementations to define them as needed add a new get_timing callback to phy_ops and call this from the dphy_timing function to retrieve the necessary values for the specific mode.

Right now this handles the hs2lp + lp2hs where Rockchip SoCs need handling according to the phy speed, while STM seems to be ok with static values.

changes in v3:
- check existence of phy_ops->get_timing in __dw_mipi_dsi_probe()
- emit actual error when get_timing() call fails
- add tags from Philippe and Yannick

changes in v2:
- add driver-specific handling, don't force all bridge users to use the same timings, as suggested by Philippe

You forgot to Cc dri-devel, so I can't apply it.

Could you resent it ?

Neil

Quoted 14 lines
Quoted 14 lines
Quoted 8 lines
---
 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 27 +++++--
 drivers/gpu/drm/rockchip/Kconfig              |  1 +
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 78 +++++++++++++++++++
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         | 13 ++++
 include/drm/bridge/dw_mipi_dsi.h              |  9 +++
 5 files changed, 121 insertions(+), 7 deletions(-)

[...]

Looks good,

Quoted 9 lines
Quoted 1 line

I can apply it on monday if you want.

that would be very cool. Looking forward to monday then

Thanks
Heiko

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

#4 lore raw

Am Montag, 25. November 2019, 10:28:12 CET schrieb Neil Armstrong:

Quoted 29 lines

Hi,

Quoted 26 lines · Heiko Stuebner

Hi Neil,

Am Samstag, 23. November 2019, 13:38:41 CET schrieb Neil Armstrong:

Quoted 23 lines · Heiko Stuebner
Quoted 22 lines

From: Heiko Stuebner <[email protected]>

The timing values for dw-dsi are often dependent on the used display and according to Philippe Cornu will most likely also depend on the used phy technology in the soc-specific implementation.

To solve this and allow specific implementations to define them as needed add a new get_timing callback to phy_ops and call this from the dphy_timing function to retrieve the necessary values for the specific mode.

Right now this handles the hs2lp + lp2hs where Rockchip SoCs need handling according to the phy speed, while STM seems to be ok with static values.

changes in v3:
- check existence of phy_ops->get_timing in __dw_mipi_dsi_probe()
- emit actual error when get_timing() call fails
- add tags from Philippe and Yannick

changes in v2:
- add driver-specific handling, don't force all bridge users to use the same timings, as suggested by Philippe

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

You forgot to Cc dri-devel, so I can't apply it.

oh dang ... resend coming shortly

Heiko

Quoted 30 lines

Could you resent it ?

Neil

Quoted 23 lines
Quoted 8 lines
Quoted 8 lines
---
 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 27 +++++--
 drivers/gpu/drm/rockchip/Kconfig              |  1 +
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   | 78 +++++++++++++++++++
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         | 13 ++++
 include/drm/bridge/dw_mipi_dsi.h              |  9 +++
 5 files changed, 121 insertions(+), 7 deletions(-)
Quoted 7 lines

[...]

Looks good,

I can apply it on monday if you want.

that would be very cool. Looking forward to monday then

Thanks
Heiko

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