Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2165000ybd; Mon, 24 Jun 2019 01:47:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUR4zUDBeFMyFn5I324sRfaMp/RoThdwkElGRYCzOvo7fZYKMKUTlkOGmEmfnYUkgV8XXV X-Received: by 2002:a17:90a:2666:: with SMTP id l93mr23120903pje.16.1561366036459; Mon, 24 Jun 2019 01:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561366036; cv=none; d=google.com; s=arc-20160816; b=wyippCrRfuoLvw8K4MUdEtOMjrkfM7D7TKG8xugCOUbb6yZhk+Oq73nM+PuHqMzs5E G8QihPFAwMlesvHhFzsoNsoXfFYHVVA3F1xP6rP0EgFiugIyDcqZ7Z4lx1L8PUsbN35w bPkodoJne6TmjdOuPtm1NBUdjdJLldUL4yN489boS3M/8mSNS9xtba8H3qenVCGqGqlt GMiv71ViB8Y2bxvLgtK1dBtZeo1Jk6c38K1rJrfKGelRGhvqU1bYCTtC02F/OPcyVO0n tVuBFm6L/4xwk8IuJLPfD7n/6uHod1qVukolO/B+FjPlA7ZdcMk5ReuNPuSDzKenAcSU /DWA== 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=MyzSe86pd6m09RXZJhAaILxRtDC9io0NqaivpGEpp+s=; b=LiLUfXUY6oUt/SbFW/CUSoP8SMOkdxBvnzfVSpq4oL3z7iB/hXZfl3n+xPF0IiwuW+ AvsjSBxVAq7cxgIymBHN+0neBWpHqLcK7vhYAEs4PVA3ISYaydbXt6s98VH2Y+x0EjJ/ 0hQu5v5jqdsOyOmRJzp6U0RmUDSuWq/Md6c2NB1869v+EOgc3PAcTyPvmrRV0ooez+jD JJZyh2sogSw/7w0E1hZ+mMd0uQU+h/eSyFmrzsE9XaL1q3kytxFf1SQZkR9L908Tr2Hi zA3qjktKElNDFbY9EUQuD6Uw2B9BCH7CjvMzA5qcT0ZwSvYZUAa//sEIBCU3RmWhoOZG MmKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HotmTGco; 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 q14si10506909pjp.78.2019.06.24.01.47.00; Mon, 24 Jun 2019 01:47:16 -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=HotmTGco; 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 S1727883AbfFXIZ6 (ORCPT + 99 others); Mon, 24 Jun 2019 04:25:58 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:34188 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbfFXIZ6 (ORCPT ); Mon, 24 Jun 2019 04:25:58 -0400 Received: by mail-qt1-f194.google.com with SMTP id m29so13620119qtu.1 for ; Mon, 24 Jun 2019 01:25:57 -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=MyzSe86pd6m09RXZJhAaILxRtDC9io0NqaivpGEpp+s=; b=HotmTGcoYfsj0T10+4PD2gf3kr73tSRgfUgT+ywrqi1OO635tt1J3VCPOGLH5Ivb6L BOmedNfFbaRTeMXNfcG672LIrmBXxnWA+nWK+/lD3pLW3UucFuDogsereKFrZFRmlzQr d/G7RAZDyQib1WELVRmM/wrJr9L9ubmzZff8k= 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=MyzSe86pd6m09RXZJhAaILxRtDC9io0NqaivpGEpp+s=; b=AJXx9kNu2Ef+gRytTKRDeiR21SIhz3tRfMVaULVG7orP6+f7GaiwJkz7qNZsM/tRoq iRKHRLyDgEQiF5iFKQuIaG7riefqSsko4muXKzWDFd+GTA4x1V1fvFLXJg76SozjTI56 7Dtgy9IEhPhDt1KQhKu6C1RfJH351W7zD3+PWEyObdVyInC+Amy2lJnRwzgjIKjyzT3J gpf70iCCeHfTBhRs5a3DnVYfWgCnjY96dL6QboU26pnuQW/DTDV1kDgO5FF6ol5AUGkO QoWg2JTR+G2WGOlpFjzL58K4zATTzdyNCFC3/5LXQ9rjLtGJdlQBzYVYnCvz+TDuTyDu gTYg== X-Gm-Message-State: APjAAAWn9Mp8NRKQ5k6waumwZfcKSDSK4WaJpjI0P7jvmglNbqxEq9qY rj5Q8L7Nxa0St9V4rdphGvaG4SCSWT9969S2vq69gQ== X-Received: by 2002:a0c:b04d:: with SMTP id l13mr57514429qvc.104.1561364756429; Mon, 24 Jun 2019 01:25:56 -0700 (PDT) MIME-Version: 1.0 References: <20190624060343.62451-1-jitao.shi@mediatek.com> <20190624060343.62451-3-jitao.shi@mediatek.com> In-Reply-To: <20190624060343.62451-3-jitao.shi@mediatek.com> From: Nicolas Boichat Date: Mon, 24 Jun 2019 16:25:45 +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 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