Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3249691rwd; Mon, 22 May 2023 10:42:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+Fav/fu9Fe3rpU5ixCbRqFAJEB6VZFrzWXqbTMOwRXgrcTuH9mK20L5lKsWPFJKHrheDB X-Received: by 2002:a05:6a20:8413:b0:10b:bad9:1d31 with SMTP id c19-20020a056a20841300b0010bbad91d31mr4377862pzd.26.1684777351801; Mon, 22 May 2023 10:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684777351; cv=none; d=google.com; s=arc-20160816; b=yThEBMllVyMTDIdg03vdIOzCv1A6bNuRfp+UEv+O+yOP3+6YBCPpvujxrT4oxODE23 2qcKcTPRUo9ecB51ivKd1eXNdpFVCrjE7wpVKlEDqW8t5lo4BhY/bvkqT5+ESQY95pCw 4clCN1O03XdDwunyJ7iNpHfaHQSYtMcFqUTNdbsMjHtFZg8ALKnoRUnOXX6cckgHW5d1 d3Z9qgtVOIHgqIyCGHVPLxzh+vQ4bAo52d2TxbJmwkw0ZYHyH4GBg45Jcqgb5XUh+aKr xY28ZvIcjSOPGK6yAK/7njx6KlAnRMIRaRGJWs6jTAWgSWGoUwkxabrBRbeiVcqrAInI f5hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TtmtvVPbnOWlC8oU/OPGhpE/2+YBWXHxRx1A5gYwiJI=; b=DUklNK2SmlSUM55ns2zqRK9gssT3JjLRZVXDqWVom4GJZxb5JU+TfjDjwEZU1Avt6/ +W9tbZLR0OUy3grHIESXZ1rPJJMiGu2jr7XIvzgozEROA8PwiVKlc/3SKyNM6Ih0OsGZ snGGqdYWxTvEuLXUq20/Pf44OLFA68lu1hcbrDPvIOl7fewwFPFh3axH2Qb1Zq6hjFH1 NPPUL18MtJgtlQVCBziwL2OF+opJIainPxYyiNsdsiTE0R4Pt1UiT0OHl/Z8xno8b1NN YGERkAzh1yLJChc75AzBbq1f/xg5kLtVQfAmib7dqz5O382DjuDqu0btqkwh29IeU43e E3/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TMT0nZgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a637e16000000b00528cfd22852si293958pgc.178.2023.05.22.10.42.07; Mon, 22 May 2023 10:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TMT0nZgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbjEVRgP (ORCPT + 99 others); Mon, 22 May 2023 13:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjEVRgK (ORCPT ); Mon, 22 May 2023 13:36:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 783901A8; Mon, 22 May 2023 10:35:43 -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 34MHOpOa032667; Mon, 22 May 2023 17:35:10 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=TtmtvVPbnOWlC8oU/OPGhpE/2+YBWXHxRx1A5gYwiJI=; b=TMT0nZgAvSZCmOQHKk3IqPulUKfzJCAYded3ffI9XtMmUZeDDhAXY5tHuTi9fPdCuyNM 6FH+YcJLluY300zcdbwJf6AosGOYFVMdSsEN9n1I/7fMFEscAwiS3rBobAAte7ZCGgTJ +UatK5pus2Ib2StIKCXHeaGYiyN6MpfDkVisSiAyAdtC8GCD5ERpKwRbK4/rGf85i+fD priT1cp8GDGzIIr2g/QNuWAMjPyab0v9Jgv71l194Y4440ZHOkVl7tad1dgjM8kxSKSe 4nTRDYHiHyq8bbcbfIDA40Z/lKcZCnvn8SWD/lor8X5VJxGCfgLao+yC4SZzXsDI5Frw fg== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qracsgecp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 17:35:10 +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 34MHZ9cS003171 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 17:35:09 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; Mon, 22 May 2023 10:35:09 -0700 Message-ID: <1c5276bf-e885-2d27-df46-f62c4e752da5@quicinc.com> Date: Mon, 22 May 2023 10:35:08 -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: , 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> From: Jessica Zhang 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: Hfbxoc0Z3ZOn8yU93xNDFQP15sLMHGvp X-Proofpoint-ORIG-GUID: Hfbxoc0Z3ZOn8yU93xNDFQP15sLMHGvp 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-22_12,2023-05-22_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 spamscore=0 malwarescore=0 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305220148 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/22/2023 2:09 AM, Neil Armstrong wrote: > On 16/05/2023 22: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 > > > You may also want > +    depends on BACKLIGHT_CLASS_DEVICE Hi Neil, Acked. Thanks, Jessica Zhang > >> +    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