Skip to contentSkip to conversation

drm/panel: synaptics-r63353: Sharp LS068B3SX02 fixes

PATCH Applied Dario Binacchi 2 participants 6 messages Dec 2 – Dec 3

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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.

Fixes 2e87bad7cd33 ("drm/panel: Add Synaptics R63353 panel driver")

---

 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
index 73447d7b15d3..685ffb2df37c 100644
@@ -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
#2 lore raw

PATCH 2/3 drm/panel: synaptics-r63353: Set the refresh rate to 60 Hz

In reply to Dario Binacchi

From: 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
index 685ffb2df37c..8c545e822296 100644
@@ -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
#3 lore raw

PATCH 3/3 drm/panel: synaptics-r63353: Fix the power off sequence

In reply to Dario Binacchi

From: 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.

Fixes 2e87bad7cd33 ("drm/panel: Add Synaptics R63353 panel driver")

---

 drivers/gpu/drm/panel/panel-synaptics-r63353.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +7 -0
index 8c545e822296..d7f2499c961e 100644
@@ -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
maintainer Reviewed-by on the v1 series
#4 lore raw
In reply to Dario Binacchi
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 Hz

Michael 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

maintainer Applied
#5 lore raw
In reply to Dario Binacchi

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