Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1435468pxk; Fri, 4 Sep 2020 09:17:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydTX9joGimljj46nuZH4UZ+XhxhnEihoU9P2LHDkAQZ6AM2/JuyQZqyYntq1bv3C8bS05P X-Received: by 2002:a17:906:780f:: with SMTP id u15mr8535891ejm.259.1599236252615; Fri, 04 Sep 2020 09:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599236252; cv=none; d=google.com; s=arc-20160816; b=yNktQoOVr+JdU4bLEsPh09iscFOCrt67g97oyEP67UlvNjuwtYkLAyAfeRHoTgGJsc lvVYVTBH0QRmk5oiRyE7tWzSzf8icpsSrJNh7OiXiz12TkP318bXmmxZo5uoDbD9IOmD 1080T64Lb4oNs9ebcXSI0BLZ7tDxBpJMRq95hHyXEj2plBAIET6p6YKCzHed7XMItoiO rvGKwgr32ubdob5iC9fP/eKe14kojP7NCJycBsB003uX2sPaRmYdob0JvSMb4oWnRr0k MbnpW6DBRS95afnb2GCNhBvJpjMY4AYu60D0+TKlR77RkHDwuw01HoR1RimpmXGq1Yzl we0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TiWVDyOiJOLfpry+KJM9xN6KpFkNEhDwQ75bGspW1TI=; b=si1uqBYiy7RAED2ZNY+Dl5EujSAy9/Pb/a+6kGZe8e5Nqwir9ZUjgwTG51DH1fM9Fj cOiTOwupTltGyKhfYX55McV4PL4CKvc1XdmoytMSyPtLivRcQjKXUhyyUx8QFC0ETfqY yitV/xMa+4y145syv7xXX1Zb6H7rycF2rTJT7ebm7X4+Hqytf2Wg8rblNpBjjFaqd3mq 2hvUXlS2zkLR1kz7umjRZe+2ZE+p08LykfqhGdY9rKyLR9xD7sQw+ZaOU0wmIjKi/6w7 o0L7Q+dqhLYg+bHVqKWfemjED1335d5F6kkXf67yVEgTCkG3LGpie3ANGZI31FYVyNti UHjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=y054vF8r; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si4245441ejk.740.2020.09.04.09.17.08; Fri, 04 Sep 2020 09:17:32 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=y054vF8r; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727935AbgIDQPf (ORCPT + 99 others); Fri, 4 Sep 2020 12:15:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbgIDQPU (ORCPT ); Fri, 4 Sep 2020 12:15:20 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF4CC061247 for ; Fri, 4 Sep 2020 09:15:18 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id g4so7303250wrs.5 for ; Fri, 04 Sep 2020 09:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TiWVDyOiJOLfpry+KJM9xN6KpFkNEhDwQ75bGspW1TI=; b=y054vF8rhbpcfyCeggqd/TIY9zb1D4HjEZIfJRhdya+RNsgmJTVCEMt5PPe34FlecT Y7QQIJ/EQ2FvGVepgvBu5tLg2HmgPPIDjps3WdPexRtPuLoCfbnM0zhbIls1Ue3PgzQn G/7BHrNkkDWlHhL8tN08cSva8+6Wr2ir1BcgOZKE6Zyliv6dUPd3nfnuON+isXvBbMHb jzgrjPyB19lUOCi3bjI/uTkc1UJswiILY0A/nT46qfnHAXqVrJtjfHQWY3TYE7F4KqZi 0Sp7rrGHSTfe9uwS6ms4JijfVCpCXxUFv82KcA/qhFkj70zDU/jqJS+VbJ85/NWQeE29 uUjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TiWVDyOiJOLfpry+KJM9xN6KpFkNEhDwQ75bGspW1TI=; b=YqSYvxipXGw+JMc4cabaKGeei3Dc0eeuSeVnG8I42qcwT46bubhAodVC3LgYYeMWQN tTn7EDLBdYkaq0lK3UW0rwa+8wUJIr+fMNH37SPq+S5M+qAocRMELiMOWpLnzxOJolTn +PDdM0AdxQK8Lrf4QlEhUz0D87Tsv/JCdVk2AG6/9J19C9RhqDHbgi311qpVneb0acG2 16nnuzNDwqjCE+bpGIKCzArbwjX6j1dPIxrvlZvNGHZoyoluz9X06uouuuULJS4o4QQ6 yo7+fCQ8fHn3uR31zRDWUXuFH+bouVmZxhHIZFnMx4WNBuc5VFVCoTHGjGOTB38eT/f9 48pg== X-Gm-Message-State: AOAM533drn+aWcbQHd+G40os6/dW5wGj+253GKmSa0SL4vw+thJ1wRR9 O8dMf71whqepv31oekuAfj4xkA== X-Received: by 2002:a5d:48c3:: with SMTP id p3mr8079200wrs.69.1599236117334; Fri, 04 Sep 2020 09:15:17 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id d18sm12238160wrm.10.2020.09.04.09.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 09:15:16 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, sam@ravnborg.org Cc: dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 2/2] drm: panel: add TDO tl070wsh30 panel driver Date: Fri, 4 Sep 2020 18:15:04 +0200 Message-Id: <20200904161504.23915-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200904161504.23915-1-narmstrong@baylibre.com> References: <20200904161504.23915-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for the TDO TL070WSH30 TFT-LCD panel module. The panel has a 1024×600 resolution and uses 24 bit RGB per pixel. It provides a MIPI DSI interface to the host, a built-in LED backlight and touch controller. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c | 263 +++++++++++++++++++ 3 files changed, 275 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 8d97d07c5871..2d488a875b99 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -433,6 +433,17 @@ config DRM_PANEL_SONY_ACX565AKM Say Y here if you want to enable support for the Sony ACX565AKM 800x600 3.5" panel (found on the Nokia N900). +config DRM_PANEL_TDO_TL070WSH30 + tristate "TDO TL070WSH30 DSI 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 TDO TL070WSH30 TFT-LCD + panel module. The panel has a 1024×600 resolution and uses + 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_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 15a4e7752951..35ee06a1b5c2 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -45,6 +45,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o 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_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-tdo-tl070wsh30.c b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c new file mode 100644 index 000000000000..1734acd4f570 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c @@ -0,0 +1,263 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2020 BayLibre, SAS + * Author: Neil Armstrong + */ + +#include +#include +#include +#include +#include + +#include