Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2896654pxk; Tue, 15 Sep 2020 05:23:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfXWHP3g+C2xaAqfN0wxL73lKP/U8F66Nq9i+vgfaj6GsDmV8RId5Q8D0h5mMD0Vnsy5vo X-Received: by 2002:aa7:d40f:: with SMTP id z15mr22463655edq.247.1600172619184; Tue, 15 Sep 2020 05:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600172619; cv=none; d=google.com; s=arc-20160816; b=US2iNyNgU4qAMUbaub1mROIf1beaTB/e4v7idRGGJwlvwkFCO1XSTQjzeGOfPrULZr ov9Uh7HPSyyNhpnWQl6h8Mo/vTMKytQlyng4loytF0BZ/TTmBKOrzIl0hFYB8H2mauOQ ZnqImlw47D+xxQ95CGKoUxpXWwOvmITO3M68DSZTq1vMmJ/Ew2AMIIA8b9Vb+0CBmeBj iGVtMGM/stkQqeXeN65xh11SmeOcjh+s7pwXvazWcKGlV82vShgTPLz5QZEHQGy3tnmm 0MT/hBELBrXRKbVNdVz8abVJC49RX/XHviJ2NkimIOssQUEV8YXYpwtUHL6Ml52SPdno H4EQ== 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=xFKEais/JinAAfcewjMMwYVj5kDYRr5zvHtIDXxFhJI=; b=flvgVdKf/U+Za39AiUz1P8v7cziU7pDYNKriuSpWO+j3KZzbBp0bbFk6J+1VExUXC9 sEnJwcihmLJahZ0PIdBEBHmTQVngstfLno+HwUeWVZO3YQcwuCIazFKtmXpRyJxScoEj F0CpQBtiiOj8eNnyBWaUbZob6vnlHbIEC/X7X8HcT92ytfk835R1uG81GhyfEwuNx0rp 5logPFR5QXcH9Cwz268BaEyzbGjW1XQOp6iN498AZV1hX6s7F7evfoGjPh5N8bjR2IGH 7Dv9v+Lr05BGS/HnwHxRlf5bHfaIF/NHFEw4KSz+TDz8LrF1LKsKehw4ZK+56kmoKc2u pCPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kJqKabpD; 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 u17si9105571ejj.110.2020.09.15.05.23.16; Tue, 15 Sep 2020 05:23:39 -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=kJqKabpD; 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 S1726502AbgIOMVq (ORCPT + 99 others); Tue, 15 Sep 2020 08:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgIOMTf (ORCPT ); Tue, 15 Sep 2020 08:19:35 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7B0FC061352 for ; Tue, 15 Sep 2020 05:19:23 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id w2so3164631wmi.1 for ; Tue, 15 Sep 2020 05:19:23 -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=xFKEais/JinAAfcewjMMwYVj5kDYRr5zvHtIDXxFhJI=; b=kJqKabpDzG9rY15A2JugDLVEZyD+xnHAuwwzhPNzsJQTuny/wge6/0BG4hjMI+Vk0G DgwH1VY0zEqetth/0kXEP6A0htecelpogpAl2X3yecDTcFFUbaRuhNBYUbWkZ1hUncpB /pf6g5quCmLXwO6iwt18TU9vsUUv6fM1k6S5jguq1pifkXN46sMiHFlB/b43Armc8zid 6k2J7tMjOzg2d2gDvGrxZABDwo+tp3hugKpougqC8zYxBA7hcUY0n/FrTAuvGVGQcm/W aCO17yPy6z4nQ7ckry6QokqX+jk+1+Bwsqyej58yj9v3EPTglNdHSBvbXl0+1g2wkfm0 PRiw== 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=xFKEais/JinAAfcewjMMwYVj5kDYRr5zvHtIDXxFhJI=; b=tcgqgnIVOBau3738qOA/MCWuSBYEGjbkqs05b6FV5KboLbZwyA32gAI+Mf26Te/DBK xBj0o+iZb5lZHcve7Fs8oKKQJSHbia7Pwd8ffuScI3AMlcc8zXhCgsUJZY6oNKJNafmx D4DowSduz83JH54WHZjtedYlKP5b+TB7xinz/GWk4kGl2dPzqWClSSA+d96dpiS4zCak XEsCMwLK9WRzlgX/s2r5dW/RL1OulYyXM4WCN5Kulb9w5WKHTqf+rykuKXDaMYSMVtCb h866pljiPbwA+UGEU/NHAQeB10ICE40Tf7uUU+Ziv75UhCzSeSw7WBAVDkF9kssxKxGB 7L2g== X-Gm-Message-State: AOAM530Zv5LCJZADJ0k+1cDpijjijLzdz7T5rquBD/Fq1QGhR5JiTwfM rSEQN8gKRxdTQ/JP+xJG+pvdkQj7/1h8ZwtF X-Received: by 2002:a05:600c:2909:: with SMTP id i9mr4704279wmd.160.1600172362161; Tue, 15 Sep 2020 05:19:22 -0700 (PDT) Received: from bender.baylibre.local (home.beaume.starnux.net. [82.236.8.43]) by smtp.gmail.com with ESMTPSA id 2sm18271411wmf.25.2020.09.15.05.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 05:19:21 -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 v4 4/4] drm: panel: add TDO tl070wsh30 panel driver Date: Tue, 15 Sep 2020 14:19:12 +0200 Message-Id: <20200915121912.4347-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200915121912.4347-1-narmstrong@baylibre.com> References: <20200915121912.4347-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 | 250 +++++++++++++++++++ 3 files changed, 262 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..820731be7147 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c @@ -0,0 +1,250 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2020 BayLibre, SAS + * Author: Neil Armstrong + */ + +#include +#include +#include +#include +#include + +#include