From patchwork Tue Jul 11 15:36:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13308988 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 DB0CDC0015E for ; Tue, 11 Jul 2023 15:37:37 +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=ws+4SxHSPNj5XSrqziYVEok4mRSI3rR0k+1eDbZYhfc=; b=ycra05Zy1UvMYW SS8CtAkgb/9o9hcYdFRK9eLx4zPu3FmP44Ym5eZKjbjd0GOuatiZO+ptXDe0Xj0MnKajvxEVqgILy j9F/XnKyXv0kg0yzCZA8IC5goqmm3PmPVj5oe/Pnx4A/0DTlJ6ZG7kg320VK94D9z6QLHXIsJqiDc Tt29Q84RpTryMptfc+YcpmfSx1DQMWdufIZkL9+Ks0QOsaBO9LrvegswypyVima9vR21HogF5Mj50 a1xeL9hgCBMULd7M2cDzkoOQWFdkOkBJDsqjn5QWIvno/RmgRZlXGzqte5OKjKp1bD0uqw9WlUoK4 h3Kc3XIXg2RhM+fgBmDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJFQ6-00FG8h-1u; Tue, 11 Jul 2023 15:36:54 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJFQ1-00FG5g-2m for linux-arm-kernel@lists.infradead.org; Tue, 11 Jul 2023 15:36:52 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fbea14700bso59907095e9.3 for ; Tue, 11 Jul 2023 08:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1689089808; x=1691681808; 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=vPcV51AbqHtxqJ+d7WWhuolCfA/RVehAdOX/kd5PK9s=; b=QznZ/jcPXWXSQzRx1J8KDuSjae5xvnb9BmLlpCDJqDHFevd+q33oQM+9Fteq7dsWTt fZOaaiD6caHVKkOGRIqfutXKMwwdCZPyDVt1BZX7lTTJk1DIRYpBlFRl+Zy7Wk9QKbO+ cV58P9b0L6agxQyG1zTkeKr4rbxbSzl4swfJykP5I3Si2nQ1QFmDgISId5TNKH4AfwDH G5O0lfqc135j1ktPbTBCYusEmJW75RokMilFESkFM+QxZiG7CeA1cXKF2THlD+XvkEpG 4OtnfTUg0UbN1SMd/Dst82CmLk36SbkiyDZmR/AgxJQ7I0Y7okKElc4uiJ2G25Bc4PDy EBqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689089808; x=1691681808; 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=vPcV51AbqHtxqJ+d7WWhuolCfA/RVehAdOX/kd5PK9s=; b=F2XwlnXVNkYHMKvua2QE67uDJ2jctPN0nE8o0Nu4FoDBLCp/TSdb0KPDdJ4kVnrB4/ 1DFA4yl/Wmr685caHN5LW8QZ50qwrddMRykbyp6qNAPjN/Oj8xcsTkbbdxVEMDkbWGMx KR5tBAuwu9Mc9L+Rs7dnDGYUCJ1/y34gJNdDQJiiIMKtfkVQBiFaxOKxeph5+FgwSnKj Udbgu+J3AXRONoVa6kop4HjxxZiCIFhcTy+0Nrkx4FQJvqx9m6W6IPBX0M9q4trjOIWM SUG5xBql2x8/SZxrTqVxWDySiBlyWCCsnSPEHrIQG5qAcXettocmp4KQ+Ncv9U0SBz9e Uthg== X-Gm-Message-State: ABy/qLYxNQujp5oEp5GakIKqfsj5jMG4Hf7eDQm3VPLNqe8k5TouJAw6 0HRs2IlyofpotEvOufUfO9WT3g== X-Google-Smtp-Source: APBJJlFyyKctYWKfCCaxV2cIOgXimrKZZPWchhD1f+z0PCU+Hhdjmi7AqRT3QDOpZqnbYKGiZeOCtQ== X-Received: by 2002:a7b:cb97:0:b0:3fa:93b0:a69c with SMTP id m23-20020a7bcb97000000b003fa93b0a69cmr13599406wmi.24.1689089807788; Tue, 11 Jul 2023 08:36:47 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id v6-20020a05600c444600b003fbb1ce274fsm23458249wmn.0.2023.07.11.08.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 08:36:46 -0700 (PDT) From: amergnat@baylibre.com Date: Tue, 11 Jul 2023 17:36:28 +0200 Subject: [PATCH 2/3] drm/panel: Support for startek-kd070fhfid015 MIPI-DSI panel MIME-Version: 1.0 Message-Id: <20230711-startek_display-v1-2-163917bed385@baylibre.com> References: <20230711-startek_display-v1-0-163917bed385@baylibre.com> In-Reply-To: <20230711-startek_display-v1-0-163917bed385@baylibre.com> To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: 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=13371; i=amergnat@baylibre.com; h=from:subject:message-id; bh=/FPW3L6zEYl4GK8UP9yHXW9+2xrRK22Q15yhPPA1z00=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkrXcKXhuIH2Nv5rNyPnSMihPn11WOJ18Zsd687qsk T0L6vx+JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZK13CgAKCRArRkmdfjHURfUUEA CE/+rhDwp4MGo2x8Qei/4kDMWQH0rcohT2v21QBW/QjKcG6Qqa6mCnTBThVEtfuyaqUBR5bHv3r3UW 6DxKJE7/kNaa7mN2XN1nHMpVzlBFA/X1fwBvEm2HuCaH4ndjiZGP5tWH8hmLjaORd7QH/WPcws2rv4 2BxsDD4HoqNCvGDaDme15ZA0IjBW+oilbFA5Wxy4Al1kUvwYpoi90t6cGNFeAyk9kLJ7jiHsdLkOok XiUnXQ3bBB8qAHqVCm/gHRRwaqEHFiYOIBvvwOfIJ6dxJPqlB+G+sQfZPpGnhAEyW8Z5fRo+q6X1o4 eqKYp44vL2xD+mIDSpOPSP7w90qpTm12IbexkFMuWoh985bStz4wOqHrtXIvA/gI6XJcG+Kltz9gzM K1tDXcSgJwv3w8lL4Vj+NMviPuOWGOH1L1pWMD+HQS5ILJzi4wJKbREOoXJ4hKjrqdqoPls+zMqVA3 Ic5L8kNTwN61DsbJYXRDWDZbQjyJ7F31aaoYX/zL+SV3WSazfSbPmpIlZQ0Hj6JgFZ9tgtJBdrPA6T Jllmhz3YT1jXYvjBphbyzOdE3xwcYYBfwUdFFztuXRVPc7h25VA85r+m/RbOWeFEa35vFe8xbIamRx 7yl8IBCRFKXD8Xg94SBuNcX4xITD+j5nm+MU+N1Lg9RQN4kCnNBPq1p/DoBg== 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-20230711_083649_903781_B490CAEE X-CRM114-Status: GOOD ( 22.19 ) 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 Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 434 +++++++++++++++++++++ 3 files changed, 446 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..a9f030a292af --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,434 @@ +// 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