Skip to contentSkip to conversation

Fix panel polarity mixup in S6D7AA0 panel driver and Galaxy Tab 3 8.0 DTSI

PATCH Applied Artur Weber 3 participants 5 messages Jan 5, 2024 – Jan 22, 2024

Subsystems (6)
lore
Share & tools
lore

Artur Weber

author maintainer
#0 lore raw

v2 cover Fix panel polarity mixup in S6D7AA0 panel driver and Galaxy Tab 3 8.0 DTSI

Two small one-line patches to address a mixup in the Samsung S6D7AA0 panel driver and the Samsung Galaxy Tab 3 8.0 board it was initially added for.

---
Changes in v2:
- Add "Fixes" tag to both commits.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Artur Weber (2):
ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd drm/panel: samsung-s6d7aa0: drop DRM_BUS_FLAG_DE_HIGH for lsl080al02

 arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 1 +
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

---
base-commit: fa4131df22d181c0f721bfc6a68addb8fc62c03d
change-id: 20240101-tab3-display-fixes-6516f0b6a1a1

Best regards,

Signature · 1 line
Artur Weber <[email protected]>
author maintainer
#1 lore raw

PATCH v2 1/2 ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd

After more investigation, I've found that it's not the panel driver config that needs to be modified to invert the data polarity, but the FIMD config.

Add the missing invert-vclk option that is required to get the display to work correctly.

Fixes ee37a457af1d ("ARM: dts: exynos: Add Samsung Galaxy Tab 3 8.0 boards")
---
 arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/samsung/exynos4212-tab3.dtsi +1 -0
index d7954ff466b4..e5254e32aa8f 100644
@@ -434,6 +434,7 @@ &exynos_usbphy {
 };
 
 &fimd {
+	samsung,invert-vclk;
 	status = "okay";
 };
 
Signature · 1 line
2.43.0
#2 lore raw

Re: (subset) [PATCH v2 1/2] ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd

Quoted 8 lines · Artur Weber

After more investigation, I've found that it's not the panel driver config that needs to be modified to invert the data polarity, but the FIMD config.

Add the missing invert-vclk option that is required to get the display to work correctly.

[...]

Applied, thanks!

[1/2] ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd

      https://git.kernel.org/krzk/linux/c/eab4f56d3e75dad697acf8dc2c8be3c341d6c63e

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>
author maintainer
#3 lore raw

PATCH v2 2/2 drm/panel: samsung-s6d7aa0: drop DRM_BUS_FLAG_DE_HIGH for lsl080al02

In reply to Artur Weber

It turns out that I had misconfigured the device I was using the panel with; the bus data polarity is not high for this panel, I had to change the config on the display controller's side.

Fix the panel config to properly reflect its accurate settings.

Fixes 6810bb390282 ("drm/panel: Add Samsung S6D7AA0 panel controller driver")
---
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c +1 -1
index ea5a85779382..f23d8832a1ad 100644
@@ -309,7 +309,7 @@ static const struct s6d7aa0_panel_desc s6d7aa0_lsl080al02_desc = {
 	.off_func = s6d7aa0_lsl080al02_off,
 	.drm_mode = &s6d7aa0_lsl080al02_mode,
 	.mode_flags = MIPI_DSI_MODE_VSYNC_FLUSH | MIPI_DSI_MODE_VIDEO_NO_HFP,
-	.bus_flags = DRM_BUS_FLAG_DE_HIGH,
+	.bus_flags = 0,
 
 	.has_backlight = false,
 	.use_passwd3 = false,
Signature · 1 line
2.43.0
maintainer Applied
#4 lore raw

Re: (subset) [PATCH v2 0/2] Fix panel polarity mixup in S6D7AA0 panel driver and Galaxy Tab 3 8.0 DTSI

In reply to Artur Weber

Hi,

Quoted 5 lines · Artur Weber

Two small one-line patches to address a mixup in the Samsung S6D7AA0 panel driver and the Samsung Galaxy Tab 3 8.0 board it was initially added for.

Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-fixes)

[2/2] drm/panel: samsung-s6d7aa0: drop DRM_BUS_FLAG_DE_HIGH for lsl080al02

      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=62b143b5ec4a14e1ae0dede5aabaf1832e3b0073
Signature · 1 line
Neil