drm/panel: synaptics-r63353: Sharp LS068B3SX02 fixes
cover drm/panel: synaptics-r63353: Sharp LS068B3SX02 fixes
This series aligns the timings and the power off sequence of the Sharp LS068B3SX02 panel with the ones used on the BSH products.
Tested on i.MX8MN (BSH SMM S2 PRO).
Leonhard Hesse (1):
drm/panel: synaptics-r63353: Set the refresh rate to 60 Hz
Michael Trimarchi (2):
drm/panel: synaptics-r63353: Fix the last line of the display drm/panel: synaptics-r63353: Fix the power off sequence
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
---
base-commit: 5ce32a0c94a827ff44ee60898c28060714dcff75
branch: r63353-timings
Signature · 1 line
2.43.0
PATCH 1/3 drm/panel: synaptics-r63353: Fix the last line of the display
From: Michael Trimarchi <[email protected]>
The last line of the Sharp LS068B3SX02 is never shown with the right color. Add a line of vertical back porch to fix it.
---
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +1 -1
@@ -190,7 +190,7 @@ static const struct drm_display_mode sharp_ls068b3sx02_timing = { .vdisplay = 1280, .vsync_start = 1280 + 2, .vsync_end = 1280 + 2 + 4, - .vtotal = 1280 + 2 + 4 + 0, + .vtotal = 1280 + 2 + 4 + 1, }; static int r63353_panel_get_modes(struct drm_panel *panel,
Signature · 1 line
2.43.0
PATCH 2/3 drm/panel: synaptics-r63353: Set the refresh rate to 60 Hz
In reply to Dario BinacchiFrom: Leonhard Hesse <[email protected]>
With the current timings the refresh rate of the Sharp LS068B3SX02 is 65.77 Hz. Adjust the pixel clock to get 60 Hz.
---
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +1 -1
@@ -182,7 +182,7 @@ static int r63353_panel_unprepare(struct drm_panel *panel) }static const struct drm_display_mode sharp_ls068b3sx02_timing = { - .clock =70000 , + .clock =63861 , .hdisplay =640 , .hsync_start =640 +35 , .hsync_end =640 +35 +2 ,
Signature · 1 line
2.43.0
PATCH 3/3 drm/panel: synaptics-r63353: Fix the power off sequence
In reply to Dario BinacchiFrom: Michael Trimarchi <[email protected]>
According to the manufacturer, the panel needs 300 ms between the reset assertion and the removal of the first supply, and 300 ms more before the removal of the second one.
---
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +7 -0
@@ -97,7 +97,14 @@ static int r63353_panel_power_on(struct r63353_panel *rpanel)static int r63353_panel_power_off (struct r63353_panel *rpanel) {gpiod_set_value (rpanel->reset_gpio,0 ); + +/* +* Sharp requires 300 ms after the reset and 300 ms more +* between the two supplies. +*/ +msleep (300 );regulator_disable (rpanel->dvdd); +msleep (300 );regulator_disable (rpanel->avdd);return 0 ;
Signature · 1 line
2.43.0
Quoted 13 lines · Dario Binacchi
This series aligns the timings and the power off sequence of the Sharp LS068B3SX02 panel with the ones used on the BSH products.
Tested on i.MX8MN (BSH SMM S2 PRO).
Leonhard Hesse (1):
drm/panel: synaptics-r63353: Set the refresh rate to 60 HzMichael Trimarchi (2):
drm/panel: synaptics-r63353: Fix the last line of the display drm/panel: synaptics-r63353: Fix the power off sequence
Quoted 7 lines
drivers/gpu/drm/panel/panel-synaptics-r63353.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)---
base-commit:5ce32a0c94a827ff44ee60898c28060714dcff75
branch: r63353-timings
Thanks,
Neil
Hi,
Quoted 10 lines · Dario Binacchi
This series aligns the timings and the power off sequence of the Sharp LS068B3SX02 panel with the ones used on the BSH products.
Tested on i.MX8MN (BSH SMM S2 PRO).
Leonhard Hesse (1):
drm/panel: synaptics-r63353: Set the refresh rate to 60 Hz[...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/3] drm/panel: synaptics-r63353: Fix the last line of the display
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/e3dd92c806fec753dafada1aea60008460cb05b2 [2/3] drm/panel: synaptics-r63353: Set the refresh rate to 60 Hz https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/bec8a39c855357393953ef754bb430f4e578802a [3/3] drm/panel: synaptics-r63353: Fix the power off sequence https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/3979ad7d3c20448f7f38c1e78f33dcf7846413a0
Signature · 1 line
Neil