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 E2B67C7EE2D for ; Mon, 22 May 2023 12:57:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234017AbjEVM5g (ORCPT ); Mon, 22 May 2023 08:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbjEVM5d (ORCPT ); Mon, 22 May 2023 08:57:33 -0400 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB8E9C2 for ; Mon, 22 May 2023 05:57:26 -0700 (PDT) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-561a41db2c0so79763017b3.3 for ; Mon, 22 May 2023 05:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684760246; x=1687352246; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LUXBO0rbh+EQ+Hwq/PJXmwkqd/JJT6/GZ5oIe8Ihyqk=; b=pyU0N3/1E2I4DqKiflP6oJezbEvCGTFtQsjgw4w1SFeXKEVGVna/ScfaRYj9qVDNL2 C9EIDtjaj2RbPmq1Iu3fF5oAkp+G0w8UIcTwX7m/7aZcsSK0+HhSkogZWjjpJSMlh2IA uq2E6uxARUBTI2P4wJMt/BASs6vXU/tFB0BzcyoA2vd6V8iS0xdZ82JTAIeqmEliJaX2 FmQ5ri1am0V84QWjCejxI09Hl38ljE1jkCv7t+yZ0QQvSE+pTpk/m/ZPf3MbQIWzmD51 IkXGzQ1VsQ1vcKs3LlVoTH4trFn41zuZp6XeRSSdrJWvlurc1zI62kQY1URHr7/kJyNt ijbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684760246; x=1687352246; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LUXBO0rbh+EQ+Hwq/PJXmwkqd/JJT6/GZ5oIe8Ihyqk=; b=j2v9wVg3EYAQ1ht7qauysEEtV4pgrkl4BYw+P2YsiuUSMyUg7A4zGw4YrYyiAjqImA FzBXsk1AQJ6TApygsdeIwsFRUcTDedtTW0JHmmm41hjkh97d9xj819GhlJzqcwOI627N o8vNClvLfRZXxpdkByVZRvalKnRhEbGoeb3I1irbG8LXp3Jw07x0LO1Ks7a6PaZLJFgB lSgO2Hkz5L1H2RjuWOmkvWY4ob+Nvmaocxp84yRE6ru5ZeL16zT7EInUIS6iVCW5/nUC vfCWg1mFmh2K1Et07UstpRRUvCNGkck5k1XArvSHXY1I7dcH6clnFbNDGTjiQvqpZ4YA McyA== X-Gm-Message-State: AC+VfDz43tQKLBfEVh9vejpr8WIUjDzQPOjrY2U7jUD0m1nHE4io3JLl i34q+bKLXy8PllTeRd2lm05UaaE1xuQZC8b9pg2izA== X-Google-Smtp-Source: ACHHUZ7nCM+avx4oQBmZJMpFSowAaZ7UAink2GdFw+06vNd2TrSLgR73S7uKtIEruWA+UlmqfWW1PVkFa6wxDkNEurU= X-Received: by 2002:a0d:e886:0:b0:561:d25b:672a with SMTP id r128-20020a0de886000000b00561d25b672amr10951679ywe.21.1684760245841; Mon, 22 May 2023 05:57:25 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 22 May 2023 15:57:14 +0300 Message-ID: Subject: Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II To: neil.armstrong@linaro.org Cc: Marijn Suijten , 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 , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 May 2023 at 12:08, 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 > > > >> 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