Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp908059lqt; Fri, 19 Apr 2024 14:28:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1KgcRKAGeRF1fauc+nSyekkwnqbKVRqwxAiTVmyWbRBCZPKEW6rgoPzrpvlDX787bchqE/bShxhuT36HW1GabW0LvRNDC/XVHvOi+XA== X-Google-Smtp-Source: AGHT+IG6n7x6/ROhD23kagpNDztthfhUaFhzwqi1GVgCwrFz8XqKxQ2BGib8RM62jIpQC2qOuqBB X-Received: by 2002:a05:620a:956:b0:78e:bd2f:1088 with SMTP id w22-20020a05620a095600b0078ebd2f1088mr6528638qkw.4.1713562100893; Fri, 19 Apr 2024 14:28:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713562100; cv=pass; d=google.com; s=arc-20160816; b=XUrRUdJ7E1T0QIVmcM6wJxHRo+3pzmlFSwgHcdgN5oH6ZD2EMwf+Y12NICe6ccYuTZ 7RoYJb6CgPd95QsFLNm+fSpSwx99jBsO2dFAN8jhUHdmxQpyPchKwZJbI74wJcI7HrU5 OZA5yDWoB5mMhmodWuWF1f4tLTsR3LAwP9aKKrnHBrR8ecSCpS2zXmx2Xd3u0qL5XxDI 8JA666EIphlAb3kUHYeWp7yjEn7PeqMHcLnEF7v12xVe7eqHj1fxXOyz44DiSWdIut1a lKNX1feQrW/qIvqJbPCCyd2/ECSlE2SSldBha1fJ7lbqoCtRQuzdc6sNGJTaSJD5VRhX Mfuw== 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=A/p24DtmTYJMUdVkIoeMM201dmjZW6ZtE9+tYq95z/Q=; fh=oMFNgaeVkwu/97RiiP52+Rc/Qv1FlcCAUR5AstK5qCA=; b=FC9WA4tlaBcootNmPxVoQ9pTDJQjYmR+599DSrwjEAz56WCBC4tpveYZBNrjrk0jxp kjbG9zy3aw+xpDGYEUEQzDMopTc/2g59Zm0fPvLtuZ1wyoV3HHWde0Lv+V4sCG9y78AV ED9sUVWTOmqOQmGyLiduexhLIVqBI1KEg1FFqgnCMJsur3pVs771E/ziHylvU8V/X+k8 0sgFxuUFVJP3S1YPdsjJVuSTHioNOpSgKRX+uwBk1v+SyKP9uMqXKFW8hWnkD/LTY4UI zF0vymgDVBfpHVh8/bRzdAdvhRnOu4XSEla5m2qsGUs83PDKBvROx+fcFeeeoAdEUNEG HO4w==; 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-151971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151971-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g15-20020a05620a40cf00b0078be9dd4553si5394979qko.419.2024.04.19.14.28.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 14:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-151971-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151971-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 90C3D1C20C09 for ; Fri, 19 Apr 2024 21:28:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1183F13C916; Fri, 19 Apr 2024 21:28:14 +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 B7B033EA8C for ; Fri, 19 Apr 2024 21:28:09 +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=1713562093; cv=none; b=awzkigWRnxu2s/fwyQ9j1Of2GlJNdfUKrAkj5K8xIdN42rQIOyRW0F0Mmm6tWE7M5DJHdaLayoyrsv4V1h1vIEF+SKB8QCS7UJb61dZhZAQ6VfOMJKOqjOSGOUFnMtZ3YwQ0s6CinhGk1A7DbLd4YQAIhpHqjSmFnXUo28zaybg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713562093; c=relaxed/simple; bh=QVb/cMNmeCH/umj/RAepO+euThPMc9G5aOhqs2UYF5s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gT+TpruTuFtI8G3n4sfidPKVKG86PwQzjMG1ChaMZALAX4mLdNolFJaYtZMhr06GxNWmF0r0BqKrIWdzuJjVCLJp6FAqLWciG6eFKUfvWi2EZKBNCqShQN1VzMYhuvfL1U+xGoSYibtJZSSykhMiT7QAS5+MkivmWDX7SN8R0e4= 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 621D6405E7; Fri, 19 Apr 2024 23:28:01 +0200 (CEST) Date: Fri, 19 Apr 2024 23:27:59 +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 , Dmitry Baryshkov , 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 v4 2/2] drm/panel: Add driver for EDO RM69380 OLED panel Message-ID: <2ril3lznqamiexdfgumxv3qa2fo3lprqt26qbjg2qhxxsxx5wb@yqwz7hm4ipha> 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 , Dmitry Baryshkov , 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: <20240417-raydium-rm69380-driver-v4-0-e9c2337d0049@mainlining.org> <20240417-raydium-rm69380-driver-v4-2-e9c2337d0049@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: <20240417-raydium-rm69380-driver-v4-2-e9c2337d0049@mainlining.org> On 2024-04-17 18:29:34, 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. > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: David Wronek Reviewed-by: Marijn Suijten > --- > drivers/gpu/drm/panel/Kconfig | 12 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-raydium-rm69380.c | 344 ++++++++++++++++++++++++++ > 3 files changed, 357 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 154f5bf82980..e2a66c21349f 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -542,6 +542,18 @@ 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 OF && GPIOLIB > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + 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..4dca6802faef > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-raydium-rm69380.c > @@ -0,0 +1,344 @@ > +// 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