From patchwork Mon Aug 8 21:37:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Braha X-Patchwork-Id: 12939143 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 80B21C00140 for ; Mon, 8 Aug 2022 21:40:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CA08F2B797; Mon, 8 Aug 2022 21:39:06 +0000 (UTC) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by gabe.freedesktop.org (Postfix) with ESMTPS id B24858F059 for ; Mon, 8 Aug 2022 21:37:28 +0000 (UTC) Received: by mail-qt1-x831.google.com with SMTP id bz13so7505718qtb.7 for ; Mon, 08 Aug 2022 14:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:from:to:cc; bh=lkehkT3MiXzbK7OlrNh0fnuUz1FZoh3RVLHxkOdzZDc=; b=igXjAZHhXjbCiAKmX5I0P7mxTmLC1wBQ7rN0UHFcnaYsnUEt+3U0r4RY4ZQ6lm01iN b6DSMytpTpzV2x7dbI+vCwIKq8Lmy/exTEAPoO/lNkIL5k8oPiAZWiylal4mTl4WYgst Le9YMokZElf6oGSktUDoaaDSxo+17HnSGBrN6LX9/KYsNzyTXRk33Jm15RVv2ur330+V gYbNfFE3GySBt7J7VVX3HYr6RpNoJoW24Y1kX+M3yMXWRxhHCofy3PPojdkNRGTGHoC3 9RlxIDMnqH7zHRIouE0CnXF82N/EBeC1bbo/BQKPMg4vuiMlILDAQfEdMcT+3ezmu8Iw bYkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc; bh=lkehkT3MiXzbK7OlrNh0fnuUz1FZoh3RVLHxkOdzZDc=; b=ilcL0pKFD6bMLdNTldQaLZJbjE/OmsRzbp/8KRR6BcE8yt9YJ6JZeNfbfZ8YqWwy2s 7M0i1B5cftSvRp/qXBNgMoaEqRo98izpFQ2O1DYnHT7OjXa91jN1S+2swNBwNVKXXJCV JLwcyPag4px+X1oUkC/9c87kJNKCjmMLrk5CXMdaKdXjobGOVNoaOmHF6jK4/r2wHHnK xsnPj6tCxDbILz8f+5ciA/TYi4p/Uhh11P1kmBrxJJ0Oa/rvIQYQApLeewxLI+cJ+EQu pazuJr9KTGN86tBJaVj4p5vj0gSJ+25g3chhd/WDdlgLb8WcSekVaYddqnzz8V6ZwCJ/ /wjg== X-Gm-Message-State: ACgBeo1tZzb7ZJZZSkMaWeduzt8JdzJDYKB6heuY8TxieERdZiOq9mm6 DDfwEYt/odTQug4J6FlgctE= X-Google-Smtp-Source: AA6agR7uWwIjiVLbkCd3o6NMBDR1IVfv7azaRn1+C6M8oKq/QCIHcGTBEY2KCtJUwm83Cn8Hu9lLuw== X-Received: by 2002:ac8:5c05:0:b0:341:769a:808 with SMTP id i5-20020ac85c05000000b00341769a0808mr18380854qti.237.1659994647694; Mon, 08 Aug 2022 14:37:27 -0700 (PDT) Received: from kubuntu-desktop.. (108-215-65-189.lightspeed.dybhfl.sbcglobal.net. [108.215.65.189]) by smtp.gmail.com with ESMTPSA id e13-20020a05622a110d00b00339163a06fcsm9146656qty.6.2022.08.08.14.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 14:37:27 -0700 (PDT) From: Julian Braha To: sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, thierry.reding@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 1/2] dt-bindings: panel-simple-dsi: add Tianma TL057FVXP01 Date: Mon, 8 Aug 2022 17:37:25 -0400 Message-Id: <20220808213726.883003-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Adds the bindings for the Tianma TL057FVXP01 DSI panel, found on the Motorola Moto G6. Signed-off-by: Julian Braha Acked-by: Rob Herring --- v3: Fixed kconfig dependencies. v2: Fixed accidental whitespace deletion. --- .../devicetree/bindings/display/panel/panel-simple-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index 2c00813f5d20..1b3d5e5acefd 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -57,6 +57,8 @@ properties: - samsung,sofef00 # Shangai Top Display Optoelectronics 7" TL070WSH30 1024x600 TFT LCD panel - tdo,tl070wsh30 + # Tianma Micro-electronics TL057FVXP01 5.7" 2160x1080 LCD panel + - tianma,tl057fvxp01 reg: maxItems: 1 From patchwork Mon Aug 8 21:37:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Braha X-Patchwork-Id: 12939144 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 0D8DAC00140 for ; Mon, 8 Aug 2022 21:40:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 090D58B7D8; Mon, 8 Aug 2022 21:39:59 +0000 (UTC) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by gabe.freedesktop.org (Postfix) with ESMTPS id B633D8DDD0 for ; Mon, 8 Aug 2022 21:37:29 +0000 (UTC) Received: by mail-qt1-x82e.google.com with SMTP id z3so7518242qtv.5 for ; Mon, 08 Aug 2022 14:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:from:to:cc; bh=Q9PKtfstb3IaH3UDQ2Oh3oWLE6JBB39oUjolcp8WJoM=; b=cnV1pvEvXh5HnU2ss5eLswHpz9CsKbEe0HUXDSpEdKLdYQxv5hL4W9Ch0G3LuaYibo HRs+2IFOjhfFtMshePef6TfRcEuQunx0l3/XEWNIlOZhTOlmQj1lZCqFPXORhic+ul7n zwcBmo7I4twRJKLXhcLxAqJhZSmdgCmqx6QwxxDUgcBPoh9FtZNNQAsUdu38u99HLfP+ Ct+5dF3ZHTYAW6P+N8S6W3vL8uhkzUl++c0Tz8JRMmbuawZd/vUwKV1XSA6IQLywKf3I iAnPCeo90axEXvRBUru6csJHN00zjA0ni15Abm8NFhu+C2TXQ0XY+JUPn8dXTJSApU4N Xqmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc; bh=Q9PKtfstb3IaH3UDQ2Oh3oWLE6JBB39oUjolcp8WJoM=; b=3FIHYspDr0ptZgY4uT6CBcSZlVuVPCd5FiGlrs4dQ5cy/YYf5QrJBEW4wc3IInqiaR Wcz+AVUOkdHpX+fnQ9juVW0nulpKZEHE2OaxiqzrNGJM5xo5oQeH1Yy39zZBm0QbN96/ iiPDFwn6UK16mWh9QdDsOqb1Wcrkc7k9MzXyDMtMxatT+OO8+lEk8uMyNOh7tprSBa/b dRWqjDqjwHeyKbliSZsNJS/L0EXW4/tRP6BQNU3lP/atYNy1napR/rdvtSx4kINSzWcj kkwNiocTiChf/hI+6whLTQpX+DGxvSY6CN9aOXNwdt1aEtC99mOwuf3fM47mBsNgkn0b f9/A== X-Gm-Message-State: ACgBeo3zBhFmBhu2LT61AE8UHljodQcm7h3AnzfVAbGRKBNQKqbW2LVq T9QKNqmLpqOppWBuTGAR5l8= X-Google-Smtp-Source: AA6agR5An55LBn0ChO0mUR4t+VVt6Bb7URGonGhlMAWqADocP9TpbTn+D3h07ZCYcAOMSlecPsmWXw== X-Received: by 2002:a05:622a:100a:b0:342:9a3d:cd58 with SMTP id d10-20020a05622a100a00b003429a3dcd58mr15376507qte.479.1659994648534; Mon, 08 Aug 2022 14:37:28 -0700 (PDT) Received: from kubuntu-desktop.. (108-215-65-189.lightspeed.dybhfl.sbcglobal.net. [108.215.65.189]) by smtp.gmail.com with ESMTPSA id e13-20020a05622a110d00b00339163a06fcsm9146656qty.6.2022.08.08.14.37.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Aug 2022 14:37:28 -0700 (PDT) From: Julian Braha To: sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, thierry.reding@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 2/2] drm/panel/tianma-tl057fvxp01: add panel for Motorola Moto G6 Date: Mon, 8 Aug 2022 17:37:26 -0400 Message-Id: <20220808213726.883003-2-julianbraha@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220808213726.883003-1-julianbraha@gmail.com> References: <20220808213726.883003-1-julianbraha@gmail.com> MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- v3: Fixed kconfig dependencies. v2: Fixed accidental whitespace deletion. --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-tianma-tl057fvxp01.c | 262 ++++++++++++++++++ 3 files changed, 272 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-tianma-tl057fvxp01.c -- 2.34.1 diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index a9043eacce97..f7d637084d96 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -658,6 +658,15 @@ 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" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + 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 34e717382dbb..8f9228082c32 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -66,6 +66,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_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.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..92238defa9ad --- /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