Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1299775lqb; Thu, 18 Apr 2024 06:13:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgSSRbwbU7RblUhwbhtGsQDo2hj0JxWv2ZFWX+h5KjoHwuiASTjax0rEpdsP3HeJ8Rq63FIB3C5FkoCi7h7VM1992Ku5e+UdoaU0bUvg== X-Google-Smtp-Source: AGHT+IHwsmyuUSDSMNzjI+Beau06rlT2svI+TtQXPKLLH4VRFfvrp+1SvR76Be5kQ3To7KIH4BGY X-Received: by 2002:a19:e049:0:b0:513:ec2a:8fd1 with SMTP id g9-20020a19e049000000b00513ec2a8fd1mr1773901lfj.47.1713446024427; Thu, 18 Apr 2024 06:13:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713446024; cv=pass; d=google.com; s=arc-20160816; b=flRWbDnQg9fVeAABtofu0SPQxgVivyel+yyQ2U44NrQtiNpwk10YlD+tbZGc59B+yk TUtHsiQf3iNAUfzkoLi6g4b9/u+rpnZdPjNt/NrSfgeBFpcYOtX5ub49jNfNzHFa1OH7 3LXnHj9mKDzjQMJGTtMH9aldevtGbLv7EBRjHH0K85RxdWtfEf7LFYIgmclHhi2zHTMt h7/Hfzu2IEb7U1lYpntZm2gvKEd6EW8Bbf1mcAp359idZ7VyNhXW6chKBYhm+XtqQWgm RsFGuAfdOovb0eJmKBijZ9Mymh8ejY2ivpWIp8i/FSrd8zPu9Blyw2BkNwnCaIN2EIDh yrkQ== 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=0pcBJ/DF05C27i4cBPqqkubOl3qolEJNyp0DCsRTy94=; fh=kfwnj903Poc0qEsxf0U3yWgd46YNvjbwuPhGLsbVOZ0=; b=qBczE92zv+oG8TW4R7deWbr6pCJg0tAHuxKM+q0op+tQGECP9m8EoH+XA/wFXh+6F9 NfJjVqsXviYmvWGkl7KtgGWfWZe7DX9G4Plz7sW9iAqMrhNgcpbbcwP959dtArIdazkt zp0PA7ZB0AbKCp/xL9xn/C91m0quRZDgc3lT/0A+ezW7Yq3/eKViXf3tXiuWxgRdZsGr PWwCCzCIVV5vOdmAqgPkSeFK3onZynu+4qTe2QhQ5RNhHIOYizSKzMu/5K+7RPlMt528 tDRG0P8y8hZSMGpbD3DSVROn2BskyGulv2N7TQ150APdzT6vfJtwxk1dITCxMy4nbEbq 4vSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=gPkOkzCm; 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-150140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150140-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 hh7-20020a170906a94700b00a55628c84f3si827819ejb.691.2024.04.18.06.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150140-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=gPkOkzCm; 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-150140-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150140-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 442431F224D8 for ; Thu, 18 Apr 2024 13:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7424156F54; Thu, 18 Apr 2024 13:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gPkOkzCm" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 6BBCB1DFCF for ; Thu, 18 Apr 2024 13:12:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713445932; cv=none; b=tZH8uXX7Pvm4W9Dq7vV+scM66w3iJY7045v/BWimMeQbRHnTRTLvZNPe2ip39oVbdaMnM+kKIyhZFpe+g4Bv92hOyGxJbnMpBfTwvm3DRrX0REDiuSI+pj/SliCs/C3+gX5cXXdOKXvOEyffpzZYSnbyKGdo5yJ1khvwmQg1Hao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713445932; c=relaxed/simple; bh=srYKyWDye5kB3VGyxMgDd9fphrgHpoiyXztx9PhAD04=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=msDIbppvetomNiFw5STsarntKUsMlM+j7p3/fppfNSrrUSlfeHCDe+mbro7rWno+onPNguMLfsosObFAY12gcE721hnncLhA2FlExgtmSOeRJEBNt0IvCppDoNr0e1jUmKw0FmUD2phSdfYaK+DC0RWU7CtTychQqly1onIPeFk= 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=gPkOkzCm; arc=none smtp.client-ip=209.85.221.44 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-f44.google.com with SMTP id ffacd0b85a97d-343d2b20c4bso619450f8f.2 for ; Thu, 18 Apr 2024 06:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713445927; x=1714050727; 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=0pcBJ/DF05C27i4cBPqqkubOl3qolEJNyp0DCsRTy94=; b=gPkOkzCm5hbMQEEWIv1Se48Wi1ll0l/gBHzu7DmaYrMUNFwEM0Ehn1/FjfwasUOkRY YNd8qwKsQ00p8yCSmeXfMiOPhT/R7lQ3Nrurw+7itYWpPx4Anuup2S6bEPKzhPruI3i0 pWal1IMN+kcXWOnir8UKxSsc0Hj2UJoDqJ1jZ7pfd75Xov1xrWudJyvUXtZZCmijaieK pZ/2doEjLoBWYuPv8Gtsjna2X5lo4g9b1uWuDQMbVtVA1fOGs5GpyvIFuTyrgA2SeKQs MkjOimpcjjigDrMg2on0T1+lCoACwTOWptUDU7vi80aS3ulyxpRhor8whpprQclpePNL ERUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713445927; x=1714050727; 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=0pcBJ/DF05C27i4cBPqqkubOl3qolEJNyp0DCsRTy94=; b=Z6Msw6FuNAYweuA/TLhfPzR/AT65+VmzFsIKEruFDQwAP38PY+gNoPpoPL8yDvi+5S Gluel69bDBRIHwC9LdvZUrwHSbMjoxm39mLlSRuMN4JS26ugWXVq2lHeymWYtKOhnpqG Jj/X5oLcjvu5Wsgs4BQldUpJdFQwmaHUgAO+FmRDivdvwSDoybt+43YEr1z/H1veKSDP 7CzYDmhRVdoPqPPnRwCQZuelAa4GmEnnhWtOaI/ibH6Xxb1VUak7j9hsThSQc7Hgc0cm DSyuKzW72sDXZjl5BAlgEOkmOr2NA6cfRVec5EfV3aqGGrKzrkA5ypQiJWuBEtacLvsL izbQ== X-Forwarded-Encrypted: i=1; AJvYcCWnBP4WxxYl3vHmQ4mCWmJzBXprrG+3b10yznyBq+kGm/GG3deZQFcBtUDbCBcQeM1xSVwbIyJ7wQFuGHUZ+1Gt5c3T3It1Z2MHg4oR X-Gm-Message-State: AOJu0YwGggQWFkWNA8PbuKuJTzjB+w5LDniuwVhL2kDyxIQYlLjRBNdS uayNYv7SdAgdaSyEGDZdBJopiF5IxRWUpFoRzx7wISqiN/q5Bet+52hTtCTbgsmNa+GwC7fomPM 3qiKjIAkKokF3IPydhqk0Sw7E7lTXR9ywCGZA X-Received: by 2002:adf:ee0a:0:b0:341:72b8:83b9 with SMTP id y10-20020adfee0a000000b0034172b883b9mr1600989wrn.68.1713445926380; Thu, 18 Apr 2024 06:12:06 -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: Thu, 18 Apr 2024 21:11:37 +0800 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: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-kd101ne3.c > > > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kcon= fig > > 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/Mak= efile > > 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 panel-jd= i-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-kingdisplay-kd= 097d04.o > > +obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD101NE3) +=3D panel-kingdisplay-kd= 101ne3.o > > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) +=3D panel-leadtek-ltk050= h3146w.o > > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) +=3D panel-leadtek-ltk500= hd1829.o > > obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o > > diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd101ne3.c b/drive= rs/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