From patchwork Thu Apr 26 19:48:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 134532 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2761247lji; Thu, 26 Apr 2018 12:48:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx49w8z6Mz3+z5Y4QM0HTmZdFqhi1bkEi0qRcYmahHGBJOUKYLNhZuVrOpCXTLz1QfJTDNZoc X-Received: by 2002:a17:902:57c7:: with SMTP id g7-v6mr34990072plj.222.1524772129254; Thu, 26 Apr 2018 12:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524772129; cv=none; d=google.com; s=arc-20160816; b=IgB6l8EqygHfUA4ahD0cfKp+pTjniJVCoIGQBP3IamEIMc5AwettQh96rFG0IyuxC9 kJGxv78lHuF+vxWG/bRxmJLH5op9qtbkcSVqrB8JyW8pKxt1nA3QUnKSHxab06i6FWcN P8zykY0eexNH8GNb1m1k1JuE7L82Os08sZBwqvvYH6CC1qNg8z5nXRnHovRA8U0bylRF ANN/ZYj8vJ0zBZ2twbR+oV25X0E9tx1stW8mVII3lIDucxPUj0wxnV9Hml5DIq/WKg0Y Z84wg/bJqAHZXJy1U1eSdT7F5PQt2FHV7M8LkTggUelsfGQAgkOQVxIejxeotwsFUnPA RR3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=uCNryg4vDh/pguGmcKMWc6ZVfo/KgdoNZ9TCtPfIRIw=; b=MBJok9lrFxYcP/lAmqLcjFtkGhHTSa4y+ywu+UW8bpp8X+5zmLhG0968FTsoz8ABoD OseZbzeTSsZ8hVS11fvLmqibWj7kyVQAgqngvB7yLjXtNX14+AxsITQbNfQhGhMDeOgb +ka1do7mGaarAPM3GJfbBDmgQ6jIJ3A/tZnQ0yiSEeDjBCAXYxv9ZqRmiIHPbHMrzP/w kUg44EONy6JsHgX/sxjmBay6ZO5i9N7sLWs9Zvtf28YLpdsuUDRb5Md9LmVd/80a/huw /Jkjjeq2vW9uEprzSzxLIRE2ExvelQO8BiKDol0yRL3OE86UPUu4b6TWOgyxfdQ/c5vx A6Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=DdICCL2M; 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=fail (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 24si14746917pfr.242.2018.04.26.12.48.49; Thu, 26 Apr 2018 12:48:49 -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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=DdICCL2M; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285AbeDZTss (ORCPT + 6 others); Thu, 26 Apr 2018 15:48:48 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:14511 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeDZTsr (ORCPT ); Thu, 26 Apr 2018 15:48:47 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3QJmf28014345; Thu, 26 Apr 2018 14:48:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524772121; bh=OwXlH7OrIAaPlOvEXf4NpZ/TyrN/ndRbaEHJtZI+Dj4=; h=From:To:CC:Subject:Date; b=DdICCL2Mw9ESn1RAraEFlJT8Ihbc02AILGsaRHyRwknQGNtUdlGjHSVvzl2Vp7Tbc HTqRyp5r+lju8sR815RQuVA1SEnuE+EgFP+vr/OMiaE8fCzRvujA849N9FGHNXEh49 +dnoLZkBH/+/WzJbMA08rXnKsK+trm0NesRQoUQc= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3QJmfsv017091; Thu, 26 Apr 2018 14:48:41 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 26 Apr 2018 14:48:38 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 26 Apr 2018 14:48:38 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3QJmasD022921; Thu, 26 Apr 2018 14:48:37 -0500 From: Jyri Sarha To: , CC: , , , , Jyri Sarha Subject: [PATCH v5] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Date: Thu, 26 Apr 2018 22:48:22 +0300 Message-ID: <1524772102-3360-1-git-send-email-jsarha@ti.com> X-Mailer: git-send-email 2.7.4 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 Reviewed-by: Tomi Valkeinen cc: Thierry Reding --- Thanks Thierry, for reminding me about this! Changes since v4: - Add tfc to vendor-prefixes.txt .../display/panel/tfc,s9700rtwv43tr-01b.txt | 10 +++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt b/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt new file mode 100644 index 0000000..0b1cc71 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt @@ -0,0 +1,10 @@ +TFC S9700RTWV43TR-01B 7" Three Five Corp 800x480 LCD panel with +resistive touch + +The panel is found on TI AM335x-evm. + +Required properties: +- compatible: should be "tfc,S9700RTWV43tr-01b" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 12e8b3e..4ec0d6b 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -356,6 +356,7 @@ technexion TechNexion technologic Technologic Systems tempo Tempo Semiconductor terasic Terasic Inc. +tfc Three Five Corp thine THine Electronics, Inc. ti Texas Instruments tianma Tianma Micro-electronics Co., Ltd. diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index cbf1ab4..f2d96611 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1891,6 +1891,29 @@ 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, + }, +}; + static const struct display_timing tianma_tm070jdhg30_timing = { .pixelclock = { 62600000, 68200000, 78100000 }, .hactive = { 1280, 1280, 1280 }, @@ -2251,6 +2274,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, }, {