Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp720970rdb; Fri, 22 Dec 2023 03:07:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAqtkOdfAMZxs/rCARsi4yAR8NrYJ0D+et2uelrcK/C+0cu4PX2CG2vDggrtruZnZPnwP+ X-Received: by 2002:a05:6a00:27aa:b0:6d6:7580:e6c1 with SMTP id bd42-20020a056a0027aa00b006d67580e6c1mr914891pfb.40.1703243268503; Fri, 22 Dec 2023 03:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703243268; cv=none; d=google.com; s=arc-20160816; b=Tumd9dP8ukb/Bpa0eMTnf7Yhof8XXwNlBtTXQ3VSQcnNr9lC2TDEsx2a8wrf/L+XFf Sfc5EUdCA/hSNrIa1InnmknncGcVW8jps6M7bnCMhz6vViZEoY71cnysp9e5mbCmFb69 Bb7WphkyNa2ulG0DsTLoBNrcAosHtmpnz0FNmQF8NfmeSh7/zJZ5iTr22zoC62wpqcKS /DqDrHym8CWhVmkY4cLhJsTON+3T1tl12rZMajTMOqx8vMwZq5yi3pLRhbLXrhkJLFIq GrvhK5kVXpTgBTeG9Cv6qJ03/ZbfMgU5py98ErcckepNDT3d7b5XG3rarQIhykwu47A/ Fjpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=JCl2hEmevIbt2aRc3GvDSJu8/70n2B5Dn6hpN4AUXuU=; fh=2WBI/C006eP1KfQhsBzQmdq3vt7gRqk7/Q8nsmFDf1A=; b=hcONWs3hL41+TbiNegaNxfA21shSFTKPjR+s3hzPobmioaZLe2EmlEEdoVGzMRErQ+ 1viJv1YQ6t3G7NKuA9xsKLyCDQebXSkr45HxMbJjZuiAIq3AHFAtwdBP/FNyfkQIH3yJ QRZTo/kUSmuTT6ERQJfQJQWEuG5Pum9IyiItb0NqUcZLHKEDoGap8cf2/ZTGteHHp1Kn vTCPcorw7yqtCKqq957KG2rm8FJzlTm8z9hmjPP0hnfmdJyAZP3JjGeTmQMm/95Sk+PJ 3eDh9DOwRNSmk1KwMf7cA1jGdrcJeiQIpB42fv8phwSRtJUKN3/hBnGFn9+tdH4oSUlN X3mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dgWGsSi6; spf=pass (google.com: domain of linux-kernel+bounces-9632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9632-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 p24-20020aa78618000000b006d626e9b9b6si3093571pfn.292.2023.12.22.03.07.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:07:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9632-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=dgWGsSi6; spf=pass (google.com: domain of linux-kernel+bounces-9632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9632-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 EC7CF28A46A for ; Fri, 22 Dec 2023 11:07:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 161E2156EB; Fri, 22 Dec 2023 11:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="dgWGsSi6" X-Original-To: linux-kernel@vger.kernel.org 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 4417B168A2; Fri, 22 Dec 2023 11:07:38 +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=qualcomm.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 3BMAxtmQ006106; Fri, 22 Dec 2023 11:07:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= qcppdkim1; bh=JCl2hEmevIbt2aRc3GvDSJu8/70n2B5Dn6hpN4AUXuU=; b=dg WGsSi6TS3ZLetV7Jtfv3/VJ6ui5+bVOYkaiLWUtDe/WLceXfgYHCa8+R3DuDiIwK 3p+QXg+jvVxb5/wsDtMYQxytdY+7qZKn1Z2VaOlZeDNdkxjaubj+FTQoQtjvW+z9 jKSStoCQJ9j/Y5WM47U8parBefaFAOpABCPcHkK5LfM/2QV5SCufwjFmjuZO/DOJ n6slmWBoQHvBePuJy7O95cQbyQRkskdTkmrGvlYes7Y7VUuuL1VqauF2mSD9X8U6 i4rUeA3+6PXtOgtDQe8QM7TZqTT3ptYZk7FZmdlKy+DBgw7pQd3tDQFDY5hYEqPY j6C10mIGgvolF112ITzA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v4tuea2mm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Dec 2023 11:07:25 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 3BMB7JVo019229; Fri, 22 Dec 2023 11:07:21 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3v14ymvpvm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Dec 2023 11:07:21 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BMB7L2D019242; Fri, 22 Dec 2023 11:07:21 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-riteshk-hyd.qualcomm.com [10.147.241.247]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3BMB7LCg019240; Fri, 22 Dec 2023 11:07:21 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2314801) id 01C3B5299C9; Fri, 22 Dec 2023 16:37:20 +0530 (+0530) From: Ritesh Kumar To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ritesh Kumar , neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_abhinavk@quicinc.com, quic_rajeevny@quicinc.com, quic_vproddut@quicinc.com Subject: [v1 2/2] drm/panel: Add support for Truly NT36672E panel driver Date: Fri, 22 Dec 2023 16:37:10 +0530 Message-Id: <20231222110710.19397-3-quic_riteshk@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231222110710.19397-1-quic_riteshk@quicinc.com> References: <20231222110710.19397-1-quic_riteshk@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: g988SAlTHJlEAOBN47ZB7clk4OGENDP- X-Proofpoint-ORIG-GUID: g988SAlTHJlEAOBN47ZB7clk4OGENDP- 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 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312220079 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add support for the 1080x2408 Truly NT36672E video mode DSI panel driver. Signed-off-by: Ritesh Kumar --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-truly-nt36672e.c | 644 +++++++++++++++++++ 3 files changed, 654 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-truly-nt36672e.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 99e14dc212ec..25ef55edeff7 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -817,6 +817,15 @@ config DRM_PANEL_TRULY_NT35597_WQXGA Say Y here if you want to enable support for Truly NT35597 WQXGA Dual DSI Video Mode panel +config DRM_PANEL_TRULY_NT36672E + tristate "Truly NT36672E" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable support for Truly NT36672E DSI Video Mode + LCD panel module. The panel has a resolution of 1080x2408 and uses 24 bit + RGB per pixel. + config DRM_PANEL_VISIONOX_RM69299 tristate "Visionox RM69299" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index d10c3de51c6d..913643ba298c 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -83,6 +83,7 @@ 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_NT35597_WQXGA) += panel-truly-nt35597.o +obj-$(CONFIG_DRM_PANEL_TRULY_NT36672E) += panel-truly-nt36672e.o obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o obj-$(CONFIG_DRM_PANEL_VISIONOX_VTDR6130) += panel-visionox-vtdr6130.o obj-$(CONFIG_DRM_PANEL_VISIONOX_R66451) += panel-visionox-r66451.o diff --git a/drivers/gpu/drm/panel/panel-truly-nt36672e.c b/drivers/gpu/drm/panel/panel-truly-nt36672e.c new file mode 100644 index 000000000000..bef5139225a5 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-truly-nt36672e.c @@ -0,0 +1,644 @@ +// 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