From nobody Wed Feb 11 21:32:45 2026 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 29E6A1AC228 for ; Thu, 20 Jun 2024 11:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718884405; cv=none; b=RZJntRkAr7F1E2kE0MKk6Si3PDXmbwai8+GvZyhha5kalh5RRfnHZoQGEyz9njtq16NX8ZDFgyi3Ng+MTsqFMH99HihcRoN+JULiz0tt/mviURWH1DtxRVStWsPLqtcQr6zt8rLdws6gTBH4wFTLhSH9fOdjDb9c8HQPFo2JYxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718884405; c=relaxed/simple; bh=JbjvBSoeGaOTiJHj0pNmCK5cvxVytAzO4Zwsf0Qcm0U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=mltqKU7bp9dBgMcjUYny+cKCLmphQ8lgZNpwZ+5LamaP1VU2+Lwf2n0AWHlq9fXMrZJ3gm6ArGms+IFshVpOe64oQmcX8555aDuIHwGLfLF0/6Er4+w5qdYbx/3GlUYjoKQFcnLhWizg6MxCKP1Apn3/0l5jZE7/zERnf0mi4jE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=dJgh8jUO; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="dJgh8jUO" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2c7fa0c9a8cso265648a91.1 for ; Thu, 20 Jun 2024 04:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1718884400; x=1719489200; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=SGxsnuQ/Ed2W6oHEgWL59ov1wcKeqfhC4//KwM5fATY=; b=dJgh8jUOgG61iBXy4fRlzFvd9wOUrZ9UGE2Hq5eFanWF/mjUMwsVvHEmQNqGzKiMW3 T5CzcO+BfrvRlv7wINEnFbDxUmhwA1+TaBxXS0rgKslb0qMwFU9tZHOPt0rA4giwHNUZ ayf7UOmJRKKocM/3pOb2iYaC+F68oJzUcUZgmyVH9CExSs3cdwe0H9gTgNDltkqQDfcZ +VriW4Z9B6JvXODB5zRhzD4Pr6OpHOE0tVYAVpOnR6Pr6CijP1PzD504CCIylYZRH07j ZzY0Kh6EkfIPNkSFxDl7SlnsWSEG0C/E/2pr4TL7L/OBs7KePMt3m5jVcG2YwpFAu48s 6rCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718884400; x=1719489200; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SGxsnuQ/Ed2W6oHEgWL59ov1wcKeqfhC4//KwM5fATY=; b=A1mlr393CIudTgm7qvfxAXG8huEtYx5Wz5ayLQ+9akuz9c/o9qKPMUFv9/No2aEXWL 1kqMjwjKAtxBbrFe1p3wdEASVaPRjriETRKecOW8cHkAMj5yv9Ibx3YdgIN2x1bEHVCN /yLYiehZVhjao2JMc3+Y7dk3glHi8swpsYw+cz7iJZdt0bu+bwag29MWe28mkt4qpL0U gp/s18PgFWI5t1XsNu+7yVUXAjnMQZT2G3QjPztZRZGX82VajGCMW1Cct9gNVQWBCDWZ eBLhRBh9HA7PiC8I1blvj4MP8Z0/FW3tNsdEQpswCYLxUBkIh8L5RkM2ZxyQbFiBk6/I SY+A== X-Forwarded-Encrypted: i=1; AJvYcCVIzuXpBxRneGh1srykFhtjJMVQdb7UCB2EN/TrCqDcC1wvLsI4nHwhipCyMP2CLYVz/npcHcm6UXKh5sQpApkDUaAIyFDnfqUagiXf X-Gm-Message-State: AOJu0YwwcCuRSHtB7XN0MQFtSpJu2kGgbnMmd6Ay2cUXQSudEpkvGsSA 6aZuFevFUZWyv4e9/7mSTsty7wyUwLoY+pcyPUgOQJp5Zx1Q8G09P8ysJiB+34BGmD0U2D8S5Iw I X-Google-Smtp-Source: AGHT+IGPaoUMZD2bE4TUQaAjM2Xa6g5NiSG8yzzsu6txP6paw9VEvEuLWcEQrpokt40rkmIuHxjR3g== X-Received: by 2002:a17:90b:fd8:b0:2c2:fed1:769f with SMTP id 98e67ed59e1d1-2c7b5c8234cmr4978938a91.13.1718884386873; Thu, 20 Jun 2024 04:53:06 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c7e64a1da9sm1486316a91.53.2024.06.20.04.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 04:53:06 -0700 (PDT) From: Zhaoxiong Lv To: 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 Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v4 2/2] drm/panel: starry-er88577: add new panel driver Date: Thu, 20 Jun 2024 19:52:45 +0800 Message-Id: <20240620115245.31540-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240620115245.31540-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240620115245.31540-1-lvzhaoxiong@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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: - 1. Adjust the ".clock" assignment format. v3: https://lore.kernel.org/all/20240614145609.25432-3-lvzhaoxiong@huaqin.c= orp-partner.google.com/ 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.c= orp-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 =20 +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) +=3D panel-shar= p-ls060t1sx01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) +=3D panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) +=3D panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) +=3D panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_STARRY_ER88577) +=3D panel-starry-er88577.o obj-$(CONFIG_DRM_PANEL_SYNAPTICS_R63353) +=3D panel-synaptics-r63353.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) +=3D panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) +=3D 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..e6088262ee69 --- /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 ER88577 display controller. + * Author: Zhaoxiong Lv + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include