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 C2BD1C7EE23 for ; Mon, 29 May 2023 21:29:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229720AbjE2V3S (ORCPT ); Mon, 29 May 2023 17:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjE2V3R (ORCPT ); Mon, 29 May 2023 17:29:17 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4DBC7 for ; Mon, 29 May 2023 14:29:14 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4effb818c37so3973884e87.3 for ; Mon, 29 May 2023 14:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685395753; x=1687987753; 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=1tP+eQP4nj66STdfWsRhOCtkWRNYGsG+AA9qlZc8VR0=; b=RpvRQB4/tgFRM4lrHXftUQdDjkDTqeWnpijBUtx+6jS6a4CrLL+9WRnE7J2ET7B3zJ 1eC6y4uZeYEurDsJCyz1vLZXNKuB1MrySAg4reZ82c9MTYVjZpk6Ok9OA4Aa3MHwGQsk L8g/5ITpJSmUMBKcc91W42DGabBfzU1ejinUNSvU05ZthyxMqB5drwhNMKA54elKaCXX U7FVYnsaDoaQ1pj3+ZvaKsmRMUt6/pZOxadGfGes63nsQnuygntbPFjrdBQ8kMwO2EC5 MojI0eczbVBB73qZimN890TRr2ULk+408vnoB9CmudeDRuGwud+J0ogdViEnc8jGE2xy TXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685395753; x=1687987753; 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=1tP+eQP4nj66STdfWsRhOCtkWRNYGsG+AA9qlZc8VR0=; b=MvSHAY36/gPjFhBkmKz5mg7vYW/vtnOWAqlbi4U8uP22wCf7CdjHrp3L2bFnKwBRqg +zTCZCaIR7t/oVYm5Qp5crC+n516HxmyGFdcjNoyYpOAezD6EUri60046dudqoRZE4i2 LPS3o1II5eHi5TKzyooBuUPvrKAm+/jDex2UhMjVVUips1SCk6ROF74O3G5g6wKL0m73 qC6vJblNeUFn0bTzRJiYMin/Albk1TJWd/zwdI12r7NMjA6mbwASICcHj+iOsM6bt+MS lZSjfndtBZ4A+cWyHcv0XU7ARJrdIhCqFts608mZ7+c0c8NCtKfTG8OG+kjFIoRHEATy gcrw== X-Gm-Message-State: AC+VfDxZV5rzPUuHRC7efPrRLx9KQp+c0eZBqN5Q9JNN1ecJAAtd68Yo yla7vskeQpnUecdXIut3kGWUPA== X-Google-Smtp-Source: ACHHUZ4tJ4GfnkK3+9x8CK2zWdSORd+/GdUc0nHT9D5g4RHxWPOidUcugOtdIHmNS87RTlbAsC4GyQ== X-Received: by 2002:a2e:9245:0:b0:2ad:999b:3bd7 with SMTP id v5-20020a2e9245000000b002ad999b3bd7mr3901708ljg.19.1685395752920; Mon, 29 May 2023 14:29:12 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id p14-20020a2e804e000000b002aeeda05382sm2612785ljg.29.2023.05.29.14.29.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 May 2023 14:29:12 -0700 (PDT) Message-ID: <80372e51-e72f-e70e-c205-8bd79ad57515@linaro.org> Date: Mon, 29 May 2023 23:29:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II Content-Language: en-US To: Marijn Suijten , Neil Armstrong Cc: Dmitry Baryshkov , 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 , 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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 29.05.2023 23:21, Marijn Suijten wrote: > On 2023-05-22 11:08:12, Neil Armstrong wrote: >> 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 am unsure what to include here, since Konrad originally "authored" the > commit but I believe it was nothing more than a completely broken and > unusable driver spit out by "The mdss panel generator". This needed > enough rewriting that I don't feel like giving it much credit ;) Might have been. I won't be mad if you drop this! 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