Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2323087rwd; Sun, 21 May 2023 18:37:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7OFCmcmXpMK8acPekaauWO/gwR4ZRWkb9OWNoShYYgCyIZzP4n0oz+/Qw/OOHDFk9BosLu X-Received: by 2002:a05:6a00:2183:b0:647:1cb7:b714 with SMTP id h3-20020a056a00218300b006471cb7b714mr11345848pfi.3.1684719437476; Sun, 21 May 2023 18:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684719437; cv=none; d=google.com; s=arc-20160816; b=EkO6k2SPfFesXF2m/0d179jB5q9uUJGmBBTf3FGMSnHtyQci1GxY2NBq6RO5WZrNd3 28XtqLNUYiNi5IPDEps6WUek7A/4r7Myvzm2qS+a4hU0JP8OWYr4Z5RFAcWchYQHDm7m GnJY3cQ85CfGf/ESi/8olp+/pCcTYFSZVmRD77WdAxj6qMTs4fph9CoNpjiO6Wp6l2Rw Rvm4cjg2KWGfPEI/gXRQvA3UJZseO17Wh0tF+tBeENgUVBVTjz4mTXXZBMtmhmyrt4jq V5hYKRzw5UsK5B9Mag8XVsJVeJFg+e7zYEkcMTErprwiYi+/IXWNtsbw4YRemz+w4i/T WFSQ== 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=R1Kg71Yn7RWL/4Ga7NTwFSI9VJC5V2do2uEu4WZxPUg=; b=KX0YT0oczR+/ri7Yn6fCeTSWYaGU7jiCxuXKXmn8nvOYenrBhQfpU3yeJ0Xkq1sd7C o/qFLHhHeCtZgY0qXSOL1/DPHmpUY9CPSEuvHD1aTH8mSaJu+ANH9AlOBOSXSQBJSZT8 cET+C6ovaB088aAx6xQBVJ8AlqGnvKqOZEotu1jHlV514bFOFxJHhDeNxDS5Cg8OHXBi jv4rZ2ZyqsAKvLGo5+C/ZmVa6SYsQ+4XFdf4HQojOA0W0nBYpcNvCWzehmKiDVW2Lf1N LzhtNk3ZiCakgngq+UBFcxFf6LSd+r913ilYEZHs0uGQtLucGi0fdiI9qLEe8n2RtblD XwEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NtJQFciY; 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 i28-20020aa796fc000000b00640d9c06df3si3798637pfq.329.2023.05.21.18.37.05; Sun, 21 May 2023 18:37:17 -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=NtJQFciY; 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 S229893AbjEVBYE (ORCPT + 99 others); Sun, 21 May 2023 21:24:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbjEVBYD (ORCPT ); Sun, 21 May 2023 21:24:03 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A167ACF for ; Sun, 21 May 2023 18:24:00 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f3a7241c0aso4490309e87.1 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=GWTJg/p1FHTmihMC8CFgkzonyInOYbrRgguKXmlWaI05cAHwwkYprXlKDH23I/ukMP Qen/YivkSsZ8FTYOrZkhAjgqT3V+UVpxRgsXTChKs8/wgabCWfKn95UjQWYQdiD6U4G5 OghzDJWVqBQ+05FqSB5Dm5qDRYZ+N1fbSUFG/VJ2GgZJmPS7CGYZIyMpmlCwJ9bpVhwD S7e0llmKx1t8A8XeLyxJvGYrrD6YaO0bpCzl3d0hXgCKZh+DmZ2ckEERpV1Fokcxo/4a ISq0M96ogwp8WpmNLI/y/4L8Mwf4rfMmarpWpNaPQXwAd5i9CtxvrBxRaIcszCH5CRn+ jeEQ== X-Gm-Message-State: AC+VfDw0VqtTmAdB6O2MkD6tm4nptPUJRtR/waaY0RKQZTVhQzkA9UKB N0oS1Wzt2kP9sPSP95yabv1d0w== 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 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 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