Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp878619lqb; Wed, 17 Apr 2024 13:32:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVx8HAc0mYEJD4VHNj9kTkutaEUdDMUpAFs8cMkBdA/CKhI+y+i9zYA6LyZULcgxSShv7i95Iz+5AlJUiH7R4FXLTOfOxReWJDRYiU5ZQ== X-Google-Smtp-Source: AGHT+IHDzOOI9okIhCJdSR0xjsIc74J9+OWLwIS3C7c2wP4qbvmSK6ZCa1/Z8Aq5kbc+X6RaD9iR X-Received: by 2002:a17:906:f895:b0:a55:648f:3f03 with SMTP id lg21-20020a170906f89500b00a55648f3f03mr387125ejb.53.1713385925327; Wed, 17 Apr 2024 13:32:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713385925; cv=pass; d=google.com; s=arc-20160816; b=XvjzD67EYS3WdAHb+Tbb8wwH+NFTj2+EC++WFTN2LmL261v1CWiegLeh1HBSq7fPy0 nYpcf/0WGJc2NUiyOQ/C3nqVmn3yXs4gjDT3iKBQIitToYunFLOWUV9f+xjsh3JUBwhz LNmxkDSYvkjo/o4GuvZLv/exICPBIK4H1jZWVWaz8p11SRvxjxG0wvonAvf9CrhCIPNP B6TuaCKy32Hj1qiJ/Y4Vm/9DYEpnMtRTdxSjOan/e/GWnhJC3wfelePhyKzV09uVQCjt KZuJgzMEXk+13IbIlVw5XoOO3ENV4BsB1L2c7U5Jkwmory/20fcOo4An0oMGDMreDrN8 FNMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UIGKlbm7WKGJ9jr3RKULR0/+UdS/jlwTIIH0vbfL5+c=; fh=zHNVC5Rw1ItUWfnPUiOHfid6nJDQ3HxI51MH3OStmUY=; b=ggNeoWtwgM2C08AZJstF6C42k2CnB7vW3IKQdqsMIeqHf84DUkTkoZrca/Eu7lfWJC ebXxKwx4uuUSryqs9qu4cxRO+vWnlFsrweu8McW9wKDeOrl1QqbLQ8Brl4y2p3dzsuKN uxiPCyN6BwaAGBUkALZwSw7112Wcq6Ohc4sLfDpiSbkX4cL46A4FO//rYO2OKJ2TKHTg kwcOviaXzooLO9nA+tTfYwSQTZ9kVmlSUjL64mwDWXbZcAVgXK62j5qPZheTIIs+8Ccb BhR/ChjaBn0aDJbE43JSATIlDsRl8+uE+gPtGXRUQVLaCAgpd0eB27+wLoVkuabc1ew1 Q3hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aKnXJSFC; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-149181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o3-20020a1709061b0300b00a51a47b1e84si7662ejg.1011.2024.04.17.13.32.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 13:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=aKnXJSFC; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-149181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DA58C1F223C7 for ; Wed, 17 Apr 2024 20:32:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD89E3D0BD; Wed, 17 Apr 2024 20:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="aKnXJSFC" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 A4147EAC8; Wed, 17 Apr 2024 20:31:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713385915; cv=none; b=piXTqbbbQljERY3oBvSAjchKnzvxRFrmsmjGyNGnCOUJW8LvQzBDY4Tlf/9UU373Pq4/XHaRH6x/Hhkj+jv+YpTJENbxSseXGzXr4GZdmS07T/9nt1DGCETicNI2YvRB9uDsFbQ35v2FMoJuw7SAB9ZSvLSqdFp+dbHPu5ivG+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713385915; c=relaxed/simple; bh=0kSV9BW2QeRUmRKwS5ilacYjl5kRTzsRH6TM2QfbJt8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=sgYHxSO1AO48jcpBAOsqpnCzoKCjeNyCNUbeSnS0lfFst+fsCOoZGdOSOU6GPceK9LohvORxAVBkkP4+4WVdjwOyLHpvmaTY8Sh7T7F0jnHLD+qs+5i1yM8vgwvzuctaomh4Dx3I2T0yOFe3SiyDOPZPW//U7y0zgHhERkLdnMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=aKnXJSFC; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43HIln6I017522; Wed, 17 Apr 2024 20:31:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=UIGKlbm7WKGJ9jr3RKULR0/+UdS/jlwTIIH0vbfL5+c=; b=aK nXJSFCVnmtDQzZQ/t2DojWhX/tRBFdw/lXUDUeoqDlVyz+EbSXEejZRkVVprKfXn boOiks83vuOWbYsPahzHNQqC900YnEAEBkRlrYAJXlfVAQtpaNhnEODa0GdEYqVE k4Afmj3nQu+r/8Z7Qxdp3qhN4NpwypSk3qRJP7NXLIp2ArdTjCLaoDNDVx7Lmbq9 hCwRYVRG5SWwZrUKc9PiJe9XHXShW50u8WZGvQltvDzKtRYJND2Ki9BNXILeiD2T DjSCLiQ/LeWIuNYCiD96SB5SPO6ExqkcUkgslW22oQUocdvvzIUoovNBB9Vek1ZE BXXnl/JchfA+fLKjo57g== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xjm0s070c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 20:31:23 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43HKVNpP012163 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 20:31:23 GMT Received: from [10.71.108.229] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 17 Apr 2024 13:31:22 -0700 Message-ID: <338acf2c-7471-43cc-9e52-23c96cbe66bc@quicinc.com> Date: Wed, 17 Apr 2024 13:31:21 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] drm/panel: Add driver for EDO RM69380 OLED panel Content-Language: en-US To: David Wronek , Neil Armstrong , Sam Ravnborg , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , Konrad Dybcio , Dmitry Baryshkov CC: , , , <~postmarketos/upstreaming@lists.sr.ht>, References: <20240417-raydium-rm69380-driver-v4-0-e9c2337d0049@mainlining.org> <20240417-raydium-rm69380-driver-v4-2-e9c2337d0049@mainlining.org> From: Jessica Zhang In-Reply-To: <20240417-raydium-rm69380-driver-v4-2-e9c2337d0049@mainlining.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: m-mqkDqNXhd8no4mNraaf5t95avlyAyp X-Proofpoint-ORIG-GUID: m-mqkDqNXhd8no4mNraaf5t95avlyAyp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-17_17,2024-04-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 phishscore=0 malwarescore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404170145 On 4/17/2024 9:29 AM, 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 Hi David, Acked-by: Jessica Zhang Thanks, Jessica Zhang > --- > 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