Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp225943lqb; Tue, 16 Apr 2024 13:53:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlywtTO8Zyw0AoFdITfirIUQKXH0IOl+cRanNhYYl+iLvaNRuCQWQYetFlIyGzeAFLKYsHgKIrERq5A5g+/t/igvcqDvhedJ4/bbWj+Q== X-Google-Smtp-Source: AGHT+IGDyZm04Ogs79+Um+ijgLwy5VMVCGu4bQjkxcSaH1CKl0xLvfu+WKhbNM2AskIqhII4gK60 X-Received: by 2002:a17:90b:118d:b0:2a2:579e:652f with SMTP id gk13-20020a17090b118d00b002a2579e652fmr10900650pjb.27.1713300793403; Tue, 16 Apr 2024 13:53:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713300793; cv=pass; d=google.com; s=arc-20160816; b=ZElIIPUK/QMT2B5DnUY4UxVma6jHnc26X0doaY6D6Gsi+HRPpjgrypnBsi9mZpaeDs N4wh//gkrf8WA1OyhqTlwll0t1SMku2UH23CjPpCKvKqE+zvT+DXUHevTEGRP+MOebDk AMLRwiG9/GgIe2Jk6r3O1Ie6xt9/NOV/5cbQ10JLzi7moyoBIHkAloXoBHihb1rFHSdi 6e4u67B3djHhEWcGj9kqI0Vp9l6YYUicFOxnOW43lGpczrGqulp1sOgEhLzgm2q8BQlo n4eLQ+LrKlGex9u7YIPbyoQTtvrKZxRePjifsnmO8w+ilRNCqbzALbjhHYCRQu/T6fj9 Es5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=+9/Z4e3x0aAQnGhMoC7CVVmWBDG9P46ZMCu9+5/MHyw=; fh=RNhaFARQSbXzP4ndK1RPjKBSIm9BeaKdXEE11Rev+Ag=; b=xyi9scgZ9bhCzeMJt3At07TgqBGWz24CJ5zaEuuV+mrMKh566hug2Oe2ymVvHNXcXr WqOwo5qCHxqTvShQG3YpdFXRhT5swqaUq7Hgu9NfMsI5mQzLEHT+L7KYH1hlw0RjmVne /BiDWYJHep6WRXwUgY5pZV+uC4DMa+JgUXiWSDvL+tI/cQVstuuEFx6u+uS/3h1Ybh8U oLVHYMMuD6mL/AmaN4uoyND+JbHJUGT2SWgb61Slq6SYTkbkThWL2fz5rOiVw6xF9dsL +gqA9QmJTNlLvhv519HhR4nAJ+T7f+qciG4v3+RiGCV3c3oWh+3elyNXS3W+GvD11sTt Q4Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-147537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147537-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fh13-20020a17090b034d00b002a6162536aesi32968pjb.182.2024.04.16.13.53.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 13:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-147537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147537-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 672E4B225DB for ; Tue, 16 Apr 2024 20:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9AD356B7A; Tue, 16 Apr 2024 20:53:02 +0000 (UTC) Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E23F2375B for ; Tue, 16 Apr 2024 20:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.167 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713300781; cv=none; b=ZIOqiYaNxxHrs2jkgWP/lyxgxshWjdkUwGLWhqJ7LEzdY+bm6qGrL1siSKMgZCDqn1EnJ49qTFMRnYw+UD50OzRVq/2dHQBxri/lxOCvp6nTPIg/0aZdAPyEz2z1/PuzDXPhci+n7JVAE8+9IoTVzNSjz5gxnENCYJHn/e9bgQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713300781; c=relaxed/simple; bh=WSOvMpgm9tMw0MVbsj4l7xgpqsrgwRBA26iRBm5aFOU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tPDtR28mAkDVBo4/bTgYXzCdvgpQ3nDgwe3l+HXTronPSIFjCgkggkk0/e3j8k3XfM64Ri0TallIKIPqBLskYVt3f/nR6G2KnjtXn8k2AgpQKCwi7O2MnhaMyF6kkoDhZ5XRMf7gbjskbRrc8C1USwC2g0fnJ4iN/oHAREdhSyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.167 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from SoMainline.org (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 ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id EF84740628; Tue, 16 Apr 2024 22:52:55 +0200 (CEST) Date: Tue, 16 Apr 2024 22:52:54 +0200 From: Marijn Suijten To: David Wronek Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Subject: Re: [PATCH v3 2/2] drm/panel: Add driver for EDO RM69380 OLED panel Message-ID: Mail-Followup-To: Marijn Suijten , David Wronek , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org References: <20240416-raydium-rm69380-driver-v3-0-21600ac4ce5f@mainlining.org> <20240416-raydium-rm69380-driver-v3-2-21600ac4ce5f@mainlining.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240416-raydium-rm69380-driver-v3-2-21600ac4ce5f@mainlining.org> On 2024-04-16 20:30:49, David Wronek wrote: > Add support for the 2560x1600@90Hz OLED panel by EDO bundled with a > Raydium RM69380 controller, as found on the Lenovo Xiaoxin Pad Pro 2021. > > Signed-off-by: David Wronek > --- > drivers/gpu/drm/panel/Kconfig | 14 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-raydium-rm69380.c | 367 ++++++++++++++++++++++++++ > 3 files changed, 382 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 154f5bf82980..5b3eeb93b1a2 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -542,6 +542,20 @@ config DRM_PANEL_RAYDIUM_RM692E5 > Say Y here if you want to enable support for Raydium RM692E5-based > display panels, such as the one found in the Fairphone 5 smartphone. > > +config DRM_PANEL_RAYDIUM_RM69380 > + tristate "Raydium RM69380-based DSI panel" > + depends on BACKLIGHT_CLASS_DEVICE > + depends on DRM_DISPLAY_DP_HELPER "DRM DisplayPort helpers" But you said that this is a DSI device? Looking in -next from yesterday, Raydium-RM692E5 and Visionox-R66451 get this wrong as well. > + depends on DRM_DISPLAY_HELPER This also looks unused? The only helpers in the non-DP non-HDMI helper points to more DP AUX code. > + depends on DRM_MIPI_DSI > + depends on OF As I've shown in the SOFEF00 cleanup patch, devm_gpiod_get() is used which is behind GPIOLIB. This should probably be a dependency. > + help > + Say Y here if you want to enable support for Raydium RM69380-based > + display panels. > + > + This panel controller can be found in the Lenovo Xiaoxin Pad Pro 2021 > + in combination with an EDO OLED panel. > + > config DRM_PANEL_RONBO_RB070D30 > tristate "Ronbo Electronics RB070D30 panel" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 24a02655d726..e2a2807d4ef0 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -55,6 +55,7 @@ obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o > obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o > +obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o > obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20) += panel-samsung-atna33xc20.o > obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) += panel-samsung-db7430.o > diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69380.c b/drivers/gpu/drm/panel/panel-raydium-rm69380.c > new file mode 100644 > index 000000000000..f89230c969b7 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-raydium-rm69380.c > @@ -0,0 +1,367 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree. > + * Copyright (c) 2024 David Wronek > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include