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 AF42EC77B73 for ; Tue, 30 May 2023 17:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233266AbjE3Rz2 (ORCPT ); Tue, 30 May 2023 13:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232814AbjE3RzN (ORCPT ); Tue, 30 May 2023 13:55:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709A68F; Tue, 30 May 2023 10:55:10 -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 34UHsPtj030299; Tue, 30 May 2023 17:54:53 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=8Y/2JgpkJ6x4T6pUMTX9PFkSR0ZlrMtocgjiRNfUQ+I=; b=XsvwH6GXw8vUlJtikDzHYzpkw8vnRqYw4tEtmEcUpnAD3sejvU4L46rBMwNvyudntsDD U+IPn3ogc7KYqKtrDxfpfB04VhuXrH2qjytDQ0+Nt8M273+YDdMQkfpBlxGxUSkugubB INXd/sT0s4OJcP//wJCtAeubDOof5V+BPepLcKixHsT7h2jKFeotFczZknzGiMGsvECs XUr6Hqz2/8qGOK2b3gXaYFys5uxhluH6DD0STWr36pL+KlXbgCNPv4g7zPzJN7ceneVj v2wDIw0mwUsT0Wojmr8SftHT1b0GOtS+TCJ+ZH5MTtjM0wA45kGMH98XwcH84Qr/kMYE 7A== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qvv7nu0v6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 17:54:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34UHsqU3020458 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 17:54:52 GMT Received: from [10.134.70.142] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) 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 10:54:17 -0700 Message-ID: <00d30c09-d622-11c1-2e07-44a798659982@quicinc.com> Date: Tue, 30 May 2023 10:54:17 -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 RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3 Content-Language: en-US To: Dmitry Baryshkov , Marijn Suijten CC: , Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Andy Gross" , Bjorn Andersson , <~postmarketos/upstreaming@lists.sr.ht>, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , "Jami Kettunen" , , , , , Kuogee Hsieh , Jessica Zhang References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-3-541c341d6bee@somainline.org> <71675a02-0801-62dc-2673-4a0907636b21@linaro.org> From: Abhinav Kumar 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: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: MZW0XBke_CM3cyveuuOoLMbT1dgCVJho X-Proofpoint-GUID: MZW0XBke_CM3cyveuuOoLMbT1dgCVJho 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_13,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1011 priorityscore=1501 malwarescore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300143 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/29/2023 3:18 PM, Dmitry Baryshkov wrote: > On 30/05/2023 00:07, Marijn Suijten wrote: >> On 2023-05-22 15:58:56, Dmitry Baryshkov wrote: >>> On Mon, 22 May 2023 at 12:04, Neil Armstrong >>> wrote: >>>> >>>> On 22/05/2023 03:16, Dmitry Baryshkov wrote: >>>>> On 22/05/2023 00:23, Marijn Suijten wrote: >>>>>> Sony provides an unlabeled LGD + Atmel maXTouch assembly in its >>>>>> Xperia >>>>>> XZ3 (tama akatsuki) phone, with custom DCS commands to match. >>>>>> >>>>>> This panel features Display Stream Compression 1.1. >>>>>> >>>>>> Signed-off-by: Marijn Suijten >>>>>> --- >>>>>>    drivers/gpu/drm/panel/Kconfig                   |  11 + >>>>>>    drivers/gpu/drm/panel/Makefile                  |   1 + >>>>>>    drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c | 362 >>>>>> ++++++++++++++++++++++++ >>>>>>    3 files changed, 374 insertions(+) >>>>>> >>>>>> diff --git a/drivers/gpu/drm/panel/Kconfig >>>>>> b/drivers/gpu/drm/panel/Kconfig >>>>>> index 67ef898d133f2..18bd116e78a71 100644 >>>>>> --- a/drivers/gpu/drm/panel/Kconfig >>>>>> +++ b/drivers/gpu/drm/panel/Kconfig >>>>>> @@ -706,6 +706,17 @@ config DRM_PANEL_SONY_ACX565AKM >>>>>>          Say Y here if you want to enable support for the Sony >>>>>> ACX565AKM >>>>>>          800x600 3.5" panel (found on the Nokia N900). >>>>>> +config DRM_PANEL_SONY_AKATSUKI_LGD >>>>>> +    tristate "Sony Xperia XZ3 LGD panel" >>>>>> +    depends on GPIOLIB && OF >>>>>> +    depends on DRM_MIPI_DSI >>>>>> +    depends on BACKLIGHT_CLASS_DEVICE >>>>>> +    help >>>>>> +      Say Y here if you want to enable support for the Sony >>>>>> Xperia XZ3 >>>>>> +      1440x2880@60 6.0" OLED DSI cmd mode panel produced by LG >>>>>> Display. >>>>>> + >>>>>> +      This panel uses Display Stream Compression 1.1. >>>>>> + >>>>>>    config DRM_PANEL_SONY_TD4353_JDI >>>>>>        tristate "Sony TD4353 JDI panel" >>>>>>        depends on GPIOLIB && OF >>>>>> diff --git a/drivers/gpu/drm/panel/Makefile >>>>>> b/drivers/gpu/drm/panel/Makefile >>>>>> index ff169781e82d7..85133f73558f3 100644 >>>>>> --- a/drivers/gpu/drm/panel/Makefile >>>>>> +++ b/drivers/gpu/drm/panel/Makefile >>>>>> @@ -71,6 +71,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += >>>>>> panel-sitronix-st7701.o >>>>>>    obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o >>>>>>    obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += >>>>>> panel-sitronix-st7789v.o >>>>>>    obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o >>>>>> +obj-$(CONFIG_DRM_PANEL_SONY_AKATSUKI_LGD) += >>>>>> panel-sony-akatsuki-lgd.o >>>>>>    obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) += panel-sony-td4353-jdi.o >>>>>>    obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += >>>>>> panel-sony-tulip-truly-nt35521.o >>>>>>    obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o >>>>>> diff --git a/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c >>>>>> b/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c >>>>>> new file mode 100644 >>>>>> index 0000000000000..f55788f963dab >>>>>> --- /dev/null >>>>>> +++ b/drivers/gpu/drm/panel/panel-sony-akatsuki-lgd.c >>>>>> @@ -0,0 +1,362 @@ >>>>>> +// SPDX-License-Identifier: GPL-2.0-only >>>>>> +/* >>>>>> + * Copyright (c) 2023 Marijn Suijten >>>>>> + * >>>>>> + * Based on Sony Downstream's "Atmel LGD ID5" Akatsuki panel dtsi. >>>>>> + */ >>>>>> + >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> + >>>>>> +#include