From: Wang Yang <[email protected]> Add display timing and panel descriptor for the Goworld ILI6150H6 LCD panel. Register the panel in the of_device_id table with the compatible string "goworld,ili6150h6".
Signed-off-by: Wang Yang <[email protected]> Signed-off-by: Alessandro Zini <[email protected]> --- drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 33d954f3ee289..9beba399119cc 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2543,6 +2543,35 @@ static const struct panel_desc giantplus_gpm940b0 = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, }; +static const struct display_timing goworld_ili6150h6_timing = { + .pixelclock = { 44900000, 51200000, 63000000 }, + .hactive = { 1024, 1024, 1024 }, + .hfront_porch = { 16, 160, 216 }, + .hback_porch = { 160, 160, 160 }, + .hsync_len = { 1, 1, 256 }, + .vactive = { 600, 600, 600 }, + .vfront_porch = { 1, 12, 127 }, + .vback_porch = { 23, 23, 23 }, + .vsync_len = { 1, 3, 20 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc goworld_ili6150h6 = { + .timings = &goworld_ili6150h6_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 85, + }, + .delay = { + .enable = 25, + .disable = 25, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct display_timing hannstar_hsd070pww1_timing = { .pixelclock = { 64300000, 71100000, 82000000 }, .hactive = { 1280, 1280, 1280 }, @@ -5921,6 +5950,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "giantplus,gpm940b0", .data = &giantplus_gpm940b0, + }, { + .compatible = "goworld,ili6150h6", + .data = &goworld_ili6150h6, }, { .compatible = "hannstar,hsd070pww1", .data = &hannstar_hsd070pww1, -- 2.56.1
