Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp88501pxj; Fri, 7 May 2021 04:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz1NTLF0U/6JsFx7NWWYwY6gq1nmYLorY+s0TND7dQcELOYYMtq3GbkQofQ6sQ5dSYPKSu X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr9481729eju.254.1620386885464; Fri, 07 May 2021 04:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620386885; cv=none; d=google.com; s=arc-20160816; b=xORZODWC3Y7Ng6MMqctGxzzYL1pUglSpQRGa2R6bMijye5SzJrNUh0pf4TVuN8dOtH CNzbD48pxWX4NWf5ly9KbF3c2O1XDqllKPzAlJQfd+KoNCFvlxVoxl+q4f2GxhcvFlUo h6EVOjRj02prMVtoL7PB4weDunYDMdxOro9uZolxibkgPeZYov4OypH64Tq/a1behDfM 9wBUFaZapTIzKz9CvfvoxLwl/hb1IcHlvfTGpWbMXqODIheHY7dz9e6t3cp1+8V1kb98 oBdGfOCX1CS6bgvEFbpXPjqigxgNGhfAzm4pEG6d7jy2HNvmE3MlWCptmRdmVezc24gu MJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=/9+AjjvRDsXb+4uAiiY8vcIc8djERI4wHW6X/cbtED4=; b=QVEIAvsZJkLgYmKsehA9kCh7jrQRbF69xp6Qhh2iIq3joxok9ea7+bp5cyHoyBC+1x /rHa+FhJO9vzk7/s6ggFEd7TgwfW3QYtvXcqY2g7nRn0Ewl7VFM3AzN41OvV2Ky1mlZv kX19Zlr9l7NmStXnJNiUyONnrIbsCWPvoU/K5d7YqGcpTsMCdBb04JeW+ewELoFQej6v z2tcQZfUdDF9IAdtfFzGdSVZvPj87yLTvmthVRnqDsjFuwVbISm4XzHq16ODflGhvZYG 07er5ungpwUfyF7v+RYGYn9GZVvaX0NWyThnWIgJ2+j+8/cB2WWgbL01RsAYP29Wj01Y hiWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si4985635ejy.298.2021.05.07.04.27.40; Fri, 07 May 2021 04:28:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235165AbhEGIHH (ORCPT + 99 others); Fri, 7 May 2021 04:07:07 -0400 Received: from atl4mhfb02.myregisteredsite.com ([209.17.115.118]:49234 "EHLO atl4mhfb02.myregisteredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235293AbhEGIHH (ORCPT ); Fri, 7 May 2021 04:07:07 -0400 Received: from jax4mhob01.registeredsite.com (jax4mhob01.myregisteredsite.com [64.69.218.81]) by atl4mhfb02.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id 14780hex024937 for ; Fri, 7 May 2021 04:00:43 -0400 Received: from mailpod.hostingplatform.com ([10.30.71.206]) by jax4mhob01.registeredsite.com (8.14.4/8.14.4) with ESMTP id 14780XDa003784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 7 May 2021 04:00:42 -0400 Received: (qmail 24284 invoked by uid 0); 7 May 2021 08:00:32 -0000 X-TCPREMOTEIP: 83.128.90.119 X-Authenticated-UID: mike@milosoftware.com Received: from unknown (HELO phenom.domain?not?set.invalid) (mike@milosoftware.com@83.128.90.119) by 0 with ESMTPA; 7 May 2021 08:00:31 -0000 From: Mike Looijmans To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, linux-kernel@vger.kernel.org, Mike Looijmans Subject: [PATCH 3/3] drm/panel: Add Yes Optoelectronics YTS700TLBC-02-100C to panel-simple Date: Fri, 7 May 2021 10:00:17 +0200 Message-Id: <20210507080017.2794-3-mike.looijmans@topic.nl> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210507080017.2794-1-mike.looijmans@topic.nl> References: <20210507080017.2794-1-mike.looijmans@topic.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds support for the Yes YTS700TLBC-02-100C which is a 1024x600 TFT display panel with LVDS interface. Signed-off-by: Mike Looijmans --- drivers/gpu/drm/panel/panel-simple.c | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8b7732249d13..c9815faf8c77 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -4139,6 +4139,33 @@ static const struct panel_desc winstar_wf35ltiacd = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct display_timing yes_optoelectronics_yts700tlbc_02_100c_timing = { + .pixelclock = { 40800000, 50000000, 67200000 }, + .hactive = { 1024, 1024, 1024 }, + .hfront_porch = { 16, 127, 216 }, + .hback_porch = { 160, 160, 160 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 600, 600, 600 }, + .vfront_porch = { 1, 11, 127 }, + .vback_porch = { 23, 23, 23 }, + .vsync_len = { 1, 1, 1 }, + .flags = DISPLAY_FLAGS_DE_HIGH | + DISPLAY_FLAGS_HSYNC_LOW | + DISPLAY_FLAGS_VSYNC_LOW, +}; + +static const struct panel_desc yes_optoelectronics_yts700tlbc_02_100c = { + .timings = &yes_optoelectronics_yts700tlbc_02_100c_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = { .clock = 51200, .hdisplay = 1024, @@ -4606,6 +4633,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "yes-optoelectronics,ytc700tlag-05-201c", .data = &yes_optoelectronics_ytc700tlag_05_201c, + }, { + .compatible = "yes-optoelectronics,yts700tlbc-02-100c", + .data = &yes_optoelectronics_yts700tlbc_02_100c, }, { /* Must be the last entry */ .compatible = "panel-dpi", -- 2.17.1