From patchwork Thu Jul 13 09:07:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13311627 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 72DFEEB64DD for ; Thu, 13 Jul 2023 09:07:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 880B510E644; Thu, 13 Jul 2023 09:07:40 +0000 (UTC) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1841710E644 for ; Thu, 13 Jul 2023 09:07:39 +0000 (UTC) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-98e011f45ffso68767366b.3 for ; Thu, 13 Jul 2023 02:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1689239257; x=1691831257; 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=8Ye7/VW9cCinL56beHP9cBXIlGvn2H6A5gltzFR9xZA=; b=fWiwwbxu2tZ/kId5fwzzZGDAKUkBpJD54BFOz4Y5FvfS7va+VQho01ZEaCog9vYDLO iMExqgohH4XqmqSSMtaoH4fwFgyz6PCIK21FYGs/IM2r4NKawCy+rcNp0UQsIYeNjTci 5rSEReuA5FVjX8Q0ArJlSnRnFM7vtX8Ui4INJMP/ntQ4znxTd5xbgSv84cvou2UgBHL+ tHAlJQ3dcl1E1LqxuWp61YlNabpg7PN3LE+5ZGD6XrE5PwrO2bK2t27NGUZScesXXa58 KqmhsoFlaSAswcWnHT0MZzQRsJvRgkH8HvMEXahTfCCcwGdqR1EJ2usjoWucarcUNwC7 F3qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689239257; x=1691831257; 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=8Ye7/VW9cCinL56beHP9cBXIlGvn2H6A5gltzFR9xZA=; b=FXbTop1xW/5TdE7r1Vzu74HiCj2TWJ6Xlx49WP4u3+Glv5PtkSUvdPnc5d7y1MsnNn 1ftZ4U7sTT8WXB4jPl3CzNCJvEdU4bqxNTSmTOU/3RhMuCIuqUWhhMZlcYoIWuGMUaBN V8P6n40dqot6KBGHvEZkD+PH/XrM+fb3ArFFH6LuuZSutDzYJCpI4mt9o8cVAUnU6/1G YqDuOxfDjYhiNK2mOf6Mb2r73ff396vzuyGoc+JIPBykck+fUGVb0lFQfn+yaWOjijCU UonarCF36+aoVNQLZbZfrOuKJ1A8qaGKR9ucf2kcAvhf2Jn3jrs2f6FdNZReFirc3kz9 psaw== X-Gm-Message-State: ABy/qLZje4sisXGNaaPVlzJb7IgkHoJK9HfBcpiDuxcFp8XgvZ/QXLCK kB7o0f/5GmDNRqDFLnuD/mcflw== X-Google-Smtp-Source: APBJJlE4RWnu8UySeR+I/AnNMVTMcejh9JKrDElN0JzKyETRe5T2FP4ozbQk5XNxWaEvbyhRscqEPg== X-Received: by 2002:a17:906:30d3:b0:982:82aa:86b1 with SMTP id b19-20020a17090630d300b0098282aa86b1mr726658ejb.43.1689239257081; Thu, 13 Jul 2023 02:07:37 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id p18-20020a1709060dd200b00982d0563b11sm3707352eji.197.2023.07.13.02.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 02:07:36 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 13 Jul 2023 11:07:33 +0200 Subject: [PATCH v2 1/3] dt-bindings: display: panel: add startek kd070fhfid015 support MIME-Version: 1.0 Message-Id: <20230711-startek_display-v2-1-87bc7bdec6e9@baylibre.com> References: <20230711-startek_display-v2-0-87bc7bdec6e9@baylibre.com> In-Reply-To: <20230711-startek_display-v2-0-87bc7bdec6e9@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=2211; i=amergnat@baylibre.com; h=from:subject:message-id; bh=602in0caqHCjA6zQgFgfTHmUoHJFTSnnwXSt1PAlxS0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkr77WZ01MReGvODiP68t92SzPhhTQdaCvcjNlnSPb u3M9RI2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZK++1gAKCRArRkmdfjHURQ9hD/ 4+x3Yzdw7Yq66K/FsTF6eEF9ZVve4NbbN8bp6Moh35esqNZ6T6tErXTZHif+nIn16rzDxqdHfGoP9L m2vEMUKQMaKfoIxqKmG345Se92JawH/Rj0KJkaBXUs+p0xR4Z5tEhiHpx5DRLRKCmvA8yF7aHRPFVy CocZcVs044MRcJ9UQMTLDWKOAvrwPfkyQOO+3UaPMRG3MNpet1nXbDw/UsMQ9EAgztelmxKb626fmE 7/4dOBXhpmNH0Nty3gM1jxDX+Huy0B5NOC110kQGBr3cUdKlz0DLc022Fc1rkcyoyEDBmvFY28O3dM 78go+FAwdBH9Qkd95fVXzDEU89z7KRgF6UZmZs2FVF1exFJtcUPDdKXisBCCSms6I53BF9Y55F+R28 plyBnZmBsv4TgNNgfSr8rx1xIpFaLKN5HBfVMwGnikvRkzX2PWrArPaaR0SCP+CltrZDy76cXdaqzF CPIkJjICGJPOwKHHxrrGb7Ew8k0CJaw85WtWvpw8FevYymR1/sAE8c/fV14kUB32we3tkOA2RSxZxD sXUxleJMcEMgA1eTEEI+AUg6CupqpU9RFjx3PnVN8OiRXvwDy2qRHRmEWQh+cDOsaFLYnD2Jf0oeVw RS53/G607awTAhSQSx11xeR8JVRG4Vbw/sb8i7CSTQVqVi7JnKz8CQF4Hjgw== 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, Conor Dooley , 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. Reviewed-by: Conor Dooley Signed-off-by: Alexandre Mergnat --- .../display/panel/startek,kd070fhfid015.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 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..d817f998cddc --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml @@ -0,0 +1,69 @@ +# 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 + + enable-gpios: true + + 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 + +additionalProperties: false + +required: + - compatible + - enable-gpios + - iovcc-supply + - reg + - reset-gpios + - port + - power-supply + +examples: + - | + #include + + dsi0 { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "startek,kd070fhfid015"; + reg = <0>; + enable-gpios = <&pio 67 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pio 20 GPIO_ACTIVE_HIGH>; + iovcc-supply = <&mt6357_vsim1_reg>; + power-supply = <&vsys_lcm_reg>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + }; + +... From patchwork Thu Jul 13 09:07:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13311630 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 E8A30EB64DD for ; Thu, 13 Jul 2023 09:07:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14B3510E64B; Thu, 13 Jul 2023 09:07:51 +0000 (UTC) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38F3810E644 for ; Thu, 13 Jul 2023 09:07:40 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-98e39784a85so374547366b.1 for ; Thu, 13 Jul 2023 02:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1689239258; x=1691831258; 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=GLZ2Qq0hxUOwLKBDjSg/3mDeSe/viOxP24IF6U0YNLE=; b=yVo47nz4folNVe4yh6di3V8aog6smFbeBW1a3QkhCvMY5MGaHRoQ8nkvwFKPy3jTfG o1dXGpzEMTPGPpKvhvuFHGu6VChR+T/mWfqaRykuonXjDJ3kw0p3r3X66AX4w175RrW2 JEVJfJR/Ndoute7dZaX/UDpaVNx49T7CNqBwEClcyJHFjCU+45WMfh8G7AYMbacyYTwR tEM4k+SoHYt56yZWrWaUXSWFgHa7CcWI9wuRnDvRXUfifSmOUAkUxvEZyZd9R7gd+R49 awfY+3oDPzGu2tHAsmZfuMD8JzMRWi9/o4tlQc8JwcqI0tHW8OOEarsIbuBCZHVbFqf4 0eMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689239258; x=1691831258; 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=GLZ2Qq0hxUOwLKBDjSg/3mDeSe/viOxP24IF6U0YNLE=; b=QIETUGgdOE+F8HFIF2zRM+1OVJoJNzhFqZ8Qb3OZuu/6I05xuZLjZX9bFdUqe4AP9B cSkitfknCZD0lO82n0gPYB76mPf7yh7aKFo2DEYB9vXgDYSdmnHLkmkyA+xn/R5OB77O 8CwRd+a/A7JdnNfgOsIaQx/0ZyPKnT4i9XYCDcSu7Jg11erxK1E/ShINqzb8+3XSL87I 3mGTPrkiCWUyzkZ97C2VhodxPbfQWnNQtg+hjdMwYEA9R4WRtZTu9cX6XSqdSFGmp99t yA11lwZUbGRsdTLH5qb1oi88gnADmKLECUpR079dvPAyFcQ1fbUbVwLoRZeJatf2/QyT 50WQ== X-Gm-Message-State: ABy/qLbizwyPXZDwFGK5zcpRV7PrspSmKc+QvY3Yx5EBm31iDOhay+Bi ryVx2MRazKtXET1bj23nsXN5ZA== X-Google-Smtp-Source: APBJJlE6ITrnQ0pNExiCNK5d90c5CKJUu7MQ7AlmN3Kc43oTe5Kmy1v8nAIR14j8mRwpw+X+8BU4AA== X-Received: by 2002:a17:906:5d:b0:993:e695:b585 with SMTP id 29-20020a170906005d00b00993e695b585mr1885630ejg.9.1689239258438; Thu, 13 Jul 2023 02:07:38 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id p18-20020a1709060dd200b00982d0563b11sm3707352eji.197.2023.07.13.02.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 02:07:37 -0700 (PDT) From: amergnat@baylibre.com Date: Thu, 13 Jul 2023 11:07:34 +0200 Subject: [PATCH v2 2/3] drm/panel: Support for startek-kd070fhfid015 MIPI-DSI panel MIME-Version: 1.0 Message-Id: <20230711-startek_display-v2-2-87bc7bdec6e9@baylibre.com> References: <20230711-startek_display-v2-0-87bc7bdec6e9@baylibre.com> In-Reply-To: <20230711-startek_display-v2-0-87bc7bdec6e9@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=13327; i=amergnat@baylibre.com; h=from:subject:message-id; bh=OiJnDT5XqBXTEuLRxJou4kuMzYdYatcVI9FpBXn9EW0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkr77WawqEnoXjFNYEOATFEezklMQ/d8tTNwYyhOc6 1olACMmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZK++1gAKCRArRkmdfjHURaY1EA DEuG+fqedRfayQGBIYfRKOZaUnyR1N0R+DWKbPKHjtw8YAiKBWqGaLjBR785sNjClezhXyK6KRSERr sdLMDrS7cjKxlIf7OsnxsfEIOtmIddDNFdvd4GtplPuFjISF8IJ9BRDJ4DsG/+cSK64jvjROSgauui 52ewv9y/rxVDIX/fjyAXTAlH4Q2R5pU7Sm1HYWDnZdXfZhP9i2pw7igtdGhdPQI5manQNR7hk5Jkyo zYwv1M09ybAAQzusgzDIbt9BFmVWNAURTZX9LJxTDtAGqYE1onEIzLlQZ9eo0El9Kzol7lR37O8eoP J4bIAD78Vaw3UfR0qjBJ0+eH+Dh/y8B/8ovn/Kvy4N0XB/2ucvb3LNtA6y5QU/8JWIn7W2WIfuKkF7 fWd/N4rHNnJ8+0bZW9pw6fyP2otFfCXsqOEnUM5s5vW2uKHl2jgsbX0U85j3oEJRYMG2tn42nDClkj MGEMn84ksK4/b+t9vViVyuA81ZoxKJUO0CGu1tV/UTLqmtZQLif3VZPBMwhaVUfYluC4/NHU8Jx9yw dTEqNLBoq1ySbip1r+c6x1H/ClxMlqA4NLbouiG8N/1DMVycFebxdlgF0AadCUUEOx4WPHtWlIjlnL Gb8GqELngYrk8Qld3A9WODPxSHeY8dvX9hAqc+voAZrKliWZ82jknxYsDoLQ== 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 Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 431 +++++++++++++++++++++ 3 files changed, 443 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..a25dfbdf8d9d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,431 @@ +// 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