Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp873597rwp; Thu, 13 Jul 2023 02:26:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlHKEbhmae5KMON0IHs+bSrHO8vehgLEY68ozvQj0gdPjYUvdXvb+8o4cKuHPfcy3xsM6/nZ X-Received: by 2002:a05:6830:1657:b0:6b9:b25d:e048 with SMTP id h23-20020a056830165700b006b9b25de048mr323358otr.0.1689240407526; Thu, 13 Jul 2023 02:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689240407; cv=none; d=google.com; s=arc-20160816; b=HEQ2aT7ZF1sKJ1UInTh8HULgaJAK3orx7vArRsN7xGYmiAfvTbZAyxTRqsPzlcmOy0 FiMH5MQnBQ+vwfXBNiKckfg976re0lTMPs7sj4BjDyp34wKw8zbJR/hbsX424oJ9EL9X McSShIYk5vSokFgxgZ7x2DwBVGMH3cCP+XRGU0GyIKWI/2Yqf9xBqltWkZhBchz4eWmE R6uUAnXyMVVfPGxwoqCjq13UDFxIwflOdICYhPCfsNl8P5cIlbzV+3MlpXRZbckftpZN 4lBCkgO3a2+t+jeSDIkJYMDlNkAgdAoibqIh4TTKxYjL7p5ddHmrSiXDiZHtMBKxJc2n 1YAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=GLZ2Qq0hxUOwLKBDjSg/3mDeSe/viOxP24IF6U0YNLE=; fh=QazE+ngOpywWsxGeJpx5fVnu8+dqwO0J7o16i5Qr8BY=; b=lMT3sJ5yXqBq5E7oZddl84GQY1b3x91CSvV845HNpaoLQsGFXn/FCVoIiSMJ7k+wgp KPdmnEksgegfL0fDjSlXfbR3bGBXBLZszPZFCIGzw3eI19bJo4CYlfHeD0TFUrYmTszA mjDQ9OLoa6E4N+CswWkeF+Wa3Wrxxql2+tO71Sm62/SsghvQUk1QSZqw+B3kswHsR03i GxzS85adkxjcrC5+4ch6IPQY7upDqVdMB4W8B/EU6Xx/DEmkG6JSabxJAntghn1/+D0s lfyD8Pq28YyAFRFchsbEns/vtupCwcFIgT0boyiUGdLEzCuCNjJRmg0jEjA+FKg0h8vU YsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=yVo47nz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cx3-20020a17090afd8300b00263f3d759cdsi4811750pjb.78.2023.07.13.02.26.35; Thu, 13 Jul 2023 02:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=yVo47nz4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbjGMJIW (ORCPT + 99 others); Thu, 13 Jul 2023 05:08:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232689AbjGMJHp (ORCPT ); Thu, 13 Jul 2023 05:07:45 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B75C19BC for ; Thu, 13 Jul 2023 02:07:40 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-9939fbb7191so98750766b.0 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=g0yy7nSYp74NDqKRcd5d82Qm/qM74+mhk51XaYYMQGWGb2LmdG3LGABIbqIt74o1uN TBcChVuF7E6RBsEU2WyEmu2jp3W59YWwWitAuWXzrlkCOoq6QUqj4LNAvA3MLdgIULgT hh1nrqebBDEXTcle6t9tqjXw0LN05KwpdWrrgzrsN1bnoT6Tdhxrrs52l01SbqFNB3gY JiB2sOTnj2PzohEC4mZMNVxkPjy/azPpaminMlbEwxQpKuTcm76l/hLG3aJ1sJSQMEAP iBjsqSXlgWPkDnICX2O0ERKe4lt7wOzCvQ5ON/XICwhHCc4xS+Jk2jjgYCZASD/X+VeD vTaA== X-Gm-Message-State: ABy/qLY7YHHICkBELfcI64+7+2M/vQnqbmCqF6GofsxEVY9yozxuaE5J /AqthCHCPRVT2XETAHTwJr5A8A== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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=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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 | 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