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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80DD8C4332F for ; Fri, 23 Dec 2022 09:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235443AbiLWJdo (ORCPT ); Fri, 23 Dec 2022 04:33:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiLWJdi (ORCPT ); Fri, 23 Dec 2022 04:33:38 -0500 X-Greylist: delayed 964 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 23 Dec 2022 01:33:35 PST Received: from mailrelay1-1.pub.mailoutpod2-cph3.one.com (mailrelay1-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:400::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F2A37231 for ; Fri, 23 Dec 2022 01:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-transfer-encoding:content-type:mime-version:references: message-id:subject:cc:to:from:date:from; bh=429iu7gzZKguupE0/FiEf9hM4MrVvJtlxfsptvwXkuI=; b=artF2SNE/lEehVRHlcR+DMiatrzzUTyxN/VNMVCM+QgfkmsCbHJ4YCBj0l8JIx1VMLJfQIisMC73p ntNoPBV8I8Y/aGvr8r/bp3JBQPMjSNbUPn2WdiMt71vUh2Umi5GOg2aPoiGyu9eta3uQluvkd4DF00 FG2++yP61UnjiQIxYgcPEkNgWJ13m3LTDd7PbUc0ZJXxbcbH1GfhQIyE46Oiunqmhhp/QPfnNwvJGM oBfSIA6EM1GAZJklLFFHhIpMYwFtMpT2UuqG7/z9qFkIc4ZIADTC3lK4YyfPf2dq/Z5hS2XoMEszdM j0TN4dLUL6fBNNU6f/upuEH3Bsq0B8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-transfer-encoding:content-type:mime-version:references: message-id:subject:cc:to:from:date:from; bh=429iu7gzZKguupE0/FiEf9hM4MrVvJtlxfsptvwXkuI=; b=rYRhbrX/Sxfff6J8uys4Mp06yuZ8r3RyiM+mpctF84UP//nN0FfCAEdjQxc6B7Ai9LcYYBGEKfUiN x7pNr+SDg== X-HalOne-ID: 9dad3bd0-82a2-11ed-83d6-11abd97b9443 Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay1 (Halon) with ESMTPSA id 9dad3bd0-82a2-11ed-83d6-11abd97b9443; Fri, 23 Dec 2022 09:17:28 +0000 (UTC) Date: Fri, 23 Dec 2022 10:17:26 +0100 From: Sam Ravnborg To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Ondrej Jirman , Robert Mader , Peter Robinson , Kamil =?utf-8?Q?Trzci=C5=84ski?= , Martijn Braam , Daniel Vetter , David Airlie , Thierry Reding , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 1/4] drm: panel: Add Himax HX8394 panel controller driver Message-ID: References: <20221222223830.2494900-1-javierm@redhat.com> <20221222223830.2494900-2-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221222223830.2494900-2-javierm@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Javier. On Thu, Dec 22, 2022 at 11:38:27PM +0100, Javier Martinez Canillas wrote: > From: Kamil Trzciński > > The driver is for panels based on the Himax HX8394 controller, such as the > HannStar HSD060BHW4 720x1440 TFT LCD panel that uses a MIPI-DSI interface. A few comments/nitpicks in the following. I have been away for a while, and paged out most of my panel knowledge, so read it all with that in mind. In general - very nicely written driver. Sam > > Signed-off-by: Kamil Trzciński > Co-developed-by: Ondrej Jirman > Signed-off-by: Ondrej Jirman > Co-developed-by: Javier Martinez Canillas > Signed-off-by: Javier Martinez Canillas > --- > > drivers/gpu/drm/panel/Kconfig | 12 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-himax-hx8394.c | 460 +++++++++++++++++++++ > 3 files changed, 473 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-himax-hx8394.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 737edcdf9eef..7ee9c83f09a7 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -154,6 +154,18 @@ config DRM_PANEL_FEIYANG_FY07024DI26A30D > Say Y if you want to enable support for panels based on the > Feiyang FY07024DI26A30-D MIPI-DSI interface. > > +config DRM_PANEL_HIMAX_HX8394 > + tristate "HIMAX HX8394 MIPI-DSI LCD panels" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y if you want to enable support for panels based on the > + Himax HX8394 controller, such as the HannStar HSD060BHW4 > + 720x1440 TFT LCD panel that uses a MIPI-DSI interface. > + > + If M is selected the module will be called panel-himax-hx8394. > + > config DRM_PANEL_ILITEK_IL9322 > tristate "Ilitek ILI9322 320x240 QVGA panels" > depends on OF && SPI > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index f8f9d9f6a307..84c01adafd4c 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_PANEL_EBBG_FT8719) += panel-ebbg-ft8719.o > obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o > obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o > obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o > +obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.o > obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o > diff --git a/drivers/gpu/drm/panel/panel-himax-hx8394.c b/drivers/gpu/drm/panel/panel-himax-hx8394.c > new file mode 100644 > index 000000000000..b22eec0674b5 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-himax-hx8394.c > @@ -0,0 +1,460 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Driver for panels based on Himax HX8394 controller, such as: > + * > + * - HannStar HSD060BHW4 5.99" MIPI-DSI panel > + * > + * Copyright (C) Kamil Trzciński Needs year > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include