From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.mainlining.org (mainlining.org [94.241.141.152]) (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 D8FFF1487CE; Wed, 17 Apr 2024 15:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.241.141.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713368766; cv=none; b=VSE2HMwoGFRv6kMQWlQBrsX/uPCYLAeoXrPkZ08P/rBNEwS9P1IQgOMpvgnzSS9zTyngUp4lD5+pbqu4LN4rwQLi0EMDgYunwTAJyVC7+KlLhVDySIXF1G4gs1QSwr4rDasyzNAzzVMP5Bokk14DSsJHYfHoB9jyJ0DOpiENv6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713368766; c=relaxed/simple; bh=4aguCEtSaMm2MMIWGpXxMYP3MDWw0bvErfimWFnB46s=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=plrA57+hvNOiI5RjfdMG3gtTAhMbpHPH5P6tOnTWx8/XN3EgOqHC0eRZCB1UlZ+hl+ldfHlARpTs0FCuQ5klYo+rIFNqlPLj7a1qhcQNaFPK47tc1f9Edz3pvVQrmORFSnKZUEDl5yeaxbqeB3dbG/5ivrrahXjWNh1ct4l86rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=O1C232CF; arc=none smtp.client-ip=94.241.141.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="O1C232CF" Received: from localhost (docker-mailserver-web-1.docker-mailserver_default [172.18.0.7]) by mail.mainlining.org (Postfix) with ESMTPSA id 021F1E20F3; Wed, 17 Apr 2024 15:46:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1713368761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VmL48VPjMn2uUuMPsDGNcPSkuRpaJXlnQN3jlSJQCTo=; b=O1C232CFRdFAqMecMdCfq/mfBM2hnFNO7HhDmcu2Sf8+/G0bpYOjOeFslFmcdSEaLeYdtC IUuqOZ0u0u7yo6kiBndnITSHrquuVZ0kOoofG0gk4RsNKcFvwS2Ry78uAsf6x93a5PCwDg KXRgc1YQYq2rp1hmP0k/gIPjfH9HBJBuWzC2C+8UZMBW748bnmWH2iTOibolYvRStxX6XR uYqEQdnAt9+wLaKbPbgQx3UQhtoYAkP4MqaqxWSMr6aHYsp5c1/FMF12POHBmszmUyRJt2 uBiRSd9cwkDAil6OLNRk0dfwSxcORyBTtNA83Wa3NCOjMQFxUwsOqKAN9MmBaQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 17 Apr 2024 17:46:00 +0200 From: David Wronek To: Marijn Suijten 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 In-Reply-To: References: <20240416-raydium-rm69380-driver-v3-0-21600ac4ce5f@mainlining.org> <20240416-raydium-rm69380-driver-v3-2-21600ac4ce5f@mainlining.org> Message-ID: X-Sender: david@mainlining.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit W dniu 2024-04-16 22:52, Marijn Suijten napisaƂ(a): > 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