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=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY 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 BB2AEC43603 for ; Fri, 20 Dec 2019 22:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 840C5206CB for ; Fri, 20 Dec 2019 22:29:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727612AbfLTW3i (ORCPT ); Fri, 20 Dec 2019 17:29:38 -0500 Received: from gloria.sntech.de ([185.11.138.130]:51670 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbfLTW3i (ORCPT ); Fri, 20 Dec 2019 17:29:38 -0500 Received: from ip5f5a5f74.dynamic.kabel-deutschland.de ([95.90.95.116] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iiQlx-0002TZ-F3; Fri, 20 Dec 2019 23:29:25 +0100 From: Heiko Stuebner To: dri-devel@lists.freedesktop.org, sam@ravnborg.org Cc: thierry.reding@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, christoph.muellner@theobroma-systems.com, maxime@cerno.tech Subject: Re: [PATCH v4 3/3] drm/panel: add panel driver for Xinpeng XPP055C272 panels Date: Fri, 20 Dec 2019 23:29:24 +0100 Message-ID: <6888670.FVnnZQrD8c@phil> In-Reply-To: <20191217222906.19943-3-heiko@sntech.de> References: <20191217222906.19943-1-heiko@sntech.de> <20191217222906.19943-3-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, Am Dienstag, 17. Dezember 2019, 23:29:06 CET schrieb Heiko Stuebner: > From: Heiko Stuebner > > Base on the somewhat similar Rocktech driver but adapted for > panel-specific init of the XPP055C272. > > changes in v3: > - remove wrong negative sync flags from display-mode to fix a display > artifact of the output getting move a tiny bit to the right > changes in v2: > - move to drm-panel-internal backlight handling (Sam) > - adapt to changes that happened to drm_panel structs+functions (Sam) > - sort includes (Sam) > - drop unnecessary DRV_NAME constant (Sam) > - do mipi_dsi_dcs_exit_sleep_mode and mipi_dsi_dcs_set_display_on > in panel prepare (not init_sequence) to keep symmetric (Sam) > > Signed-off-by: Heiko Stuebner are you satisfied with the changes, requested last weekend? Thanks Heiko > --- > drivers/gpu/drm/panel/Kconfig | 10 + > drivers/gpu/drm/panel/Makefile | 1 + > .../gpu/drm/panel/panel-xinpeng-xpp055c272.c | 400 ++++++++++++++++++ > 3 files changed, 411 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index f152bc4eeb53..fb1ded47677e 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -355,4 +355,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_XINPENG_XPP055C272 > + tristate "Xinpeng XPP055C272 panel driver" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for the Xinpeng > + XPP055C272 controller for 720x1280 LCD panels with MIPI/RGB/SPI > + system interfaces. > endmenu > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index b6cd39fe0f20..71d7722146a7 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -38,3 +38,4 @@ obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o > obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.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_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o > diff --git a/drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c b/drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c > new file mode 100644 > index 000000000000..1a7ded012344 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c > @@ -0,0 +1,400 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Xinpeng xpp055c272 5.5" MIPI-DSI panel driver > + * Copyright (C) 2019 Theobroma Systems Design und Consulting GmbH > + * > + * based on > + * > + * Rockteck jh057n00900 5.5" MIPI-DSI panel driver > + * Copyright (C) Purism SPC 2019 > + */ > + > +#include > +#include > +#include > +#include > + > +#include