Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp947390pxv; Fri, 9 Jul 2021 13:05:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrErnTrTMs6BuQgDX66QHJep6V8spq8dAPAd2h65OOSxl4XRaktwZgr2cqDVAs+UxLLvxZ X-Received: by 2002:a17:906:dc3:: with SMTP id p3mr12393377eji.98.1625861128726; Fri, 09 Jul 2021 13:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625861128; cv=none; d=google.com; s=arc-20160816; b=hzzTpJxWHJP9P9tHEtM/n62Ji3r4Ogq8J1S1qaISp+ScAYbkAksG0iEVOJJG2ICjZk 1fEDxSgQr6RYs9257lRkaLutgM+7Bqp+gw7xIAjTr7sCBMkZgsXEE9YEbXqz09DQmJQq /m6tOuM7gMhgoshGhVxjs5YGge+IabqhHzbzNMk3KtVEVFoEE6/AUUE4PD+F6IAnzTra P/ri6GFl5sSQQFACGdxdLSfr2AmocJtw6dPjOdjmxBKcBHsUctOvPbfMnSC7Npn6cj2i GLJfE9meB0qrisTOgnJXi9h1WLVtv7Zu6mWdqUDrdj6kHTbEgDiSyHDeZU7mFlgDpMe8 sZ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5I1swx+8puubgqn0kRZln7Nf/0J3poDarvAi18P0igs=; b=pMjBzHdznSOOQIC7VZip//RCiWRMz7afifRBU6TYFi4J8wcuzZGWqmV+nMtWkVjkKi nRQ1L2sJ7INgRlbUnSnzgke6bU8ofzMOx3Bzg3djbWFPzpaYHRwdjfHaQf0bsfn3SdTi W8qiCgQPO31hnr/8VOE2ps20HFxbTntC1oNUb1j1XAbbPkgstuH7uaC5kijAVpmQEhpY dFYSD2reKH3pzdvAdElHnSaegchu9zp1tAB9pQ833ZMNZXCywuyGsDGxzmAXSWIragdh X2qHFI31QFboxvYJHibee7coY3JbytjNmDtBfM7v+tsnwN/tdOyiFZ2f3zvlfb8gXF41 gM0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@phytec.de header.s=a4 header.b=SSGkjj+P; 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 g25si628812ejx.336.2021.07.09.13.05.05; Fri, 09 Jul 2021 13:05:28 -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; dkim=fail header.i=@phytec.de header.s=a4 header.b=SSGkjj+P; 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 S229552AbhGIUGw (ORCPT + 99 others); Fri, 9 Jul 2021 16:06:52 -0400 Received: from mickerik.phytec.de ([195.145.39.210]:49830 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhGIUGw (ORCPT ); Fri, 9 Jul 2021 16:06:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1625861047; x=1628453047; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XV8GUB1yZekpzPAfQ6CG6JnFBlMCyThdbC55A0W06x8=; b=SSGkjj+PSFprq2RqHX1lbnBcsJqQPpsGOES+bzcoWQhOjU6qogCPD/xPqWmFoDXE 9mfch9uy+zkzpdmjgK4GAVMvzCbvxq03PMjLpC9pVqJI5+a819wPhYJN5/Q8JUWu vW1oCJ2EowKEE11N7fuDa39RAUtTpn6wer14zHVtifI=; X-AuditID: c39127d2-1d8f870000001daf-8a-60e8abb7bbc3 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 78.04.07599.7BBA8E06; Fri, 9 Jul 2021 22:04:07 +0200 (CEST) Received: from lws-ybas.phytec.de ([172.16.21.122]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070922040729-1123521 ; Fri, 9 Jul 2021 22:04:07 +0200 From: Yunus Bas To: sam@ravnborg.org, thierry.reding@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: airlied@linux.ie, daniel@ffwll.ch, s.riedmueller@phytec.de Subject: [PATCH v4 1/2] drm/panel: simple: Add support for EDT ETMV570G2DHU panel Date: Fri, 9 Jul 2021 22:03:48 +0200 Message-Id: <20210709200349.2665205-1-y.bas@phytec.de> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.07.2021 22:04:07, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.07.2021 22:04:07 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOLMWRmVeSWpSXmKPExsWyRoCBS3f76hcJBt/eaVj0njvJZPF/20Rm iytf37NZXN41h81ixc+tjBY/d81jcWDz2PttAYvHzll32T22f3vA6nG/+ziTx5JpV9k8Pm+S C2CL4rJJSc3JLEst0rdL4Mr40H2YseCAYEXvp8lMDYxn+boYOTkkBEwkbh7rYuti5OIQEtjG KPF8Wx8LSEJI4DyjxOO5SSA2m4CixPnbb1lBbBGBXIkfdx4zgdjMAnYS5xuPMYLYwgKBEvuv dIP1sgioSNxduBisnlfATGLO9R+MEMvkJU6uPcwEEReUODnzCQvIYgmBK4wSP1p/skMUCUmc XnyWGWKBtsSyha+ZJzDyzULSMwtJagEj0ypGodzM5OzUosxsvYKMypLUZL2U1E2MwMA8PFH9 0g7GvjkehxiZOBgPMUpwMCuJ8BrNeJYgxJuSWFmVWpQfX1Sak1p8iFGag0VJnHcDb0mYkEB6 YklqdmpqQWoRTJaJg1OqgXGZ1e+XMaHdl4Js+Q5X+Fe9PHW1/bmp4737F1a3L50Wxl1Xr6ax rf/xpXKviVUse7+wpXNczDXt8Dx7rMRy/z7BmxMPSTc3WPge+Z94L5QtTDNy39vpbDy2W7eF /ctSLEp5+e9CFI9C/Fc+l4nN536LxSconLJ5XjhHoqxhar7X+in8yV+SVJVYijMSDbWYi4oT AW7LVag6AgAA Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Riedmueller This patch adds support for the EDT ETMV570G2DHU 5.7" (640x480) lcd panel to DRM simple panel driver. Signed-off-by: Stefan Riedmueller Signed-off-by: Yunus Bas --- Changes in v4: - Moved code to proper place to keep alphabetic order --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/p= anel-simple.c index 21939d4352cf..7f3918fee250 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2046,6 +2046,32 @@ static const struct panel=5Fdesc edt=5Fetm0700g0bdh6= =3D { .bus=5Fflags =3D DRM=5FBUS=5FFLAG=5FDE=5FHIGH | DRM=5FBUS=5FFLAG=5FPIXDAT= A=5FDRIVE=5FPOSEDGE, }; =20 +static const struct drm=5Fdisplay=5Fmode edt=5Fetmv570g2dhu=5Fmode =3D { + .clock =3D 25175, + .hdisplay =3D 640, + .hsync=5Fstart =3D 640, + .hsync=5Fend =3D 640 + 16, + .htotal =3D 640 + 16 + 30 + 114, + .vdisplay =3D 480, + .vsync=5Fstart =3D 480 + 10, + .vsync=5Fend =3D 480 + 10 + 3, + .vtotal =3D 480 + 10 + 3 + 35, + .flags =3D DRM=5FMODE=5FFLAG=5FPVSYNC | DRM=5FMODE=5FFLAG=5FPHSYNC, +}; + +static const struct panel=5Fdesc edt=5Fetmv570g2dhu =3D { + .modes =3D &edt=5Fetmv570g2dhu=5Fmode, + .num=5Fmodes =3D 1, + .bpc =3D 6, + .size =3D { + .width =3D 115, + .height =3D 86, + }, + .bus=5Fformat =3D MEDIA=5FBUS=5FFMT=5FRGB888=5F1X24, + .bus=5Fflags =3D DRM=5FBUS=5FFLAG=5FDE=5FHIGH | DRM=5FBUS=5FFLAG=5FPIXDAT= A=5FDRIVE=5FNEGEDGE, + .connector=5Ftype =3D DRM=5FMODE=5FCONNECTOR=5FDPI, +}; + static const struct display=5Ftiming evervision=5Fvgg804821=5Ftiming =3D { .pixelclock =3D { 27600000, 33300000, 50000000 }, .hactive =3D { 800, 800, 800 }, @@ -4350,6 +4376,9 @@ static const struct of=5Fdevice=5Fid platform=5Fof=5F= match[] =3D { }, { .compatible =3D "edt,etm0700g0edh6", .data =3D &edt=5Fetm0700g0bdh6, + }, { + .compatible =3D "edt,etmv570g2dhu", + .data =3D &edt=5Fetmv570g2dhu, }, { .compatible =3D "evervision,vgg804821", .data =3D &evervision=5Fvgg804821, --=20 2.30.0