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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E7CCC77B73 for ; Fri, 19 May 2023 00:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231165AbjESA2q (ORCPT ); Thu, 18 May 2023 20:28:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbjESA2o (ORCPT ); Thu, 18 May 2023 20:28:44 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55D6710F5; Thu, 18 May 2023 17:28:36 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34J02avV003723; Fri, 19 May 2023 00:28:27 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=19DFBSqhpEDXFSZp5WLEpo38g3oeH02OTQZY0k9AIxk=; b=bR7TPLI4bBgdqokX9vjuR7BFZGfKmQpzvWWN4v/vPVPV85cRAsPIV5YA+kX+w0aZW9Aa e6urxGuLwBjpQ3Hltxw4gjVq9GnJ3AGvstPl4sOk9SZJ//T6C+Yd5YGfA2QpN3ZVV7QA Gq4X9wesehC4VBT2qW1z1M4f55nNkjw4U/NpCo4dktw6SWOKp3yx5RZlWlv0BcALQ9uK FQpBAPvTadB2I5Y4uuciVn6zM6Bk18d/KlI7A/tmkr2Bt52cBNbMEex9oVgXvk86zP3b 1fuA/Q446n5/TvpYQc05s6xUY7QPhOj6twO0GE0d0cg4nx2b+YxvrGVUKkflcnCEyiDZ 8Q== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qnwk4g2s8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 00:28:27 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34J0SQxL019839 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 00:28:26 GMT Received: from [10.71.110.193] (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.986.42; Thu, 18 May 2023 17:28:25 -0700 Message-ID: <5655f986-d6a9-24e0-a64d-92c454dd8208@quicinc.com> Date: Thu, 18 May 2023 17:28:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel Content-Language: en-US To: Dmitry Baryshkov CC: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Abhinav Kumar , , , References: <20230516-b4-r66451-panel-driver-v1-0-4210bcbb1649@quicinc.com> <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> <3cca2809-fa26-f0cf-2ccc-6737d150b43d@linaro.org> From: Jessica Zhang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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: aOL8P7EpUSyKic0f0ZPK7zLw73KphRz4 X-Proofpoint-ORIG-GUID: aOL8P7EpUSyKic0f0ZPK7zLw73KphRz4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_17,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 clxscore=1015 impostorscore=0 mlxscore=0 phishscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190001 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 5/18/2023 3:37 PM, Dmitry Baryshkov wrote: > On Fri, 19 May 2023 at 01:17, Jessica Zhang wrote: >> >> >> >> On 5/17/2023 5:19 PM, Dmitry Baryshkov wrote: >>> On 16/05/2023 23:20, Jessica Zhang wrote: >>>> Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that >>>> comes with the Qualcomm HDK8350 display expansion pack. >>>> >>>> The panel enables display compression (DSC v1.2) by default. >>>> >>>> Signed-off-by: Jessica Zhang >>>> --- >>>> drivers/gpu/drm/panel/Kconfig | 8 + >>>> drivers/gpu/drm/panel/Makefile | 1 + >>>> drivers/gpu/drm/panel/panel-visionox-r66451.c | 395 >>>> ++++++++++++++++++++++++++ >>>> 3 files changed, 404 insertions(+) >>>> >>>> diff --git a/drivers/gpu/drm/panel/Kconfig >>>> b/drivers/gpu/drm/panel/Kconfig >>>> index 29cf5fa39ff2..9c2c36dbddf3 100644 >>>> --- a/drivers/gpu/drm/panel/Kconfig >>>> +++ b/drivers/gpu/drm/panel/Kconfig >>>> @@ -766,6 +766,14 @@ config DRM_PANEL_VISIONOX_VTDR6130 >>>> Say Y here if you want to enable support for Visionox >>>> VTDR6130 1080x2400 AMOLED DSI panel. >>>> +config DRM_PANEL_VISIONOX_R66451 >>>> + tristate "Visionox R66451" >>>> + depends on OF >>>> + depends on DRM_MIPI_DSI >>>> + help >>>> + Say Y here if you want to enable support for Visionox >>>> + R66451 1080x2340 AMOLED DSI panel. >>>> + >>>> config DRM_PANEL_WIDECHIPS_WS2401 >>>> tristate "Widechips WS2401 DPI panel driver" >>>> depends on SPI && GPIOLIB >>>> diff --git a/drivers/gpu/drm/panel/Makefile >>>> b/drivers/gpu/drm/panel/Makefile >>>> index b3e8ba29edd3..e043a92ee676 100644 >>>> --- a/drivers/gpu/drm/panel/Makefile >>>> +++ b/drivers/gpu/drm/panel/Makefile >>>> @@ -78,5 +78,6 @@ 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_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 >>>> obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o >>>> obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += >>>> panel-xinpeng-xpp055c272.o >>>> diff --git a/drivers/gpu/drm/panel/panel-visionox-r66451.c >>>> b/drivers/gpu/drm/panel/panel-visionox-r66451.c >>>> new file mode 100644 >>>> index 000000000000..e3648ead3e84 >>>> --- /dev/null >>>> +++ b/drivers/gpu/drm/panel/panel-visionox-r66451.c >>>> @@ -0,0 +1,395 @@ >>>> +//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 >>>> +#include >>>> +#include >>>> + >>>> +#include