Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp70855rwd; Tue, 30 May 2023 16:26:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4W/ul/sRJjJvO+TSjNCKrV4wqC8YLAzvkSIColk8I/HyqxhwBXVatg41JtCSLcYMrpAIU1 X-Received: by 2002:a17:90a:bf10:b0:253:70b7:18d1 with SMTP id c16-20020a17090abf1000b0025370b718d1mr3769740pjs.34.1685489161368; Tue, 30 May 2023 16:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685489161; cv=none; d=google.com; s=arc-20160816; b=DetU7K7woSl1HnxQqfgYBhnHY+BFssSGrs23QZO0t+NH6zZaY4j7X66EPlj3W61Sn0 5okHu8PAGCJW04jsICFAtjFqC6qSWX/6e7Fvov4MSwXJ3rg7i1E4DnKAx5yV0n+pEhIr 7ecK8VRBwDiiNBrsElmie7n9U4yX90ZHodXG7x3dS6d2wSmM5y6T7x40i+3CnEez0GLM NSGW2NC0kaleOeOkxF9db4tA4jCjfHzXwDSYhOAigwR20JEfo8LWACyAqdpUOauHGoNu 6p6EGUH3D/BHMXTCbO4BB+bXHarhW0dRt/0eWR4dqRFTYCC48u3+hrpN+2P6RvP2SUFp C7SA== 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=eHug+pro+MudY8ybS89ytrVKoFyLIO/xxLOjL/J5B4s=; b=qHeWqv70huLfs6r2F20diPvkIOfF3nEnR3LkFXJABDPs9JfCqikJVlvxYNyWOWyAgk 2ldlGJ7GrcB/8pbNtadsruIdXv7W9y0u+5+ZibzS/ZJSVvT2XQidi0zNK/ngwhxWTAJX KkqI0quyefi/VbyhUgrzVe3dSGibozcuztP7LJIditBxntoA1zea/LFs+ktR93yB1wY5 3P3kRMzclaMb/FPaQUEzGEHZ3V+Kpnlmg2oiwhQH4ALz/I/g6roQEzJirAvRKm4twtYD GUxZMzuyrUT74e9xPrOOqfst7q3kUiklEX+OmTZeLqjLmWoFYdCgx11K6875gOeEZ93s 7oEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fgn3hn4l; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a17090a800100b0025357108059si5233118pjn.44.2023.05.30.16.25.47; Tue, 30 May 2023 16:26:01 -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=@linaro.org header.s=google header.b=fgn3hn4l; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233513AbjE3XRH (ORCPT + 99 others); Tue, 30 May 2023 19:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233804AbjE3XRA (ORCPT ); Tue, 30 May 2023 19:17:00 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103FC10E for ; Tue, 30 May 2023 16:16:54 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f3b9755961so5719534e87.0 for ; Tue, 30 May 2023 16:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685488612; x=1688080612; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=eHug+pro+MudY8ybS89ytrVKoFyLIO/xxLOjL/J5B4s=; b=fgn3hn4lkIINQIXKMizqRgo170331xYzH2+DVvgmQGdwBas6TztlaAQuDCEhuF+D8f 5Z98EekG+maUBzB65LKaK43z/9oEORo5Iksu5Fwypow/Ss/wsUnZZC+xjM187ojn5mWp 89t4Etr2oXJ+Vx5+KZhJ49iya5SkYq2aPs60kl730tFjt+cLafG5gcLaJ6b6aHszXev7 cdVUPHMdY3swZiff0Mt/neMyVcwbHVO0RVkNYYNHKJGm4cy2fxrHsDHKpXWM6ey3aBz8 pTV8qe/bBNE1MC4kdXSsMi7JBIfDbmHiC4gyJ7epIb/AoMTolIrOEHd7d7gV34CJQeT+ aGlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685488612; x=1688080612; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eHug+pro+MudY8ybS89ytrVKoFyLIO/xxLOjL/J5B4s=; b=Be7R3s7Vl6msJArVcMOLAaYM+A2cfg6eS8vubjq7Ufq6C2hW7V0ei87XTRBFb07Kao fZU3PJxgJ66pQguGKE/n2OnL5SOJ69W/DGoFJ5fzorCM/qcuLbgf3JJ5ZOMxSerk7Mtx 9Xw7rKPoiylwX+KpqvUURUoF4AQ5ARbWOHhpLScc2ehDrqUc4BAgKE7UVrOTxjjJDgY+ 94kfQCRnBR6qu+zW4JjGas+gcaPdVo3Tkzi38pk2fOnmnh4VR4i9qFgLOP+LM9f0ubTh iezTs1hK6g4aAekJWFZeU7CJhRId8214UU6aZPZlCLp8zkTCeNuS9rYr8R9V1dsjOJib zExA== X-Gm-Message-State: AC+VfDwTK0U814FWXu6Mh6A7QqfLXDfFrsLNHRH/8zPyGdcEmX3IjwR6 idfD/MSnlWsrXPt5QczZGTvszQ== X-Received: by 2002:ac2:4c8c:0:b0:4f2:5338:d0a8 with SMTP id d12-20020ac24c8c000000b004f25338d0a8mr1786464lfl.56.1685488612235; Tue, 30 May 2023 16:16:52 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id w13-20020ac254ad000000b004eeec1261ecsm482940lfk.31.2023.05.30.16.16.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 May 2023 16:16:51 -0700 (PDT) Message-ID: <1160ec55-2ce3-cc0e-3b59-5fec1f1e5809@linaro.org> Date: Wed, 31 May 2023 02:16:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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-GB To: Marijn Suijten , Abhinav Kumar Cc: neil.armstrong@linaro.org, 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 , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, 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> <00d30c09-d622-11c1-2e07-44a798659982@quicinc.com> <2zwamlkhtcuu3c7lithcipb3h46gjg7zsefnhdinmsjwkjxrcc@jbj7ak2mdgeu> From: Dmitry Baryshkov In-Reply-To: <2zwamlkhtcuu3c7lithcipb3h46gjg7zsefnhdinmsjwkjxrcc@jbj7ak2mdgeu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 30/05/2023 21:13, Marijn Suijten wrote: > On 2023-05-30 10:54:17, Abhinav Kumar 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