Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1246364lqb; Thu, 18 Apr 2024 04:46:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyU7EUiyQgrokCYOaMFmDk1oYZdi1tjJ/3544c/um8pjqS+iNjVEB671pcgak1kah+xEyhJBe8ybBm3eEHvhMbDMWDpCFz8CIOSaqX1g== X-Google-Smtp-Source: AGHT+IFaiFAOqUvCrTINgmRkwHg7tTWR164UpKchoXefWqz7FmV3fK1iFVd2gvR0wo3IOhsF1H/b X-Received: by 2002:a05:6a21:2709:b0:1a3:5c61:5ec2 with SMTP id rm9-20020a056a21270900b001a35c615ec2mr3193058pzb.16.1713440790050; Thu, 18 Apr 2024 04:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713440790; cv=pass; d=google.com; s=arc-20160816; b=nuTBYoj5oNcjfwQgpqN1GHoaRSgzIpkhuI6U0Opi01iI14mGOiLZ6CJ8CCDLqsvjR0 hDrMZeFVHpc9HL0+E6lYkD4VeEHWwnpMGjCX+/ERNDtk2gj5MTDZAs1xL5O1MeK6VCm0 RGrYTLAa0S2sgRbXwuWn0iLQctqrb2+DsHHji0wGoJDHVHOeQDIA5UH1B0e93Y9uTLzM 5/KgUhzQPsDKseKlRqGeAwtcFlX3RwI8i5WducU9J/yCSfluNeqF2mEZLV4uof9Nuelj KKxBEBdYj3HdmMxlhWnuq0RMt40LwSQ3bLTb4up98Mv/IT3uYE0KuaezaqR084VmOw9u dJaA== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=kdwIu52RYxxnxQn1jup15BiJTAHdx+Mu7Xc73+wxa64=; fh=MBFGT02Z3CsHg2DPn3RcqDaEk7RvxC0ucIUAjrk0MZ4=; b=jgU77EUiwwMFQ6Ab+N/rUbtD3DwGLQmkuag68eQ+jdGVhtj8gn2SLHoB5pS+MTNgfZ moipfizfUKufbSfTwhL9VKVAmME8YHcEZn4N3XikiWZh/BT/EfDNDQ09f7W9hdZ5DzkC E3CzRgH0NimvkltLMsbMaJU2vnBXeFnJrEMGo/Sy/Mxv6nArtDxhfCKBgUW1OPyHMbgA p5CT7gYTMbanrxq10/gmeykhNj5ZT0Ej+DZvsc0z+hdZdKin1PZqx969jxhgup3eusGH nhVakaDxmpuXzVM7WhqGQd8jLZwOksHqUJv3S1JY9rw6EbYa2f2nzWF8Jw5PiCGCltIR +vmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=snTaMkS4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-149996-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s22-20020a056a00195600b006edced072bdsi1363277pfk.58.2024.04.18.04.46.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149996-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=snTaMkS4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-149996-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 768DA284D46 for ; Thu, 18 Apr 2024 11:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 033C015E813; Thu, 18 Apr 2024 11:46:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="snTaMkS4" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 536DE15E7F1 for ; Thu, 18 Apr 2024 11:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713440786; cv=none; b=KhL6HKcGUwRm1vS3leTzKUKaKsXo0HVFy5nnSqg4mMSzXZ05Om0pS8/qOQI3EO/kERYudnv8sEWZElyikW0uUEE/OYtRvVOQYWYgcw5PrtY0lGfXc5Ge+yA+DrTY/UGcTlLvloaaLzfwNncdGOt6Ox+j6O5wP/A29wG7TVS6Q8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713440786; c=relaxed/simple; bh=iBG0vX9yUUnSc7xJLa95UFSBEe7L8q4kvAMhXz/Ogj8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Y4cttziJWupjijeI/2AJILSNz/brkBX5OB++9t4BUJxaXbQJV0tb2pTLaQOn94j6Tq31HbNEPuvdqvK7ouUMs5RCi3Xq6Y6xZIhS/tnp2cq/WFGExhs6ed7tbiMLkVObxueCyTqbccjGMM+3FL8wbrKbknnZe1DaJ0AIpX7EQNc= 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=snTaMkS4; arc=none smtp.client-ip=209.85.208.179 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 Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d895e2c6efso9824711fa.0 for ; Thu, 18 Apr 2024 04:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713440780; x=1714045580; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kdwIu52RYxxnxQn1jup15BiJTAHdx+Mu7Xc73+wxa64=; b=snTaMkS48iFaIXf4rXMjYmSVJzghaIv3f03dXiZNa6GFA1jTrVu3Uua3QOIAuyK5JM kRmlwHz53FGGTAEuHw+bPl4iqi9Sd0xVUJBDMP0tadXbXuGZ6DviaPQWAAyjMthD1AK+ JbXI3fUT9abwYfNYyB4Pvcv3Ok0cs/duWzaY/N+EV9eagK56/+oWn7bkvIS+6oeXzHIf chfiATNSr5maSLbq023kC2uLvU4hmsQpV4KIcVSFBVaDX50FTWz16WX3UT4C9d+yBLdQ J52CKpJOM1xzRzHb9MleANLb0NYcheyt+WQ83jgcv4kEJvPsuubSGVJEtcUspf0FrQgq zL0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713440780; x=1714045580; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kdwIu52RYxxnxQn1jup15BiJTAHdx+Mu7Xc73+wxa64=; b=RJOLoMhzbr9axQUezCuYkx6QnDbpgJLQPBMnX5GYWMCB9PEcwvLFqLTLisbQiRvznt KXyJQQFQfzR5NCfcTmkuaP1AKdm2cdCVz2MddBPIA7KWQaBIO4uFjBrB1dG+GqEC6C0C JqM6RvlYCOjEDSo0HUSNAq0KAHQn9ZPnG6RlaN3U/eO6MfbIOQ2SIFUxPLOdd7SPyZHg uufXpmgHOx92w6AGIj0Dd6dkq+8wrsGtQHyAKaIENSTMqSV7YhflfQyf0xAziP8byxkd DeAZS9Mul0JTqUpD9wmT9iw9VH3giKJVuo7T++gqyspQEO+qFUHQg2Br8CWhKkeGr4Za I0Pg== X-Forwarded-Encrypted: i=1; AJvYcCXs2qzhoJqQJfruOojYEAEsA5VhmklK/20a+XIW9xdALnUwE9PFwN84PTmCPOlP1+L/QQ+qnoEDCqAJ+5BXygVhFtzlu7AALAlDuLOM X-Gm-Message-State: AOJu0YwnwNr+sxmFdxye7yp9V8JdCFvZaALUdaINoO471iHmyBWBIJss PA07mpLIGIgVGbCdq4ppzgYSbZREjVkniCG88JBFjZyI0xBOH1Qq5N12w9MDuXo= X-Received: by 2002:a2e:9003:0:b0:2d8:9c43:e7ce with SMTP id h3-20020a2e9003000000b002d89c43e7cemr1345029ljg.10.1713440780278; Thu, 18 Apr 2024 04:46:20 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id y18-20020a05651c021200b002d9f3bed88dsm163296ljn.77.2024.04.18.04.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 04:46:19 -0700 (PDT) Date: Thu, 18 Apr 2024 14:46:18 +0300 From: Dmitry Baryshkov To: lvzhaoxiong Cc: mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dianders@google.com, hsinyi@google.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/2] drm/panel: kd101ne3: add new panel driver Message-ID: References: <20240418081548.12160-1-lvzhaoxiong@huaqin.corp-partner.google.com> <20240418081548.12160-3-lvzhaoxiong@huaqin.corp-partner.google.com> 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: <20240418081548.12160-3-lvzhaoxiong@huaqin.corp-partner.google.com> 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/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) += panel-jdi-lpm102a188a.o > obj-$(CONFIG_DRM_PANEL_JDI_R63452) += panel-jdi-fhd-r63452.o > obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) += panel-khadas-ts050.o > obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o > +obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD101NE3) += panel-kingdisplay-kd101ne3.o > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o > obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o > obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o > diff --git a/drivers/gpu/drm/panel/panel-kingdisplay-kd101ne3.c b/drivers/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