From e1bde8ef0abe4e299fd14694cb2d557d5807c864 Mon Sep 17 00:00:00 2001 From: Paul Louvel Date: Thu, 23 Jul 2026 18:31:50 +0200 Subject: [PATCH] drm/panel: simple: Add Ampire AM-800480N3TZQW-00H Add support for the Ampire AM-800480N3TZQW-00H 5" WVGA TFT LCD panel. Signed-off-by: Paul Louvel Reviewed-by: Neil Armstrong Signed-off-by: Neil Armstrong Link: https://patch.msgid.link/20260723-support-am-800480n3tzqw-00h-v1-2-6a4ae0575a19@bootlin.com --- drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 292212119fda..c95964ba25a9 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -912,6 +912,36 @@ static const struct panel_desc ampire_am_800480l1tmqw_t00h = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing ampire_am_800480n3tzqw_00h_timing = { + .pixelclock = {23000000, 25000000, 27000000}, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 4, 8, 48 }, + .hback_porch = { 4, 8, 48 }, + .hsync_len = { 2, 8, 8 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 4, 8, 12 }, + .vback_porch = { 4, 8, 12 }, + .vsync_len = { 2, 4, 8 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE | + DISPLAY_FLAGS_SYNC_POSEDGE, +}; + +static const struct panel_desc ampire_am_800480n3tzqw_00h = { + .timings = &ire_am_800480n3tzqw_00h_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 108, + .height = 65, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | + DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | + DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct panel_desc ampire_am800480r3tmqwa1h = { .modes = &ire_am800480r3tmqwa1h_mode, .num_modes = 1, @@ -5648,6 +5678,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "ampire,am-800480l1tmqw-t00h", .data = &ire_am_800480l1tmqw_t00h, + }, { + .compatible = "ampire,am-800480n3tzqw-00h", + .data = &ire_am_800480n3tzqw_00h, }, { .compatible = "ampire,am800480r3tmqwa1h", .data = &ire_am800480r3tmqwa1h,