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=-10.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 DE963C6377E for ; Wed, 21 Jul 2021 23:12:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ABBEA6127C for ; Wed, 21 Jul 2021 23:12:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABBEA6127C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+JWPMJuOvsowgrJAPblHBuqynsm90K8M+2KNuScOHPo=; b=op9tCmMGt8rEfy AgKYOMLZbvj/a4UD4D+H7nhkllafqt4QE2URbi68ppW6B3FSpFC2pgitZAEtBToB70GveUHIbXyxX SfuVe57UNS8965fS1AlkNkv+CUz0WAkMJSWxWhNlGqY3YqYiSflhL207UaYsEQVoW8GwvAdQ+soqs GxBb+5hNLumRmPBKfe6Bjuk6jTaPDQb3ueTmaOB7CSQjBRX4eqTKeW7FIVOZrjKHDaJyl/V7VkZxW dbNhrOFZ76r1oUdFhUqFHvAhBHZJ+AsFZM4TL9atpWnssHOQkp6wVvkOPaQ5zDJ7fLCmxbENR9OtC zUDt3/0n0si/p9NWmnoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6LKr-00HQeN-DP; Wed, 21 Jul 2021 23:09:05 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6LKl-00HQdI-KI for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 23:09:02 +0000 Received: by mail-io1-xd35.google.com with SMTP id k16so4239823ios.10 for ; Wed, 21 Jul 2021 16:08:58 -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=DOjW6DOZ+MmhWorRqurm6xFltJhtq81gdI3vOFmuwjQ=; b=dAWu/rUGJYR8GSXMIshBLKNBG7ynhMxF21Oa6DPEvACknvUmem5KpHXdb4Z+hSZ9qQ CJrHS2kXWXE9Pjc3UUhAQELUYP/Q7pv4FA4h5LMIH0D70j2Q+RVIy1VOcXgfqAm05LWw s3ISTIOIGZqn6ZZlvZurU/qHjjMMIq6Jq2a0uSEX4bhiJnyBG5JcaKiso3gZwZ7w4FN/ qXGbU5tB48kdly98MOmUii+LGCdAAck11M5yDrN2mRKqjXUmj4YTMwV0+4hn5Mfh08Dj UrhAHaSIm8Ihvwf3hrcNWa06X5pQLFgrzUpCR4eKv9SCPrSat2ap9kMQNciAMoQZFWUy DG+A== 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=DOjW6DOZ+MmhWorRqurm6xFltJhtq81gdI3vOFmuwjQ=; b=KJ5VeJOHJeeOyl0zyLrglJG7gR2i35PLtJQSTY2SZwZWDk1F3D1YKT/LJt7W+cPjDR WFC7VnVAAZJi9E3XEuzchZmf6j4DpZWtKUYSMJkZYrZW4VU6EXS0HVwWdRmnMrtLc8lk psQIx7bPSk+QUpdpcKUN+MZuPecswakLwdKBSHCDnX3v4inWMN27poTol4FDGznc69MJ ZavriAq8I6lVy3ItOB67ECCIqLscMeV5bM35i7Jasug6BYWPDZQO9PYrPI2NsB91Acz7 L5bDk1Ai6GQTe6viKp5N3qEg0h4uscjrtcmJm+MfLwMbwQt2t+TdSryVfOH+oQYxAplq ObGA== X-Gm-Message-State: AOAM530rYDBvEZF7GZDqcvmdTycYhwoU+Ke7QOPtEzgwV1WSghlqCydJ KJRNFES/a0kVxHC1i5O4xFI6uQMgQyY7CKa5GcA= X-Google-Smtp-Source: ABdhPJx91TyeXcknpAf8mZJCp/AH0t3otxvq2qICIpbaBXkY++lVIvnBJC4F9Nmn0Lyww0lyCNMHNRW1v94gfbll1mI= X-Received: by 2002:a05:6602:229a:: with SMTP id d26mr14329467iod.110.1626908938073; Wed, 21 Jul 2021 16:08:58 -0700 (PDT) MIME-Version: 1.0 References: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> <1626853288-31223-4-git-send-email-dillon.minfei@gmail.com> In-Reply-To: From: Dillon Min Date: Thu, 22 Jul 2021 07:08:21 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] drm/panel: Add ilitek ili9341 panel driver To: Jagan Teki Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Linus Walleij , Alexandre TORGUE , Maxime Coquelin , devicetree , Douglas Anderson , dri-devel , linux-kernel , =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_160859_760216_74B9B7D3 X-CRM114-Status: GOOD ( 37.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Jagan Thanks for your time to review my code. On Wed, 21 Jul 2021 at 23:48, Jagan Teki wrote: > > On Wed, Jul 21, 2021 at 1:11 PM wrote: > > > > From: Dillon Min > > > > This driver combine tiny/ili9341.c mipi_dbi_interface driver > > with mipi_dpi_interface driver, can support ili9341 with serial > > mode or parallel rgb interface mode by register configuration. > > > > Cc: Linus Walleij > > Signed-off-by: Dillon Min > > --- > > changes in v2: > > - replace vcc regulator to three bulk regulators(vci, vddi, vddi-led) > > according to linus suggestion, thanks. > > > > drivers/gpu/drm/panel/Kconfig | 12 + > > drivers/gpu/drm/panel/Makefile | 1 + > > drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 778 +++++++++++++++++++++++++++ > > 3 files changed, 791 insertions(+) > > create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9341.c > > > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > > index ef87d92cdf49..eb34b8d1b19a 100644 > > --- a/drivers/gpu/drm/panel/Kconfig > > +++ b/drivers/gpu/drm/panel/Kconfig > > @@ -124,6 +124,18 @@ config DRM_PANEL_ILITEK_IL9322 > > Say Y here if you want to enable support for Ilitek IL9322 > > QVGA (320x240) RGB, YUV and ITU-T BT.656 panels. > > > > +config DRM_PANEL_ILITEK_ILI9341 > > + tristate "Ilitek ILI9341 240x320 QVGA panels" > > + depends on OF && SPI > > + depends on DRM_KMS_HELPER > > + depends on DRM_KMS_CMA_HELPER > > + depends on BACKLIGHT_CLASS_DEVICE > > + select DRM_MIPI_DBI > > + help > > + Say Y here if you want to enable support for Ilitek IL9341 > > + QVGA (240x320) RGB panels. support serial & parallel rgb > > + interface. > > + > > config DRM_PANEL_ILITEK_ILI9881C > > tristate "Ilitek ILI9881C-based panels" > > depends on OF > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > > index cae4d976c069..0ecde184665d 100644 > > --- a/drivers/gpu/drm/panel/Makefile > > +++ b/drivers/gpu/drm/panel/Makefile > > @@ -11,6 +11,7 @@ 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_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 > > obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o > > obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o > > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c > > new file mode 100644 > > index 000000000000..717b0b930e2f > > --- /dev/null > > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c > > @@ -0,0 +1,778 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/* > > + * Ilitek ILI9341 TFT LCD drm_panel driver. > > + * > > + * This panel can be configured to support: > > + * - 16-bit parallel RGB interface > > + * - 18-bit parallel RGB interface > > + * - 4-line serial spi interface > > + * > > + * Copyright (C) 2021 Dillon Min > > + * Derived from drivers/drm/gpu/panel/panel-ilitek-ili9322.c > > + * the reuse of DBI abstraction part referred from Linus's patch > > + * "drm/panel: s6e63m0: Switch to DBI abstraction for SPI" > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include