From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 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