Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3181261ybd; Mon, 24 Jun 2019 21:08:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2+WxrqxnlVZEYpxY5Fs7idmaqt0f12q3QHw68JQsPV4Yn6MXWqlerULG/5SD7r/MdvMa4 X-Received: by 2002:a17:90a:7148:: with SMTP id g8mr29478868pjs.51.1561435709330; Mon, 24 Jun 2019 21:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561435709; cv=none; d=google.com; s=arc-20160816; b=H0qZvuCmnBJBWp3sh07RwzppBmtrL43gmTG16uj2TEgfFzLe1tAfS+wq+6twpf6/Ht iJG5Dgqi8KTYDycita6f8UJ+1O2Au9oHilCUM17aUKvI56db4Deb+kw6wp0Td0PfCA33 8So1bszUMb4lrhR8u8a3izghUAXIUWM1t1yD/Q+Xl+vGSCbmNHESUuhuYAD/OYc6XC61 UN50YCYAw+qatk/DO0aEOFdjFFXzcBx9TNiX630QSTASv4Qejw70rPNuRGQNdJ2RghNl usCsT9BrU/G4j8dHQvCvLM/oEIp5gP6fkSQg94Z3X5DGStDO/eMlfPo2g89A5d6tdYfz 7V/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=D0CatzhMtPEqvzuGSZZ/Q3MqqvQzjh5y8rhA8hbW6wI=; b=Q3xPqMAzcNuxwlWgnHCGsfD3CSnBGC6b+jjqm3qhOJyo0qenX6tcpGC6FZfdeSOKa7 y0l5FElhx7jVUuOn59hk+jHgoADxVOrgmOqIUB5o9jepgOIqXxeCkbdgoc4/0aoP/eu0 qdkg0i63i95+QdpU8JDs/WuEC3XR3EkEJPiiNvjHh1Ntb7EPjLg28uZ72F41tXbOEzt/ eXgbVncX3+3Rn17/fJr8wSfuNNSBr+O+wP2m4g2rmyD/2Qu/R3wDR/N4LzdyHciigO3y WEfH8j19E8pg6gJ4G7sbYBM1LnhYjjG9nvQvzHx/BYmValnxuyiTfiYxtwfixjph1fs4 cxGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=a78p5hkW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si12042309pgr.396.2019.06.24.21.08.13; Mon, 24 Jun 2019 21:08:29 -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; dkim=pass header.i=@chromium.org header.s=google header.b=a78p5hkW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729289AbfFYAma (ORCPT + 99 others); Mon, 24 Jun 2019 20:42:30 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42054 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729029AbfFYAma (ORCPT ); Mon, 24 Jun 2019 20:42:30 -0400 Received: by mail-qt1-f195.google.com with SMTP id s15so16539398qtk.9 for ; Mon, 24 Jun 2019 17:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=D0CatzhMtPEqvzuGSZZ/Q3MqqvQzjh5y8rhA8hbW6wI=; b=a78p5hkWEU9pITE2WlOzVrvy1+Bd3DoHqUYTxcohn3/jicZ4BT1bVNTF0ZkH4EanZM /MGTT4aGn774EQzPilUErLwm6/larBYmP9L67V7pGknpqwcoDRvSoK+UimzH/9Cwkz5n JDQoSlMatN3leySyGnMtW2vgdGcu/a25fH8OA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=D0CatzhMtPEqvzuGSZZ/Q3MqqvQzjh5y8rhA8hbW6wI=; b=T5S3AeN2M8U/L/GZ/4QxztjjHLFkXAOrEtIjLoYOkNa50s+P3Zkwm4lmMwR3bK/BRg o+CKp6MBHfPwI1vBQREPp2huN4Q1AcHuDG1YuYatiu+UE+m8B/d09YT26eqRuh0Oi47P UK/RRex/WtmIIMC4BWpykS8t7G2bGU1kTZADg2mToTutTXm/UgBhqpMmI0ocwIyXVMaP IVazA/S31ItnEIO9FbCWlkrwP3eA2zN+OnCxtavTvde5vm5M51z1g1xxzlkixshCH9z6 DSCBmHK4S/uX1/orQM2Vxejob9P2OWrsk+hwSQ1fEIwQwv2VGnXw4nNR8uwFGCorI1n5 wFMQ== X-Gm-Message-State: APjAAAXyNxRnXC3SI2fN431PjCETyhrA/ySAntEafYNzj/sd/aeYzQ2s 2/9xIq60o8tM9i5l7p/e+yEtSSW7TH6/FbxluCrxyA== X-Received: by 2002:a0c:b04d:: with SMTP id l13mr61365864qvc.104.1561423348081; Mon, 24 Jun 2019 17:42:28 -0700 (PDT) MIME-Version: 1.0 References: <20190624060343.62451-1-jitao.shi@mediatek.com> <20190624060343.62451-3-jitao.shi@mediatek.com> In-Reply-To: From: Nicolas Boichat Date: Tue, 25 Jun 2019 08:42:16 +0800 Message-ID: Subject: Re: [v2 2/2] drm/panel: support for BOE tv101wum-nl6 wuxga dsi video mode panel 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 , Russell King , Thierry Reding , devicetree@vger.kernel.org, "moderated list:ARM/Mediatek SoC support" , Yingjoe Chen , Eddie Huang , linux-arm Mailing List , Rahul Sharma , srv_heupstream , lkml , Sascha Hauer , Sean Paul Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 4:25 PM Nicolas Boichat wrote: > > On Mon, Jun 24, 2019 at 2:04 PM Jitao Shi wrote: > > > > Add driver for BOE tv101wum-nl6 panel is a 10.1" 1200x1920 panel. > > > > Signed-off-by: Jitao Shi > > --- > > drivers/gpu/drm/panel/Kconfig | 10 + > > drivers/gpu/drm/panel/Makefile | 1 + > > .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 715 ++++++++++++++++++ > > 3 files changed, 726 insertions(+) > > create mode 100644 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c > > > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > > index e36dbb4df867..2b055ce0700b 100644 > > --- a/drivers/gpu/drm/panel/Kconfig > > +++ b/drivers/gpu/drm/panel/Kconfig > > @@ -17,6 +17,15 @@ config DRM_PANEL_ARM_VERSATILE > > reference designs. The panel is detected using special registers > > in the Versatile family syscon registers. > > > > +config DRM_PANEL_BOE_TV101WUM_NL6 > > + tristate "BOE TV101WUM 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 BOE TV101WUM WUXGA PANEL > > + DSI Video Mode panel > > + > > config DRM_PANEL_LVDS > > tristate "Generic LVDS panel driver" > > depends on OF > > @@ -272,4 +281,5 @@ 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 > > + > > Drop this change. > > > endmenu > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > > index 78e3dc376bdd..8d009223c44e 100644 > > --- a/drivers/gpu/drm/panel/Makefile > > +++ b/drivers/gpu/drm/panel/Makefile > > @@ -1,5 +1,6 @@ > > # SPDX-License-Identifier: GPL-2.0 > > obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o > > +obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o > > obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o > > obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o > > obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o > > diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c > > new file mode 100644 > > index 000000000000..6e06c8506623 > > --- /dev/null > > +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c > > @@ -0,0 +1,715 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2018 MediaTek Inc. > > + * Author: Jitao Shi > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include > > +#include > > +#include > > + > > +#include