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 300D0C77B7A for ; Tue, 30 May 2023 20:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232841AbjE3UKN (ORCPT ); Tue, 30 May 2023 16:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbjE3UKJ (ORCPT ); Tue, 30 May 2023 16:10:09 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F8EF3; Tue, 30 May 2023 13:10:06 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UJcaaA028042; Tue, 30 May 2023 20:09:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=DspGUgwT1jG0ajy7gW27kw6dbURMrFI7moQ5vgpDCYo=; b=RmO47VeTsf9yFf91RjiqfOng4E2s+EixDmrpMkCwJO7AlZ9tVx7RiMLAlFUGuHxoWjCU Sii5MyVn1mg7PcaIGFWaatybI85SmA73V57LgRfDCjnj3N5jUsNm280wp8NJ8jzodWct Zvnj7eJO3X+7N5Ji6iS47P86m9uWp7FJzJV0DgS0CcIc0GNDUGPlDhY808xcIJ4UV/5E MbYgU2mudQnafTBu1fQKMrvwzS5haQsbdiLIa3z57OQ7ef8Krou6YvKREkTiTGZfnV87 SDojU23cxIXNIU925gCRoH2dAdFYOWeUCrRT1j2PtN+YIV+EdEZckRIOnI2/Jv37T0Fj vQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qwava9u5r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 20:09:53 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34UK9qd9018053 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 20:09:52 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; Tue, 30 May 2023 13:09:51 -0700 Message-ID: <196a43da-1f59-6213-7c4f-2cfcb8d39b32@quicinc.com> Date: Tue, 30 May 2023 13:09:51 -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 From: Jessica Zhang To: Dmitry Baryshkov , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski CC: 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> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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: zZURWzNyCv6IO9Pz4Sp9AWnwbu2l-KdF X-Proofpoint-ORIG-GUID: zZURWzNyCv6IO9Pz4Sp9AWnwbu2l-KdF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_14,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxlogscore=999 impostorscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300163 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/2023 3:17 PM, 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