Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2932014rwd; Mon, 22 May 2023 06:30:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kWrwW+zGf2AYeHk+5x3bv4jiKX1XbsiKS7w+y9Sa9evAikDZrQzI03Qappxc0e3apkF7+ X-Received: by 2002:a17:902:9a02:b0:1af:b678:5166 with SMTP id v2-20020a1709029a0200b001afb6785166mr2766198plp.13.1684762219093; Mon, 22 May 2023 06:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684762219; cv=none; d=google.com; s=arc-20160816; b=brQRYUx320my1yorTgCKSnU6QC9Fmbq4pAKbji4FLZ84GJUy1lF81szHbbC8yPIe4V F74pxARHswt1JLbTFvsQ0Mg9EvQDe/qAsn8aMJyUs5/SQnvkcIAcJ7jeFcbd0BLQJFM+ uFcGAKepClCjXdVi6w0hM8Kq8Kt/iDN1BDZWmzmf+FdbIJrPZPum2l8+IwjNy1QbvjEG 9FecLqLCA22hmWDstCeB5h2WKVWBTjxWKmhceOJ5BirBTTJokpaaHtbLUmM0VADokbMB Zej5BblPrrqp5bPd2mXOChMvOl0YysXBf46bwfhJ/Do1BqVr12b4F+YzRzEy+8lKTlvY ZL0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LUXBO0rbh+EQ+Hwq/PJXmwkqd/JJT6/GZ5oIe8Ihyqk=; b=LdlSRIB4oeLwurV14WuJFJnY5QJENazh8AsOWldOjAujrqsqwJ6a5N7lwwp6H2RXvS FwKPYtIUFokwyAkCFOiVGkXAkDuFWbI4R7VakQgn9jigC+hMeOL3e/CN6oPwdx0Ot3QV rYufM531jBWsbFQ72sNKMSS94I20l5p4G8M/zv5lroa7fOChVH8Tm/p2zf3/ncF93PMw TFV9IdKtoVwNCoGWJ8+HbpV7KIXXf5UwVQc+MArhaf3DTk0MpxMLzYS5b7oP2++/l12V Ny8IiBP8N8YB9MoW+Tq/9IWeGcgqG/u6EdL04fijwok2diWHHFv52G72IX233DfMbyVq iucg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pyU0N3/1"; 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 z5-20020a170903018500b001a66c369e0fsi4953779plg.510.2023.05.22.06.30.06; Mon, 22 May 2023 06:30:19 -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="pyU0N3/1"; 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 S233151AbjEVM5g (ORCPT + 99 others); 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-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" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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