From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B6AA225408 for ; Thu, 27 Feb 2025 08:41:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740645664; cv=none; b=GRLJWhxvqFDgBuc49BiexffJ8UfygmLQ2OEICs5jGUCyAb+WgrwfTYSz9DIlyqVseOWgiGE2TvM6c+Ns08GkOSdy9Q5+PaQMbFwo/OiykxnEVnwPGLuJQ09t9NBwaehsaFhz3iz9CNtK9SqLj6xesWJp4IgTbI6l1gyohdyfuSY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740645664; c=relaxed/simple; bh=nuikqCUtCO3O64DzQD1nZ+0zkM3pOwNgggYjw8Y9Lqg=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=awIfa23EEkg7xj0unuXzmy4VCTzbVepJUVfEtEkSCCObyck14m8DZpa7Y1uiJLZMP8If86qzAo1Tsr1MZbsuAnGWWb9gYxbVAFLW3SYeZCh4eZtE/advixN9uA51oFkLGQTF0FF9HGWWuY2TPJqfaU+pLV8uKT9KyES/2ylvrLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G9M2SFtL; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G9M2SFtL" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-439a4dec9d5so7345485e9.0 for ; Thu, 27 Feb 2025 00:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740645659; x=1741250459; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=uJuPal8Gmgg9T+roMbykdAQyTY+nf284uEaa198m1xk=; b=G9M2SFtLaUa+s0M8Y8YHpx9o33VjbyXDG4iFQbOkokAS5roY4jVbd9mlJPbkyujqQg X2Z5mK9H874Dr+jZ1OKtVWaVNIgsWfgELKTbTOwBVkyocmhvb9Xfw1Xw+qaVrgDaJV7N PsDpO4Uyzg829+I77Ah7XV/WxWWmwadyEeq9gxWcDG3O+ikZ+KLal5c4tKxqW5AjlWwZ +EMf4sKpps3wPCnIAnt3czADNg2o9F8DkdL1efBFMXzXj2/6dg7Ddlfbwh+ea5nyVJOS NjF0pGPGS5HIMnf9JHVFDJ8ai22RL3/NknaFPgbHZe/tkHDwtP//1GF6UpSHoKJvIB17 /w1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740645659; x=1741250459; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=uJuPal8Gmgg9T+roMbykdAQyTY+nf284uEaa198m1xk=; b=kzg5rwckH5IVFZtRXsQWes/qxS/UrEs5KBtwD9dvRVvPe2Z2HjrL7fQXueCj42NvL6 ljnnt0U4FN/jKEiWv9Bq2JqDNz8h6rDb9Fz4bCmh4yqdhl64xzKn6kZNav0yxVwCxKus ad49BJTHznnBh+J/WYB5pnoP/p/4+b7vVqpiHUdCz7YlgD4A+eha2cvup5IgZFPHllQi zoRHnCP67+iV3z+XNWOpzSMIKVAaL7i988RYWByw3z6h0IpdfiNofbCwsOguF6NiLuua DdNl145TQqb70MMsLYJNU9zdsfdFetpbGfML+X9FK6mV8DAnk0t+CrrmSc/islugKnT1 q2bg== X-Forwarded-Encrypted: i=1; AJvYcCVm7ZFAqbhzR6h5V5Ra2ViTQwvoUHknjy4ThAjZgMXf6LhHtp13qHudrt7hdSNntVJIxhywCb+q28RL9+Aa@vger.kernel.org X-Gm-Message-State: AOJu0YwnRysFnmfXqZbgkbqI88dlWhhL1ry/T/qOjYVTPtEImk3z1P/T g+7X2pRgD3dr8KaS8xdHWjGzTrFmDLWhVZ0y1UaLkMRmucTl6dB3AApr2FmS9Z0= X-Gm-Gg: ASbGnctACb7k1BJvIQt8plt6JEmymaQIrhsfGFntHTB0t8izx6QcQ5xOn1UB+JQwxxc 0KnYfXel9AHKFY0cG0yDT7HtQH8ZQRM88BMKMJtX3+1tqDB6WoyX8vXtAP7JclaQZWKVrjRrqO7 jL2ASrlzguqY/M78jlLCDXcL6sKlGiHCX+hqmuuRSgFQvahFASPvl5I3GlMo0qLyRhDWUJ3+1mH rNs1ufUDWMhTuTF2fRL6eKYxJPS16KYLP8eSoW3sBj5U9DLcBN3T0rgGds5Ajbxcb03oKsxsbBF 9NM0c6KT8+Pwd7of38jbmygEuru3pBna8TSAIYeDlhyeNjt2v/nOalVKUy32oXa8gfKhrPS9eyh cThY= X-Google-Smtp-Source: AGHT+IENEv4SDITD86lW1b0EEtZIDy1NZ4Sqi8uEd26+AsAxqTYVPFdATPdjzQPRmw0vQD4TjeMxwQ== X-Received: by 2002:a05:600c:468b:b0:439:9eba:93bb with SMTP id 5b1f17b1804b1-43ab0f42a24mr115913065e9.18.1740645659226; Thu, 27 Feb 2025 00:40:59 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:c5de:e7f3:73c7:7958? ([2a01:e0a:982:cbb0:c5de:e7f3:73c7:7958]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43b736f74e8sm15621225e9.7.2025.02.27.00.40.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Feb 2025 00:40:58 -0800 (PST) Message-ID: <7354326b-e389-4f00-be63-ca5eb0270b3c@linaro.org> Date: Thu, 27 Feb 2025 09:40:57 +0100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 2/4] drm/panel: Add Visionox RM692E5 panel driver To: Danila Tikhonov , quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, marijn.suijten@somainline.org, jonathan@marek.ca, fekz115@gmail.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux@mainlining.org, ~postmarketos/upstreaming@lists.sr.ht References: <20250217222431.82522-1-danila@jiaxyga.com> <20250217222431.82522-3-danila@jiaxyga.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAx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Q6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20250217222431.82522-3-danila@jiaxyga.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17/02/2025 23:24, Danila Tikhonov wrote: > From: Eugene Lepshy > > Add the driver for Visionox RM692E5 panel support found in Nothing > Phone (1). > > Signed-off-by: Eugene Lepshy > Co-developed-by: Danila Tikhonov > Signed-off-by: Danila Tikhonov > --- > drivers/gpu/drm/panel/Kconfig | 10 + > drivers/gpu/drm/panel/Makefile | 1 + > .../gpu/drm/panel/panel-visionox-rm692e5.c | 442 ++++++++++++++++++ > 3 files changed, 453 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-visionox-rm692e5.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index d7469c565d1d..66b2827169fb 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -996,6 +996,16 @@ config DRM_PANEL_VISIONOX_RM69299 > Say Y here if you want to enable support for Visionox > RM69299 DSI Video Mode panel. > > +config DRM_PANEL_VISIONOX_RM692E5 > + tristate "Visionox RM692E5" > + depends on OF > + depends on DRM_MIPI_DSI > + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for Visionox RM692E5 amoled > + display panels, such as the one found in the Nothing Phone (1) > + smartphone. > + > config DRM_PANEL_VISIONOX_VTDR6130 > tristate "Visionox VTDR6130" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index 7dcf72646cac..6177f2d4113e 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -100,6 +100,7 @@ obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o > obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o > obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o > +obj-$(CONFIG_DRM_PANEL_VISIONOX_RM692E5) += panel-visionox-rm692e5.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_VTDR6130) += panel-visionox-vtdr6130.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_R66451) += panel-visionox-r66451.o > obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o > diff --git a/drivers/gpu/drm/panel/panel-visionox-rm692e5.c b/drivers/gpu/drm/panel/panel-visionox-rm692e5.c > new file mode 100644 > index 000000000000..4db7fa8d74c4 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-visionox-rm692e5.c > @@ -0,0 +1,442 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: > + * Copyright (c) 2013, The Linux Foundation. All rights reserved. > + * Copyright (c) 2025, Eugene Lepshy > + * Copyright (c) 2025, Danila Tikhonov > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include