Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3686531rwd; Mon, 29 May 2023 15:10:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Pm9wksByn+S38A9BJYNocw44wRkCQ0CrrxYixOMspO4NYos2UbE0aJLwtC3TOCDcEwbYf X-Received: by 2002:a05:6a20:4290:b0:10c:5802:fce4 with SMTP id o16-20020a056a20429000b0010c5802fce4mr336153pzj.48.1685398226259; Mon, 29 May 2023 15:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685398226; cv=none; d=google.com; s=arc-20160816; b=SlToToODCY+0uY0zOC93wzqjIQVFtwC/Y1HMm7Y/cmBIgn8VKOynfPqjxgm/5rDZr4 Rnp3XHgVNBe9boF4YzVETc75Cif5IbWCwXZJAHl5gnpc5Dd7qqJHQ6844+sMDljGsiww T8zq/Px+bMwgVgq73pb7sInATw/rlR58FSkxLZhKBXJfDdtOBfXb7HuGUSIHUOQ2wz/p BJkkGpFDxnwUpg2SV+7k9Pxv1DytMw1XGTz/sdplyCTMRydt5Ng5PIzcH4ERq2MjzTYr 96zj71ZRVkIg8yaBE00lv2Lj1WsqKU4mxvCgUnFOj8i1RhGHczDSIfzNr1uty1QYMAlk hISg== 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=1tP+eQP4nj66STdfWsRhOCtkWRNYGsG+AA9qlZc8VR0=; b=DuLkEkrh88skmRreMebau0nltdpe/NpGJuvkx+1g1Il2PUIZEvdrl3dSAqncrOSvVk WFy5C+oNxhmzgOrl1TNEySCtRN0s4Nzrruy6ZMZr8mRkH2F9lUjLnGD4lSCvYGpEnUYO nyD/uoJkjvdyPfh2jFY31I2cwWD6ZMxJwN5+MrrO6G6whkdrMTzMHEF15A5uwHOxrBdm 3xWpAe2qPaxHjaZQRLb8ablaUKBl+HjiPoWORWIdE6+Qg4j8gbRcVrqWE92MRro6RjYp YRW/Z3jSpD5iwUt+bU+V46CIefH5yUctsLlE4EUFxEEr/IvkZBD82QqIrdnFFLjkZYhr BG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RpvRQB4/"; 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 l190-20020a6388c7000000b005132342a587si10012828pgd.610.2023.05.29.15.10.13; Mon, 29 May 2023 15:10:26 -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="RpvRQB4/"; 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 S229718AbjE2V3T (ORCPT + 99 others); Mon, 29 May 2023 17:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjE2V3R (ORCPT ); Mon, 29 May 2023 17:29:17 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE77ED9 for ; Mon, 29 May 2023 14:29:14 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2af7081c9ebso39297561fa.1 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=HLRs1tFhz7WYbToae19wiQOdQldp0DdeXGRwjMKK4wy6UTha9imbqrVKy6+5Jz3MUW vMIkKDZmY5zPj3qTkqpmIH/ut5fprO4izVFHn1WWL+Gwal6S6hUzs35VZeXN2HkNx+1C fUpKAlLPu2rvx+LK6DqtjDKfpSxq5tJdZVso02gmDoMdlxsQZKz0RC9b7zWigAImDyMy eqJDPWlDx/Zl0bs7RYQKjjge6CK0zTLCGgwMVJSlzcCerSN0TBC9rNeCQfOTopk7voMp 40yYmWZjQ5fA91Ifi2QWDg6DcjHa81SgCZeetGfobzWmcvgZ/ZIG5Xnlq0LuFCqt4R+U OR/Q== X-Gm-Message-State: AC+VfDxPBq79d80fJxm0VkyZuaJexj5xjvnXWD9aTHe6FmoMEv5hWJDg N2/KF411Oi6ERiSJ5IS9DckUEw== 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 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 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 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