Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1243946rwd; Wed, 31 May 2023 11:13:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UOg9hYng1x0CLqie4ohwwyjo6MN5ZvO/9eWN/u0JiQxFhdlrFyLDQ0yj/znNRoLuFaw18 X-Received: by 2002:a05:6a21:3809:b0:102:f6f2:c962 with SMTP id yi9-20020a056a21380900b00102f6f2c962mr4583418pzb.54.1685556782087; Wed, 31 May 2023 11:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685556782; cv=none; d=google.com; s=arc-20160816; b=zeJR40zFAuFWkuCjsYwxhsSi59o+lGNEIskxAu7j4cAdJfdnTDv6v3XxPjqLj5MNiK hz4ASpz/sTImm6KXIZlRYKosmSKoPvj5ZWYSHOL6uX6B30lk6BggC+xW+Zk5Gbo7bEwh kZLUy6/11WN4FEm9rL7GD7K57/ZhOuTpd84Yc1/wTc/b+cWeQlfC5Q3XsQYq66YjlNx0 WTI7nObQdIoQforAAV9TyvsQu0p9L/tNRDrEAghKQ+RrKT9s5WBvP65Ds0Dxo6ddi9m1 eD1SJunh5eT+LKNPCMCgPACnXawzY3apWsZZKoPrMb1Kt6+Yri/CjON5F+6rLZfgSA22 rtmQ== 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=GfS47MlQhdnYLMdpeAhkwO0njbnAka46cKgfupwXxys=; b=dI+JitmnqxetwG8MT+bNguEkJKSkOvgq0c5B7rWXFE8VPcJDu1dOymYD1zk8nbFmcP 7zBMdentgVMvW4xIHxGqmB9Zg4NBAI/TeEXzRUN/k0bHQG0Y+aenooC6KK9j12OtbsCb ZkrjM5AU9UrbuAgxogNqe2P+ensR3YuJ7iTStDrMKD/BJr4QqpzAxUPtuDULIY805yZq WoDCs027lifuTHiI9BapSCzLePPjY6us5ySiYIbX590lEqQylu21HmQKMnvAD/NwzOpY IdL//3FB1RNoifWzdW9FX2awG5JmkI9E9yxEgyTUIF4f3O1bcZ2+4yjBO8lOoSdL+/wT 1ihw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mDrpxBvm; 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 e9-20020aa798c9000000b0064f7dcf4136si4038050pfm.50.2023.05.31.11.12.46; Wed, 31 May 2023 11:13:02 -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=mDrpxBvm; 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 S229819AbjEaRqW (ORCPT + 99 others); Wed, 31 May 2023 13:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjEaRqV (ORCPT ); Wed, 31 May 2023 13:46:21 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28D8211D; Wed, 31 May 2023 10:46:19 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34VEn1Wt009755; Wed, 31 May 2023 17:46:06 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=GfS47MlQhdnYLMdpeAhkwO0njbnAka46cKgfupwXxys=; b=mDrpxBvmDY3BWCM5sn6YSyPiaqTmYQEPyv9oVEomwZUYM0hMwaajC1ki8I4sjEjomBWl pkcO9UaV1Mw9IIu31OFW2KB6mIZ6XDZcQH5M+L5zzmhfAgQy1tbUP+YsmYfc3WaOb2en mvSRL3eH4r1XsRIAHY6/tYZjEf3j0lqo2gGQWg8+dZwDo17/UeaiOd6ivKYyEuGlw3vW FYrrWDjga+1ZZZ1Ca5bZzFzeRwPUjCW43D5k/ghxxrjCxqjs4dkMCPT/yL4/lzHdTuVq HJ0RSeUCGkacXdq8e5ZALMonWFleSfEyZoyaX1C0IBUrgWK3pxtJCU8sDT2R5ldgh/8/ sA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx39d17vb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 17:45:57 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34VHjuCG011521 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 17:45:56 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; Wed, 31 May 2023 10:45:55 -0700 Message-ID: Date: Wed, 31 May 2023 10:45:55 -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 , 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> <196a43da-1f59-6213-7c4f-2cfcb8d39b32@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: 1mWDBebI_cJIctGiH_cB116TF9dR3UR3 X-Proofpoint-ORIG-GUID: 1mWDBebI_cJIctGiH_cB116TF9dR3UR3 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-31_12,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 mlxscore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305310150 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/30/2023 4:12 PM, Dmitry Baryshkov wrote: > On 30/05/2023 23:09, Jessica Zhang wrote: >> >> >> 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