Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3133844lqt; Tue, 23 Apr 2024 11:10:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVLL8X7yvxfYo/SX9NoWpZ6ntZ2vamBr3p5kw/dR3QIW72NsUx0VA+KROkpP1QKi5FJ1WMxHP98B4F3qETJ06yzkgCIpS//hg0Rorygw== X-Google-Smtp-Source: AGHT+IFD3mMnp7h3ngCpDQLkbP05Yj7CDgfMVhl8CBuzkE96oO0DB85G5k+YDw6Jr5MA0xcfwH1y X-Received: by 2002:a17:906:b00b:b0:a58:7832:c278 with SMTP id v11-20020a170906b00b00b00a587832c278mr50662ejy.63.1713895842338; Tue, 23 Apr 2024 11:10:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713895842; cv=pass; d=google.com; s=arc-20160816; b=p/0Vea+//leyyGIExTbINzXEuccjoJdS4g1jaa6IqOR7QfOWlrHuye4DSZCpBsVLWe S0WGOmbh1jR+3QocprgXq+eyRaUXayLHP4nFrjj8G4lqcMXz8UrzW+qYh8J4CqGxvCuy Cr38RsZzUWjVwuDXThpYCj10ErxJoq4gx66KuVkcgwgJbBsvsBFEpD6OQ0Kt0x18iJPr hbaFpnKk36kzMSNG/f64X++3/7bNzZ/wnaVwJpBWHfEbQLcRr/ocrrzWdET/t7YNrAU5 /lYaylLk472KHwPUiWFzJj54zA54MsmvoaGpkcatU3pP4+1bxwWCkmlw7bLU5WxShWCI qwtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wl2ct4hkdwUhx5/aeg9lOPHNV+QD++rylKxscdt/bF4=; fh=8xlaXijE5uWyN9EjPDAcahGmqnCBNrc/tP8+sK3mKzA=; b=r+/WyIvKYiyNSdowpI48s4UYgYL1pBw0VZN5DQoUL3pSRKJYHXVI0Czxj1ssAmyzGX f57//XR9rQoxVzwARy6+4ZSqgYGy3YlL8NRBuxbT3mX2UN6QQY3heo2P52ylsH+BXWS0 IJjHAPpAKJd+wArvtM3n/ANE9sZZUfHmK4V9EUYP0P1FxrEXsrTmRx8EzuuV1mVRtljv 4b8QJPkeTrbXeqxl4oMENDQb2ojXcKd3AzF206kkRPbjgzmSEc9uQqv27WmrIR0dZGpR Mg7ojI8HhPYDSqMV3MlivDxaxxsDHPwTjaTWQP1kmonxkJsLCMynzSSqhiE9o3p7vwTz al1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0XYEkSbm; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-155734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hv16-20020a17090760d000b00a55b06b2b00si3709977ejc.679.2024.04.23.11.10.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 11:10:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0XYEkSbm; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-155734-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 E3E721F243C8 for ; Tue, 23 Apr 2024 18:10:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C230213E3EF; Tue, 23 Apr 2024 18:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0XYEkSbm" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 D079813666F for ; Tue, 23 Apr 2024 18:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713895835; cv=none; b=bpRuD3WK4ESJeoz6bypl/dTxuveg/lAWyBbGef069OBG2K0GJJ1UZdSA/1wOIkPGZHmPLmBNryqMyYoyF+RiSQVVPmlQKK9TW3r1SJOl4TqmLgjEpGoBqHtzPB0f2N9FyOn/zrlyJXTOZaPOraVxLrES189b3DMltTYu1pEg01I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713895835; c=relaxed/simple; bh=/edRUH5Q80ijc8jy/8Xr8gxfMJ7nb85SBHRPUab3CGc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pNI3qCFckdO99wYgaAi3phkfHg4jh59ljLPJ/fmCDKs+0O0WXipQjjWgDxO5ysBFqn1L116zhQ1wbdzxpn+73NtLSBZpaN7nMRPegAoCzzbVvjEQrnL/59a1n549ZAyjLa8KyOaxWoqxMS0QVsw/U/S7XaFf+vBGijpBbDbibvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=0XYEkSbm; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-34665dd7610so2957845f8f.3 for ; Tue, 23 Apr 2024 11:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713895832; x=1714500632; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wl2ct4hkdwUhx5/aeg9lOPHNV+QD++rylKxscdt/bF4=; b=0XYEkSbm6UNX28P3bIswbPH5licid/1CbtJL4qGSGG5qAyRWEPBAGI3yXGOVu0eB9M N8L1ehURDUx+PYVseFb7qtDV1SunlKs9v0xMFS9NKLEr9XdWWNiLwG7+YmgC/veQY+72 7bgkqo2AEDwItVtK7i2sBeKeiqdHQzYrpld8J1eA65CecnooHKQT2MSOfpeEKUC0Mgz1 v2jmWLSqY7dbM/rGd0q9LNUSA756Oh4s4V+IY8rIWa7Ay4f8Wjly0B+he3gc/Gr1vm4q eHk6hVNwNbcbymFe+AmPhF/MTA5C/UxOHzf2U4W178c7dPQKZhf68wDvv+fBUXyaD0sV y33Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713895832; x=1714500632; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wl2ct4hkdwUhx5/aeg9lOPHNV+QD++rylKxscdt/bF4=; b=nM/m4YjlP4YfPb9eoKpyi1gF/uZK0Ye/ghUEynYloZh2lCnF1bAl0jms12C9vzKqJl MTfDDUHs3hggW/JbuK8pflNsMN39j0rnrHDHVFnkNh8MokAKRWTI9hMj10qL6pzEV8/q H0HZrICkxiLSQyePIzjW5Nc576qcSesPAHwG8Nz05Wv7nBO/j5q9rCbWz6k76cHfa49R kO92IRiZ6FUuVS7/yxGo0AuOa+5lf8cE12cEriUnlVm5DI/oOFXQWaFp0Pg0gzZvhpS/ onv8VzgQbxKmED7I4oJSRI/ab77o+PwF5PQle/S3827P6Nd3GOnCAdaSXZZ2qO5yx8EX tbaQ== X-Forwarded-Encrypted: i=1; AJvYcCWWh0fzEtYg3g4l9yo8CYcEUvu3vRxQXhKf7OGpUoVE+F7HRnUqEXHZDLdKm8OXXJZ20gI7p9rWDArq5Ke46adw/dMSsUlkUKeVBNQ/ X-Gm-Message-State: AOJu0YzxCHd6qyft2cQje9wecxfMeqnntWads7zy1NQYB3bKmUtww6XJ Z8G+q5tJiVEwMmeAgLKtkvBVtrKZtYRz8GBD+YYMOL9tcOuDg2BKuXNbxxAXo4pTEZnWiXrcDqC Sx0H8MCDw7C98M2p85H4Wj5OPP7WyHjMpLHU+ X-Received: by 2002:a5d:590f:0:b0:34b:3374:bc26 with SMTP id v15-20020a5d590f000000b0034b3374bc26mr3444655wrd.65.1713895831867; Tue, 23 Apr 2024 11:10:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418081548.12160-1-lvzhaoxiong@huaqin.corp-partner.google.com> <20240418081548.12160-3-lvzhaoxiong@huaqin.corp-partner.google.com> In-Reply-To: From: Hsin-Yi Wang Date: Tue, 23 Apr 2024 11:10:03 -0700 Message-ID: Subject: Re: [PATCH v1 2/2] drm/panel: kd101ne3: add new panel driver To: Dmitry Baryshkov Cc: lvzhaoxiong , mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dianders@google.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2024 at 7:11=E2=80=AFAM Dmitry Baryshkov wrote: > > On Thu, Apr 18, 2024 at 09:11:37PM +0800, Hsin-Yi Wang wrote: > > On Thu, Apr 18, 2024 at 7:46=E2=80=AFPM Dmitry Baryshkov > > wrote: > > > > > > On Thu, Apr 18, 2024 at 04:15:48PM +0800, lvzhaoxiong wrote: > > > > The kingdisplay panel is based on JD9365DA controller. > > > > Add a driver for it. > > > > > > > > Signed-off-by: lvzhaoxiong > > > > --- > > > > drivers/gpu/drm/panel/Kconfig | 9 + > > > > drivers/gpu/drm/panel/Makefile | 1 + > > > > .../drm/panel/panel-kingdisplay-kd101ne3.c | 607 ++++++++++++++= ++++ > > > > 3 files changed, 617 insertions(+) > > > > create mode 100644 drivers/gpu/drm/panel/panel-kingdisplay-kd101ne= 3.c > > > > > > > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/= Kconfig > > > > index 154f5bf82980..2c73086cf102 100644 > > > > --- a/drivers/gpu/drm/panel/Kconfig > > > > +++ b/drivers/gpu/drm/panel/Kconfig > > > > @@ -297,6 +297,15 @@ config DRM_PANEL_KINGDISPLAY_KD097D04 > > > > 24 bit RGB per pixel. It provides a MIPI DSI interface to > > > > the host and has a built-in LED backlight. > > > > > > > > +config DRM_PANEL_KINGDISPLAY_KD101NE3 > > > > + tristate "Kingdisplay kd101ne3 panel" > > > > + depends on OF > > > > + depends on DRM_MIPI_DSI > > > > + depends on BACKLIGHT_CLASS_DEVICE > > > > + help > > > > + Say Y if you want to enable support for panels based on the > > > > + Kingdisplay kd101ne3 controller. > > > > + > > > > config DRM_PANEL_LEADTEK_LTK050H3146W > > > > tristate "Leadtek LTK050H3146W panel" > > > > depends on OF > > > > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel= /Makefile > > > > index 24a02655d726..cbd414b98bb0 100644 > > > > --- a/drivers/gpu/drm/panel/Makefile > > > > +++ b/drivers/gpu/drm/panel/Makefile > > > > @@ -30,6 +30,7 @@ obj-$(CONFIG_DRM_PANEL_JDI_LPM102A188A) +=3D pane= l-jdi-lpm102a188a.o > > > > obj-$(CONFIG_DRM_PANEL_JDI_R63452) +=3D panel-jdi-fhd-r63452.o > > > > obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) +=3D panel-khadas-ts050.o > > > > obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) +=3D panel-kingdispla= y-kd097d04.o > > > > +obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD101NE3) +=3D panel-kingdispla= y-kd101ne3.o > > > > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) +=3D panel-leadtek-lt= k050h3146w.o > > > > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) +=3D panel-leadtek-lt= k500hd1829.o > > > > obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o > > > > diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd101ne3.c b/d= rivers/gpu/drm/panel/panel-kingdisplay-kd101ne3.c > > > > new file mode 100644 > > > > index 000000000000..dbf0992f8b81 > > > > --- /dev/null > > > > +++ b/drivers/gpu/drm/panel/panel-kingdisplay-kd101ne3.c > > > > @@ -0,0 +1,607 @@ > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > +/* > > > > + * Panels based on the JD9365DA display controller. > > > > + * Author: Zhaoxiong Lv > > > > + */ > > > > + > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > + > > > > +#include > > > > +#include > > > > +#include > > > > +#include > > > > + > > > > +#include