summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2026-01-23 22:22:21 +0300
committerDouglas Anderson <dianders@chromium.org>2026-02-02 19:48:44 +0300
commit5c323ea948ff0f9e50418119cbbb3d94f2bd6a96 (patch)
tree35490feb9d5f619315af35e2b326bde22ec3a9b0
parente2242223b714ac9fd8233546ca74ce972024111f (diff)
downloadlinux-5c323ea948ff0f9e50418119cbbb3d94f2bd6a96.tar.xz
drm/panel-edp: Move FriendlyELEC HD702E
FriendlyELEC's HD702E module is an eDP panel (in as much as it's some LVDS LCD behind a Chrontel CH7511B eDP bridge), so move its data over to the eDP driver, also resolving the warning about the missing bpc value in the process. The unfortunate combination of HPD not being wired up and the RK3399 eDP controller's behaviour seems to result in the EDID not being readable over DP-AUX without probing the panel first, thus the hard-coded mode is still needed to get things going. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patch.msgid.link/a00a59dcef3693efb02a8ee942848fbeaeaf05ba.1769191673.git.robin.murphy@arm.com
-rw-r--r--drivers/gpu/drm/panel/panel-edp.c26
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c25
2 files changed, 26 insertions, 25 deletions
diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c
index c9eacfffd5b2..f5f0e2c505b6 100644
--- a/drivers/gpu/drm/panel/panel-edp.c
+++ b/drivers/gpu/drm/panel/panel-edp.c
@@ -1256,6 +1256,29 @@ static const struct panel_desc boe_nv140fhmn49 = {
},
};
+static const struct drm_display_mode friendlyarm_hd702e_mode = {
+ .clock = 67185,
+ .hdisplay = 800,
+ .hsync_start = 800 + 20,
+ .hsync_end = 800 + 20 + 24,
+ .htotal = 800 + 20 + 24 + 20,
+ .vdisplay = 1280,
+ .vsync_start = 1280 + 4,
+ .vsync_end = 1280 + 4 + 8,
+ .vtotal = 1280 + 4 + 8 + 4,
+ .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc friendlyarm_hd702e = {
+ .modes = &friendlyarm_hd702e_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 94,
+ .height = 151,
+ },
+};
+
static const struct drm_display_mode innolux_n116bca_ea1_mode = {
.clock = 76420,
.hdisplay = 1366,
@@ -1664,6 +1687,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "boe,nv140fhmn49",
.data = &boe_nv140fhmn49,
}, {
+ .compatible = "friendlyarm,hd702e",
+ .data = &friendlyarm_hd702e,
+ }, {
.compatible = "innolux,n116bca-ea1",
.data = &innolux_n116bca_ea1,
}, {
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index c606e5932ca7..67efea702f46 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2359,28 +2359,6 @@ static const struct panel_desc frida_frd350h54004 = {
.connector_type = DRM_MODE_CONNECTOR_DPI,
};
-static const struct drm_display_mode friendlyarm_hd702e_mode = {
- .clock = 67185,
- .hdisplay = 800,
- .hsync_start = 800 + 20,
- .hsync_end = 800 + 20 + 24,
- .htotal = 800 + 20 + 24 + 20,
- .vdisplay = 1280,
- .vsync_start = 1280 + 4,
- .vsync_end = 1280 + 4 + 8,
- .vtotal = 1280 + 4 + 8 + 4,
- .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
-};
-
-static const struct panel_desc friendlyarm_hd702e = {
- .modes = &friendlyarm_hd702e_mode,
- .num_modes = 1,
- .size = {
- .width = 94,
- .height = 151,
- },
-};
-
static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
.clock = 9000,
.hdisplay = 480,
@@ -5287,9 +5265,6 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "frida,frd350h54004",
.data = &frida_frd350h54004,
}, {
- .compatible = "friendlyarm,hd702e",
- .data = &friendlyarm_hd702e,
- }, {
.compatible = "giantplus,gpg482739qs5",
.data = &giantplus_gpg482739qs5
}, {