Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3666815rwd; Mon, 29 May 2023 14:48:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5N4vkk+BwN7xVUgBDbcJcQEL0emFGhFpg19rfFKCMBh5oNZ02qtCuhX3xAa+wh0YyAfm5v X-Received: by 2002:a05:6a21:6da3:b0:10d:5390:ea90 with SMTP id wl35-20020a056a216da300b0010d5390ea90mr225123pzb.59.1685396935972; Mon, 29 May 2023 14:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685396935; cv=none; d=google.com; s=arc-20160816; b=NEPnbuCGR6RpdwgdVam9za+Vv8UqmWY47YNH9t/sU1ht4VBxaWnxCPoyPl9Rw0qnzq CBzdBcUznG25ZW+2sOMNIWY7i5iEfJdLv1IfcuK9WTahjzE0aqcR0AWKKHWBPSYXaERd rl1m6DNPJQbWv7+o3dPcwJB286U6gCdz2DF15fCOEAie0GJcHBviy8d/AbXjYMz48tuG bHLLvnRUmpRdp+SueNLVSnOVtt2YfC9/9T3gERMODbQgSAoU6v+N8YzzskzgSzUpXYED pJMJ6QrOvnoGcgBYK8aFFN/n/aIhJy74+F4KyFd5EITX/X0NdG68jMXuZtC9KTYepqzk 8iOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PaoY2M4K6N1oGKMfzxsL8WWNYQlhLixl2Dacu85Ehu8=; b=Fua56DBwSI0nwUau8t1XWiEwDKFC5vWbDY6wbRPVkeC75zIirlmIee1PRYia7CkuDX MxhcKFWODzeDmYl0tOIoJviDHs0b3TDDDsdpvgRGoWS4sPExzH5+9J6Gy4Hpn4RCkNiI toxwxlWrA5cQcE/SxOhKe5PVFpu2c2KWDfVqm+mzQ+2FO98anSbpqcQ9hrvu0plYVtdY pbginjs/8e88RA+0ZpPVTec8WlJDvFI7USC4vzhUYHaIZdO3UndwMXW7ZnkQ/wB6SZIK SxTDdr5cbSiEEWs8yPz/tvMcznqYmhBmz3R1RhfDc3tBs2Ye7HNEkH0wY7qNG3BKZrk1 JmUQ== 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 n18-20020a638f12000000b0053ef51d3fa9si8127996pgd.405.2023.05.29.14.48.43; Mon, 29 May 2023 14:48:55 -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 S229698AbjE2VVd (ORCPT + 99 others); Mon, 29 May 2023 17:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjE2VVc (ORCPT ); Mon, 29 May 2023 17:21:32 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [5.144.164.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A5BDB for ; Mon, 29 May 2023 14:21:29 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 2EBD73F30C; Mon, 29 May 2023 23:21:27 +0200 (CEST) Date: Mon, 29 May 2023 23:21:25 +0200 From: Marijn Suijten To: Neil Armstrong Cc: Dmitry Baryshkov , 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 Subject: Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 2023-05-22 11:08:12, 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 I am unsure what to include here, since Konrad originally "authored" the commit but I believe it was nothing more than a completely broken and unusable driver spit out by "The mdss panel generator". This needed enough rewriting that I don't feel like giving it much credit ;) > > > >> 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