Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3177074rwd; Mon, 22 May 2023 09:39:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45AXCYntlRHncUs+cM7Zmqm02ZNBo8G8xZQCw+g+H0MWB8x22rPB0pXyywIuIoo/dW9OAi X-Received: by 2002:a05:6a20:7d8b:b0:104:35ec:c25c with SMTP id v11-20020a056a207d8b00b0010435ecc25cmr13632066pzj.41.1684773549043; Mon, 22 May 2023 09:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684773549; cv=none; d=google.com; s=arc-20160816; b=Y4iPHzqtp6fiHlUoiSH4j97XXrc3WDOMbDxp/8bKBACmIl0aNTSwa1NQ2vUf/owyDN ho5mKFG3eplnTmitUhfnMhMcXZcLb+NBtKSa+9Vq57VLSQaqKG4Qnv6GT56Ha/d/j1BH Zpnp8hYSpTZwOflXr0yKkwrp6DAQcRfhVt0B27yDy5meyCrXG/NUnT8yEBbFinlM4A3B 9F34PjbSixG3OmNYW2D9tnvGm5Km+6d1MMv1XaTugqEQHmggFISpGXy0G5jCxt2TfGcH AXGubBBsZW69rcIqAa9uB/VQi0vsFfBvxsOmoorh+qNw8ji+YRjxdnei4jquK8E2gPwq 97jQ== 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; bh=ndM4RwkBCYv9IrLh34Q+tCbAIpWKFczbMO9aYCh5IdE=; b=ZxerB4zF6INII38jVQPP4lkuc4fyvMV9/6QsL7H7vdGp2ljPYQWR8+1idmLNFWwlLp 0xr3l0O9J3CedUdo9gyFtuz6dMgZdt71LAueSBUkzr8NWDV0kQ7A3mAxQhmI2nv40EQV P1iYxTycMDVuXi6EXrb+l8kkT4rlSijTef1LIXEmMtkqRNlGbuG5X/j2UBScBqoXG5tD gSdi2q55DLkJWyOIMdfekBFOH+jOj5TNoNCngEa3jaeqzZArz5VP9vwWxXU5BrM2Npxd kfCDYShvhN2RhdkdkecEelrdMDtLigvHgvYDmN/iHnud/lwmme1sFln0HmeglkbXx1GY RvDg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t127-20020a625f85000000b0064a35829154si5051165pfb.343.2023.05.22.09.38.53; Mon, 22 May 2023 09:39:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233147AbjEVQcL (ORCPT + 99 others); Mon, 22 May 2023 12:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233045AbjEVQcH (ORCPT ); Mon, 22 May 2023 12:32:07 -0400 Received: from relay02.th.seeweb.it (relay02.th.seeweb.it [5.144.164.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A774D107 for ; Mon, 22 May 2023 09:31:51 -0700 (PDT) Received: from [192.168.1.101] (abyk97.neoplus.adsl.tpnet.pl [83.9.30.97]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 5B2CC2010E; Mon, 22 May 2023 18:31:45 +0200 (CEST) Message-ID: Date: Mon, 22 May 2023 18:31:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II Content-Language: en-US To: Dmitry Baryshkov , 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 , 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: <4679c741-7877-ce79-4086-08ec4ee9e6bf@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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 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 guess I should use the matching email, so: Signed-off-by: Konrad Dybcio 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