Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2798155rwb; Sat, 24 Sep 2022 15:47:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EHVEGJRGpkNc4lhuabhl/JD8xMOhLAo4L2VpHj8tG1GOin1tPh5WhzigwgpegvDh69pQv X-Received: by 2002:a63:7843:0:b0:42b:4e77:a508 with SMTP id t64-20020a637843000000b0042b4e77a508mr13353468pgc.449.1664059628609; Sat, 24 Sep 2022 15:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664059628; cv=none; d=google.com; s=arc-20160816; b=0rsv7edQOLl8n+TSctmV6My9YDTSf9rEnU6pCC3PM9pNFb7YnufthI5VmGDWvaFXvE v2HGNYbuZjErTUc30U0HDai4VgFM5XOr4AptYKflEH2T1ma9l4TZgIsz1EOorXXjcU4D F4Y0BQ3p3I719p9YfbxZgYeMfCiSdR/T7DmP0qwywQG+g1ih7FQ8rEKQyofrUeyE7Cus vam1ZTEmVL/UhqWQbEze0GBzzby/l7nE8IIpqiYgZjr6ucTqqnQVJ3FbmaFJXlNlv086 oo87iV3VQJE7k+CE40msCAZULTn83D+o9T5hKHFvkBSALGuMvRRxfTjuFi+gK6jeTIHs 4sFQ== 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 :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=H/N6v3UkB8U8yS0Di3oPrka5jGoIg9yXLsUkdbYUri4=; b=gSXByJyp5u8x7IkkUHSFZHaIkaUZmpzDztTpyc54zK0+fc7k8dOXEIf2lavKG3MLvo VgBVzyOQ/J4Ty2S/CKIDMD1tNWy0kZMUwpNO2hIasqcX4yzX72GG7IklYj2h7qmYF/Ky hK+I34aQt3gyP3B/YbcF6nhbEuXDeelu+zrX/AKUpuGkqQuvL0Tkaponjb30xYNmpksJ VRaQyG/4Ldbxa4wKnxtNiFIwQl8AxEG3/ZObwX6I7+5FozJrp6YpbYlCBSNzLcFky9TV knOVtfiYfBa3+ux9LcNVzM3pXGPwjOZUaYcdDEHSFqxst3dASC4KJfqaIUMw3Hkk9sqx CS0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=jSCJVSpJ; 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=connolly.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630509000000b0043c8cfee1f3si2595982pgf.243.2022.09.24.15.46.48; Sat, 24 Sep 2022 15:47:08 -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=@connolly.tech header.s=protonmail header.b=jSCJVSpJ; 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=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbiIXWOD (ORCPT + 99 others); Sat, 24 Sep 2022 18:14:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbiIXWOB (ORCPT ); Sat, 24 Sep 2022 18:14:01 -0400 Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E46B2474C4 for ; Sat, 24 Sep 2022 15:13:58 -0700 (PDT) Date: Sat, 24 Sep 2022 22:13:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1664057635; x=1664316835; bh=H/N6v3UkB8U8yS0Di3oPrka5jGoIg9yXLsUkdbYUri4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=jSCJVSpJbxI6oqDtqGYXM/6jep2l3iZQoIuE7WUBi6C1TgQNUooJ2EIh9b7/fmh2z ncLrmvQzVdILtFTjK7SKtkykxZPD6PZOQiC3J/FVDYLm33+qaebnmuyvQVfwwkrV1U /at71R8NXV+6gipkfac3Npht9dYi5+tHp3Xt0Bqs= To: Nia Espera , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org From: Caleb Connolly Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: Re: [PATCH 1/2] drivers: gpu: drm: add driver for samsung s6e3fc2x01 cmd mode panel Message-ID: <953bbd66-955a-c059-075f-9b7165be1c66@connolly.tech> In-Reply-To: <20220924203616.63325-2-a5b6@riseup.net> References: <20220924203616.63325-1-a5b6@riseup.net> <20220924203616.63325-2-a5b6@riseup.net> Feedback-ID: 10753939:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 On 24/09/2022 21:36, Nia Espera wrote: > 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 Hi Nia, Thanks for sending this, I'm glad to see proper support for this panel in i= t's own driver rather than the somewhat hacky solution I submitted originally. There is just one note below, but otherwise: 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 | 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:=09Maintained > F:=09Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.ya= ml > F:=09drivers/gpu/drm/panel/panel-samsung-s6d27a1.c > > +DRM DRIVER FOR SAMSUNG S6E3FC2X01 PANELS > +M:=09Nia Espera > +S:=09Maintained > +F:=09drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c > + > DRM DRIVER FOR SITRONIX ST7703 PANELS > M:=09Guido G=C3=BCnther > R:=09Purism Kernel Team > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfi= g > 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 > > =09 The panels are 2280x1080@60Hz and 2340x1080@60Hz respectively > > +config DRM_PANEL_SAMSUNG_S6E3FC2X01 > +=09tristate "Samsung s6e3fc2x01 OnePlus 6T DSI cmd mode panel" > +=09depends on OF > +=09depends on DRM_MIPI_DSI > +=09depends on BACKLIGHT_CLASS_DEVICE > +=09select VIDEOMODE_HELPERS > +=09 Say Y or M here if you want to enable support for the Samsung AMOLE= D > +=09 command mode panel found in the OnePlus 6T smartphone. > + > +=09 The panel is 2340x1080@60Hz > + > config DRM_PANEL_SEIKO_43WVF1G > =09tristate "Seiko 43WVF1G panel" > =09depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makef= ile > 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) +=3D panel-= samsung-s6e63m0-dsi.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) +=3D panel-samsung-s= 6e88a0-ams452ef01.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsung-s6e8aa0.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) +=3D panel-samsung-sofef00.o > +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FC2X01) +=3D panel-samsung-s6e3fc2x01= .o > obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) +=3D panel-seiko-43wvf1g.o > obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) +=3D panel-sharp-lq101r1sx01.= o > obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) +=3D panel-sharp-ls037v7dw01.= o > diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c b/drivers/g= pu/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 devi= ce tree: > +// Copyright (c) 2022, The Linux Foundation. All rights reserved. Please use C-style comments for this block (/* ... */), ignoring the SPDX i= dentifier. > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include