Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp174400pxv; Wed, 21 Jul 2021 19:11:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxenbCcZpZVGwS6/0LcMM/mdeqObnnMLqBnLGTIZ1in+zKkk8ggsiZisHzXvphXAr2Vguw+ X-Received: by 2002:a05:6402:5142:: with SMTP id n2mr52129859edd.10.1626919893208; Wed, 21 Jul 2021 19:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626919893; cv=none; d=google.com; s=arc-20160816; b=fI79TMiODYntINkP2WpxEsoJEyMTekfibTIGJOcnII/cc+dM1IwY4Ot3L3QZ8V70W6 uXbDfVd3RcBIqAP+2TjrilQwg+85GEqqbAsB6s9bQ4SE9yhU76qO9vLKgKKltHDeEfkM QbEXx7Im+UYnfxDQMeSg7XvUzVPrR7qkW6m+5zPwCks0e1XO7gagG9SfNUeC/6oo2zWZ hv8Gpw7yBi5rSX+1yTQEJdpJ+p0RYx2Aw6PZp0+s9m3ZF8u0iriQFpF6wNzmpSEWcPTP 1zDz1iO5V7sJa/VLOESCPArf/jocd90S7VSS1VFVeivFp0+jCvOs8y1aqeVesu5tH72Q wZrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=90T8pVlNu5R4aARTLjIPZ2shWeZ1pN4LEYWIIMIBA/Y=; b=Yc2JldQfWoxYGj85uptWlbg+D5NK22pa1TU/ZkQsAyJuayAk3UAP4hfmnt/b64sxF0 2Hmd7vTirJmTSqhdNIlpakC0MhzVVw5jHOePilQARPokFNJzxyN8P0xatnxNOp6v9m2h vTH6m3BWH4ctJ6hHYRSPAfNChZRF5THC0lkgBpuFeGkmjB3L22gCZ1mGz3sDkL0oTlFM 2kStJvBvjbWKXg9Gi6Duwe5PUBTIrsSe8VfwxQtsBRyypnmLlI7SnjG1GPqBI5pV8cEj XtDM6EUdbwjIu7ilO5giTPLKOm21+09Bd10NHFSe/DHs7jK3nRJ+7YnQ7d60G8bE6sup ru+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZrcYlafS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs17si28661950ejc.65.2021.07.21.19.11.09; Wed, 21 Jul 2021 19:11:33 -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=pass header.i=@gmail.com header.s=20161025 header.b=ZrcYlafS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhGVB1V (ORCPT + 99 others); Wed, 21 Jul 2021 21:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbhGVB1U (ORCPT ); Wed, 21 Jul 2021 21:27:20 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90226C061575; Wed, 21 Jul 2021 19:07:55 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id o8so4051374ilf.4; Wed, 21 Jul 2021 19:07:55 -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:content-transfer-encoding; bh=90T8pVlNu5R4aARTLjIPZ2shWeZ1pN4LEYWIIMIBA/Y=; b=ZrcYlafSzxD0iNHz7hFfuRgsZhERE/FFxN0t89R6+5lbyxC7+FH5iiv/EwOH4RoWLg qvxm3vsrC/5fwcDoUGWRvEBxx+MKGXA6auS8Dr5I8xK1XsiTXuJbW7GKLUlPzTqM4W1C +2CrFCMeknsDB2dF9Ecr6TqMn14CNC88WEKDpWBUxKEp8Ikpmv9jmxS2x+fQIfTgAnlF Z91yHUNCggVbgrcsjthne/UBOvQtsFefHu7S4Vp6UhjPlx2hJH6mbx1YF4xl5AIOlIbm DoklVBDaXv1/Eqh3VxLyksW2y5dGQhnsR1DYubiaFaFPi9btcOoHAJ/xROeJC58fY/6f TCRw== 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:content-transfer-encoding; bh=90T8pVlNu5R4aARTLjIPZ2shWeZ1pN4LEYWIIMIBA/Y=; b=EqIcJjNsB/Dsk2wGvvwcJ9OypQDjxRX1uymZ8WMLzHu+fMPkzl+uh0uHJ3GiQl0x4m QfHLJztZZ4NXZMR1pA0k386bR9BKk45QGCg5vEa7Y9LnIXt47yjcqi1O70F0W4Xa+u5H Cp54b43mG9QadieN3PbMV06yf4f//++9+OfhRv9ADLRFxFMTHrV0lf9eSycSLyegJna6 DmGojpFS4vPjfp46hcCxfkDXRcieErB0iMn2pDv+EugcRp0Zf8nR2mv+qa5houEoTGxA CPdsRQnEQJFcQYJ0209Jo4b8bMbzGBOmCw8perIJMQCkQ+oZT9Do6Z5i94jvVZq/d5eL YQyw== X-Gm-Message-State: AOAM531T1DEjyTGzSub2P1i6tGnriIANU+gLgdlJcJqigoMxihHS3XkB s6K1kbjozbyhndedYvpEXTemLEB26WsgBn/NuNA= X-Received: by 2002:a92:c5c5:: with SMTP id s5mr24509368ilt.271.1626919674933; Wed, 21 Jul 2021 19:07:54 -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> <8e091b9c-764d-d410-559e-3c5e25de2a3c@tronnes.org> In-Reply-To: <8e091b9c-764d-d410-559e-3c5e25de2a3c@tronnes.org> From: Dillon Min Date: Thu, 22 Jul 2021 10:07:18 +0800 Message-ID: Subject: Re: [PATCH v2 3/3] drm/panel: Add ilitek ili9341 panel driver To: =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Noralf Thanks for your time to review my patch. On Thu, 22 Jul 2021 at 01:42, Noralf Tr=C3=B8nnes wrot= e: > > > > 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[] =3D { > > + { > > + .compatible =3D "st,sf-tc240t-9370-t", > > + .data =3D &ili9341_stm32f429_disco_data, > > + }, > > + { > > + /* porting from tiny/ili9341.c > > + * for original mipi dbi compitable > > + */ > > + .compatible =3D "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 =3D "adafruit,yx240qv29", add bus mode dts bindings (pane= l_bus) to define the interface which host wants to use. such as panel_bus=3D"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? Thanks & Regards Dillon > > Noralf. > > > + .data =3D NULL, > > + }, > > +}; > > +MODULE_DEVICE_TABLE(of, ili9341_of_match);