From patchwork Fri Sep 4 16:15:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11758161 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86A7914EB for ; Fri, 4 Sep 2020 16:15:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 5DFDB20772 for ; Fri, 4 Sep 2020 16:15:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2R2185uZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="Y056GuRH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DFDB20772 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VvwgubgraFCYgcoO01HlkoNmTpVltlDYIjfq31wYVyg=; b=2R2185uZ5mgoHFSLTbsW6gCC1 xns5FheWeYDimAGgq5zVvbHT3jRHYgbkQJkd43pYewE9QKNew1oV7BKD4+dM97CumFtE+2WM3Ie+r 3VvNzQb4pztmpFu2MsUydhpMwZzAVwaF9MZDQIoW5I10n8u56yiMT+a7s71XmTBrPCQqVJcUaQyX5 zW+yeCf8Lsjt2e62l0lHt/v6bqBZ9Lc68vkXVpZVxFKiWehZN9ri+C/ymYTYn/P4IcpulRpt6FIfm nJQS8SkeTDdhsl30L+daOHHQtyB+uqJRPoA45+IuzirVSMRCGC/d4r10byN+CY1bQ434my99pt/vL wKybfREsw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEMw-0007Wn-U1; Fri, 04 Sep 2020 16:15:18 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEMu-0007VI-EI for linux-amlogic@lists.infradead.org; Fri, 04 Sep 2020 16:15:17 +0000 Received: by mail-wr1-x42d.google.com with SMTP id a17so7280822wrn.6 for ; Fri, 04 Sep 2020 09:15:16 -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=Ksfc1mO30cLXViBtYtZb85XN30sTC3Vit9JBymnzNwE=; b=Y056GuRHCxq6e0BBzqF948ztntuwIOz8bO5EXHZVceS8Jg0CfqOhBKqJlvVGpMwE4h iBh4LOB63DMx1RosXGJCf3erVS+BHoXJDPqtMJO7SIyyr05UVzhbEkh58RtK6t2KGkQq +Hy7UxD+sn6UhDGkxFCBUqtVQRBk48a+rzjkV6EVsnySbNQp2bAUVRuMQXxMJXA4J2cI L2hgvAP9NpXeUxdYoj7tslaf5AaEAl7u23kYEPbxTdtDBONu9Vi2bnZhz0KJQ3OZ+uAt vnu0Kqe0eMNoIac9xzecQ+BAnumczCrprQ4SqaeCKAcbcUtfAE+Lg5OeI0HaKwYzCfcA EYVQ== 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=Ksfc1mO30cLXViBtYtZb85XN30sTC3Vit9JBymnzNwE=; b=Qi6o4fTEpPtW7tKqvi21/FIgA8Ps9jm4x21F1voQ/tf9QTEGVHMUCqvJwIoveVFE4N z2M9tiZqAyWf7jW+ifGh4FnTcf42lE30cTRIlYooUoId7Y3AEBl5M+v3E81Y8CgzZT3U 2vDu272oeo45gBI7ge3t3V2NpiQ8D8KHzjD4mhWZGiHWAr25+fp/K5oMvjgnOy8iA0En qlQcABI8cWfiko1JDnTM/u3gsXYSdokNo5ZUjaAgK6S+6XJJiip0VxZNMl1FV0busd6K Egy8DzizxfBKCcwaEYS5I6lhjSvdFXsn/p87cNIp3MnR+E7RYLoKug/YsnvQo0TdkusP odGg== X-Gm-Message-State: AOAM532xMHdIDhH+gJ+esCmV6hbhXRe42oj5VnNBAnsEVAuTS+hD+LK/ zs9GdpIX1vNm7Y44shlI+9FI8Q== X-Google-Smtp-Source: ABdhPJyny9jilxsNRKY1nnZVgili+ToZTQVRduxfJ01Z1nxjj81l/gIbx4yQO5JFHzDk5dUnx3wprg== X-Received: by 2002:adf:f149:: with SMTP id y9mr8153667wro.93.1599236115028; Fri, 04 Sep 2020 09:15:15 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 09:15:14 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, sam@ravnborg.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: display: panel: add TDO tl070wsh30 DSI panel bindings Date: Fri, 4 Sep 2020 18:15:03 +0200 Message-Id: <20200904161504.23915-2-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_121516_485746_4BE4F3DE X-CRM114-Status: GOOD ( 13.45 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:42d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org This add the bindings for the 1024*600 tl070wsh30 DSI panel. Signed-off-by: Neil Armstrong --- .../display/panel/tdo,tl070wsh30.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tdo,tl070wsh30.yaml diff --git a/Documentation/devicetree/bindings/display/panel/tdo,tl070wsh30.yaml b/Documentation/devicetree/bindings/display/panel/tdo,tl070wsh30.yaml new file mode 100644 index 000000000000..20f4fdedfcb0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tdo,tl070wsh30.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +# Copyright 2020 BayLibre, SAS +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/tdo,tl070wsh30.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TDO TL070WSH30 DSI panel + +maintainers: + - Neil Armstrong + +allOf: + - $ref: panel-common.yaml# + +properties: + + compatible: + enum: + - tdo,tl070wsh30 + + reg: + maxItems: 1 + description: DSI virtual channel + + backlight: true + reset-gpios: true + port: true + power-supply: true + +additionalProperties: false + +required: + - compatible + - power-supply + - reset-gpios + - port + - reg + +examples: + - | + dsi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "tdo,tl070wsh30"; + reg = <0>; + power-supply = <&vcc_lcd_reg>; + backlight = <&panel_backlight>; + reset-gpios = <&gpio_reset>; + + port { + panel: endpoint { + remote-endpoint = <&mipi_dsi_out>; + }; + }; + }; + }; From patchwork Fri Sep 4 16:15:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11758163 X-Patchwork-Delegate: neil.armstrong@linaro.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA87992C for ; Fri, 4 Sep 2020 16:15:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 7202920772 for ; Fri, 4 Sep 2020 16:15:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RvklSDmb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="y054vF8r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7202920772 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9UqV/+ZElbMaK3hZlP9t+lv974OC+Hr+KPg6dpIW1+E=; b=RvklSDmbQW7TsYkdELOVswkFi yT/feuS9bo4UKI2Ts12eaCe52wkezv9Ndw87WWgItAjwcNQSfjLmmSGW5CWLxdCsd/te1vntx1QIF 1JwX6twy1Go/kcTMIuXSKvSEk5wavqSI54xT0CTjz+u81y+NcnZLTgXlNsY4VVKXaaHU/Agio9UPp k/kt8nSZHtB7f9hiTHe76rY1U4qKuWI/HhYj+8WMqTR3yiwJoIaWgh5gkM8oJRDa9hQv/rnSYIbvh 07lyDKNfgGT+4Jp5B3fMCVafjfrKUTqO9Nir6mwaDbYKUCxKXcUNo//7mEAB/ecxxFBdYea4iRrB/ mQVdZ3ltA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEN0-0007Yi-1h; Fri, 04 Sep 2020 16:15:22 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEEMw-0007Wa-Km for linux-amlogic@lists.infradead.org; Fri, 04 Sep 2020 16:15:20 +0000 Received: by mail-wr1-x441.google.com with SMTP id a17so7280976wrn.6 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=odWswKu8hJ6pJed9I2rL2U+Tj1CtXPoK3SLhpVpOHhk/21VW0kgk6bl1TQh7S06JI2 p3YYp3kySYU7yTOFG21RFljmT9en54xUX3zr+MtZka7tjiG+agV2E+fDRyrStDCSk8SI 7Yhq/st0CSTfVyhv8bsLHC6NiMEQSkYEgMOWEhMc0fmnGdbHjc3Hqof0EjTLPSBf0oln euY3ph2BCsmOEX+FmtPkRe+6MKFtt+kQVrHjRU8bbME6D/cm92B3YHHVTvFbumzt1Xxu nJ5H8m2npXF2/0wPxJ8sQlReXG5k+L7jenBQgx08vX4duDDuPTIBubMb12uEvvddukhs Ftcw== X-Gm-Message-State: AOAM530sDJIkYKQGbHqrEtbzFuTsfiSugjxMM36/bKCB7LOnwuXKKm+F ZAb29OvlXR0cWvLl7ES7Q+ib4w== X-Google-Smtp-Source: ABdhPJwCbuGRUjy+meziXyXlAmclbEESal5T8OBjAfHiaHd+/emX3KFBkDESxvUodfXx1G/G6zn3XA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_121518_720714_1E8294A1 X-CRM114-Status: GOOD ( 22.04 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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