Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1312715rwd; Wed, 31 May 2023 12:07:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YJCHAwUOzR/DKIFkq4FEBIlS8yxBFwjQZixIbCTBHxHLa/0pTa/n8JeKImGA06xlnosMp X-Received: by 2002:a05:6358:a083:b0:127:9d90:a1 with SMTP id u3-20020a056358a08300b001279d9000a1mr3047441rwn.16.1685560025061; Wed, 31 May 2023 12:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560025; cv=none; d=google.com; s=arc-20160816; b=KSfWqopOURbd2ib3dpBfPa9SSpsfzEh2owHqppVhtEgWCAZCjvU4WDQfoa0EhjQeGx 5zaR9AM2pM852JRDnanQAXKdM7VLHJn3ypdHh4VDwY+J3uSAPpL1oy0PkPHWqk8GvAo/ 34OX5F2RjAUkLLRQdNFM+eb5fH73cEt0r10uilZVPG5uZWyR6zXOuPP1xXIIP/GrSRr4 /3v+5xKq/MNDJCsFKVscuJPix0lNyGNivF3Jv2tgtKIkoTaOt4BaqNSCoeahRBj1eM86 KaKX0EL0/4bI790aik/mz0Aciy9gJjQzYsOYsX2tHWDQLmkoQNR5rGBh6whxLdZni7IT GvKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=3P0G16a9VG1Cz6x9YGlHH0O4jkuu8Ye9Q1SHEnTmmXQ=; b=M9/5Fa8Z2RSK8Xc4Z+Pi5Xa7KHsslYj5szM8/iX7el3EF1aZIc6wSPRUXglZceH5iU NCBTPvvVWh13EPXWUu5oYHjhBqRu9X9MXbbRq10KgeFdkCSqffoN0s43B+ilwo36iKBM joccYjHdJSHRuDJZtCrh0dV0+SH+NDuGPowNoglybL7Z95H8Ub2Xx8L/Bnuze5WoZkiz tNhWQ0qwvOOfu11YuSrIHoUpmiSUyCoRs2StRZt+n10+AeSOSZHwA0DBIH2t1TvEl1HQ SObHvSXLKnEV1asqiLP6LO4R0ASeNK9uzln/o+bTkoxisN4+AoS/C7/VosW9YMtu1ve5 LoUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ievc7ju5; 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 z11-20020a6552cb000000b00537c6c285a0si277913pgp.167.2023.05.31.12.06.50; Wed, 31 May 2023 12:07:05 -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=Ievc7ju5; 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 S229702AbjEaSNp (ORCPT + 99 others); Wed, 31 May 2023 14:13:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbjEaSNn (ORCPT ); Wed, 31 May 2023 14:13:43 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DC95135; Wed, 31 May 2023 11:13:37 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34VDdB8Q023894; Wed, 31 May 2023 18:13:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : date : subject : mime-version : content-type : content-transfer-encoding : message-id : references : in-reply-to : to : cc; s=qcppdkim1; bh=3P0G16a9VG1Cz6x9YGlHH0O4jkuu8Ye9Q1SHEnTmmXQ=; b=Ievc7ju5qiRN1gZG6O/PXDLjtM6ZzqOVkqRJaG3UjIUvnJY+gBw1yBo2JUyt7Quf4DLS U7SF0dKs1qbaPh9gVyKsn2W+m1a54kSQOk30y9ZRHj1SsptnIHfhc0EtdYje9CD5x89b voVM6cOnDlZVOa93Sr6OM/he39qU7GcZ1XATrPaPwnWpgZxBweehILqxOHusn6Xt30y8 654WtMYcuG6OoHs4HO6nyitITdWSZFTdsHtTQEZ883LcV0LEQEpdYqp0lekXpOnbWS1z wBBNVRD8+ZT8Xbxi2mXEHUbsIrZUv9kOmwCKvJoULrvCyQ1Fb5MXe1QIiGjTrju9RtvA rA== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qx0sbsmcj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 18:13:04 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34VID3tj003030 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 18:13:03 GMT Received: from jesszhan-linux.qualcomm.com (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 11:13:02 -0700 From: Jessica Zhang Date: Wed, 31 May 2023 11:12:33 -0700 Subject: [PATCH v2 2/2] drm/panel: Add driver for Visionox r66451 panel MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230516-b4-r66451-panel-driver-v2-2-9c8d5eeef579@quicinc.com> References: <20230516-b4-r66451-panel-driver-v2-0-9c8d5eeef579@quicinc.com> In-Reply-To: <20230516-b4-r66451-panel-driver-v2-0-9c8d5eeef579@quicinc.com> To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski CC: Abhinav Kumar , Marijn Suijten , , , , , Jessica Zhang X-Mailer: b4 0.13-dev-02a79 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685556782; l=13992; i=quic_jesszhan@quicinc.com; s=20230329; h=from:subject:message-id; bh=HZsEYyU7nd/qUNry7HQm9XJOjGKZRfalyrWvFOMLkQ0=; b=370BJUDO3e6pbj3KRsHa93XCGxtLDbEN6slSpKzzgZ3spIPSw1esto/A8sO3Bfhs9W6CFotzj 4dnjEDZxMlsCiuKSWIP2sIDbR8SBck824/BNzB5Vu7sykC/e6wNrT20 X-Developer-Key: i=quic_jesszhan@quicinc.com; a=ed25519; pk=gAUCgHZ6wTJOzQa3U0GfeCDH7iZLlqIEPo4rrjfDpWE= 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: x1SHZaX13SzFfXVVdwUa2dAyr9b9OdLh X-Proofpoint-ORIG-GUID: x1SHZaX13SzFfXVVdwUa2dAyr9b9OdLh 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 adultscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305310154 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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 | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-visionox-r66451.c | 390 ++++++++++++++++++++++++++ 3 files changed, 400 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 29cf5fa39ff2..1f9d57854ea8 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -766,6 +766,15 @@ 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 + depends on BACKLIGHT_CLASS_DEVICE + 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..00fc28ad3d07 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-visionox-r66451.c @@ -0,0 +1,390 @@ +//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 + +#include