Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp963310lqs; Fri, 14 Jun 2024 10:25:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkkSch6OiQwbEu6oH7Lx+5M0rOoWr1a8QeqVZeRljTMsqZe/UrsCcN8445Nv5mHdM1jUDMmnaF8cJttX6hPMaPMrNYuEySZNPwt4YQAg== X-Google-Smtp-Source: AGHT+IEw6e0mCJL3bOJDKHfktdPirrNrgUGaMenIX8D/foHIANn8rVIGsOOtiR7aNG1X+DmeTMTG X-Received: by 2002:a17:906:38d4:b0:a6f:23b9:4e5f with SMTP id a640c23a62f3a-a6f60de24f7mr208104066b.70.1718385949153; Fri, 14 Jun 2024 10:25:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718385949; cv=pass; d=google.com; s=arc-20160816; b=F9ETfRoJI2BRq3Y0trZCxdIw2jrFGH7FYGN7Tp6H8dokiLIybTgJvaMlqINnfV2Y5o XyeDu/HLMLJS/EMld5gvd0jiaAK7pEhlF3FHvCHyJ6uNhe5ioEi1161/+DNn684tYRGU JdZb7QARqQf7cEgiHJ9djYgEmk/aHDRO0qZeMlFJbXzBccyri9+8o8Hbw2xAZrq/b/Vk 2QGXJfaJ+1uGZHIOF3z0WN489m/o0UcRwOatvLp/IOME0RYfp1DcNfDMzcbWxBvwpPnU jV8dt2xTyA0IFFKeFSbZZ/IpyNVhXBPq2cqedrlPvvpjU04yTB3RV/0/EMBp6zurm2mo fX5w== 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=4rFdu1CPumeDQi2PZjjILFKgaVbO5huNzucSpNz1pQA=; fh=36pAYFarx63btM1cBVU5CCfRvnkpR7gR1m74k/Zo/eI=; b=kcsD358p6nj81tUlO9WJ+uoE9NwLqkv1E5mTiNVU2i4U4mJBsSNMyrFt1VepCVtoNZ JNE/sK/5kWklXJT15//R/iv4tTfLocCRe/s3jX/Dz9tO1g0cjZlHcRmRcJXO2AHL1TRV F8BfDZbJ2xqhgI3QOKjGwZKNi+JnowPRAicNVQIs4ahTFl8uMDIomKeD0P75vUha5F4Q pLAPaJjg0rW8sKi+pMV0gfYpUzl+nCIxbkSa+0l26cbRm2LXlv43infVlOCGwIyt4cr/ CkkPuLC+ZCYrBhZrCd2u7VLyY3Q12JuMppmKccBA5cX0KY2u990zFkbbWRCZtWzO80s3 4C7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YVZtGXQQ; 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-215336-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215336-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df7391si190900966b.575.2024.06.14.10.25.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 10:25:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215336-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=@linaro.org header.s=google header.b=YVZtGXQQ; 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-215336-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215336-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 93F241F21CC9 for ; Fri, 14 Jun 2024 17:25:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E4AE19B59C; Fri, 14 Jun 2024 17:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YVZtGXQQ" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 79095383 for ; Fri, 14 Jun 2024 17:25:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718385941; cv=none; b=YEndE+48FQZUmXC2exIoDTMaDGzfsJpFObYI+2vsK3V0qAMrOfFvbvI3D7ZJ2jXQoGjuKrf3wmj36rBN/1woxDkwRCRilafIjp7bSV8n6lcJJes8tCecbih6EDUoaDogE/+m99JdRlp/YPGd0h6msJJChJq37Cqc4vpR0QDZI2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718385941; c=relaxed/simple; bh=vBX3EwghdfFnwNNHO1PeN15fRbTpUXNPhtOQH3q95ec=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vE+cbIUMOGTMejnt7HVu0yz6eV4dnJWZal57ncA8GQ0obUKJRhYinHATYLMoWCFxNPNFnim3z8XpGrAzIVOTAw0fz/sx3sAfcASMsslcpXsH9f1Kobc2eSDDTKo97qvG8TRJdhHdxCJLP4e9HHfZW8lVMKNbRwXOvKtt7Z9RL5k= 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=YVZtGXQQ; arc=none smtp.client-ip=209.85.208.172 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-f172.google.com with SMTP id 38308e7fff4ca-2ec0f3b9cfeso13482041fa.0 for ; Fri, 14 Jun 2024 10:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718385938; x=1718990738; 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=4rFdu1CPumeDQi2PZjjILFKgaVbO5huNzucSpNz1pQA=; b=YVZtGXQQVmx9AQ381SYgx+VFoAvvbCoHf6RkxaWQUUkgux4Mx+Dxf8xII83PP9LWha fBt5VLeLeMQN8eKGP6QJCCC47fYmP/Nu9VmaR/1kpOQUcTg3w8FZBXRLjwuLRAumN59J Te4kNoDkJA7I+PG3JzIMobIUwr++ipYDu0xMDQFfQU7QuhlV7/S6kve0JfXlaAdIMss9 3VJjljw5NojfW561zsNXJYqc/llEOurHtM3X5ZyC3wZN85dHFJz7qsscZLwX0pPk7hpc cMytOEJ5NrMPUjH1K2px5kN8xPSVIxMA4S1hFkm3kgQfLImKYmKoRSjRd0GSfXUjzOQo 3JLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718385938; x=1718990738; 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=4rFdu1CPumeDQi2PZjjILFKgaVbO5huNzucSpNz1pQA=; b=GqHdQ/P9Sys2UC7A59KTH/vvBx4zDS12hzSEKoKcX1GR0Z0wslWiK+mNgzEz/+FDqi TRqyRiotRfo6rcIBcDTLXV8mBjbXVrojrJge46ggg1S8prTl24e98Ghnq0hyVEJhA3mT tVSiNzNxqUgq7vD2uMG/q2XUwH55CPrE7kQR/usJPDhPVJk64oaAXyd+VkrtKMMLRbHl HBG3RiStmyaxEjHFXIBY4InxUs0VIs6MdXjIdBQVhqrlohtH6lqvzp5nx3pQkKumi47n u/R0m8bHGzLQ+OVuAA1OeSI70yC52D3MgogrkkjiCHlaJRfLFOPxReQZgh8X2WmSCQ6w EQYA== X-Forwarded-Encrypted: i=1; AJvYcCXRnmSUOSUD9Xu+C98VAKgbT0z60+kAathxmU/7uz5dU8Bb1ooDk/m/UkqDl9nX+4QfdKPjMWo4sGryk3Nr9mL1IeOAxPJ8++ThoH3c X-Gm-Message-State: AOJu0YwmvQLVd3C+81GmGZVcO1sL9LlgJ9D53QCAPPMwjSOWMBE/oivZ ix+z4Pz2+0/j/iswvjW3K6corE5477bh6P9xVyQCFh3FMhKTtsTGrIpu2YMEuAg= X-Received: by 2002:a2e:2281:0:b0:2ec:ff6:3bcc with SMTP id 38308e7fff4ca-2ec0ff64128mr17646271fa.5.1718385937443; Fri, 14 Jun 2024 10:25:37 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybrhy-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::b8c]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec05c89bdbsm5853501fa.110.2024.06.14.10.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 10:25:36 -0700 (PDT) Date: Fri, 14 Jun 2024 20:25:35 +0300 From: Dmitry Baryshkov To: Zhaoxiong Lv Cc: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.co, dianders@google.com, hsinyi@google.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] drm/panel: starry-er88577: add new panel driver Message-ID: References: <20240614145609.25432-1-lvzhaoxiong@huaqin.corp-partner.google.com> <20240614145609.25432-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: <20240614145609.25432-3-lvzhaoxiong@huaqin.corp-partner.google.com> On Fri, Jun 14, 2024 at 10:56:09PM GMT, Zhaoxiong Lv wrote: > The bias IC of this starry-er88577 panel is placed > on the panel side, so when the panel is powered on, > there is no need to control AVDD and AVEE in the driver, > only 3.3v and reset are needed. > > Signed-off-by: Zhaoxiong Lv > > --- > > Chage since V3: > > - Separate Starry-er88577 from the panel-kingdisplay-kd101ne3 driver. > - Use mipi_dsi_dcs_set_display_on_multi(). > - Use mipi_dsi_dcs_exit_sleep_mode_multi() and mipi_dsi_msleep(). > > v2: https://lore.kernel.org/all/20240601084528.22502-5-lvzhaoxiong@huaqin.corp-partner.google.com/ > > Chage since V2: > > - Add compatible for Starry er88577 in panel-kingdisplay-kd101ne3 drivers. > --- > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-starry-er88577.c | 343 +++++++++++++++++++ > 3 files changed, 353 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-starry-er88577.c > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index e54f6f5604ed..a52aa2552ab8 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -781,6 +781,15 @@ config DRM_PANEL_SITRONIX_ST7789V > Say Y here if you want to enable support for the Sitronix > ST7789V controller for 240x320 LCD panels > > +config DRM_PANEL_STARRY_ER88577 > + tristate "Starry er88577 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 > + Starry er88577 controller. > + > config DRM_PANEL_SONY_ACX565AKM > tristate "Sony ACX565AKM panel" > depends on GPIOLIB && OF && SPI > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index f0203f6e02f4..ecd843a6dc6e 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -81,6 +81,7 @@ obj-$(CONFIG_DRM_PANEL_SHARP_LS060T1SX01) += panel-sharp-ls060t1sx01.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o > obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o > +obj-$(CONFIG_DRM_PANEL_STARRY_ER88577) += panel-starry-er88577.o > obj-$(CONFIG_DRM_PANEL_SYNAPTICS_R63353) += panel-synaptics-r63353.o > obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o > obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) += panel-sony-td4353-jdi.o > diff --git a/drivers/gpu/drm/panel/panel-starry-er88577.c b/drivers/gpu/drm/panel/panel-starry-er88577.c > new file mode 100644 > index 000000000000..a8250a464883 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-starry-er88577.c > @@ -0,0 +1,343 @@ > +// 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