Skip to content

Commit 652be03

Browse files
a3fsuperna9999
authored andcommitted
drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K). The panel features 1024x600 24-bit RGB pixels driven over LVDS as well as a PWM backlight and I2C-connected ft5506-compatible capacitive touch. The panel description is taken from the Datasheet V0 (2024.5.23), but it lists no timings and these were provided by the vendor separately. Signed-off-by: Ahmad Fatoum <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3e743df commit 652be03

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
@@ -4454,6 +4454,37 @@ static const struct panel_desc ti_nspire_classic_lcd_panel = {
44544454
.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
44554455
};
44564456

4457+
static const struct display_timing topland_tian_g07017_01_timing = {
4458+
.pixelclock = { 44900000, 51200000, 63000000 },
4459+
.hactive = { 1024, 1024, 1024 },
4460+
.hfront_porch = { 16, 160, 216 },
4461+
.hback_porch = { 160, 160, 160 },
4462+
.hsync_len = { 1, 1, 140 },
4463+
.vactive = { 600, 600, 600 },
4464+
.vfront_porch = { 1, 12, 127 },
4465+
.vback_porch = { 23, 23, 23 },
4466+
.vsync_len = { 1, 1, 20 },
4467+
};
4468+
4469+
static const struct panel_desc topland_tian_g07017_01 = {
4470+
.timings = &topland_tian_g07017_01_timing,
4471+
.num_timings = 1,
4472+
.bpc = 8,
4473+
.size = {
4474+
.width = 154,
4475+
.height = 86,
4476+
},
4477+
.delay = {
4478+
.prepare = 1, /* 6.5 - 150µs PLL wake-up time */
4479+
.enable = 100, /* 6.4 - Power on: 6 VSyncs */
4480+
.disable = 84, /* 6.4 - Power off: 5 Vsyncs */
4481+
.unprepare = 50, /* 6.4 - Power off: 3 Vsyncs */
4482+
},
4483+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4484+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
4485+
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
4486+
};
4487+
44574488
static const struct drm_display_mode toshiba_lt089ac29000_mode = {
44584489
.clock = 79500,
44594490
.hdisplay = 1280,
@@ -5139,6 +5170,9 @@ static const struct of_device_id platform_of_match[] = {
51395170
}, {
51405171
.compatible = "toshiba,lt089ac29000",
51415172
.data = &toshiba_lt089ac29000,
5173+
}, {
5174+
.compatible = "topland,tian-g07017-01",
5175+
.data = &topland_tian_g07017_01,
51425176
}, {
51435177
.compatible = "tpk,f07a-0102",
51445178
.data = &tpk_f07a_0102,

0 commit comments

Comments
 (0)