Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp882198ybi; Fri, 14 Jun 2019 05:04:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOHCxOrTXCZwikXiLqJ6Lr231DNnkcR4oMFJsGj+6uAmSYaQRN3W3472xcJgw6pI7gTbyW X-Received: by 2002:a63:834a:: with SMTP id h71mr1023664pge.68.1560513856504; Fri, 14 Jun 2019 05:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560513856; cv=none; d=google.com; s=arc-20160816; b=AYDaZDbHiIFk5yfQs6308ifDOGwA4w4u+8F3aNtf+pSCrI3alt5NNHgnFL2XfUpvEt /0njSbgYNwNrVyZw32rHfhG6WItIW7YgeYLBSYN0/xYa3rRWy1ZYMH0UogobhBBsz+84 e19voOYLlTWypCClJKiPWwM/8o5grzHt1cOEYNYL3sT2yUjbrnQH/2utEPrisu1/bJwo FEb+jRtYdSP0TY66uMQLd14jCm3ZFehLnejn44MLQaIIlw6utBajc1zFO9cOCdTrXEiH qlCS/fh/wTMGIszCh35mdFXPaVxcd3w5OK8jGa5I/gUS+TAmksO3zLOEuBbp4eLZeFJk hO6A== 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=cShyFkkmWiHnsjmUQgXX28LcVYfBv8SOqWlH6SPYRUQ=; b=f42hkO+FdRHKMEYBH21j3ZzXYXk4SZIV9DTp6bOFjKVG0Dkk1v+a4ZekDFdrq/1pU2 Gex3C8Wz5MLzT7v67LhLHG6PkSm2t4KmsLr84CYG96WCK55nQEIkaz1lG1/t7Un9p5+b wihx0rsPu6oOCqWG2BkOcpKyYtXCrBso3rUsHqG8N21apgXOIR++6l004dP/dRgckAnp b1xWr9fWW++QenwNsLOU7WR5PSEmqKF/vAdOWXttdEiu+kMMYlWA1/25eyzn8Bqf9+mL QeJRFy6bCARBNK7VnzfMseGobs//DGBLCEcsODDFCoH3+8nuA6gHrIJZGcby7M+epN0h b4WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B5CHbTqH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x204si2398656pgx.354.2019.06.14.05.03.58; Fri, 14 Jun 2019 05:04: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=@gmail.com header.s=20161025 header.b=B5CHbTqH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727629AbfFNMDa (ORCPT + 99 others); Fri, 14 Jun 2019 08:03:30 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52918 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727164AbfFNMDa (ORCPT ); Fri, 14 Jun 2019 08:03:30 -0400 Received: by mail-wm1-f65.google.com with SMTP id s3so2089076wms.2; Fri, 14 Jun 2019 05:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cShyFkkmWiHnsjmUQgXX28LcVYfBv8SOqWlH6SPYRUQ=; b=B5CHbTqHgazRv85fYB6qcW/DGkY6lv6fwiiiSu0OBHcgweSNDpZyIW9F2RN6VrIcIW 38rllu0/vNktkMaesiFUHr2i8JuWl/hbG4SdQKM9WJA9Jt95TjwBoJHQRroRg2uwkVhx qz6JFi/NFuYO5p6hi11fSIIy8tYGriGfrQSWGGOrmaWhrin+ZDWzQ1Obrm/KKwd+tI1B bOa+M/FzAXsGpYQywfHA9bnPZn9KZHrcgIN1So9SI+RStILzW/2pmJCyvrtRLJ00Lhtj 4LDUtsHIhm4789TBidIsDrf3+F4XulU2mS2PWJsYnDSiv7JFVoGCTR1HXxxMWSPMUk6U 4suA== 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=cShyFkkmWiHnsjmUQgXX28LcVYfBv8SOqWlH6SPYRUQ=; b=LAD2veHMdCA/Sn3tQ2y6hEJoroGhU3iTs2+kbhfq+ZLhDvPxD4xbwxv5z071Gy66mV erUkdlIXb4Xwj+A2Kp7iTQknX08+2PHbFjEjnactEHDliENaXDrJSbgoXJZr/sWWvvX3 1ml3PT2E8vBgwV7qzONTojqOBvN7N6cWZEU2hIREHSTCkyWeBxGSdC11M8Uy/8CZUQVA gdtvZ3QfI9Uns13Sq8i1imOUvHY0ugNAsCLelE19jNVYMo0Ynd1XuOe9vV53o4HpqxfB IvI80WzFkuBnn6LKVSxZl0DmutaNQS1jHy+JRc5nEn0yD7ihHN++zR4TyolDbb6XGFxN sZYg== X-Gm-Message-State: APjAAAXDVjaqqgSlXa4GyxSAf1btrHmE4tgmCzBGdFwnf8FMNmOqDoad yqGAoiof1f1eStzAlxeC+SYJDP2SJB1a0dT+FyI= X-Received: by 2002:a7b:c247:: with SMTP id b7mr8209757wmj.13.1560513807708; Fri, 14 Jun 2019 05:03:27 -0700 (PDT) MIME-Version: 1.0 References: <1560513063-24995-1-git-send-email-robert.chiras@nxp.com> <1560513063-24995-3-git-send-email-robert.chiras@nxp.com> In-Reply-To: <1560513063-24995-3-git-send-email-robert.chiras@nxp.com> From: Daniel Baluta Date: Fri, 14 Jun 2019 15:03:15 +0300 Message-ID: Subject: Re: [PATCH 2/2] drm/panel: Add support for Raydium RM67191 panel driver To: Robert Chiras Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , dri-devel@lists.freedesktop.org, Devicetree List , Linux Kernel Mailing List , dl-linux-imx 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 Hi Robert, Minor comment. See inline: On Fri, Jun 14, 2019 at 2:52 PM Robert Chiras wrote: > > This patch adds Raydium RM67191 TFT LCD panel driver (MIPI-DSI > protocol). > > Signed-off-by: Robert Chiras > --- > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-raydium-rm67191.c | 730 ++++++++++++++++++++++++++ > 3 files changed, 740 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index d9d931a..8be1ac1 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -159,6 +159,15 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN > Pi 7" Touchscreen. To compile this driver as a module, > choose M here. > > +config DRM_PANEL_RAYDIUM_RM67191 > + tristate "Raydium RM67191 FHD 1080x1920 DSI video mode 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 Raydium RM67191 FHD > + (1080x1920) DSI panel. > + > config DRM_PANEL_RAYDIUM_RM68200 > tristate "Raydium RM68200 720x1280 DSI video mode panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index fb0cb3a..1fc0f68 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -14,6 +14,7 @@ obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o > obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) += panel-osd-osd101t2587-53ts.o > obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o > obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o > +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o > obj-$(CONFIG_DRM_PANEL_ROCKTECH_JH057N00900) += panel-rocktech-jh057n00900.o > obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o > diff --git a/drivers/gpu/drm/panel/panel-raydium-rm67191.c b/drivers/gpu/drm/panel/panel-raydium-rm67191.c > new file mode 100644 > index 0000000..75bfb03 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-raydium-rm67191.c > @@ -0,0 +1,730 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * i.MX drm driver - Raydium MIPI-DSI panel driver > + * > + * Copyright (C) 2017 NXP > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation; either version 2 > + * of the License, or (at your option) any later version. > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ Please remove the license text once you already added the SPDX identifier. Also preferred copyright for NXP is: Copyright 2019 NXP So, the file should look like this: // SPDX-License-Identifier: GPL-2.0 /* * i.MX drm driver - Raydium MIPI-DSI panel driver * * Copyright 2019 NXP */