From patchwork Thu Oct 21 21:34:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Braha X-Patchwork-Id: 12576655 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 B8805C433F5 for ; Thu, 21 Oct 2021 21:35:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 826C36128E for ; Thu, 21 Oct 2021 21:35:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 826C36128E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0621C6E4C7; Thu, 21 Oct 2021 21:35:00 +0000 (UTC) Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by gabe.freedesktop.org (Postfix) with ESMTPS id E47176E4C5 for ; Thu, 21 Oct 2021 21:34:58 +0000 (UTC) Received: by mail-oo1-xc29.google.com with SMTP id y145-20020a4a4597000000b002b7d49905acso551631ooa.0 for ; Thu, 21 Oct 2021 14:34:58 -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:mime-version :content-transfer-encoding; bh=pTwNmZooOeOdog1xCjDMl0qLSkOmdnMEB9kSUbzvyVs=; b=MRnKxjV2S5VmP3MI6tkI7zr9Azux0Rd/L85aFA6X0wUy+9ZtuHirQ72Ha8mPPLV6jF gX9Qnli2J+I2jtuv5EWT5fh8EB3OUSM4ZwE2NpnbXdI+L4PsDbkTMycEuJfnbQ2qmLdC Pc3cKHElfP+qJhmBBmtGRxWOK69LSNRzXfM3n0pCgoDpmlGSw/0l01/Krq3KgO3TqGMi IOgxIgts5EOSKRbRnacceTtAVKDEHkq9WhpZEommGBON352orr/HFQM2+lxRFLkZcDhL nsnWppvCWtIDV8CiwOEWpstzk0OVVrRLKTseuglUzwnGdoXL3OC5ogl2gzqmdbSyFQpa g2JQ== 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 :mime-version:content-transfer-encoding; bh=pTwNmZooOeOdog1xCjDMl0qLSkOmdnMEB9kSUbzvyVs=; b=iX9NlrsVDCcH6hgN75wCJsNhNQ58/LG26HjGpsNbXHMezHTUJyioo7G7pKOgcKfb1Q D8ZB2zEHBnVkgYaRhU6RqVMambqXBvtR6V28vyu8oYlVsExlyuwg3uZVs9D4fOgF9yZa JSrwQgdSS/H/vestwt8zjZ9Pw3oh0n/HgTov0W90Z5MflJJKQ2FeVbwjg3EIRfJ+6RFD J6UaBXpuG8ssx00DhAb8mOUFm9AKcIesHvV0GQQ58cK15HRdiLHAIRMgj8oMM3Sq1wHz GjkOBHCcLm15MlZCDqU/NHou+gaj9apoulzq6r1YszFwFOQ+Dm1/po7+c6lfeYukwAhm pjiQ== X-Gm-Message-State: AOAM533B6Yqj2dCbJLNhZloFnOPxmqKxvR3e9NiKugB4m3R83rGFS3OJ 9fsKJwd4JCw86+KLLPxn9HI= X-Google-Smtp-Source: ABdhPJwfTPpBcCCoB6iF70POe8qmJ1hWZFW1k43lF3cwrrSfvNcY6maKSjUXRG+WJEYFiMzL466hNA== X-Received: by 2002:a4a:a34d:: with SMTP id u13mr6185244ool.53.1634852097915; Thu, 21 Oct 2021 14:34:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 14:34:57 -0700 (PDT) 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 1/2] dt-bindings: panel-simple-dsi: add Tianma TL057FVXP01 Date: Thu, 21 Oct 2021 17:34:44 -0400 Message-Id: <20211021213445.17289-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.30.2 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. v2: Fixed accidental whitespace deletion. Signed-off-by: Julian Braha Acked-by: Rob Herring --- .../devicetree/bindings/display/panel/panel-simple-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.2 diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index fbd71669248f..92a702d141e1 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -55,6 +55,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 Thu Oct 21 21:34:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Braha X-Patchwork-Id: 12576657 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 A604FC433F5 for ; Thu, 21 Oct 2021 21:35:08 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6D6C66128E for ; Thu, 21 Oct 2021 21:35:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6D6C66128E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A40CB6E4C5; Thu, 21 Oct 2021 21:35:04 +0000 (UTC) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB6AD6E4C5 for ; Thu, 21 Oct 2021 21:34:59 +0000 (UTC) Received: by mail-ot1-x32c.google.com with SMTP id d21-20020a9d4f15000000b0054e677e0ac5so2041462otl.11 for ; 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=A5BaTzNX/P0jeyHi9ZTtWZ7C5+6C1MQT729kgt3Zw9xFXidGMNe/VIATIFUxZ2Q9PO U08/Znc1UD/dITGImAqT/E5DEJt7Rky0k9o32gNFDzTe0chhqpFPRunnKgosaQ58PXXO TRI5W8EnaDxEOHQ8zmuK6guVsSltDF9ezwnMjA+X2yr5A8Va64maA5FUWN76mCMB5Pth 21dfBRRkgez72/bEWemhNuwxYkdZeX6PEQ8WCIGANY2u/D6MuODlinrW6oVJiUG0h5lp ynsZVIMmIS3FuEFGArk2lErOC1SwDIHPT1lpfza4TbvmPA+j41tG7H4RJZIvp9U4f8rT nd/w== X-Gm-Message-State: AOAM531PrdUE0RfDnFYP/zlPNxxGmmU84FaWjLwvmX/iqxk4pcaH7FL5 0Qf73dBnKeSeYYwK5KwKVTQ= 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) 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 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 Reported-by: kernel test robot Reported-by: kernel test robot --- 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 -- 2.30.2 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