From patchwork Thu Jun 20 11:52:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13705292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4AA3C2BA18 for ; Thu, 20 Jun 2024 11:53:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C699010E954; Thu, 20 Jun 2024 11:53:04 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="ZiuzNq1G"; dkim-atps=neutral Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id E5C1610E207 for ; Thu, 20 Jun 2024 11:53:02 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2c7b14bb4a5so614727a91.0 for ; Thu, 20 Jun 2024 04:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1718884382; x=1719489182; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=TZOfcyLKgj+yv+ED942rapRmAvPkDAxODQtfckKPepA=; b=ZiuzNq1GdjmS74eVAUZ30u/RvcxOCuzzNtFxq7epP5tbFh/6GRxFBuwthZQ02BjwwB 8tRpfYhY4fxJaJ7fSKW1tH9yfG2f7iAfTd6OUlbkf8GXN4OuLVQwA6LXkeRC0ZPiiTuk 7+AG3UYWW9+veUZ/nLn2rR3LASIdP3If9ROmSOEkljsWuKaJuHtYiW0gr++fdAUMCgna sG6+we90liN6qHDrfpnqVN1GT7T3RLowZFv1qLucc/9IUu9z1iBR1LCfzdLiQcwSAO7C f8VHWKrsHG4A77143ddSNz/WkBReIRdHwkliSBqOsqoltxcCUwiwBnIHVGkEHo7BETxk 5jdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718884382; x=1719489182; 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=TZOfcyLKgj+yv+ED942rapRmAvPkDAxODQtfckKPepA=; b=ePVebZYjzc9dLkh2qbytPhv+9lWvMi6id27ARgxFuqoBmI/29Sk13jFUIHR4KYNK0S aB6Lsb9bAKehbVV3YEwRRHmR5fM4/XfLw+TOzp1FD/28si12HoCrqYOSTcEYNMvn5Ueq oUguEiQHzFrqAu11wNqqRcXzGud0/mg22z1WAzsysXbHCXMwZVx3l7yvNJgillLZSA8a 40Z3SO3QJrtPUtWZ5CWHGzFe8gaaYgrJxx4e8Eh3cJsxN/TDlrTyCieO7KjLxcjNSKXp o8wjO7r4VWiMQbxtnBVGT7O1fEFBg/KIITj1s1t9dDKZIgXCqhkdTO66wMBMluBs31Jw 09mA== X-Gm-Message-State: AOJu0Yx0ffpPjuTBAGnW329jPl1U9VwmfVCy2n8VqSY3KTwA5t1KEwmc 1kTO/sW0OehHGg1ewK2WBPN/QSikOLrmyt4DYuOdvtHZW/0/Uag5raZt8h7jt94= X-Google-Smtp-Source: AGHT+IGMNnTgKPsfl8aIi5r8uzi6bXKkR5QprrMn7nZuUrBC67TYRolWeSqdoOUgVCP9/FJ/JCF9Jg== X-Received: by 2002:a17:90a:69a4:b0:2c7:45a:d237 with SMTP id 98e67ed59e1d1-2c7b3b0eab9mr7321636a91.12.1718884382279; Thu, 20 Jun 2024 04:53:02 -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.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 04:53:01 -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 1/2] dt-bindings: display: panel-simple-dsi: add Starry-er88577 DSI panel bindings Date: Thu, 20 Jun 2024 19:52:44 +0800 Message-Id: <20240620115245.31540-2-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> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This add the bindings for the 1280x800 TFT LCD Starry-er88577 DSI panel to panel-simple-dsi. Signed-off-by: Zhaoxiong Lv Acked-by: Conor Dooley --- Changes between V4 and V3: - 1. Move positions to keep the list sorted. v3: https://lore.kernel.org/all/20240614145609.25432-2-lvzhaoxiong@huaqin.corp-partner.google.com/ Changes between V3 and V2: - 1. Separate the Starry bindings from kingdisplay, and add it to panel-simple-dsi.yaml v2: https://lore.kernel.org/all/20240601084528.22502-4-lvzhaoxiong@huaqin.corp-partner.google.com/ Changes between V2 and V1: - 1. Add compatible for Starry er88577 in Kingdisplay kd101ne3 dt-bindings. --- .../devicetree/bindings/display/panel/panel-simple-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index db5acd2807ed..f67059d44bde 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -58,6 +58,8 @@ properties: - samsung,s6e3fc2x01 # Samsung sofef00 1080x2280 AMOLED panel - samsung,sofef00 + # The Starry-er88577 is a 10.1" WXGA TFT-LCD panel + - starry,er88577 # Shangai Top Display Optoelectronics 7" TL070WSH30 1024x600 TFT LCD panel - tdo,tl070wsh30 From patchwork Thu Jun 20 11:52:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13705293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12C2AC2BA18 for ; Thu, 20 Jun 2024 11:53:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D9B910E207; Thu, 20 Jun 2024 11:53:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="UMaM0v/1"; dkim-atps=neutral Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1BAA810E207 for ; Thu, 20 Jun 2024 11:53:21 +0000 (UTC) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2c2c6277ef3so659486a91.3 for ; Thu, 20 Jun 2024 04:53:21 -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=lists.freedesktop.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=UMaM0v/1yIic/SEJIJQbKjdRe85biHKjlQzEpDJUEac6XjXeHoVgWzKWUlvDXA1mF0 ClGzNtj0HwUERjAILBr/GBWF1ezlIS7k/HIVskWsK/R/6LLdxfFHoNKwcXlMtSlUc7Bn 07Lu1Dlui6VgZB5AEcipt7WTn34NWhbF4hE3uCy2Ctdk8tEh/zmG/Kz6rVMM1SA7b0gt 762sPtZUTeRyAuZDkCRN2ME155Xz3aKeZweGmLQbe6T7V3Ul/J1tjV3Pxsp7RVCB61Q/ vQUuag/bq+EGisuojZppDGkqkrz/2W6aoQSSOHuwq1siyHFPnEPJ4+Cn0ZzLjZjebuh1 7OFA== 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=GjUOltLi4QXcFS4qw4GAwgiROyDzYPQ6pQcf9d1sliHTIt48iIv3wyJFkgVu6kyDza scpD2rGdXAN/AS/H/3h6ynnvcOBn1kFzES3i/b4yD06xRIgPMNPuDCiuz9oeMOccy25S bDL5619nmjLJI+HaWGO/A8oHYLZWSHhMF16BLSLnvoQL/Iu2hQ0c2htExygwgVJILlEY CO7/2jQXJrJ/8Sk8dEd4XljpjtHOp6nXZCusSd3CgtaUnWb7uihDGDxADxFL1XbhN0au olTNBO89YLEUnRh/UWm3dUHIJDQVRf4z2Xq9/cVXoRY/ab5MoWrrv74b//mq7ccEO7Qr yGdw== X-Gm-Message-State: AOJu0YzeGpG9ne7KhUF+Iz3dYtz3hl4oJru4bn5Zg0woDeML1Ful1hFs bJtZ5DtERzd/dvx1AS4+OsrxxzEcIYhwLdWzsCFUqPduX6x1pEbG6CYYxnK5e9w= 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> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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.corp-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.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..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