Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2749307rwb; Sat, 24 Sep 2022 14:33:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FR7SSe29B07RirkcWi28Z3CnRYxBU3cmIG6gUGXvX+8nQOeSDyoKZ2wcox6WEEyVip/mI X-Received: by 2002:a17:907:7b97:b0:782:20fd:b956 with SMTP id ne23-20020a1709077b9700b0078220fdb956mr12381909ejc.204.1664055218874; Sat, 24 Sep 2022 14:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664055218; cv=none; d=google.com; s=arc-20160816; b=pQ3AXLqnjYJB/m0ZXCqRZNMIdktoBMDKYrlekkiFY8lXMRswYkbylmj42+tl0t50NX k23xMBruwUB1uWM8pqjIHr7j2Ky+fGA8UzId8B44bICm/HuFdZhFH0kO3yvP4vWnJx1s UOkWQync//EDmmKrILyMdcg3UmXifk6z2RpIZ8QVG9RorViOQnqJqx9sEkGM8sMzRXEk DK3o1fEyRkUyGRhM9fdugUTY0Ahht59xMXK54C1ZcHGKf0eTAE/uzGF4DkYc8IIyBtzm 1WtgPXKk5Tvm6thLmUibZTop9WeYYl+JwKQVDep7LJccumAWqHAHJh6IDRJQ5BZvrGke Ollg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AkDMqdzuUp7uuPKUhP3IgdSRe7mLuZ5d3rx6v/MUuFk=; b=xcp42eeoodOh4WDqru5warDY8cfyTquKR+8ThoeWnbyL/33UbF46vK4YkUsEDwituB AVvLqg68HEHCqI6tkHJK5+nSEPDCa+JxZvJlX/Vi4+mNyBk347HuKlq3Ob3JDpSvjf7q 8z3dyW59ct2z8D/vSknOhnSNgHoBvUG64JnGR2WIjvgJxuMdX7Z39meVxk/kL13DC9NT yd188BxHXfngu5vwG7gDQrzJskREPtNIQuVN9e9s2NzCZA284kXw7f51fl9bBmQCkEv6 ndYK0fQvYgp9jCESqrfkiUAbQwCzHMijc++ANV8hcr7jyTplgg5eCDHT28WrMaeCUmB2 F8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=qdSzhcVa; 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=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020aa7d794000000b0045646ff1541si5648003edq.81.2022.09.24.14.32.52; Sat, 24 Sep 2022 14:33:38 -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=@riseup.net header.s=squak header.b=qdSzhcVa; 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=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233744AbiIXUhA (ORCPT + 99 others); Sat, 24 Sep 2022 16:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbiIXUgx (ORCPT ); Sat, 24 Sep 2022 16:36:53 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3DB9558EF; Sat, 24 Sep 2022 13:36:51 -0700 (PDT) Received: from mx0.riseup.net (mx0-pn.riseup.net [10.0.1.42]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MZgmM4WdszDqtQ; Sat, 24 Sep 2022 20:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1664051811; bh=Ue4Nano6/IoH72o4ku2pAG/Im15TWBJOW+/fodjCoMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdSzhcVa5QHEfA2MAEDzb/I/M2zcnil+NkgZnCU1NCnhsoMo3e9UtsAXJeM2B84OT 41EUg0Hop43pfUR5MCWpNoflget5M8Ho0Y02OKkGjHq/xXxOQa1PcJOex5Vrp7qiHg hqyMnbyhiO93FB164RAy7hNL13yxqzG1yZcaFau4= Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MZgmL5fRcz9sB6; Sat, 24 Sep 2022 20:36:50 +0000 (UTC) X-Riseup-User-ID: 45226DEAD8B085AB93B0478D5E5E40B1F46D93490B81E559D4FF7627AEFBFA3F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MZgmJ4fmCz1y9N; Sat, 24 Sep 2022 20:36:48 +0000 (UTC) From: Nia Espera To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Nia Espera Subject: [PATCH 1/2] drivers: gpu: drm: add driver for samsung s6e3fc2x01 cmd mode panel Date: Sat, 24 Sep 2022 22:36:15 +0200 Message-Id: <20220924203616.63325-2-a5b6@riseup.net> In-Reply-To: <20220924203616.63325-1-a5b6@riseup.net> References: <20220924203616.63325-1-a5b6@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 Adds a dedicated driver for the Samsung s6e3fc2x01 panel used in OnePlus 6T smartphones which was previously driven by the sofef00 panel driver Signed-off-by: Nia Espera --- MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e3fc2x01.c | 395 ++++++++++++++++++ 4 files changed, 412 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c diff --git a/MAINTAINERS b/MAINTAINERS index 936490dcc97b..7e9455ac5a13 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6630,6 +6630,11 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml F: drivers/gpu/drm/panel/panel-samsung-s6d27a1.c +DRM DRIVER FOR SAMSUNG S6E3FC2X01 PANELS +M: Nia Espera +S: Maintained +F: drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c + DRM DRIVER FOR SITRONIX ST7703 PANELS M: Guido Günther R: Purism Kernel Team diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 9a281120363c..ee62d5d8828a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -558,6 +558,17 @@ config DRM_PANEL_SAMSUNG_SOFEF00 The panels are 2280x1080@60Hz and 2340x1080@60Hz respectively +config DRM_PANEL_SAMSUNG_S6E3FC2X01 + tristate "Samsung s6e3fc2x01 OnePlus 6T DSI cmd mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + Say Y or M here if you want to enable support for the Samsung AMOLED + command mode panel found in the OnePlus 6T smartphone. + + The panel is 2340x1080@60Hz + 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 6d493b9d64fe..b54de8812e91 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -56,6 +56,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_DSI) += panel-samsung-s6e63m0-dsi.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams452ef01.o 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_S6E3FC2X01) += panel-samsung-s6e3fc2x01.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-s6e3fc2x01.c b/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c new file mode 100644 index 000000000000..719907107bf1 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c @@ -0,0 +1,395 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Copyright (c) 2022 Nia Espera +// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: +// Copyright (c) 2022, The Linux Foundation. All rights reserved. + +#include +#include +#include +#include +#include +#include +#include +#include + +#include