From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7040AC433FE for ; Thu, 21 Oct 2021 21:35:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D1CD6128E for ; Thu, 21 Oct 2021 21:35:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232279AbhJUVhU (ORCPT ); Thu, 21 Oct 2021 17:37:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232202AbhJUVhQ (ORCPT ); Thu, 21 Oct 2021 17:37:16 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF6DC061348; Thu, 21 Oct 2021 14:34:59 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id p6-20020a9d7446000000b0054e6bb223f3so2112136otk.3; Thu, 21 Oct 2021 14:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+qcyP9xOoLOU3SKpSS4g69LIifWPjPQqlWD79t/X324=; b=FsOzNCLaPXJXZYTiE2Q/Qwk5BC0Z3fjOODzGzfu33I0HOCkd0J/BEHlPjvXRJrczvs Ke9jvVvrrJ3OvVv3rTcOoASH2txV/kWkvbqnL7U3pYau1EO8hAiZzkbx7eQF0xoVuVHp zwETHW1UapKxgxxTdPuRnoEBqPOa6VKGJpBNM/cQwJZE1xapyaxJJXhiDGUAdQzbsIZI kpK31gBo35tOxT+fYYnhZkC0z6HmZT+azbm48AgBsY9xvpi599MmdaY3YkVfxFOPxC+R 6a4S3NRHKJrW3H+306dVM+JFILTQn6yCnfqXhGTBrt2voxMhxSspNAOZmveB451uoRuQ dx4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=+qcyP9xOoLOU3SKpSS4g69LIifWPjPQqlWD79t/X324=; b=hxkkh0QF91aKt8MjWu0pDB/yfhcksiiYLLLia8uwZmDmLPJ4cQGQkWB5LKSLqNJTgP PrmcOSnCFpS8QfzIhP/pC9hZeeGf7MpPn0ZSrRL7NkKMxhT+31KnspwujcPggJVukOoC 4wg+NkGl+M7pCui3OKsC5qyOWXt9s3dffmrYUEZ4N+bH5xSgXMOlxJrSfokHLgyT/DW9 rB/mr5pEvxPGdUECsRNGv0XOqNIt6Oq75UsbMld8m7tFQpaEbCxhQB4QDyongSai/l0Q wo+O7Yh3KQTErbIeuAwcA2H63aDWrgWNTFQSjWIfTXo2vqJk5gWYI7Fhcw94aPV3Z0dB /ILA== X-Gm-Message-State: AOAM5308rZS3N38BZ6Y0PivN6O69rWUaD3Du2hWN5jFVI6+7D3SrZd8q HWc7773q3sjINH2qR8Vo65NXsc0zUB4doHDIVFOPQQ== X-Google-Smtp-Source: ABdhPJzZlLKT+1n4WUnwhV5aih44oMxV9118p20Yp0cjptRxbXZWoQyShf3F+MsZ4VCk9CFN8rS55g== X-Received: by 2002:a9d:7517:: with SMTP id r23mr6847480otk.81.1634852099006; Thu, 21 Oct 2021 14:34:59 -0700 (PDT) Received: from localhost.localdomain (mobile-166-172-188-255.mycingular.net. [166.172.188.255]) by smtp.gmail.com with ESMTPSA id o42sm1152386ooi.9.2021.10.21.14.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 14:34:58 -0700 (PDT) Sender: Julian Braha From: Julian Braha To: sam@ravnborg.org, thierry.reding@gmail.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH RESEND v2 2/2] drm/panel/tianma-tl057fvxp01: add panel for Motorola Moto G6 Date: Thu, 21 Oct 2021 17:34:45 -0400 Message-Id: <20211021213445.17289-2-julianbraha@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211021213445.17289-1-julianbraha@gmail.com> References: <20211021213445.17289-1-julianbraha@gmail.com> 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 418638e6e3b0..5b1aff067d8f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -558,6 +558,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