Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2159300rwd; Sun, 21 May 2023 14:36:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ctssdMUrfGxSjBTcHYHL1u1vktW8vvwVLbkfghmsHK4k1BBhP8bX8bNoC8fxTJ5VeUQuy X-Received: by 2002:a17:90a:d78d:b0:253:38b7:682d with SMTP id z13-20020a17090ad78d00b0025338b7682dmr8366568pju.18.1684704996529; Sun, 21 May 2023 14:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684704996; cv=none; d=google.com; s=arc-20160816; b=kEevpvjEI3QVm4TmakCA+8F7ZkMh1uKm8mHs1T8PDfWjPFLDAxFxWpF9HugUJxzBtP S91rF7V1lO/mA3z3mZtHTg6+HDZM9ibmNoXIRy6W1+PMy9r6NWSDVp6D53MPLtSwIq4t B0q3+E+lx93NQzgd7oGcH4xsycY53gWXWo0H+RrgI7sgQABRnjc/J4mnayD4+lfvXnk5 4GxEOy+fpF1ayMfeEJI5M3gVVE2NQQ6ctk3+0y7z3XbQUFJ+gkTQsZxskWouARitouIZ 0189h7dZy64tQvS1PsgwO4TaoVrzEBmaqjWXO52kWUrvqpKzc0itjTrrKYeRurbFucFE vUAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=eiy1LL4UNmeOCH2pL3jb5thZbB2eWIGJthLi1vguzV0=; b=Xc1CoxobkhqthKjzjSpJ6PPBqrHFcW8vd2XRUxK+KHTX7ufUC9dLdt8+jSCI0HsQh/ MaGaBwmEdK8asWlTF/pTxZfikI1/SOwmHVSeK9v+92ZS22z+9EAjGEXJQ8jd+XN9omOb Lv23xjzYvQ2cCp6qhVGMUyz1GK6ogkqttnLh4rcSv/3JLQuRDaF1+OocAFd4Qxd+PvS2 4no+Zw7mLFvYl0eMmOOHLXsXbtIz0U2KKGR32YNYcBIqQFf/pkKN3pjNd71299PsNWyE qBokBLSqGgLjTfr+wxZO2ns55BsG7CHoJigwUwYefhy0L4WTJbZUUJtaDribgttB1CXK Ox4w== 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 p4-20020a17090ab90400b002477bb336ebsi1821457pjr.6.2023.05.21.14.36.24; Sun, 21 May 2023 14:36:36 -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 S231404AbjEUVXo (ORCPT + 99 others); Sun, 21 May 2023 17:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjEUVXV (ORCPT ); Sun, 21 May 2023 17:23:21 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A3DA10E for ; Sun, 21 May 2023 14:23:18 -0700 (PDT) Received: from Marijn-Arch-PC.localdomain (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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 000A83F360; Sun, 21 May 2023 23:23:15 +0200 (CEST) From: Marijn Suijten Date: Sun, 21 May 2023 23:23:10 +0200 Subject: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230521-drm-panels-sony-v1-8-541c341d6bee@somainline.org> References: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> In-Reply-To: <20230521-drm-panels-sony-v1-0-541c341d6bee@somainline.org> To: 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, Dmitry Baryshkov , Abhinav Kumar , Kuogee Hsieh , Jessica Zhang , Marijn Suijten , Konrad Dybcio X-Mailer: b4 0.12.2 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 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 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