From patchwork Tue Jul 11 15:36:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13308982 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 F2930EB64DD for ; Tue, 11 Jul 2023 15:36:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4976C10E3C8; Tue, 11 Jul 2023 15:36:48 +0000 (UTC) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 28DB510E3C7 for ; Tue, 11 Jul 2023 15:36:47 +0000 (UTC) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fbfa811667so33587265e9.1 for ; Tue, 11 Jul 2023 08:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1689089805; x=1691681805; 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=0z5zfDlJgblDPbH90jQkXFb124rj0cRvmHZvcD3c8U8=; b=Bf3HZ76PFgfk9RlSgcgP0opND/p+2ccJZ3qojqsfaH2pPZtwAfTO220Nvj9NltJ4y5 OfiMPDE4fyb+MUdbJG4bKJLBLAHRybOSFgBxbR0nFFkdf6+e8q8blPW5xTeMbtDLvxHV CWxAIoY39ESXd1up+JFv5Ve7aDax8rtrxkQqEIRj1xzLdWdD9Ow3241EkvpFm4IR0Iqm UGBEI08vMzKDuoybIn4hV5TCJ1tNdD462Ab1kJ9sXmxtBdWDZ+I45Kj1g3eGvnDsySC4 MHkD/2TAGu9Fd/65O2uLSV97rtfkjeftOk66frBFAAhUKFZQIey0iY5qBUknwt64Jeb8 rcCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689089805; x=1691681805; 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=0z5zfDlJgblDPbH90jQkXFb124rj0cRvmHZvcD3c8U8=; b=dadrDvvKAkbOEBWFDBR9Urdjm6UvPy7cWCGzB6Gnf3NAPaUrpAcbG+vmtr5y3VeTOZ UETrwJyYJpHGNCawudDa0NQGSA+1aO8tLB392HmuXa9w4ivZxLe++ODl70Ol6tu7uOhN YCfZQ48k6exOEUTDUcfNvKKXmGq9DgSl/8PDl61DuafxfombDqVUYedhPrVo/eCzxdTr WTQAeIYAAXfKqmxowR/Z1Yz6b187JfGPm+slNARCTW1NGGkWTZjv/l7xQA4JqfB8n3nl lENyX8sgnKRNAKJ+CXrXRkRuo+DhKkiokzpSFYZ403egmtarBonKF+I0TUKshfEpARMy r5uA== X-Gm-Message-State: ABy/qLZIgDx4C+REovc78IDsnAvLJBA3gZ67jLsGvAzmwSCtVpZCPRoF 6XAO+KuhO6drtfIDYSFhvLn/zQ== X-Google-Smtp-Source: APBJJlGXl4MDx60dGT+c7tQy3WNO23yUwT+V+1UoCMmX8/AIFycfsqE/pMSrZFmBZr2BvXHFVU7YYA== X-Received: by 2002:adf:e4cb:0:b0:313:e88d:e6d3 with SMTP id v11-20020adfe4cb000000b00313e88de6d3mr18617688wrm.14.1689089805644; Tue, 11 Jul 2023 08:36:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 08:36:44 -0700 (PDT) From: Alexandre Mergnat Date: Tue, 11 Jul 2023 17:36:27 +0200 Subject: [PATCH 1/3] dt-bindings: display: panel: add startek kd070fhfid015 support MIME-Version: 1.0 Message-Id: <20230711-startek_display-v1-1-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 X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1594; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Ujtb05N2fW+fMaNciuy01iapDl7k/u72Jx17MuBLiFk=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkrXcKfA2fh53Jo+c93oTbDBoSEtklb31hP5a4QQZQ L36xEaKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZK13CgAKCRArRkmdfjHURUo9D/ 44vQp6rRjJZELHD744OsROc4RSPqUfaqI7iGNPo2K5nE8hUTjDyTGZs/uOx+7xgFPhkim27iR8OmR6 yGk7L012x/+lhRx1MdcBZtUW9IKgrrU60Z1Ljr6RIL8oKTHf1RhGhGBPZQO5SCVtzvTPfKDPHiFe4A yvHq+Mk5isCsQ3c3zx5uX2jfJ4r5T8T3RInVeUxpgt1s8BmlcYpmSIHIGeJ0RnZ5GOZtIkzXf45YoT Ay491CMz6+AZ1RuTqffJnVD8xSiYdiqRSAzmjeyLjpoON2V3f2ezA5BxvpGFpRRAawWVhOd6Xds3W8 pv4rgCSuglELxhOTQ+z0Y0y08JhMRdOKETM5AaW6EeXodRIO1lWfLUkZzODdGC3WhxHHXboZ0StrHP VvwvpTvs4pgDL1zC/sM2u1llI2V2T30K0LLWIB1Ist7PzFoHxZDBgIZxPkC652flJU0HXFkB32dIWp +E7jZJhUyDHceICDDaYax6qsk3NraU+oGelTsIISp7+q4svhUdkdU8DZHpYopq9nTExJSYXAp+aPTU /h2U5XgSidiakTcnY4jbn7ge0vcvbgvv+MJ6qL1D/bIgHj1G1JtelVZhUZGWXXh7nv8KlsyBLi+Ysn 5J/bY38Y/hJU1/gQASy1PpfbaSgLJaI1hrY2vULFjq/beLur+J1mNWg/i2yg== 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: devicetree@vger.kernel.org, Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Startek KD070FHFID015 is a 7-inch TFT LCD display with a resolution of 1024 x 600 pixels. Signed-off-by: Alexandre Mergnat Reviewed-by: Conor Dooley --- .../display/panel/startek,kd070fhfid015.yaml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml b/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml new file mode 100644 index 000000000000..857658e002fd --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/startek,kd070fhfid015.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Startek Electronic Technology Co. kd070fhfid015 7 inch TFT LCD panel + +maintainers: + - Alexandre Mergnat + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: startek,kd070fhfid015 + + dcdc-gpios: true + + height-mm: + const: 151 + + iovcc-supply: + description: Reference to the regulator powering the panel IO pins. + + reg: + maxItems: 1 + description: DSI virtual channel + + reset-gpios: true + + port: true + + power-supply: true + + width-mm: + const: 95 + +additionalProperties: false + +required: + - compatible + - dcdc-gpios + - iovcc-supply + - reg + - reset-gpios + - port + - power-supply + +... 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: 13308983 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 66D4BEB64DD for ; Tue, 11 Jul 2023 15:36:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8513910E3CC; Tue, 11 Jul 2023 15:36:54 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by gabe.freedesktop.org (Postfix) with ESMTPS id C672910E3C9 for ; Tue, 11 Jul 2023 15:36:49 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fc0aecf107so30996205e9.2 for ; Tue, 11 Jul 2023 08:36:49 -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=FmO1oUHcEaJ7Vq0Khmdcp4TgcvJ8Sv4fX+BmHknecl/P1Dd9SvjhWDrs0ZOGvIJ9Yo BOJHzgG6kV025B4vrf4FwW0exM7i1IowVmmt2BFxinNqJHpWysUr0wycwQOuMAynBwqi GZfeU+geaA2IgabRds1xr7dtcyDCX7QiUhSHE+utN9hQ+eM8h4J7jKMc6/euCQlvr7dn 66G8dJRiqVdIytFX6bGh+dH00Y8kX85nfodSrFx3DiS+z3Yu69aYtBS+GmOjqbCqGxZA vCVB/v52hL6fc4dzJiMaq5jARNcjGMXVCQ68mH5u5pv5yAVGxTrSmDy38tRNxIcK6PR0 VBaw== X-Gm-Message-State: ABy/qLapoZ0Qyi2TRcPxW4oHCW7vD/8dZ2ldjfitiSsLHu02Zdw1v7Q6 sCY9O+8TYpCwOs6PA6dRZ57DPA== 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 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-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: devicetree@vger.kernel.org, Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.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 | 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