From patchwork Fri Dec 2 08:52:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 9458053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B93656074E for ; Fri, 2 Dec 2016 08:52:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7A6628492 for ; Fri, 2 Dec 2016 08:52:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC8ED284D9; Fri, 2 Dec 2016 08:52:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6879F28492 for ; Fri, 2 Dec 2016 08:52:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28A536E92E; Fri, 2 Dec 2016 08:52:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x229.google.com (mail-wj0-x229.google.com [IPv6:2a00:1450:400c:c01::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AABF6E923 for ; Fri, 2 Dec 2016 08:52:19 +0000 (UTC) Received: by mail-wj0-x229.google.com with SMTP id mp19so226520649wjc.1 for ; Fri, 02 Dec 2016 00:52:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XoPtvB5WMETBmNtKtxxwzYVCvfrq+TAAzjWPmyU2Was=; b=FUe9V/l4eyzEOMyxEQqRYOHqpw1FoHl4MRi7VzF0otHGUAK/rvL9iaOS/06IX1RQgr FItlrwxihMdIGp09jrz0rhC2tWqIKf5hIFvAabkAKI+Rd6AkUM6AtVFgA2AO5sEAeG02 pWT9k3p3ERk1YRSibiIR3c6kS+EXltdO5/Kypli+hbX4W5rGP6F7PWBkk95hM1ZnFePr orJC5669SbTfKO6nU5wcWlU9NeMGxblpQ8vpMpObB45bo87vZvHDRByAPTyXmFqGKAl7 0t+V5CnW3Ji/dhguINPlIYyIjXPvIM4IaiA1x/xnu6w5HEPlpArpYgruRDVQ5ASq0AmD XMMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XoPtvB5WMETBmNtKtxxwzYVCvfrq+TAAzjWPmyU2Was=; b=e1ERjEeygqarX13ySIYKsSi3+G9v49chbNURzyxbAdBQtz0BDmMWn/G2xCSKghb6UN 6w2RZkZ830a/Zk5dsuJQ/bwbE0XNpFfAqvCY/ddu+LRN/geH5sqZPrDFhxFUsmwO3ErL ZM2uaFighjizuIomTetm8hC5OYNnPF9EaAzJNB8nrwY3U4pyIFKBwZ+VwWiC2YPmD7VJ 82zMQts3iPuBr3xVgNmYMdF2RUbeO7Gd7Zv7TDbD3PrbG0o8SvQAzW+yzLL+HSRdSHzG OFrbNlhbpM1oKY2fS9xSm9Uxie3zHyywAauS2duFhJADQBqpOtU6py3bwutWq96JyTy5 kAUQ== X-Gm-Message-State: AKaTC01Kn3d8NEqib5ExfrZF0j3m1JDJwKYntRIx08etQdu/+jXrMNce1d5r3TKzNb29Rw== X-Received: by 10.194.107.97 with SMTP id hb1mr36307809wjb.134.1480668737542; Fri, 02 Dec 2016 00:52:17 -0800 (PST) Received: from t450s.lan (89-92-98-28.hfc.dyn.abo.bbox.fr. [89.92.98.28]) by smtp.googlemail.com with ESMTPSA id d8sm2042664wmi.21.2016.12.02.00.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 00:52:17 -0800 (PST) From: Gary Bisson To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/panel: simple: Add support for Tianma TM070JDHG30 Date: Fri, 2 Dec 2016 09:52:08 +0100 Message-Id: <20161202085208.19459-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161202085208.19459-1-gary.bisson@boundarydevices.com> References: <20161202085208.19459-1-gary.bisson@boundarydevices.com> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Gary Bisson X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Tianma TM070JDHG30 is a 7" LVDS display with a resolution of 1280x800. http://usa.tianma.com/products-technology/product/tm070jdhg30-00 You can also find this product along with a FT5x06 touch controller from Boundary Devices: https://boundarydevices.com/product/bd070lic2/ Signed-off-by: Gary Bisson Acked-by: Rob Herring --- .../bindings/display/panel/tianma,tm070jdhg30.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070jdhg30.txt diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tm070jdhg30.txt b/Documentation/devicetree/bindings/display/panel/tianma,tm070jdhg30.txt new file mode 100644 index 0000000..eb9501a --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tianma,tm070jdhg30.txt @@ -0,0 +1,7 @@ +Tianma Micro-electronics TM070JDHG30 7.0" WXGA TFT LCD panel + +Required properties: +- compatible: should be "tianma,tm070jdhg30" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 113db3c..bc3dd46 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1471,6 +1471,30 @@ static const struct panel_desc starry_kr122ea0sra = { }, }; +static const struct display_timing tianma_tm070jdhg30_timing = { + .pixelclock = { 62600000, 68200000, 78100000 }, + .hactive = { 1280, 1280, 1280 }, + .hfront_porch = { 15, 64, 159 }, + .hback_porch = { 5, 5, 5 }, + .hsync_len = { 1, 1, 256 }, + .vactive = { 800, 800, 800 }, + .vfront_porch = { 3, 40, 99 }, + .vback_porch = { 2, 2, 2 }, + .vsync_len = { 1, 1, 128 }, + .flags = DISPLAY_FLAGS_DE_HIGH, +}; + +static const struct panel_desc tianma_tm070jdhg30 = { + .timings = &tianma_tm070jdhg30_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 151, + .height = 95, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, +}; + static const struct drm_display_mode tpk_f07a_0102_mode = { .clock = 33260, .hdisplay = 800, @@ -1689,6 +1713,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "starry,kr122ea0sra", .data = &starry_kr122ea0sra, }, { + .compatible = "tianma,tm070jdhg30", + .data = &tianma_tm070jdhg30, + }, { .compatible = "tpk,f07a-0102", .data = &tpk_f07a_0102, }, {