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=-22.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 33B02C4320E for ; Sun, 8 Aug 2021 13:45:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0993E6101E for ; Sun, 8 Aug 2021 13:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231564AbhHHNp0 (ORCPT ); Sun, 8 Aug 2021 09:45:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbhHHNpZ (ORCPT ); Sun, 8 Aug 2021 09:45:25 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86A40C061760 for ; Sun, 8 Aug 2021 06:45:05 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id j1so23794530pjv.3 for ; Sun, 08 Aug 2021 06:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1AMjDifoKXxqiUrVy1mep30aqwlhXoP2ZKCFmO17aHs=; b=LYHCnZPX0jNPvDkIxI2SVP3IRfruUg9IWEyPIP/+0LPyzAN4W9Ft0M/RLMc07gGEuV EXXCdFRXE9btiOV5H7hJRIzi308yB4Hm7IB4ZzioJ6L8R+PRach5ZEPm7b5d5SrEsMLn 7W42WX2BYUqSiqpwHMYQwyJMOd5e+rDv+jMn9MJyC3C1lw6R3jH07QJ0lSgnAQx/blym eTe74pxe1y/KA8eDJdgggtsrxbHzRE1dbEAM09MvkXD59jn3kfapp05iMGe4/9f46yoZ QDkuEgo9pyWvxRcZqv9nMzwbqr2aqQVMiDtEa+SQCTWC+WnaYXshzLbA1AGpJc1cxKwY vxpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1AMjDifoKXxqiUrVy1mep30aqwlhXoP2ZKCFmO17aHs=; b=LKfS2VUi17X8o+OX7chm3yqD0JU/ddHgnWvfrlIiaHT5eBglrAlJ7tusGNMo0jP/GQ opt8ngpQ+m0ngITl3ef0x9MSvVNmJU5uXdd/OZ+Lwuo2/idAtW16gF6B06//gaxEOqxS YEnbRAE6KfaT+SbYFQgec9SpDB8yES/QOOJaH4oeH5GD8lr5s+zZPFkkD4xD0TdapyGS S5V/bHpUf/v35qelV0IZQcYjPduNTePESItHo/g84zpVnE637Y7Hh4nTT8qy6Yvv3Q9M Eosvt+RnS9wuX5pK5G6PXCQbhuCX6DXT5sgW/V7GIa2hArSdZ1e4woqOxQDWbogb5Q8M 9W8Q== X-Gm-Message-State: AOAM533wwb5yxvBBDRaKSfN0lVcwJJoDwtA9Jg+SmoHg6jsiI3pdZY1a 4+50uyi58jeQA1rpSyXdGsnmXg== X-Google-Smtp-Source: ABdhPJwWb8643lRM+rP6uYFYh86EzJeff44NV2wTx0LUy+Gni3WcNA14BAulNAHgFqu7P3IY8XI2Pg== X-Received: by 2002:a05:6a00:1744:b029:3c7:b14e:d74e with SMTP id j4-20020a056a001744b02903c7b14ed74emr13450835pfc.25.1628430304879; Sun, 08 Aug 2021 06:45:04 -0700 (PDT) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id ds6sm2063107pjb.32.2021.08.08.06.45.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Aug 2021 06:45:04 -0700 (PDT) Date: Sun, 8 Aug 2021 21:44:57 +0800 From: Shawn Guo To: Stephan Gerhold , Konrad Dybcio Cc: Thierry Reding , Sam Ravnborg , Daniel Vetter , Rob Herring , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 2/2] drm/panel: Add Truly NT35521 panel driver Message-ID: <20210808134456.GB6795@dragon> References: <20210804081352.30595-1-shawn.guo@linaro.org> <20210804081352.30595-3-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi Stephan, Thanks for looking at the patch! On Wed, Aug 04, 2021 at 02:09:19PM +0200, Stephan Gerhold wrote: > Hi Shawn, > > Thanks for the patch! > > On Wed, Aug 04, 2021 at 04:13:52PM +0800, Shawn Guo wrote: > > It adds a drm driver for Truly NT35521 5.24" 1280x720 DSI panel, which > > can be found on Sony Xperia M4 Aqua phone. The panel backlight is > > managed through DSI link. > > > > Signed-off-by: Shawn Guo > > --- > > drivers/gpu/drm/panel/Kconfig | 9 + > > drivers/gpu/drm/panel/Makefile | 1 + > > drivers/gpu/drm/panel/panel-truly-nt35521.c | 491 ++++++++++++++++++++ > > 3 files changed, 501 insertions(+) > > create mode 100644 drivers/gpu/drm/panel/panel-truly-nt35521.c > > > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > > index ef87d92cdf49..cdc4abd5c40c 100644 > > --- a/drivers/gpu/drm/panel/Kconfig > > +++ b/drivers/gpu/drm/panel/Kconfig > > @@ -537,6 +537,15 @@ config DRM_PANEL_TPO_TPG110 > > 400CH LTPS TFT LCD Single Chip Digital Driver for up to > > 800x400 LCD panels. > > > > +config DRM_PANEL_TRULY_NT35521 > > + tristate "Truly NT35521 panel" > > I think the name "Truly NT35521" is a bit too generic. AFAIK "Truly" is > a panel vendor and the NovaTek NT35521 is the panel controller. But > there are almost certainly other Truly panels that were also combined > with a NT35521 but need a slightly different configuration. > > If you don't know more than "Truly NT35521" based on the Sony sources, > maybe do it similar to "asus,z00t-tm5p5-n35596" and use a compatible > like "sony,-truly-nt35521". Would be good to clarify the Kconfig > option here too. Sounds good! > > > + depends on OF > > + depends on DRM_MIPI_DSI > > + depends on BACKLIGHT_CLASS_DEVICE > > + help > > + Say Y here if you want to enable support for Truly NT35521 > > + 1280x720 DSI panel. > > + > > config DRM_PANEL_TRULY_NT35597_WQXGA > > tristate "Truly WQXGA" > > depends on OF > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > > index cae4d976c069..3d3c98cb7a7b 100644 > > --- a/drivers/gpu/drm/panel/Makefile > > +++ b/drivers/gpu/drm/panel/Makefile > > @@ -56,6 +56,7 @@ obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o > > 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_NT35521) += panel-truly-nt35521.o > > obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o > > obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o > > obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o > > diff --git a/drivers/gpu/drm/panel/panel-truly-nt35521.c b/drivers/gpu/drm/panel/panel-truly-nt35521.c > > new file mode 100644 > > index 000000000000..ea3cfb46be7e > > --- /dev/null > > +++ b/drivers/gpu/drm/panel/panel-truly-nt35521.c > > @@ -0,0 +1,491 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Copyright (c) 2021, Linaro Limited > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > + > > +#include