Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2144397pxt; Sun, 8 Aug 2021 13:10:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxirTSP+11FC+E5CuW9vo8CRT657abppA5wGF/SsUOf/r/OfusDb5dZll5Lfm19DftNIF6V X-Received: by 2002:a05:6e02:1d95:: with SMTP id h21mr150809ila.23.1628453402809; Sun, 08 Aug 2021 13:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628453402; cv=none; d=google.com; s=arc-20160816; b=jfT7MlDXGFxJQpXEZ0by56048nezBANy79HbU1zUIbS49SXNJtMZLBJiZSki6bIyUZ wD7r/QP9DjKGrjuDMj8BvqER3OxeP4U94G2Hu/Uc4B6Sn6Aal3mfDr0V04lcxQ49vRXK SBJhFzAytT3d1Pvk6fj/q2bIce6nOtcB0JyLkMR9DHpfGeDVR5ICvE9BkGF2UdCydE3l 8IITxjV2FNcqNMGZ8ORc5aO1c2/YVG4QAZ7M1f7mXoEKn2pHpt28mwrSA7JbNTQr6TxG OlFTS4E5AjFJniv5l5Fcno1OZVoXmgwW1crh+7kT2563PhU9Dc6Jt/XIk5uoNiln+pXg FsAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=ttkNC8S7h6Q4nQKTj7BxzOwXy3Ly2Ki5qjz5ZuE1wIg=; b=Eurz58eDXaVBYqDIX5uKTDMKVkZaOlvKsM90sUZyO4XMAiUdbnAkaD/tKPPBxw4PvR 1/Vpl1jP90XqyaK00wkQKjJoHn6fv7CDUVP1xHxO49jSOU0kqriSKUK/jKR6FE7V2v3W 0VktwJwQ8l9caNBZV3uH8jPM+iB4EMKwHB4+GzYQKZ01pfYs91rYENFhXfC+i7ldj6vA W3jwzldtSLA11jf/cR6vhE8KeHUo1BOje/eh/66A8K+2rmYZNQxmoxbFLZzJc2uKpinw 0xGG4QYfHXFAZpjUm77pJCMgYUT/rGNNPM78+NjWoDznqo+Bjanthf1EU3/2YqEM+K6r ylVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTQHSLyZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si1898821ilo.162.2021.08.08.13.09.51; Sun, 08 Aug 2021 13:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTQHSLyZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbhHHUJY (ORCPT + 99 others); Sun, 8 Aug 2021 16:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhHHUJX (ORCPT ); Sun, 8 Aug 2021 16:09:23 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC4B9C061760 for ; Sun, 8 Aug 2021 13:09:02 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id c9so16074098qkc.13 for ; Sun, 08 Aug 2021 13:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ttkNC8S7h6Q4nQKTj7BxzOwXy3Ly2Ki5qjz5ZuE1wIg=; b=GTQHSLyZmoNHmb9n8xi6Efx/Bc5Kw5BEAZ2j0vd14UsaFBzSs48/AlHjUDtCjwq1Le kvuFNbXHWygBsycNssOMhT8kyWTooGzN2ascCc4fFFrhTESUMTHDIZQBctkHOtscj6X2 F1glH84bAiOB/iLBkF/OuUZGuVFGHCYdjLzA+ZphCctxUATFp1ORxl4hFFokBoii4tHM mJlH9vUXQe6/jf9seL/wCbS0IVty/ZJ5JCQ7XO5/B4JEuxYOtsXtUq4/OvLMcCJSWZpc AwP+JKhGGNaMkqXFeTrdiYMNfqAoFHDDI6h8BanLJmXVuu4EO+M6LKzBdJ5phZFcEiKb K22A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ttkNC8S7h6Q4nQKTj7BxzOwXy3Ly2Ki5qjz5ZuE1wIg=; b=CS6bjrrLVyQSySwve/ANV8R/V/yJD6pAo+m+wDme84xUachDGKqDHDMDoh9gxtw3+1 lAUVPXNYo7UHkPo3n6VMJpKuUdDCoRGAVvb3Vx5GyAmjKMfUh+6weqO0x47XI9ZwLoXv Wf45z/nspcmJF8WU29pM9oJ8biZnIPtsDv9j1FfEp0nAev28s8xTEanUq/6LhFvYVcxJ lXKjIAC/FlgvFqhOyoOGdRZO9YfMXm1RMP4GRH5xrS1gm8JBXzhQyUb2nnALeoF0OdjM f9ZLWEEiKmjrTyL1ygcXzW5U2fsmI2nhGSkfi07x72YDASwa4Wr3wDMbz4g4R8psyPJh GTYg== X-Gm-Message-State: AOAM533ej39NXRDN7O1GoEYDk2ThYpGuOpsUm9flUOB3X3zmy9eIQcJw 6yxVe+xPrVINslNX/qaR0SkvX8XN+PuhCHLgXO4= X-Received: by 2002:a05:620a:22f8:: with SMTP id p24mr12646447qki.428.1628453341207; Sun, 08 Aug 2021 13:09:01 -0700 (PDT) Received: from localhost.localdomain ([67.8.38.84]) by smtp.gmail.com with ESMTPSA id q11sm7696155qkm.56.2021.08.08.13.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 13:09:00 -0700 (PDT) Sender: Julian Braha From: Julian Braha To: thierry.reding@gmail.com, airlied@linux.ie, sam@ravnborg.org, daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2] drm/panel/tianma-tl057fvxp01: add panel for Motorola Moto G6 Date: Sun, 8 Aug 2021 16:08:54 -0400 Message-Id: <20210808200854.187648-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a 5.7" 2160x1080 panel found on the Motorola Moto G6. There may be other smartphones using it, as well. Signed-off-by: Julian Braha --- drivers/gpu/drm/panel/Kconfig | 7 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-tianma-tl057fvxp01.c | 262 ++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-tianma-tl057fvxp01.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index beb581b96ecd..9e8a5fffa626 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -557,6 +557,13 @@ config DRM_PANEL_TDO_TL070WSH30 24 bit RGB per pixel. It provides a MIPI DSI interface to the host, a built-in LED backlight and touch controller. +config DRM_PANEL_TIANMA_TL057FVXP01 + tristate "Tianma TL057FVXP01 panel" + select DRM_PANEL_MIPI_DSI_COMMON + help + Say Y here if you want to enable support for the Tianma TL057FVXP01 + 2160x1080 5.7" panel (found on the Motorola Moto G6). + config DRM_PANEL_TPO_TD028TTEC1 tristate "Toppoly (TPO) TD028TTEC1 panel driver" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c8132050bcec..9bdc2a12e719 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -57,6 +57,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_SONY_ACX424AKP) += panel-sony-acx424akp.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o +obj-$(CONFIG_DRM_PANEL_TIANMA_TL057FVXP01) += panel-tianma-tl057fvxp01.o obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o diff --git a/drivers/gpu/drm/panel/panel-tianma-tl057fvxp01.c b/drivers/gpu/drm/panel/panel-tianma-tl057fvxp01.c new file mode 100644 index 000000000000..7dcdcbd8ef5f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-tianma-tl057fvxp01.c @@ -0,0 +1,262 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2021 Julian Braha + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree + */ + +#include +#include +#include +#include + +#include