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 474FBC77B75 for ; Mon, 22 May 2023 16:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232364AbjEVQir (ORCPT ); Mon, 22 May 2023 12:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbjEVQiq (ORCPT ); Mon, 22 May 2023 12:38:46 -0400 X-Greylist: delayed 416 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 22 May 2023 09:38:44 PDT Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [5.144.164.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6977FBF for ; Mon, 22 May 2023 09:38:44 -0700 (PDT) Received: from [192.168.1.101] (abyk97.neoplus.adsl.tpnet.pl [83.9.30.97]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 5B2CC2010E; Mon, 22 May 2023 18:31:45 +0200 (CEST) Message-ID: Date: Mon, 22 May 2023 18:31:44 +0200 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 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II Content-Language: en-US To: Dmitry Baryshkov , Marijn Suijten , Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Caleb Connolly , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar , Kuogee Hsieh , Jessica Zhang , Konrad Dybcio References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> <20230521-drm-panels-sony-v1-8-541c341d6bee@somainline.org> <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> From: Konrad Dybcio In-Reply-To: <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 22.05.2023 03:23, Dmitry Baryshkov wrote: > On 22/05/2023 00:23, Marijn Suijten wrote: >> The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia >> 5 II always uses Display Stream Compression 1.1 and features a 60hz and >> 120hz refresh-rate mode. >> >> Co-developed-by: Konrad Dybcio > > Konrad's S-o-b is also required then I guess I should use the matching email, so: Signed-off-by: Konrad Dybcio Konrad > >> Signed-off-by: Marijn Suijten >> --- >>   drivers/gpu/drm/panel/Kconfig                 |  14 + >>   drivers/gpu/drm/panel/Makefile                |   1 + >>   drivers/gpu/drm/panel/panel-samsung-sofef03.c | 423 ++++++++++++++++++++++++++ >>   3 files changed, 438 insertions(+) >> >> diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig >> index 3f11e9906f2cb..8e2668153bce2 100644 >> --- a/drivers/gpu/drm/panel/Kconfig >> +++ b/drivers/gpu/drm/panel/Kconfig >> @@ -630,6 +630,20 @@ config DRM_PANEL_SAMSUNG_SOFEF01 >>           This panel features a fixed mode of 1080x2520@60. >>   +config DRM_PANEL_SAMSUNG_SOFEF03 >> +    tristate "Samsung sofef03 Sony Xperia 5 II DSI cmd mode panel" >> +    depends on GPIOLIB >> +    depends on OF >> +    depends on DRM_MIPI_DSI >> +    depends on BACKLIGHT_CLASS_DEVICE >> +    help >> +      Say Y or M here if you want to enable support for the Samsung AMOLED >> +      command mode panel found in the Sony Xperia 5 II smartphone. >> + >> +      This panel uses Display Stream Compression 1.1. >> + >> +      The panel features a 1080x2520@60 and 1080x2520@120 mode. >> + >>   config DRM_PANEL_SEIKO_43WVF1G >>       tristate "Seiko 43WVF1G panel" >>       depends on OF >> diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile >> index a4039d0fc9cfb..52dcd82e33120 100644 >> --- a/drivers/gpu/drm/panel/Makefile >> +++ b/drivers/gpu/drm/panel/Makefile >> @@ -63,6 +63,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams4 >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o >>   obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF01) += panel-samsung-sofef01.o >> +obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF03) += panel-samsung-sofef03.o >>   obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o >>   obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o >>   obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o >> diff --git a/drivers/gpu/drm/panel/panel-samsung-sofef03.c b/drivers/gpu/drm/panel/panel-samsung-sofef03.c >> new file mode 100644 >> index 0000000000000..2763e1c56b37b >> --- /dev/null >> +++ b/drivers/gpu/drm/panel/panel-samsung-sofef03.c >> @@ -0,0 +1,423 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* >> + * Copyright (c) 2022 Konrad Dybcio >> + * Copyright (c) 2023 Marijn Suijten >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include