Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp809900rwb; Fri, 7 Oct 2022 04:36:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64HO6IEHCWMHjY8C0puDkdyuF73pDq/IoMuaFscuquHQc10JOqDXKL7ItW3Cz13NQjn3H3 X-Received: by 2002:a05:6a00:2918:b0:536:3967:5d08 with SMTP id cg24-20020a056a00291800b0053639675d08mr4818152pfb.68.1665142576862; Fri, 07 Oct 2022 04:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665142576; cv=none; d=google.com; s=arc-20160816; b=dVg4vn2kdfjYX/RsYnPOxlFpNBo5WwQioPM1g7UtGkMc0MqHN3kEoLNzoexAk8SdcI Cstlgor2TDXOATmYwLnVqqwgpvEFYfIvsU9n2PYL89V+o4X85DASukvHnDdxqkf4weHJ c4HrJ0C4ZitanIPOEMH6M3471ORU9ooJEoQPcoIe875durcBqUkOm1Gml7v1Zp2czNKV u7KbgwL0VTk6N1qBofAn5sNMAHxPgxxoCkb/K9YA5yjN28gjgss3XfFmd4W1odfRE0Mw M910N+ruRYgB4/qC3pV5X3PGnvmpSLDnSgX3SND07Nr1hEtfoqxKfKhDidVuOn6HIjUm sWCg== 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=gFVZDZyO0T4YD5TCH6263YAIob3TdPddf7zDNgO+b0s=; b=0SDZdNRyypXB8wBXY/mqyOShlP3Z+fzgPF6nsV+o6kyK47aVvnJgkpr9LJxoG0Q5b7 +2YY9+N6TM1RnfocKrvFKiY9QO8Nba2bMZ2u/C1IeqA3N0uPk9thkfiO9QdJzCQ3eKd2 yWHbNx6cDsFHky+UiH6bURW5qQ3zJ/L7R9PGfVT0Y6kNcMfGNU/ukAd9XPcH7JZ22FQA SrLL4H73pLLAWB6mnZvt7K4VfESIPExbDE6CIeDdcTU0pgC7yGUlqWvo440EZo/ZMUa9 wY+F8p+gdE9mUV6rz3gG/01FwV8eQ9yjke/OMCI2G1mX2Rn82+Zs+rV9zCh380YADuSA LM/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=dWtBPMO0; 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 d12-20020a056a00244c00b0054116441045si1937147pfj.281.2022.10.07.04.36.04; Fri, 07 Oct 2022 04:36:16 -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=dWtBPMO0; 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 S229453AbiJGLP6 (ORCPT + 99 others); Fri, 7 Oct 2022 07:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiJGLPz (ORCPT ); Fri, 7 Oct 2022 07:15:55 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40D6BAE225; Fri, 7 Oct 2022 04:15:54 -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 4MkQj56jgQzDrwX; Fri, 7 Oct 2022 11:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1665141354; bh=f/04iUEBFYszH1XPedbKzJXjOY9G+uG+SGi8kM+0mkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWtBPMO0c5brXUaVv3zymsxxUehJ6zWH0c/DFayytdHlqjAPxq3jSS5kFj8Fs6g90 Hg+SV1bnrxJwi8GEr5oHjTFMzScX0xbv3wKdDdvsKe4rOWJq60EZahoVG0ugPEvpAD 6IpMZZ64lSElIJ9gGoQJVKCTxnBcD/mjDxusK6PI= Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 4MkQj43Hj9z9s8T; Fri, 7 Oct 2022 11:15:52 +0000 (UTC) X-Riseup-User-ID: 482CA08C9E45F257B7724629438BAB091A34074F85E256D7D636CC9BB99A4997 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MkQj22cG2z5vRK; Fri, 7 Oct 2022 11:15:50 +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, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, Nia Espera , Caleb Connolly Subject: [PATCH v2 1/2] drivers: gpu: drm: add driver for samsung s6e3fc2x01 cmd mode panel Date: Fri, 7 Oct 2022 13:14:43 +0200 Message-Id: <20221007111442.51481-2-a5b6@riseup.net> In-Reply-To: <20221007111442.51481-1-a5b6@riseup.net> References: <20221007111442.51481-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 Reviewed-by: Caleb Connolly --- MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e3fc2x01.c | 396 ++++++++++++++++++ 4 files changed, 413 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..54b05703ebe4 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c @@ -0,0 +1,396 @@ +// 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