From patchwork Thu Mar 9 14:23:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167562 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 2572FC61DA4 for ; Thu, 9 Mar 2023 14:24:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0127F10E838; Thu, 9 Mar 2023 14:23:59 +0000 (UTC) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 32E8D10E82B for ; Thu, 9 Mar 2023 14:23:23 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id d41-20020a05600c4c2900b003e9e066550fso1333471wmp.4 for ; Thu, 09 Mar 2023 06:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371801; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=D6KllJHUXDeZBXsAtzTGNXsyP9gyEJdVTnwR7KWgVfA=; b=fLsjQNlasjebBF0epqPyPa31km+kGq5l8Xk4GxPJTwvF9zJ8Q/7Zd0e4ZGDeQjJuJs xw9cESvKeTfO6AA5BJDGhUvflCa2kd5me2Q0w9qrb2ChFHaip3IDsktWhYVy7Nb9Q6mU NA7S8qjtDtxr50TPX+fXckg2VtuzGLeV1LorvedOU47YMl00F1g+1m0PfUsQ1WNaiHDr MrCtNUIZkRzLI5kgFbZ87qCWu4NzCLeeCGUppie6LnBOwWcmjf4+Wz0NHyG0seHrKuB8 FINZCxu3qcXVB18sAP65jZ+yZ1OeiEP53WzEuFzLsI0laU+dNumit4oxoTPEPDcNfoXd AHTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371801; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D6KllJHUXDeZBXsAtzTGNXsyP9gyEJdVTnwR7KWgVfA=; b=IILRMLh3hHQeyXo7F+fPVARUe5C8eO5cPd2i1DWRRfnv5jM1TTkvqmTVVk0azT1w+H QczqmH8wI4aiSNDYsPI/Qa5bdMbZ3bNFeL7soN1JfxC3NElaqlsbVy//HUoJFEIRUrp1 KVOpe8/TekKaxuySyHrGwaklEEbvjno6lnJMWK/zh5Xj0YWtXoHIdV1SOvVilL2YionG d2JFqnL4JUm3egmd8AUX91b9BKMTPSP0FuDerNUy6bXfqgpwOYLAxZq6bGneKtmErAtR B2iGgN1iYLMzdI7quWrvmtxgeBHWe4tsaYgMVi9Vcumo4H7LKEYOVal/MEBgMI4puAaZ GILA== X-Gm-Message-State: AO0yUKWCyg/Fv3KblruubQc4YRrjfZhUJfJCXgGJE8mF6Rhq6cwyv62J LPqAkHw1L3qxeuWJPAyHFspUTQ== X-Google-Smtp-Source: AK7set9HyqvkE3Hz8Co8XteBvxDYXIqNVoqota62N1DOTm3jGNqEesiyfh51GaIKBky/QKHG9RaJKA== X-Received: by 2002:a05:600c:4509:b0:3eb:32ff:da8 with SMTP id t9-20020a05600c450900b003eb32ff0da8mr20829898wmo.16.1678371801592; Thu, 09 Mar 2023 06:23:21 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:21 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:10 +0100 Subject: [PATCH 21/21] panel: startek-kd070fhfid015: add support of this display MIME-Version: 1.0 Message-Id: <20230220-display-v1-21-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=14592; i=amergnat@baylibre.com; h=from:subject:message-id; bh=F1sY83LBSMBqvT5k/91ULWgrdpy2pr0yELajpS3zmxc=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+D2LAvO3T46e1nwJCXWgndX/z0FoMSsVKFeb3 98OYoTOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZz3D/ 4uc+5J5MnrgFJzo/vIR01HB+hITFpnLEm7e4yU2pBfkduM69jOnXUHBmZzXYaykPLk/rgB2u2IcNDg qwzTloh4D1NicmiHe7rHLpb4Ye0yCemrgBLkJXKLRmauoq9XR46KRgIjaJ1tcLvWkcJXQo2tCku14Z dEjqZIsp64IsQevsw4s4mZdtd2fjpEdGRYhYcRE0vfCeS03lNrk4BYmEpGt7doc9vqDD9Alz1gLQeL ofjTSNrp0HAK8+GoDSa7kMSPJge7oWTjvDM3m98rerGb0xopnUtcWJuvQIoFxsz+QKSqEoGMqc+jTN t8atEzs9MTEYN2c5Eh7dlR4KwbJgzzeNZrWMaFN6AcTrzb7fWBiekiB2fwbaEh4nZKorxiHgtO+c9N ZQqfQPGFdLtfe1zw+oW59jXn3GsOr+L//StUCAMnd0owICoi70Cgclvhdk0JixjCiAcCwKMhT1vpOe QQCDCMROQeedW8aImyYC7wfMad3vc6kUo072Vf3nbh8ZU8n6kkykfYHa+AxI1du1Opb37R5RYQVSTy t+hh5hMb4F79c3mKfM4D86/g9aU0W75yNwZDl7SZP6xMBkzyFuLFezm01u0Qa1TnzIutoDykevwkxj MR88e4Ykno09Vi80puy3OgLDKLOPowtpc+gfjfZYE/djx84p+K0AuPF2c91Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 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: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Guillaume La Roque This driver support the Startek KD070FHFID015, which is a 7-inch TFT LCD display using MIPI DSI interface. Signed-off-by: Guillaume La Roque Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 483 +++++++++++++++++++++ 3 files changed, 496 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 737edcdf9eef..3fccf025013b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -666,6 +666,17 @@ config DRM_PANEL_SONY_TULIP_TRULY_NT35521 NT35521 1280x720 video mode panel as found on Sony Xperia M4 Aqua phone. +config DRM_PANEL_STARTEK_KD070FHFID015 + tristate "STARTEK KD070FHFID015 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for STARTEK KD070FHFID015 DSI panel + based on RENESAS-R69429 controller. The pannel is a 7-inch TFT LCD display + with a resolution of 1024 x 600 pixels. It provides a MIPI DSI interface to + the host, a built-in LED backlight and touch controller. + config DRM_PANEL_TDO_TL070WSH30 tristate "TDO TL070WSH30 DSI panel" depends on OF @@ -736,4 +747,5 @@ config DRM_PANEL_XINPENG_XPP055C272 Say Y here if you want to enable support for the Xinpeng XPP055C272 controller for 720x1280 LCD panels with MIPI/RGB/SPI system interfaces. + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index f8f9d9f6a307..35771fc51187 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -67,6 +67,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.o +obj-$(CONFIG_DRM_PANEL_STARTEK_KD070FHFID015) += panel-startek-kd070fhfid015.o obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o diff --git a/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c new file mode 100644 index 000000000000..88466bf6428d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,483 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2016 InforceComputing + * Copyright (C) 2016 Linaro Ltd + * Copyright (C) 2023 BayLibre, SAS + * + * Author: + * - Vinay Simha BN + * - Sumit Semwal + * - Guillaume La Roque + * + */ + +#include +#include +#include +#include +#include +#include + +#include