Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp309645pxv; Thu, 22 Jul 2021 00:06:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdvvrnmhmvwRcZz83ubsdg3XqbwICqSoXD2LcIwR4vpR2stglNobVxmbM/yc3E2iUeHZn/ X-Received: by 2002:a50:cb8b:: with SMTP id k11mr53058876edi.55.1626937571612; Thu, 22 Jul 2021 00:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626937571; cv=none; d=google.com; s=arc-20160816; b=i0IiLnf9X83km03jtwomgTfDqD4jEqQH+yWx976v0/hLi5th3yy9E7qy14smwUahBP H014JsHDpjm+wE/3i0o9dNk5sbSrxMNuMlz3rDJ6wjnytVkaJrZqm5SVsQWCK25bFxtA QDsNFK4j7g+xKmjvg2foHgkqq/O06ZkziQc+TUczWyPCWiulG02rS5LJC/pZ1HeZ27bU VvvzHDYQygLCqqcK3YyPzvKC9GnkB+yiUVKIl2+Whnh/ZdhxeFP+qMWfPzYo/LQbqo2j diAKpTEV2Wxv4tX+wfRm36LodQjSbxWyyTjfRhPsoRPWfqWL2o40s1NSJzmu2g1/0HC3 zxag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=geimImWkk+j3UI43YmrbXT0NGSrWz41IEgo4SUWY5x0=; b=pUd4qT89+25BkCRBY6mZVgtrj+pRYQ/2R/ea5rSoYJcNgnOmIjUHkv0v5qMuV/AIxQ QacKr1E+m3Z25Gk6ZEUyvFiVO1o1elsDTb0OsoEtyg72rFls8ehbRV29hOl5CcBbMDf7 Vt/AUfuAnzM3rEie3GyejFlSq74SQiBROrGY3LK5NwH3vPchj7f+pfU+J0lSMt7S2pPi GkVRU6CRDo4W+i9mcJ9VKyq6L87AcPAF7XnPA56hyJDklV5N+LKJVF4GyzUey+lL5YP1 ozxYArOnR6jL0gma7i2gtbP3LrgSeneaspyRMTop7VzDIwKVxMpjKZLGZeDhLv8Et7n+ cl4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202012 header.b=vyIh5gzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si28899108edp.307.2021.07.22.00.05.43; Thu, 22 Jul 2021 00:06:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202012 header.b=vyIh5gzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbhGVGXN (ORCPT + 99 others); Thu, 22 Jul 2021 02:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhGVGXM (ORCPT ); Thu, 22 Jul 2021 02:23:12 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D3A8C061575; Thu, 22 Jul 2021 00:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202012; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=geimImWkk+j3UI43YmrbXT0NGSrWz41IEgo4SUWY5x0=; b=vyIh5gzNB1430AHxLZ/3RRB97P h3ohXM9uO7sST+trD0bY/4oh3g+BNyJ/TnvbagXk7G/C+nwuOedAiLFn51tRUUZddYyFX8pFOxQVc UwNMkiqjQQpP6m3mH+oor2vJlvZSpg6JeF2rGIqTFI7zPKrWQ+V4BldVhLfMH3hPGRDFS8hYlp6Jp NJkhwIMxdvn3IHGiZphKYAo/omRaLhHZf26fft+gt58oSlKM2zs4TgB7YT6kBp69u1FMYt1kFjPJJ IO9+UYaq3W8C9Uwa05V2WK+3Vdgwd7hQLZ2lc11Wf17rjrQFU1RyX1xBmvkzvNROCLxx3O2It8LhA RMBX4yMA==; Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:57951 helo=[192.168.10.61]) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m6SkC-0006us-Cm; Thu, 22 Jul 2021 09:03:44 +0200 Subject: Re: [PATCH v2 3/3] drm/panel: Add ilitek ili9341 panel driver To: Dillon Min Cc: Thierry Reding , Sam Ravnborg , Dave Airlie , Daniel Vetter , Rob Herring , Linus Walleij , Alexandre TORGUE , Maxime Coquelin , Doug Anderson , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List References: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> <1626853288-31223-4-git-send-email-dillon.minfei@gmail.com> <8e091b9c-764d-d410-559e-3c5e25de2a3c@tronnes.org> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <1e4743b0-250f-975a-f83d-5d000c6496e3@tronnes.org> Date: Thu, 22 Jul 2021 09:03:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 22.07.2021 04.07, skrev Dillon Min: > Hi Noralf > > Thanks for your time to review my patch. > > On Thu, 22 Jul 2021 at 01:42, Noralf Trønnes wrote: >> >> >> >> Den 21.07.2021 09.41, skrev dillon.minfei@gmail.com: >>> 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 >>> --- >> >>> +static const struct of_device_id ili9341_of_match[] = { >>> + { >>> + .compatible = "st,sf-tc240t-9370-t", >>> + .data = &ili9341_stm32f429_disco_data, >>> + }, >>> + { >>> + /* porting from tiny/ili9341.c >>> + * for original mipi dbi compitable >>> + */ >>> + .compatible = "adafruit,yx240qv29", >> >> I don't understand this, now there will be 2 drivers that support the >> same display? > > There is no reason to create two drivers to support the same display. > > To support only-dbi and dbi+dpi panel at drm/panel or drm/tiny both > fine with me. > >> >> AFAICT drm/tiny/ili9341.c is just copied into this driver, is the plan >> to remove the tiny/ driver? If so I couldn't see this mentioned anywhere. > > Yes, I'd like to merge the code from drm/tiny/ili9341.c to this driver > (to make a single driver to support different bus). > > I have two purpose to extend the feature drm/tiny/ili9341.c > > - keep compatible = "adafruit,yx240qv29", add bus mode dts bindings (panel_bus) > to define the interface which host wants to use. such as > panel_bus="dbi" or "rgb" > or "i80" for this case, i will add dpi code to drm/tiny/ili9341.c. > > - merge tiny/ili9341.c to this driver,remove drm/tiny/ili9341.c, add > new dts compatible > string to support other interfaces. just like what i'm doing now. > > I have no idea about your plan on drm/tiny drivers, actually some of > these panels under > the diny folder can support both dbi and dbi+dpi (much faster, need > more pins). no > doubt the requirement to support dpi is always there. > > What is your preference? > I have no plans for tiny/, it's just a place to put tiny DRM drivers of all sorts. Whether or not to have "full" DRM drivers in panel/ is up to Sam and Laurent I guess, currently there's only drm_panel drivers in there. I have no objections to doing that though. I just wanted to make sure we don't have 2 drivers for the same display. Noralf. > Thanks & Regards > Dillon > >> >> Noralf. >> >>> + .data = NULL, >>> + }, >>> +}; >>> +MODULE_DEVICE_TABLE(of, ili9341_of_match);