Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4662671rwb; Mon, 31 Jul 2023 10:08:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8C5WxgM3NUxIril/VJX7SNDuoU455UinNoSWNHfKTZFdZli6fYs2ta5ZxeduJ4/usSSc8 X-Received: by 2002:a2e:780e:0:b0:2b9:e831:f165 with SMTP id t14-20020a2e780e000000b002b9e831f165mr389046ljc.42.1690823339307; Mon, 31 Jul 2023 10:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690823339; cv=none; d=google.com; s=arc-20160816; b=qd1iQVmhv1KG+oWKPeq3beozuXddEiCJbEDRUoldMAR6qN37ej1cs0Cb/9aFdpwk7+ 0bxhvntH8fuCwr15TXp/uJ8/vzON+TbK4MZrrghj6QaJ7xJnQdeaG3mk5mmRHG0OPquF KW6nwQG2+V/rWgKYJyPcWXzcwM0ykkFfOkVjlz6BU/j3LwezNpr3JTVLR9nQI886nDnD iWA5fi84hy83wMvOgxsVwMpggwaZ3n7GO6lhtOTV2UhGGzQJkb+HTomhURWpKTnUGQ5x xaNgtoUU5fCbx1R6Z6lYMbUrbwN7tUdvJQJCqzsBNXjGSkQYlw7YhGTDeyAkyQiflHEJ ojcg== 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=mn9/1CHImeOXQvY7+GGU95to6NjwSfmSUDM4DylHiYY=; fh=smXMDKtLor+aHS8bIbqJiSbMqJYdUXW0XR9HD2WmoiM=; b=KFRlDPP4vcHqC/vsygNgwTb3hg3vEEz8C0EIB0DaPLtQVvTb/EuLNzrGvDVuZzwaBZ T6WTFl7q1ndRZRVa0KfLmVlGAjo6EFsaRTPsP6F4ZThKptYZBfnnBSBk7E1gr1XeeL7d Ea7+wzKxDIYlvPUJpZ40asXXFvB7I+HbfmqfQkSoeOTmdBDClmvQ5PrqganOt5DYwAKW lOomqqqXvkXrDMvF2QjurlkoE+5WrdZNU8y5IsEzs6+vjkkcrCs6nJYnUmgaekXgp364 cpm1VRp8qrGKDlkc90qYeJX1wjoa0NiS85EVwk2iwDKpQ8gQpDQFQ7Zz+LNns3C8+WyC 2ghQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=iUmTKllV; 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 s23-20020a1709066c9700b0099bcb8f4f00si7108931ejr.409.2023.07.31.10.08.34; Mon, 31 Jul 2023 10:08:59 -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=iUmTKllV; 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 S233216AbjGaPJ2 (ORCPT + 99 others); Mon, 31 Jul 2023 11:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232846AbjGaPJK (ORCPT ); Mon, 31 Jul 2023 11:09:10 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D68A410F7 for ; Mon, 31 Jul 2023 08:09:03 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fbc5d5746cso50353725e9.2 for ; Mon, 31 Jul 2023 08:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690816142; x=1691420942; 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=mn9/1CHImeOXQvY7+GGU95to6NjwSfmSUDM4DylHiYY=; b=iUmTKllVJ4+a9iMlNucKDEV0chyd4JhtrEbmnFIr2IBbWdMfFmtrCRO/zmta/8msrl Y1milph7wUiEuDSqa3m4gKOnU4oPs1PS9te88CZdlIA/SKOnHHqoO1MkyFurzx2UZ+JL t6n36yYz632aJeZZOlPCvXXN/cjuwfFUXCzD7m7fXaOTOKxQ51bnKEjhmGifYzNMT8zS jR3zN+2yIW229EiQ52do8iLhW9QDi9cFcrsIGkaR0r30/dVzG/cGH54EmecMQQpWg4DV 6gkT1W1KX99gUL1hzoHk/2OQsDEwBOPQPKH2j+qPb/PZUzx4iRJKHsUGP7JklYGmrKZT if+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690816142; x=1691420942; 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=mn9/1CHImeOXQvY7+GGU95to6NjwSfmSUDM4DylHiYY=; b=R3TfdKymFOY6+HfIeZHLpqZU9sOyKB6Kur1oZBHgXkQISC6fR0se54jaXuA5pNfe+I Pok3Pi70xMnf4Zd2Kq25gHo5lasBrOIxe276KFET/Ej3Lfn7R7wn/R0+lwbocYGJ4BoJ 1KAQAR+zniR7tOyaroDyvTR/zfNAjKQx2t28A3nE0cTGgpHwoMx/w41sk3bmz4PEEhhj RBCnYRda/k9dgXC6eRI2RCptmWj46u7SJQaU5pYhYpkHDxmmrWpJMHC6LSNZTFY880xb Rhb8bNGvlzzsxWvSJl56ONPLbE01AP8fHxQOycDVTpPDxLBDYd/8YQgbfaqjELKwSvZT Gabg== X-Gm-Message-State: ABy/qLb3v3tB4PEVqxN058iayi0h0Guibe4kYZTevj4acPbjEjHqpOMm 8as8STDQSVs0qgMhQUX1OdokcQ== X-Received: by 2002:a05:600c:44a:b0:3fe:f45:772d with SMTP id s10-20020a05600c044a00b003fe0f45772dmr167780wmb.28.1690816142018; Mon, 31 Jul 2023 08:09:02 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id u22-20020a05600c211600b003fbcdba1a63sm11728791wml.12.2023.07.31.08.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 08:09:01 -0700 (PDT) From: amergnat@baylibre.com Date: Mon, 31 Jul 2023 17:08:57 +0200 Subject: [PATCH v4 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-v4-2-fb1d53bfdef6@baylibre.com> References: <20230711-startek_display-v4-0-fb1d53bfdef6@baylibre.com> In-Reply-To: <20230711-startek_display-v4-0-fb1d53bfdef6@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=12825; i=amergnat@baylibre.com; h=from:subject:message-id; bh=zYvddNAXjNQtUnWp4LnG00EEvRaeWF/yAnlpTjv3gUQ=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkx86JUlpdSgPwe4nmCoC/5aZf2vdEFJOKkvk+jv5v 282RtouJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZMfOiQAKCRArRkmdfjHURT5zEA CiRUTcSCBwcwcTysCEE0jKaS1NYVmzUl/1DMFvF1+A7EfOAcCiKFBCs4uccWXDKuZ5BIorNF19oAcI O8VZ/5PvPBn9fAO9/jz6yEpEQbvUMr6OSX+xOGj2RvMX468XE1QqlebEiNaCjYvKSr6tjmf4HIlTi9 j6xzr6VFPpancRtk8UMbHiA18Og9Dic4bv8ublr26OZcoJ9uxxDWGnQT0NJ/U+slapPL/4+sstSEpz yFxMpa/SSFUam8ROKDAqminF82+xp+RHSiSk4503rzJ6ErGY3Rw8BV2Xuus7n2iLIK50lORFe5FgIw q/UYZxxZF6uDX71jcevNG8hk4XLthxoWlZlTUA9zekP1ddEWQ9nqDJ2OS+kLiq6dcriDI50NbEOZBI 0YOLlQGBb+SEh6r9jRrY/bP+cM/5vgfk7kSiT5TOSgzqGiJm49Fg2uCv7FsFNKfEsdtHFbt6AYkV+b Um4RvU4PIogOERijQCm5qzQop7EwybjASxmqRH4BOGzU/2oH/asC3Rhx8cPRRmnjP3puA1SSoKNmet s0CG2GClR5pD0SmPpp8ds4+TVkR4tY/tv0KNuo8hLrLvgyrVjo4vOirhGhJjkBahpz/Ud7UTQpaQMb IwBDHZ9eADk3cpIemmUNFD+tKOIt9stLpn13wDMmSkM9xfAONwBeLmPPcfIA== 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_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 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 | 406 +++++++++++++++++++++ 3 files changed, 418 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..6e77a2d71d81 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,406 @@ +// 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