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 9890AC7EE29 for ; Mon, 22 May 2023 01:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbjEVBYE (ORCPT ); Sun, 21 May 2023 21:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjEVBYD (ORCPT ); Sun, 21 May 2023 21:24:03 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C0A6CD for ; Sun, 21 May 2023 18:24:00 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so6385724e87.3 for ; Sun, 21 May 2023 18:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684718639; x=1687310639; 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=R1Kg71Yn7RWL/4Ga7NTwFSI9VJC5V2do2uEu4WZxPUg=; b=NtJQFciY39CIF37Gcjs9xEBE3HlfQIP5QpwL3E1TG2vc9RE1p4EG5kl71c07CiFbKl R++lGC7kl2gSPUrofNw60xxObMVEnW+xHUEpEltVFvhZq4uCy42nc/6SF1t0HFSmJz6A 6VTdFakJ30+Tvddk8XN70Yxmbd6dJto7352Vqtod5alFQZarerEruNinlzazOdCgJPEU tBXKDjbkfzBJsIUzp3L06dFPZBlWqS1aI/fhmqoj0XocbR4dJ8V6XACIXKsbOgRA2Hwq okfh5SNy5EXmdl25P30XJQsoQYzVuGnVZT0geRuGgPJxqvF4Ses2X4Tymy3g8Q3Er7PP +zEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684718639; x=1687310639; 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=R1Kg71Yn7RWL/4Ga7NTwFSI9VJC5V2do2uEu4WZxPUg=; b=Yv9dQbCx7bOXn2zM4IAvesg4AG3jineDC7UEdofoJWRftZogvwsSHqlNWv6E4lyHLz oKYOLZEbqZjPl9ARXrLGReFBCi86MSZQHt4vx5BvN+S7Q6CUDjH+jwa8DA/nHd24e1NH OGgQBaA79L4+oAp0pp9wwiL3EroGZWDfBy3KHkPBktZqP8bsSVDca0cMc1+cHSJwuFCh 843NsEYNJhFqoIDVWhK+uS4QjnrIcvOX7mbg+VAnoS/S3E8QjEO7WhFzYX1gUa9UVUBJ 2zRXt26yObpob66WrVPHLzz+1tuDlp9QZrY2E3Yf3j4U67Za48mtIv5J7V2NUaSkpp9k xbXA== X-Gm-Message-State: AC+VfDzlz0+HYXCtYjzlB/MPtY2ZN4rVutWrop6Vtbb0WiyXg9fRaz/L YUfmxEhrVhwyBzzi/tpSSv05PSksqJOFBi9ppi4= X-Google-Smtp-Source: ACHHUZ4C0iP34vrXSwIpxlIzUsOaKK7ZUyKuAru1LT3Dj8i38rTt2w5QQwm6UY7H8+nQmdOs/yEegw== X-Received: by 2002:ac2:5510:0:b0:4f3:b32d:f739 with SMTP id j16-20020ac25510000000b004f3b32df739mr2050410lfk.19.1684718638842; Sun, 21 May 2023 18:23:58 -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 r11-20020a19ac4b000000b004f252f48e5fsm796666lfc.40.2023.05.21.18.23.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 May 2023 18:23:58 -0700 (PDT) Message-ID: <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> Date: Mon, 22 May 2023 04:23:57 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II Content-Language: en-GB To: 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 , 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, 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> From: Dmitry Baryshkov In-Reply-To: <20230521-drm-panels-sony-v1-8-541c341d6bee@somainline.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 > 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