Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1634492rwd; Thu, 25 May 2023 15:59:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nJg1Q3ryy6bKj0tFSvt8pB2Nk1zG+JD1UJGDtcdf5Oy6MTX8UnI0H4/WTS+7IovnzTcRg X-Received: by 2002:a05:6a20:8f08:b0:eb:e2eb:d7ec with SMTP id b8-20020a056a208f0800b000ebe2ebd7ecmr29152052pzk.17.1685055570269; Thu, 25 May 2023 15:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685055570; cv=none; d=google.com; s=arc-20160816; b=GqblFPpB83i1clY0Us77YDnjvuvo1lBobk9FzHr/OmzArkTAzdoNYUyV35yh3ccv9Y wQOsQWwGW6LwIyG/wmrWUVTRpMq7X0xKQULuzYNe5TqqmSvkdP3LqAfM4cY22721AKx3 L/giqNwLNIrjkbVE8jFlm3rL/rn0ubBtm+M17XHfEgyTo23dla3LwMm5ICmM/hdpYsa+ zsEYjbvPyKq7zpinffwuhQ3KzfYVh32uE4NU4EzH7HPTsGrzJWG6KawIBhUrhwAOij9R OdLUSQZPcxVy/ocYBwUoJilTjgZpc6GIzufZ6U/x+DUdk43SEs7YQbP+RxjvubSd46yF aQTg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=T55xHer2V1gPTZVY0kGfyW8IZBUNGxw8atd6rU4rjME=; b=JXQ8L/zdzvMJaN8aFQ4Pg1NdwLnaDmqkBG8oT3d8Flqz5K2g5HAl1Kjtp/vys/CkeK QAMvhRLTc4yQjOB5UOUmcnFiSuPcQZYiwp9nGdrcxFGupeejucT5hhPfkdTdpHpXtMTI nSW8Avs3x3E3a3mAdyEyMYOmdkSKxaHNL8t/T4OwHF/D4obN4QemrTNKGOCj1uDgkhaQ 7LgTzrx5D7jQAWeivkg0AZSe5O5tGDO7h8Ro8IL33xMDTRO17/uNRN++C+vZ6EjsAFeh pF6BeJqSVngjRCJXXy7lHL08qB6SIopZzJgNmuAlKxLzlBpmBhNuUtqzdQ1d1TFAoAIA RBEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=H9xk2lxC; 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 bs184-20020a6328c1000000b0053f2747f951si2169987pgb.232.2023.05.25.15.59.16; Thu, 25 May 2023 15:59:30 -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=H9xk2lxC; 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 S242112AbjEYW3P (ORCPT + 99 others); Thu, 25 May 2023 18:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231964AbjEYW3K (ORCPT ); Thu, 25 May 2023 18:29:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4D819D; Thu, 25 May 2023 15:29:02 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34PMBRD1008118; Thu, 25 May 2023 22:28:48 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=T55xHer2V1gPTZVY0kGfyW8IZBUNGxw8atd6rU4rjME=; b=H9xk2lxCYr1Z/G3lu+hN5cfmw/aXlktXzFKSjJfPfYaYL7RQIceXvpi6MyXdqN6Fp8Tq /Xf1ihWpBuN5K/i2P4YjbnkNNJj7zCqMXhsBAJR0t9+M1pruuqGY6PE2AEl60JLE3Efk lrhen9GAcT0ILSAWNqx4WP67C8X1c2xajbZfY+38NHXQNrzU42BXH98fkTxGEjf+Kp1N tJ0wimyy5bI/H0IU6aRCUVV2jD7K3dU1Ad1CiwkfjgP/9frYq0LFOIbM1PS4qCQwl8l0 S4yIQUqPhqP9ytQiLoaMZiRzaXoDAOY85/lKzelF9z2l1GODY7Ic4zBp2oPPWfFiWzTV BA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qt5ufsdqq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 22:28:47 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34PMSkDE002316 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 May 2023 22:28:46 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, 25 May 2023 15:28:46 -0700 Message-ID: <9d50bc4e-e747-47fa-03cf-4dbd33f778dd@quicinc.com> Date: Thu, 25 May 2023 15:28:46 -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: Marijn Suijten , Dmitry Baryshkov CC: Neil Armstrong , , Sam Ravnborg , Abhinav Kumar , , , "Rob Herring" , Krzysztof Kozlowski 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> <2d9d7454-0e7d-b6f2-93ff-9eca69380e47@quicinc.com> In-Reply-To: <2d9d7454-0e7d-b6f2-93ff-9eca69380e47@quicinc.com> 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-ORIG-GUID: LgdKqhXyjX6yBn0Hb1l7Qn846YNxKYdU X-Proofpoint-GUID: LgdKqhXyjX6yBn0Hb1l7Qn846YNxKYdU 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-25_12,2023-05-25_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxlogscore=999 spamscore=0 bulkscore=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305250190 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,URIBL_BLOCKED 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/23/2023 1:33 PM, Jessica Zhang wrote: > > > On 5/21/2023 3:28 AM, Marijn Suijten wrote: >> On 2023-05-18 03:19:49, 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