Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4454785pxv; Tue, 6 Jul 2021 01:01:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCDq1T78UIbaZH6eaO1Cwp1xOuo5mUDPqNK7gAW5VCSl2LQDOG+ZvsisgkO28l7ND/KuhN X-Received: by 2002:aa7:dd5a:: with SMTP id o26mr21232285edw.277.1625558489928; Tue, 06 Jul 2021 01:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625558489; cv=none; d=google.com; s=arc-20160816; b=pQsBl2v2NOTV88YTAJTKPjNqmIKwx3m0nTiatCwzzgxtgvpGK4T2hkx8OPAhGsTNs/ zTYfb7rHvU81nTpgMnN8FCUMnwkndhjCg/sbYpqnu8km6IBMwqYifcb4rtVMyPmj9pgV EJeIAeLSX+LmLDXd7FQSw2UIJYVbAhwxlz90TRbrsod/8KK9DKjUQuOlAOBzzkzX8Nnb JGTtcwYBb8DCP1jlFSKaUsttCS8Lckt4XL9cvOIuvEOPrKXFa4/Pycrzavm9ogSDJE7V 0vr0ntiBE8aBTJrM332w5Hm1GkhaaUfiUUOYKd13CLvnPILPQQpyemBgDce1gcx9hSS7 rLxA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=135ebzGdfdeVSW/p5xyGdQKn8+Kh1EzsXLr2lJxDSVM=; b=TSMXjA5W2BJ7TIZpmwci7A5negj3jLtp8RCfu9WVQI1L//CgZUYww7ycUNysLnN97o koaG1UmPV1p/q8eGRRdJhI+U9okf+ViDgvzTBXBV7KSVALZJo5GFC3S1pRITQFQ7qWtj ZkVuH0qrdfFYOsFCTmD+TSfUrWVolZ4y05R67A38380h1Vo1gXkegovSTOL0h4oHyGy+ QjX6nsvZxQxiunGl68gF8MPIthxrP54YhPWx0WYyfw/XclYAn0RCZQN4u45Ng33tVaua Q87hA42W0rUylo4/E2XLOmXazaxvULEtpPdmLbZ+Pg1HdRG+go4vWyvUfJzw1Xk9Qoq+ lSww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@phytec.de header.s=a4 header.b=ISgn0sLJ; 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 la20si15321938ejc.685.2021.07.06.01.01.06; Tue, 06 Jul 2021 01:01:29 -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=ISgn0sLJ; 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 S230417AbhGFICF (ORCPT + 99 others); Tue, 6 Jul 2021 04:02:05 -0400 Received: from mickerik.phytec.de ([195.145.39.210]:50452 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbhGFICD (ORCPT ); Tue, 6 Jul 2021 04:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1625558364; x=1628150364; 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=UOUTgJ8RahJkBeCcIbg9erq0mOjJVyHTXXxvfhdSYjs=; b=ISgn0sLJHEdy0ExaQ5/1sI/rfvUwaRnn6+ZVJKWPxDyzsKPdpbMDQrWirmb8kJSM SOxE4/q6MCH5eo9GWFqpgVFaq/VpJrqIKd/JZxuNjT+vIzKbPOsPHLPkoLHARWXQ dvQaKeZ9dPr0Qlj+uwgKlVg54TyA6qclkRv3Hb/qxlY=; X-AuditID: c39127d2-a9fbd70000001c5e-58-60e40d5c7881 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 4C.25.07262.C5D04E06; Tue, 6 Jul 2021 09:59:24 +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 2021070609592372-1097775 ; Tue, 6 Jul 2021 09:59:23 +0200 From: Yunus Bas To: sam@ravnborg.org, laurent.pinchart@ideasonboard.com, thierry.reding@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH v3 2/2] drm/panel: simple: Add support for EDT ETM0350G0DH6 panel Date: Tue, 6 Jul 2021 09:59:08 +0200 Message-Id: <20210706075908.907659-2-y.bas@phytec.de> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210706075908.907659-1-y.bas@phytec.de> References: <20210706075908.907659-1-y.bas@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.07.2021 09:59:23, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.07.2021 09:59:24 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWyRoCBSzeG90mCwaTbzBa9504yWfzfNpHZ 4srX92wWnROXsFtc3jWHzWLFz62MFj93zWNxYPfY+20Bi8fOWXfZPWZ3zGT12P7tAavH/e7j TB5Lpl1l8/i8SS6APYrLJiU1J7MstUjfLoEr49/KI6wF2wQr/l29ztTAeISvi5GDQ0LARGLX ducuRk4OIYFtjBILp5tB2OcZJSY95gKx2QQUJc7ffsvaxcjFISIwgVGidfFdFpAEs4CqxMun U8FsYYFAies9d5lAbBYBFYmurlY2kPm8AqYSV/5zg4QlBOQlTq49zAQS5hQwk7h3NQpilanE numnWEFsXgFBiZMzn7CArJIQuMIo8fXZVGaIXiGJ04vPMkOs1ZZYtvA18wRGgVlIemYhSS1g ZFrFKJSbmZydWpSZrVeQUVmSmqyXkrqJERjWhyeqX9rB2DfH4xAjEwfjIUYJDmYlEV6RKY8S hHhTEiurUovy44tKc1KLDzFKc7AoifNu4C0JExJITyxJzU5NLUgtgskycXBKNTB2imZtZ4l8 lTPH5bT20w3Ldplr9XG2rFf3eD/Lq0jxmCinosMc6YWeL298cLzM/lv17cFFH09wJkve2rbg E4u/skL85UT3J4xP1z44p7w867mYsd2jed8itS6qMc59m8fwd1L5qQeLV3r7PI2SWySyIia+ /UGS2UyrCWw/VaT3d+aXTHGKUfJUYinOSDTUYi4qTgQAkKPrq1kCAAA= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Riedmueller This patch adds support for the EDT ETM0350G0DH6 3.5" (320x240) lcd panel to DRM simple panel driver. Signed-off-by: Stefan Riedmueller Signed-off-by: Yunus Bas --- Changes in v3: - No changes in general, added additional maintainers and also sending to general kernel mailing list --- 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 07433bff6c2b..8aba473a7592 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1929,6 +1929,32 @@ static const struct panel=5Fdesc edt=5Fet035012dm6 = =3D { .bus=5Fflags =3D DRM=5FBUS=5FFLAG=5FDE=5FLOW | DRM=5FBUS=5FFLAG=5FPIXDATA= =5FSAMPLE=5FPOSEDGE, }; =20 +static const struct drm=5Fdisplay=5Fmode edt=5Fetm0350g0dh6=5Fmode =3D { + .clock =3D 6520, + .hdisplay =3D 320, + .hsync=5Fstart =3D 320 + 20, + .hsync=5Fend =3D 320 + 20 + 68, + .htotal =3D 320 + 20 + 68, + .vdisplay =3D 240, + .vsync=5Fstart =3D 240 + 4, + .vsync=5Fend =3D 240 + 4 + 18, + .vtotal =3D 240 + 4 + 18, + .flags =3D DRM=5FMODE=5FFLAG=5FNVSYNC | DRM=5FMODE=5FFLAG=5FNHSYNC, +}; + +static const struct panel=5Fdesc edt=5Fetm0350g0dh6 =3D { + .modes =3D &edt=5Fetm0350g0dh6=5Fmode, + .num=5Fmodes =3D 1, + .bpc =3D 6, + .size =3D { + .width =3D 70, + .height =3D 53, + }, + .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 drm=5Fdisplay=5Fmode edt=5Fetm043080dh6gp=5Fmode =3D { .clock =3D 10870, .hdisplay =3D 480, @@ -4355,6 +4381,9 @@ static const struct of=5Fdevice=5Fid platform=5Fof=5F= match[] =3D { }, { .compatible =3D "edt,et035012dm6", .data =3D &edt=5Fet035012dm6, + }, { + .compatible =3D "edt,etm0350g0dh6", + .data =3D &edt=5Fetm0350g0dh6, }, { .compatible =3D "edt,etm043080dh6gp", .data =3D &edt=5Fetm043080dh6gp, --=20 2.30.0