From patchwork Mon Jul 31 14:31:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13334879 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 94C95C001DE for ; Mon, 31 Jul 2023 14:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tWRkRyhDreBtbXd9zIQGBMF+ExO7XPKC9p7ahShr9/4=; b=0OAwq9X96iQs4u Qi24TndreI/xv8FGUjDVt59doPLHI2AencjxeKxLTUf+aVdP1U1CH0ahGa1US7eatMuw0+knfr5HP cTrb9SW/Gi4C0BH/PyM3LnNwAootJkPt2cA0ZDErKUE+IKLrKi1FN2BjvWbJyXcomd8Fj0oRr3MaV 29TGmv6vLOpqFVdjLPyGhxAbY1rhkqoUO4w/XvmMj5orXHn2ayhzCjtD90JTbsBEVPLgnsS9CAcG6 ++1EtcqmcoaGS7Wa/axh4+BUACamOwXy+0e5SMG4LSX63AhPvtx9SP2T5JlwipxJu8PDCITYYPIHv E2fQKUe6PZC87LHZ9eEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQTwb-00G8YA-19; Mon, 31 Jul 2023 14:32:21 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQTwF-00G8Nk-1L for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 14:32:01 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31771a876b5so3831764f8f.3 for ; Mon, 31 Jul 2023 07:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690813915; x=1691418715; 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=YxpXkYaIGzW41hant1uhDW37umD82oGFuc0Z2kbuN2g=; b=yoGy8HAZ8YkvvGYpl1Zy2qRRfPuU8pBYdkPf2AhI1ZDZGxTZM+oD0bB9ASvEWKqjAP u2paIPaFD6n7Y5dUaHH4uCZHXFFHrLvNTWY935Lwof1pkPeMawo5TjBLuW3fYr8+6G0k wU+HHAob0Gi5dKoTcULRn5Ld+lmt4Nzo4VGDN/jsXF9akoq1WvADX0SAGEEx1+D2ZdWr kE4Hc7BwC38Q6LCK4NUeyPzZ6f1N+GYUEH3ugILbIue8mElh/8B0gHpityT6CK4dayjV 3B6FXj9XvDOt4BewRTfvg9t9eHphDXD0AyAZA1AEVaDIujtwrCSmjk14hHN6yAAuaL+9 0NEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690813915; x=1691418715; 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=YxpXkYaIGzW41hant1uhDW37umD82oGFuc0Z2kbuN2g=; b=TWzqsrQ8hzuF/s2B46201xyEPSaZcmx2MFOsEnHtQTmn2zLdPYLsjANtdVqLtFKC0+ U6NwOooFvAQp1PQ+evu9dhJRT4Cdgc2jRjeXBilq7H/9AhXiNeVM3Z1JL8VDCy1wItb/ z12YAT6txSaT1JBzpdVrO6pcVx1/tzMMsUcvpK211iii30aKtkAr8uEGITDiff6Drz6u ZxZtf+Xxju+HCmftG5C+/CK5N0iZHC5hAAlc/D7rEKbZERzyNtFUxCt4h3M87eXL5b3Y 822ShZma21/0L7cZ7sYofZrSed2Mtihieblx8DJgrKx2UCpnkOkDrHwSJeGeybvaONWl TPaA== X-Gm-Message-State: ABy/qLbderuKb+DqnradewOfQZxgnMN5xQ7b+rs502epb9FlO/djcLgU IgUCQ0Xkz34ILc8ND7EayyMbCg== X-Google-Smtp-Source: APBJJlF71IgLFTZ0FRC8sq65FDqjFQmxhxGRioig6iebT2gy63PFVVfMASf7Vsp6SObmIrg9ncJ2Ew== X-Received: by 2002:adf:edcd:0:b0:314:8d:7eb5 with SMTP id v13-20020adfedcd000000b00314008d7eb5mr8901wro.29.1690813915666; Mon, 31 Jul 2023 07:31:55 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id i8-20020adfefc8000000b0030ada01ca78sm13301675wrp.10.2023.07.31.07.31.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 07:31:55 -0700 (PDT) From: amergnat@baylibre.com Date: Mon, 31 Jul 2023 16:31:46 +0200 Subject: [PATCH v3 2/3] drm/panel: Support for startek-kd070fhfid015 MIPI-DSI panel MIME-Version: 1.0 Message-Id: <20230711-startek_display-v3-2-dc847e6b359b@baylibre.com> References: <20230711-startek_display-v3-0-dc847e6b359b@baylibre.com> In-Reply-To: <20230711-startek_display-v3-0-dc847e6b359b@baylibre.com> To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Matthias Brugger Cc: AngeloGioacchino Del Regno , Guillaume La Roque , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=12977; i=amergnat@baylibre.com; h=from:subject:message-id; bh=oyKSogIgtFI+FXdejaJbM0UC9Km/nJHsUg1q0asfWDI=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkx8XX07Cp5h7VaRK6yvHJd97T8K0QDxTLe1kHdk6s Pmeg8OSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMfF1wAKCRArRkmdfjHURWjQD/ 92YExgkVbr03f1d4by5WdIdig6vFThSB3PjrckRYG6xiKQxC8MPpbpRa5LL84aKOhSdTHdNFHGcc0z v4UoBBhk7G8WweeLeBlr34M39mbAKUykRPqQDtznbb4AaUI5OP09WLVIaTGQgMNkQFO/fFNKYQAU3z O8+dnrTO2rqPi3QZNMCUjGdOoJwsjLVmKu95c3yX41AFzke1RDTAVySioD2DkKOowyINFrbfPz6vyS IkteI40WZzS7eBjb1enQRtUxkAaMjIRw5jtgIocBZ7PFcOnFcMdClqIu+cCDpRbge0/KcNIGIBg8qe 2VY/Coh1gfV7hMUbhvmBmCb8WfqmluPAmiXZM8ZLpE+6XDUDi0qPPa5d7G5KA0GjAYDJnJ+mf1Y9Zr joFGaKk0vs/t/q9NtSRaWgwbc+X5tAi2QfB54AH7G/BzuyjiWfqKbHn8oJLYQmxL+OQ2WZGwuuFIlx KcJRGybLBaZWPL37L6Ldvbnrz9+0Wk1gzWi1C837DqSjd8Nlc+axzg7pG5cNokrBZtnl1ef6eBiNSs bMC0n0ZR10/WeGnCdJT7hZIOhj33vLQIrvtG2H+zg9TrNvHB9VNuM0OsrZgH5U94+c7+2n6Kk47CAg CctMg4xwOixKM/aO0nxzFCfmn8+Hfataod/VT+/MjRUx43xxa4bvGwvSmhvQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_073159_456944_0F2F9802 X-CRM114-Status: GOOD ( 21.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Neil Armstrong Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 412 +++++++++++++++++++++ 3 files changed, 424 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 203c0ef0bbfd..c45e877c22c1 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -733,6 +733,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 diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 30cf553c8d1d..f8b362091ce7 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -74,6 +74,7 @@ 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_TD4353_JDI) += panel-sony-td4353-jdi.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..1ed950195cdf --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,412 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2016 InforceComputing + * Copyright (C) 2016 Linaro Ltd + * Copyright (C) 2023 BayLibre, SAS + * + * Authors: + * - Vinay Simha BN + * - Sumit Semwal + * - Guillaume La Roque + * + */ + +#include +#include +#include +#include +#include +#include + +#include