Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4870250rwd; Tue, 30 May 2023 11:04:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QBDYkv0EXUAYSdHLcL1N80WpQY+mUXqp2+4V9vxgNkIb8vU35gxk8pbvedW0PAypMJtpk X-Received: by 2002:a05:6a00:884:b0:644:ad29:fd37 with SMTP id q4-20020a056a00088400b00644ad29fd37mr4246485pfj.28.1685469845103; Tue, 30 May 2023 11:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685469845; cv=none; d=google.com; s=arc-20160816; b=RRggt+X03DoesWj3e/YdrjaMWo1T60znItVs0qhRR1/aX1V0bTGIMxeP9OJ+PLi6gR 7zVy2x/DJoRqitjg3d9mZS9qCTLwo5TMfWTyIsm7ULVx5hYizHgZV69GGpriCtXhPiX0 GpsFuHjuhRTEXKfKuz8mJ1V54Kxi7BvvgVgszRbz4/rvQzY5KkT9M6dpsL52EmCfu/SG MDqbsvw2lHAdge7WhaH4fQk7UtgOD0lWYYqlqXViviakjGLY3fO3f0okuxYVV3dH4313 SYy+Of6KuAe/Z/0lOtRKrtOhzle7T8ZuCkJgb5uCOOJ4d+tp2qM+FYfwaIEgarrfknTL C3Ag== 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=8Y/2JgpkJ6x4T6pUMTX9PFkSR0ZlrMtocgjiRNfUQ+I=; b=HvJfj9iyw+85fyAMxY3zuXpBtcoKO/C+COoWcnC8Zaf2uyktGWv6JFEBPRUf4weLwz qwY4jD5ADWqp8B7PVgOkJ4rOibpoEaat+3/jU6kdTK8zKV5dohYaFZY5AqhzuXMJlOl3 4MQULDmxG/NPjUyE782AA595fwB8M/3zmIP7yqavypzCFXlzs3H2YIkSwjEHevLoelhg dAHTy4DYdj8Oqh5Gv6E47bEaf6flaVy7hHFfBA4wGB02D8BQikGYF3NheEykldYCjPYT n/OTLgWezrStxRrZv5c6dc6JFZZG1zsMc0eY4rRLR/ap3vFvRiBRA29T4DAg5B/7qHO6 hjaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XsvwH6GX; 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 y8-20020a63b508000000b0053f477a4659si9024370pge.320.2023.05.30.11.03.50; Tue, 30 May 2023 11:04: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=XsvwH6GX; 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 S233233AbjE3Rz0 (ORCPT + 99 others); Tue, 30 May 2023 13:55:26 -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 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/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