Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2144076ybi; Sun, 9 Jun 2019 04:56:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmhpXUZ5hBd9yYurvZ8SIScaavPZGM4kZY7wlYy25CpqwuLqdxn2dJwbEgqC0qWxXn72vS X-Received: by 2002:a63:f510:: with SMTP id w16mr7981217pgh.0.1560081400365; Sun, 09 Jun 2019 04:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560081400; cv=none; d=google.com; s=arc-20160816; b=MO1CfM9OsGJA1wJyqhtTkOPuQwT0DCZBhkE2gqxlzE4YBR9x07ewFHfPv+sVwD/Ck/ cywLCZrCKId8Tf+/wWsJxyykmvJtMG8Xv0Zsh1fQcqJlTHimI/eJlN8Y1iXzD0LLtXsJ MOLz1t9NxOkG92T9qUs+42psCNHsgtMUzxjINdrLvRuOT6nJpNCKqUSxovXMfreb4Vjz 0fYZlbM2Qm0mh2JoFu9TD58nE+uUq/UOlrRq+NcGpLhT2Q97vK55u5zTSlZPCbzK55+H WeuFGwCIvZpzPxkGPVzF+cxamgo2OgDtJF8SiGpG2lUaT/UPVxPgXGxwsTl59r4mT3an +1mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=x7h4XYNr/qMd9HSgoUwnx7fhczgVLOeKuedUwcoDtdE=; b=FRJSjGelXhdUjIDVBaUziY3l951TypkLL6AXPDjweslI2IThzVvb8W1iiSMQOjswqv G2jEkVRnyH/vDSTRxfLYYGdD05dZ+EPSoBTN3YWplDp8ie/+0W0gEwCpuBlVr3F8n3Ql B/m70VBS7C7UpLw9mY6MfYJbNVoeEAXU/YYsf4wC76+8ZOBQqtkNVQ5JTFUx4kKD1g3Q R1o2Rp/sBgLNMYOmMCTDJW89426bkyEBHLXbpPAYc9eXgs+Lh4HZQfaXb7i6koLdkr1a EGCha0pF9NstF4BFaXk7TVcnJAiDEhJoJ8t7bGuUXS0zjfNY1QKpl3Bg8FGUP4aRVJMP xn1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si7313517pld.83.2019.06.09.04.56.22; Sun, 09 Jun 2019 04:56:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728423AbfFILvO (ORCPT + 99 others); Sun, 9 Jun 2019 07:51:14 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:59958 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbfFILvO (ORCPT ); Sun, 9 Jun 2019 07:51:14 -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 1658F20030; Sun, 9 Jun 2019 13:51:07 +0200 (CEST) Date: Sun, 9 Jun 2019 13:51:05 +0200 From: Sam Ravnborg To: Jitao Shi Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , linux-pwm@vger.kernel.org, David Airlie , Matthias Brugger , stonea168@163.com, dri-devel@lists.freedesktop.org, Andy Yan , Ajay Kumar , Vincent Palatin , cawa.cheng@mediatek.com, Russell King , Thierry Reding , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org, Rahul Sharma , srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, Sascha Hauer , Sean Paul Subject: Re: [2/2] drm/panel: support for AUO kd101n80-45na wuxga dsi video mode panel Message-ID: <20190609115105.GA31079@ravnborg.org> References: <20190608112342.64416-1-jitao.shi@mediatek.com> <20190608112342.64416-2-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608112342.64416-2-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=mpaa-ttXAAAA:8 a=e5mUnYsNAAAA:8 a=3arX_EwEDu8COwomX1QA:9 a=CjuIK1q_8ugA:10 a=6heAxKwa5pAsJatQ0mat:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jitao. Thanks for another panel driver. The comments for the panel-boe-tv101wum-nl6 diver to extent applies to this driver too. Please address these and I will do a proper review of the next version. I notice that error handlign is a little bit less in this driver. consier what approch to use and see if you can align between these drivers, and if in doubt use panel-simple as your role model. Sam On Sat, Jun 08, 2019 at 07:23:42PM +0800, Jitao Shi wrote: > Add driver for AUO kd101n80-45na panel. > This panel supports the resolution 1200x1920, dsi video mode > and 4 lanes. > > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/panel/Kconfig | 10 + > drivers/gpu/drm/panel/Makefile | 1 + > .../gpu/drm/panel/panel-auo-kd101n80-45na.c | 352 ++++++++++++++++++ > 3 files changed, 363 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index e36dbb4df867..f5cd5af9ce42 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -272,4 +272,14 @@ config DRM_PANEL_TRULY_NT35597_WQXGA > help > Say Y here if you want to enable support for Truly NT35597 WQXGA Dual DSI > Video Mode panel > + > +config DRM_PANEL_AUO_KD101N80_45NA > + tristate "AUO KD101N80_45NA 1200x1920 panel" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to support for AUO KD101N80_45NA WUXGA PANEL > + DSI Video Mode panel > + > endmenu > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 78e3dc376bdd..1056933bdf2e 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -28,3 +28,4 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o > obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o > obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o > +obj-$(CONFIG_DRM_PANEL_AUO_KD101N80_45NA) += panel-auo-kd101n80-45na.o > diff --git a/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c b/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c > new file mode 100644 > index 000000000000..ab7bfc059e8a > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-auo-kd101n80-45na.c > @@ -0,0 +1,352 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2018 MediaTek Inc. > + * Author: Jitao Shi > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include