From patchwork Mon Mar 13 07:50:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Leitner X-Patchwork-Id: 13172002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B753CC7618B for ; Mon, 13 Mar 2023 07:51:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E146310E482; Mon, 13 Mar 2023 07:51:26 +0000 (UTC) Received: from out-30.mta1.migadu.com (out-30.mta1.migadu.com [IPv6:2001:41d0:203:375::1e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59EA010E482 for ; Mon, 13 Mar 2023 07:51:25 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1678693883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VJD8Qq9A5I4qmDAo4WgHqL7An+vb1MFXUqWfw8s5fTI=; b=QAvMcBGEUQ2zIhDGPqQCYeBAR1+mhH8UMkY3j06xjL9IXjqI18lKBbhhHfN3ON1/XKRP6l SKhhsjne10ANAd/3ktY8hz8kMW11awufbb7XCzbrTYZNnKkYq+5PPrGkYMEGQIxBDmt7To 71biPtkZ30zC/6psBPK7jb7xcUtvrFs= From: richard.leitner@linux.dev Date: Mon, 13 Mar 2023 08:50:17 +0100 Subject: [PATCH RESEND v2 2/2] drm/panel: simple: Add InnoLux G070ACE-L01 MIME-Version: 1.0 Message-Id: <20230201-innolux-g070ace-v2-2-2371e251dd40@skidata.com> References: <20230201-innolux-g070ace-v2-0-2371e251dd40@skidata.com> In-Reply-To: <20230201-innolux-g070ace-v2-0-2371e251dd40@skidata.com> To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski X-Developer-Signature: v=1; a=openpgp-sha256; l=2026; i=richard.leitner@skidata.com; h=from:subject:message-id; bh=WvzSY3I/uDMGpjXzQJsnCK3M11M4y5h/o4MS4BYdVEI=; b=owGbwMvMwCX2R2KahkXN7wuMp9WSGFL4rv7k36RU1ZL08rrGNiHdb6K6NxUumPIvCk6/aupt++18 YYxTRykLgxgXg6yYIou9MVe7e27Z+0pFnVyYOaxMIEMYuDgFYCJ6dxn+e7noiAnO4/BqzrpwW1zAkL f6dxmXbeO92gIN7+YseSdXRoZN20TF79amHdjV66QW/zwsY+uhpd2+v46aTp/2sO0r8xROAA== X-Developer-Key: i=richard.leitner@skidata.com; a=openpgp; fpr=3F330A87476D76EF79212C6DFC189628387CFBD0 X-Migadu-Flow: FLOW_OUT X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Richard Leitner Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Richard Leitner Add InnoLux G070ACE-L01 7" 800x480 TFT LCD with WLED backlight panel support. Timing data was extracted from datasheet and vendor provided EDID file. Signed-off-by: Richard Leitner Reviewed-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8a3b685c2fcc..d90f86ad3789 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2142,6 +2142,38 @@ static const struct panel_desc innolux_at070tn92 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct display_timing innolux_g070ace_l01_timing = { + .pixelclock = { 25200000, 35000000, 35700000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 30, 32, 87 }, + .hback_porch = { 30, 32, 87 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 3, 3, 3 }, + .vback_porch = { 13, 13, 13 }, + .vsync_len = { 1, 1, 4 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc innolux_g070ace_l01 = { + .timings = &innolux_g070ace_l01_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 152, + .height = 91, + }, + .delay = { + .prepare = 10, + .enable = 50, + .disable = 50, + .unprepare = 500, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .bus_flags = DRM_BUS_FLAG_DE_HIGH, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct display_timing innolux_g070y2_l01_timing = { .pixelclock = { 28000000, 29500000, 32000000 }, .hactive = { 800, 800, 800 }, @@ -4098,6 +4130,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "innolux,at070tn92", .data = &innolux_at070tn92, + }, { + .compatible = "innolux,g070ace-l01", + .data = &innolux_g070ace_l01, }, { .compatible = "innolux,g070y2-l01", .data = &innolux_g070y2_l01,