From patchwork Fri Mar 22 08:33:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 160878 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp539684jan; Fri, 22 Mar 2019 01:33:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOTYvRRIxpUvbyhABJvst3ckbJnHpmitaYXfKGSjZV4COeizaliiVGW+iU7hFJQZ4cqB9H X-Received: by 2002:a17:902:e912:: with SMTP id cs18mr8329400plb.130.1553243627914; Fri, 22 Mar 2019 01:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553243627; cv=none; d=google.com; s=arc-20160816; b=pS8PsjDFulMftJ119xcgRTwtolCSXBOdSqO00eprW3/6EoJGgM7m7qsG0X80Fw6q2A h6OYLoEMwVyzjK4eUFkPf25kDBUzlfIHm7zzBe+DJs7Y0jeBSaMtTYJqVmcpM1z7kpZJ TOkMkLVlPnSEisx8vkBHpBONt8ITuQQYs9pzu2vOg28pTtF6UtLjvrhstTBz3KJdNxk4 KVraQmX3rVLqls44sWbdgdB765Ro/S6M8Iax7ScLk2w+y5Df4l3Fw9YXwpivMd67Tk/k dEBreJeXLCQ+aWh1k9tsJFcY2rnKyQWIeN+84YYmZrDagIQl61LN50qnjvJd6/+awY9I vouQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KwNJBnKJXB87LIxx5WORG1FNwtAfGMRWnBQmX8ShEbk=; b=fAd67UgE8Bks0m26bcoDXZXeQLuO3Pdf+NNwPPDWzsC5tA/kcTBOK0cOWdCOkDwT7B 5/VWlZnY37pMBV36njOw+LX+DNcd31ObAXHB06qLKbnVyQneSIUyLLqCX4wBmVR1ssJt 80qFayJwBk+30tEt6Vn8OjnEShBeIZY/hP4Z0HFhgeY14c66TkZ5KbZLYVZq1xi1E9hz 71WM1SYcM0Y2NkxKr6npclHd215vIwgY2TsLnlgD3MPiOgoLEAGOVsUAUory+SvsWS+q HeeKIyUjbnr9jG2Qg/1dn4ha4iDIgo7vmAb+K1n+fRb06w6sNaD4IxuYAP47oC73g39k vpcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rHrTf4M2; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si5894296pgc.461.2019.03.22.01.33.47; Fri, 22 Mar 2019 01:33:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rHrTf4M2; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbfCVIdr (ORCPT + 7 others); Fri, 22 Mar 2019 04:33:47 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57364 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727440AbfCVIdr (ORCPT ); Fri, 22 Mar 2019 04:33:47 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2M8XgPf016399; Fri, 22 Mar 2019 03:33:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553243622; bh=KwNJBnKJXB87LIxx5WORG1FNwtAfGMRWnBQmX8ShEbk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rHrTf4M2WOOvyWYKHMMrQDkA7xcQX/NSbtfLSLrWcFii/XUOewoYY+pRg+C2cCGgp KkbAXiapvrYx0vS39hWEAuYDR8iyzSyobri+LKpJ9nWVGYdAMoF9uc4kiEd/nJh18e zkLYEx7PEURmax9OIZdL8L0yTpi7ehfccoG+zMOo= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2M8XgSw060453 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Mar 2019 03:33:42 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 22 Mar 2019 03:33:42 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Fri, 22 Mar 2019 03:33:42 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2M8Xab5012932; Fri, 22 Mar 2019 03:33:40 -0500 From: Jyri Sarha To: , CC: , , , , Subject: [PATCH v7 2/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Date: Fri, 22 Mar 2019 10:33:36 +0200 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for Three Five displays TFC S9700RTWV43TR-01B 800x480 panel with resistive touch found on TI's AM335X-EVM. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9c69e739a524..cfa57ee78482 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2281,6 +2281,31 @@ static const struct panel_desc starry_kr122ea0sra = { }, }; +static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = { + .clock = 30000, + .hdisplay = 800, + .hsync_start = 800 + 39, + .hsync_end = 800 + 39 + 47, + .htotal = 800 + 39 + 47 + 39, + .vdisplay = 480, + .vsync_start = 480 + 13, + .vsync_end = 480 + 13 + 2, + .vtotal = 480 + 13 + 2 + 29, + .vrefresh = 62, +}; + +static const struct panel_desc tfc_s9700rtwv43tr_01b = { + .modes = &tfc_s9700rtwv43tr_01b_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 155, + .height = 90, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, +}; + static const struct display_timing tianma_tm070jdhg30_timing = { .pixelclock = { 62600000, 68200000, 78100000 }, .hactive = { 1280, 1280, 1280 }, @@ -2718,6 +2743,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "starry,kr122ea0sra", .data = &starry_kr122ea0sra, + }, { + .compatible = "tfc,s9700rtwv43tr-01b", + .data = &tfc_s9700rtwv43tr_01b, }, { .compatible = "tianma,tm070jdhg30", .data = &tianma_tm070jdhg30,