Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp909658lqb; Wed, 17 Apr 2024 14:42:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdVF/1mv4N0Yt/sY+qOl4El4j4U3B/vkqaq6qevcU1Quoyti49YVKVlpi/52J4jQT1uuO/meRs0uRsuLj4MNmZ7khlavA5UksPa1YgLA== X-Google-Smtp-Source: AGHT+IHxW0riefbMpLfXcOv7iqLBdv6y8iLc6VcsONsE643QQYYU4w3Z5/qSeJm42J7WBqRIx4bA X-Received: by 2002:a17:902:8c83:b0:1e4:5b89:dbfa with SMTP id t3-20020a1709028c8300b001e45b89dbfamr830720plo.41.1713390130799; Wed, 17 Apr 2024 14:42:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713390130; cv=pass; d=google.com; s=arc-20160816; b=pnbEaPodmlfHFPJNtU2QLzFGvIqLe9nqLqoHLi0EgrOfYfwZveQgh4uVe+7mcAS99t 6MeyF4AA9KLU4ftx5uJ2POtVlQKRyNGR0ySNcisHRH5UXB0S19dLRWQJgSrRE+s92GXm LPfd4eUN3EUsW+Tz9qFoF0j+OlmMXMRVt4FxunjnqWUjXQCvryVQZB9SBtBmhKthHXlW 0eLXdaizVXVRGqbHghB87mBRYjRKvE3RpTCiYfmF0q8jb7kCUSEp6L91uW7PyazXxkwX VH0V9QfW8/PL1n/IOQ0jGoZEVcPwclN5s+n4LZOaUC1pdAlcV+ws/7tT9K5WVD8plj59 5NLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VmL48VPjMn2uUuMPsDGNcPSkuRpaJXlnQN3jlSJQCTo=; fh=80tRIEyNm5hICLnv7wToGUl1hJD/lfY2TsZNu+D36+I=; b=rlDAGbo9L0A6mto3fIWWnA3rogByQyhdQC523WHc3I4ffOuqjK0ISekr9032Y5L6YB a0nhD5E5gdFUozylwVJ+eSopJztfFBFFq/4yLphKys0t9G4nPBtMYPlvG4/cbwo+NoJM 6E7Qh/mffrPMPYZai2RTvl0/+utTHyt7bAHCbIdzlmQmoA0FO/4Kx99QKZwj1GiojvVQ CKZHIHr+FEyDXTO6fp0D4qLbKqN+RvjDT1XwRl4HuTy6vHask2LLCOINn7VtcHmsVy7H CSblRmmWfrhTQTF1ch04jbnEFD+/PGwz5ze5jrczptHucSmFiC0kVfTGvu7t1PmwyaaV vPiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=O1C232CF; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b17-20020a170902e95100b001e60ab1cbe8si121858pll.527.2024.04.17.14.42.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 14:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=O1C232CF; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-148844-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B14128250F for ; Wed, 17 Apr 2024 15:46:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B35641482F0; Wed, 17 Apr 2024 15:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="O1C232CF" 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 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