Skip to content

Commit 105235e

Browse files
pascalljsravnborg
authored andcommitted
drm: panel: Add Starry KR070PE2T
The KR070PE2T is a 7" panel with a resolution of 800x480. KR070PE2T is the marking present on the ribbon cable. As this panel is probably available under different brands, this marking will catch most devices. As I can't find a datasheet for this panel, the bus_flags are instead from trial-and-error. The flags seem to be common for these kind of panels as well. Signed-off-by: Pascal Roeleven <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c2eee4b commit 105235e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3076,6 +3076,32 @@ static const struct panel_desc shelly_sca07010_bfn_lnn = {
30763076
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
30773077
};
30783078

3079+
static const struct drm_display_mode starry_kr070pe2t_mode = {
3080+
.clock = 33000,
3081+
.hdisplay = 800,
3082+
.hsync_start = 800 + 209,
3083+
.hsync_end = 800 + 209 + 1,
3084+
.htotal = 800 + 209 + 1 + 45,
3085+
.vdisplay = 480,
3086+
.vsync_start = 480 + 22,
3087+
.vsync_end = 480 + 22 + 1,
3088+
.vtotal = 480 + 22 + 1 + 22,
3089+
.vrefresh = 60,
3090+
};
3091+
3092+
static const struct panel_desc starry_kr070pe2t = {
3093+
.modes = &starry_kr070pe2t_mode,
3094+
.num_modes = 1,
3095+
.bpc = 8,
3096+
.size = {
3097+
.width = 152,
3098+
.height = 86,
3099+
},
3100+
.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3101+
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3102+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
3103+
};
3104+
30793105
static const struct drm_display_mode starry_kr122ea0sra_mode = {
30803106
.clock = 147000,
30813107
.hdisplay = 1920,
@@ -3726,6 +3752,9 @@ static const struct of_device_id platform_of_match[] = {
37263752
}, {
37273753
.compatible = "shelly,sca07010-bfn-lnn",
37283754
.data = &shelly_sca07010_bfn_lnn,
3755+
}, {
3756+
.compatible = "starry,kr070pe2t",
3757+
.data = &starry_kr070pe2t,
37293758
}, {
37303759
.compatible = "starry,kr122ea0sra",
37313760
.data = &starry_kr122ea0sra,

0 commit comments

Comments
 (0)