Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1999293rdd; Thu, 11 Jan 2024 16:39:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAWVWwc64LYVQBIq68/GJi37i3KViKx6BGLxhQCUo4Hy9CRRpfIQuYS4NaAYpRIIxLSLxY X-Received: by 2002:a05:6808:6494:b0:3bd:4606:6a60 with SMTP id fh20-20020a056808649400b003bd46066a60mr252395oib.52.1705019990010; Thu, 11 Jan 2024 16:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705019989; cv=none; d=google.com; s=arc-20160816; b=nSsDDVmqPFe1MF2LuPjWC15UzCHSfYlZDYdtvrsxLJF1o/AyjklInK7oUi6EZeIxQp v+KfW6mqsRGBvuNWNQYf4MhyoebFsu5XFQ0hRJ+h1lRgJmRD/UGPWDM0RT80fwsg9qE+ 3KvottPCmVWILPDdtWUWyzeD519AKtKWN74fkhu1N1E/+g5JsSA2ATNgbJno/wM4Zxc5 RA3I5+F7pNvxC4u32z8Gum8bpPMGuQQQ431Y2PJ7sqMIkeI4x86dHShVqLWtEsY5IRQ0 HlViyNm8xM9he2aVEPulklc8VMyFZkjjOfyGzG5xCes4Yn7445W0MlLIcVJAaZgMz2ci WveA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vDH4LaF6qmHMvXPF2MOAK4CTs+9vOxO6sOghxx6oPo4=; fh=uIZYZ1isbJwEOCfRVjNAEapJlGYjk7o2J7P7V5RarJg=; b=jN6KrjgCmgk03AZ0Xr7m9M+lcHVMFDHL9cKsJ9zjqGmuNiN1naKNrzhKSn2VZsCwit uLtZQYClgs1OvAVKqSsJ3z1HOQoDyzX/QJXiTKUs3xBS1s1zL8UHFQmC+tIcH3BbndQ8 rjtWu0MR22QNZDzu74k70Lc0P5+fsKeEnQwgKFnT8P7hDkOOrLvf/3AuS1y2lnrPTNVC Grw8OiloELUFqfz6Y+xrVjmi3wzd+poE+c56BEJOmafIloNr5flrGIKosfxibLhlgbkZ kXS3jJ+/ccelClvtEJzfTcPid9+68ugorx0xF3nMdYmTsCZPhAIJls6EACAZBD3Ij0IR PASQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="mr/MZoy6"; spf=pass (google.com: domain of linux-kernel+bounces-24182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cj16-20020a056a00299000b006d9926b4c79si2163567pfb.76.2024.01.11.16.39.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 16:39:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="mr/MZoy6"; spf=pass (google.com: domain of linux-kernel+bounces-24182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 89F83289012 for ; Fri, 12 Jan 2024 00:39:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CB30A3F; Fri, 12 Jan 2024 00:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mr/MZoy6" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EA69379; Fri, 12 Jan 2024 00:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40BNuLgA002546; Fri, 12 Jan 2024 00:38:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=vDH4LaF6qmHMvXPF2MOAK4CTs+9vOxO6sOghxx6oPo4=; b=mr /MZoy6Uj1qIuKPxwlTfPIZH0tt3CHKjZDoG+sHNhjSmka9TfrtWeaXVT1cm7jF2Y Ew1p/MyoxAx+EVbUbqROdWu/agn1wgaj55dkH8GEGbYFR1SxZXpLIoXTZU0gy80T DvCet3xMilH7ldPsPPeCvc0LSQgE7NmyY5emTYyAjVnD3DQuLjcEazViNVs2ygX7 CX974G8+Bb/N+JXhFo9oREPhMkro8hQXN4WamF/icfegmpB8+ZO3EN73o1U/zF3+ C+eHO8FDGGPooPUKfW+AcbdwxqGNsA0uqBydLLSqr4g8deeXq1urNXcWJZom3ogL /klIo9muZjE4VHAJiVxg== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vj7w22ue1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 00:38:58 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40C0cv1D008873 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Jan 2024 00:38:57 GMT Received: from [10.71.111.207] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 11 Jan 2024 16:38:55 -0800 Message-ID: <85b83233-7b2f-4fe6-9a86-a625b6606034@quicinc.com> Date: Thu, 11 Jan 2024 16:38:34 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v2 2/2] drm/panel: Add support for Novatek NT36672E panel driver To: Ritesh Kumar , , , CC: , , , , , , , , , , , , , References: <20240108095902.22725-1-quic_riteshk@quicinc.com> <20240108095902.22725-3-quic_riteshk@quicinc.com> Content-Language: en-US From: Jessica Zhang In-Reply-To: <20240108095902.22725-3-quic_riteshk@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: k1_4NT6Z01YG3UA4SICshLuZbaEJr6FR X-Proofpoint-ORIG-GUID: k1_4NT6Z01YG3UA4SICshLuZbaEJr6FR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 priorityscore=1501 spamscore=0 malwarescore=0 impostorscore=0 clxscore=1011 mlxlogscore=999 adultscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401120002 On 1/8/2024 1:59 AM, Ritesh Kumar wrote: > Add support for the 1080x2408 Novatek NT36672E video mode > DSI panel driver. > > Signed-off-by: Ritesh Kumar Reviewed-by: Jessica Zhang > > --- > v2: Fixed review comments from Krzysztof > - renamed the panel driver file to reflect that this is a novatek IC. > - adjusted internal function names to reflect the same. > - corrected compatible string accordingly. > - updated CONFIG for the same. > --- > drivers/gpu/drm/panel/Kconfig | 10 + > drivers/gpu/drm/panel/Makefile | 1 + > .../gpu/drm/panel/panel-novatek-nt36672e.c | 643 ++++++++++++++++++ > 3 files changed, 654 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36672e.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 99e14dc212ec..052aaef7d6a2 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -429,6 +429,16 @@ config DRM_PANEL_NOVATEK_NT36672A > around the Novatek NT36672A display controller, such as some > Tianma panels used in a few Xiaomi Poco F1 mobile phones. > > +config DRM_PANEL_NOVATEK_NT36672E > + tristate "Novatek NT36672E DSI panel" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for Novatek NT36672E DSI Video Mode > + LCD panel module. The panel has a resolution of 1080x2408 and uses 24 bit > + RGB per pixel. > + > config DRM_PANEL_NOVATEK_NT39016 > tristate "Novatek NT39016 RGB/SPI panel" > depends on OF && SPI > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index d10c3de51c6d..93a544a8937c 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -40,6 +40,7 @@ obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) += panel-novatek-nt35560.o > obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35950) += panel-novatek-nt35950.o > obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36523) += panel-novatek-nt36523.o > obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672A) += panel-novatek-nt36672a.o > +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672E) += panel-novatek-nt36672e.o > obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) += panel-novatek-nt39016.o > obj-$(CONFIG_DRM_PANEL_MANTIX_MLAF057WE51) += panel-mantix-mlaf057we51.o > obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o > diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c > new file mode 100644 > index 000000000000..d4e85c2fc899 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c > @@ -0,0 +1,643 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +// Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > + > +#include