From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24BBAC2D0EA for ; Wed, 8 Apr 2020 08:59:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8C1520768 for ; Wed, 8 Apr 2020 08:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbgDHI7w (ORCPT ); Wed, 8 Apr 2020 04:59:52 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:59262 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbgDHI7v (ORCPT ); Wed, 8 Apr 2020 04:59:51 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 15FD820027; Wed, 8 Apr 2020 10:59:43 +0200 (CEST) Date: Wed, 8 Apr 2020 10:59:42 +0200 From: Sam Ravnborg To: Heiko Stuebner Cc: dri-devel@lists.freedesktop.org, thierry.reding@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, christoph.muellner@theobroma-systems.com, Heiko Stuebner Subject: Re: [PATCH v3 2/2] drm/panel: add panel driver for Leadtek LTK050H3146W Message-ID: <20200408085942.GA32152@ravnborg.org> References: <20200408085317.2624599-1-heiko@sntech.de> <20200408085317.2624599-2-heiko@sntech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408085317.2624599-2-heiko@sntech.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=eMA9ckh1 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=NXpJzYs8AAAA:8 a=zK9Fu3Cg7LeSTS_gP80A:9 a=rHp_RtU1BPBzfY7K:21 a=KwU-2vaEj-SSVGNm:21 a=CjuIK1q_8ugA:10 a=cwV61pgf2j4Cq8VD9hE_:22 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Goodmorning Heiko On Wed, Apr 08, 2020 at 10:53:17AM +0200, Heiko Stuebner wrote: > From: Heiko Stuebner > > The LTK050H3146W is 5.0" 720x1280 DSI display. There are two variants > with essentially the same name, LTK050H3146W and LTK050H3146W-A2. > > They differ in their init sequence and mode details. > > changes in v2: > - add display variants > changes in v3: > - fixed indentation and artifacts found by Sam > > Signed-off-by: Heiko Stuebner That was quick - thanks. Applied - and now I also have pushed the patches out. Sam > --- > drivers/gpu/drm/panel/Kconfig | 11 + > drivers/gpu/drm/panel/Makefile | 1 + > .../drm/panel/panel-leadtek-ltk050h3146w.c | 691 ++++++++++++++++++ > 3 files changed, 703 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index a1723c1b5fbf..d56258b9fcaf 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -137,6 +137,17 @@ config DRM_PANEL_KINGDISPLAY_KD097D04 > 24 bit RGB per pixel. It provides a MIPI DSI interface to > the host and has a built-in LED backlight. > > +config DRM_PANEL_LEADTEK_LTK050H3146W > + tristate "Leadtek LTK050H3146W panel" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for Leadtek LTK050H3146W > + TFT-LCD modules. The panel has a 720x1280 resolution and uses > + 24 bit RGB per pixel. It provides a MIPI DSI interface to > + the host and has a built-in LED backlight. > + > config DRM_PANEL_LEADTEK_LTK500HD1829 > tristate "Leadtek LTK500HD1829 panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 96a883cd6630..2335a1e32ae0 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -12,6 +12,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o > obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o > obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o > obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o > +obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o > obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o > obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o > diff --git a/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c > new file mode 100644 > index 000000000000..5a7a31c8513e > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c > @@ -0,0 +1,691 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2020 Theobroma Systems Design und Consulting GmbH > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include