Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5225289rwb; Mon, 8 Aug 2022 14:44:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MdpsYIG5xJd2BmhqR7dddTXx7jKlGV3I94lRkNXlhCt6JsjKMDhdQjlMU05aGGLiRHiLY X-Received: by 2002:a17:903:1109:b0:170:a092:c881 with SMTP id n9-20020a170903110900b00170a092c881mr8057279plh.68.1659995073549; Mon, 08 Aug 2022 14:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659995073; cv=none; d=google.com; s=arc-20160816; b=MRn+O/+uw4rLLW4uE1jm2D37Gj0Px1gBXjt7tljgeFa12sOkxuJV8vFbucYEHnFtCc IEek6KyALBrL4I3zKijRe1yubE8gtfouLci2RV4cvZxO4j79IL0k4xzgvK/8vMbBHVv9 9vrjhtJ6lc+KX7836X9zhud7hsiid3zzP8v6oJaEnUfxJd9+q2yH434nXWfxBrPV8gnX Z4PAwtjaTgH/zXp1W4OLojgkmgOUEViCXpxn90y0zVfuLblCcSu8BVtXX1CQ9/9/ricH HB113OyGgd3lgopVABHaZ6q+CqqMWQUeXLdq1QgUY8TGpWOQrtPwUtalTyRwgE6VDHJv +jXg== 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 :references:in-reply-to:message-id:date:subject:to:from:sender :dkim-signature; bh=Q9PKtfstb3IaH3UDQ2Oh3oWLE6JBB39oUjolcp8WJoM=; b=yN0PKBW114sLtP76bMc2PYUrYs4kVvl5WdKFbMWqfo+CCBTlcfDNKufEokM/JUlQHa ui4H4LiiWYQnc6jq54uz7sQp/UscVZ5lkwG2drhe8bKz3Lk7IWMAUhFQhQn6Y5V2lUYT kRrew2R26fEFvbl8PCqBNZsN5kWr36YtInA22+5YsKCdinFqpSCMmQdzSDkad2AcFvHT uBf/Q/tsbhb5PNHjAsQ63vs2khc4ICUf8MNDxtvWTEEK3jYwt5jWQwg6Nw19DID+vMFN 7ISLccySJSgBjlhXSyozra6W37uWE5kQ8+7lypzrKJ8Bax0QtfQG3OtmXSVT9AXWkedj Evwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cnV1pvEv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170902a40500b0016f18b82145si11979981plq.265.2022.08.08.14.44.17; Mon, 08 Aug 2022 14:44:33 -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=@gmail.com header.s=20210112 header.b=cnV1pvEv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244501AbiHHVhd (ORCPT + 99 others); Mon, 8 Aug 2022 17:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244450AbiHHVha (ORCPT ); Mon, 8 Aug 2022 17:37:30 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778121A062; Mon, 8 Aug 2022 14:37:29 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id e23so7530577qts.1; 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=EbDePol7Wuxm77sPRmHQ6avKatMReUWuE/3S5ne2h0TLVci3HBCB0OW9EYi7l1Kmbu eHcjQRuJRrtJrVVGOgQH1G4O+XOQUMS2ZFcY9ETzDv6+5dvsj+YcJ+3L1a+ymuHRscPp D3UytXhuu9jRLSx83iaEKXx551nQijbP/AeK4rphPBBHjLt90UV0yRp0PAuZEfpgsoxs ReU2SzAT0bL+iN25PEUJo2hBEB1OUWbfrFjjZK12ZlPvvMR7jT1W4lNbRe/fZ10PHCQB 73D/Anmy3Huq7zpXzMaVKmpHz6U2VYvyA9QES5ao1Ty1JoIf7kU+s5DCswXu+rJfO4pY jm8Q== X-Gm-Message-State: ACgBeo3Gv5n63Il1+llbczxA/WLfN0TBm/wh2PznGIQx1YbEOEJpwZQ8 IIe8UAtrJ605m7v5Fqh5Gp0= 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) Sender: Julian Braha 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 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 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