Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit a6aa679

Browse files
Viciousssravnborg
authored andcommitted
drm/panel: simple: add support for the Samsung LTL101AL01 panel
Add timings and panel description for the Samsung LTL101AL01 panel. Signed-off-by: Martin Jücker <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2b50aae commit a6aa679

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3218,6 +3218,37 @@ static const struct panel_desc rocktech_rk101ii01d_ct = {
32183218
.connector_type = DRM_MODE_CONNECTOR_LVDS,
32193219
};
32203220

3221+
static const struct display_timing samsung_ltl101al01_timing = {
3222+
.pixelclock = { 66663000, 66663000, 66663000 },
3223+
.hactive = { 1280, 1280, 1280 },
3224+
.hfront_porch = { 18, 18, 18 },
3225+
.hback_porch = { 36, 36, 36 },
3226+
.hsync_len = { 16, 16, 16 },
3227+
.vactive = { 800, 800, 800 },
3228+
.vfront_porch = { 4, 4, 4 },
3229+
.vback_porch = { 16, 16, 16 },
3230+
.vsync_len = { 3, 3, 3 },
3231+
.flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3232+
};
3233+
3234+
static const struct panel_desc samsung_ltl101al01 = {
3235+
.timings = &samsung_ltl101al01_timing,
3236+
.num_timings = 1,
3237+
.bpc = 8,
3238+
.size = {
3239+
.width = 217,
3240+
.height = 135,
3241+
},
3242+
.delay = {
3243+
.prepare = 40,
3244+
.enable = 300,
3245+
.disable = 200,
3246+
.unprepare = 600,
3247+
},
3248+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3249+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
3250+
};
3251+
32213252
static const struct drm_display_mode samsung_ltn101nt05_mode = {
32223253
.clock = 54030,
32233254
.hdisplay = 1024,
@@ -4161,6 +4192,9 @@ static const struct of_device_id platform_of_match[] = {
41614192
}, {
41624193
.compatible = "rocktech,rk101ii01d-ct",
41634194
.data = &rocktech_rk101ii01d_ct,
4195+
}, {
4196+
.compatible = "samsung,ltl101al01",
4197+
.data = &samsung_ltl101al01,
41644198
}, {
41654199
.compatible = "samsung,ltn101nt05",
41664200
.data = &samsung_ltn101nt05,

0 commit comments

Comments
 (0)