Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2338693rwb; Sat, 8 Oct 2022 06:17:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63k63L6GAwvzZ0+++kqj2pD61UrnXR3cUytu8F2BTR8A7IaHtvKLQIz5z00dTT7RO5M0H1 X-Received: by 2002:a05:6a00:230d:b0:53d:c198:6ad7 with SMTP id h13-20020a056a00230d00b0053dc1986ad7mr10132681pfh.67.1665235025041; Sat, 08 Oct 2022 06:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665235025; cv=none; d=google.com; s=arc-20160816; b=A5QLxl2Uou3xE9rXwL0VjMDu+23jCkPh9vhy9J2x3rCYcpc9EzphxQbTlC9bHDyFTR tPlRY145ooqpZOh+iSQnutpdwANFu/p1Q5MF7iZBrBKbgI0z/nKcQBfX9c1n3DtzwB6o GMOpyJrhI04oTEqmbZQzGSn3ocsrFpOEN8QsycG4Ryc3M2qACGhzFAB1KwRnjrod8IXc VXX5QIxJOWJxZRzfFuLDgsG0+O3XYhIkYrojez2AqpwHlJcW02jKb5K1r/JHAX2L6uUE zG/xwZ5dqVYj6vx2FqwRW5hwHlE90cRZAahpDl1ReEXP9ZG2ARcmLPBniTMLkPpCyBIq sXCA== 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=ruUhT6UvJAt3VKW1R8oKAc6IJbNLKHOWurkKP3vwVMo=; b=SNQJnWP3H4lJI44dBKBhjwy8e6EhVQWWvPkaeW93+qkp2iTQwNxrFED5Yht+Vs3qdS TaqO0lHUhwtlFjtxE1gzKzgSvGOPhXXR5SibGfqzOS6rnwamouQmKLxGg+/u1zJvGGh3 c77qR1cGPL9napcbYjfH5hY+t7zMthaYJjFpC2KgMXcsmqS9p31/NX5frnUUa/g6z6L6 CXO74ml0B0of42ML9ejsljuz5T9DEfU7oq/BP1ywd2IUexGyljbAtuLbmJDbFzMvEig/ G7gQ5Pi4MlwPdIsvfudNSaEOnw0dERCcI6hF2vpoVSi6Twsxxqxj/+yBb3Apf7XB33nl vnOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=ETqzvj7g; 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 mh3-20020a17090b4ac300b002036aa03b94si5714305pjb.89.2022.10.08.06.16.52; Sat, 08 Oct 2022 06:17:05 -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=ETqzvj7g; 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 S229682AbiJHNNJ (ORCPT + 99 others); Sat, 8 Oct 2022 09:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiJHNNG (ORCPT ); Sat, 8 Oct 2022 09:13:06 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09FE64623D; Sat, 8 Oct 2022 06:13:01 -0700 (PDT) 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 mx1.riseup.net (Postfix) with ESMTPS id 4Ml5Fm3SSZzDqPW; Sat, 8 Oct 2022 13:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1665234781; bh=sn8NiUyBfSgC53CpXnUlVqYjK4LgAn/vTFkgWn92Hm8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ETqzvj7goAKt9tf15jKQFRkwAkhlmx9OyZd8oHWRTCpKSjakQUZ5ExoREWmrhUpCG 9vkyDnyqnq9l8/UR1KXfSzDcUAw/Z021aPV9ee3npsZAnCsJXIGlZDEbhUr1WDQH40 m5yZACJiLsGQoKAOc/C+66t9sIr9Fzi8X7/HVewg= X-Riseup-User-ID: F3E8D7004CA3A2791106089F5C7D0606F64AEF0386047A3A88C964DFB6FAC67B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Ml5Fj3pmfz5vNH; Sat, 8 Oct 2022 13:12:57 +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 v3 1/2] drivers: gpu: drm: add driver for samsung s6e3fc2x01 cmd mode panel Date: Sat, 8 Oct 2022 15:12:01 +0200 Message-Id: <20221008131201.540185-2-a5b6@riseup.net> In-Reply-To: <20221008131201.540185-1-a5b6@riseup.net> References: <20221008131201.540185-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 | 12 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-s6e3fc2x01.c | 388 ++++++++++++++++++ 4 files changed, 406 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c diff --git a/MAINTAINERS b/MAINTAINERS index 72b9654f764c..45cae975eda6 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..0dd5e1ec5644 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -558,6 +558,18 @@ 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 + help + 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..a8afca25cb35 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c @@ -0,0 +1,388 @@ +// 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