From patchwork Mon Mar 12 21:33:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 131398 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp1247912ljb; Mon, 12 Mar 2018 14:34:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELtyxrOGp3WweqxgI0HTVaASu+Dt4nPvtLx0F8z4zUyx/oy0GfG83ppxO/6liV2elGwHo67s X-Received: by 10.98.217.211 with SMTP id b80mr9445165pfl.107.1520890471516; Mon, 12 Mar 2018 14:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520890471; cv=none; d=google.com; s=arc-20160816; b=TzjKSQdxdKnJOBmxTTsVKbhmy7dXD0lsWpnK9jwnNd4TJTCAjJIxIvVUHUervc/1Df IZ6V4cEtG9aV91FNpSn9YH0klk2/Eu/JONbbETHYuxI97MSsPFbk0OJvTTdZdQhCBSjB 0n+Q1h00/irIke/t6UrfccwVPffcTXXKn5vPzhrjVXV5N0OGpNB57VIAHW5hylKenMB/ 9niGZTzeK8dT6zo6PHNTVLrlqcJ3jEpWf0T+Qk2DQvxIL9V2boHgSTe0Y66KWVWd9liI 22OlLHbVvbLP+k4+iI9i2bhBdinYGzJDLsJmp46fgMSYQjpTq7M5UbSgD2OXMpjo+95R U07w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=NV21rRxSdQID7Jq9PSQvtnR4wwJcDNDcvCQbnSbjNeI=; b=ZdDEawgJiF5Gb5cQeHrKBXaXHS55LlRxtaig5MNf3VMMIlQDreqsNQQl2N8uBMnEjA ZwZRrXB50fMjdRv8pnRkdFgf1E8l5XLlC6+dEiJAkm6122IJfvjhV77IeSbkNOzVLgxi ddNXajzYgZqBJckBMyaSrGAf/Gf5Kayc0MVQQlpod4T641vv1gWJgcENgtyMnfnCuLTC WgxQh6kjziXrvhDy9ZsPwNkk/BWqxVAUwlPsvq0RKiQv0MPcg6cjNqDlg7N/EJ+VxrZf a9lW3b0D+2oz7ypdh13mlmTxCnUJW1y+1J6m6bctqEVm0t+G50hnPRBQpGOnOKexmWIw 79pQ== 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=YuDOIxnG; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c187si6326233pfa.362.2018.03.12.14.34.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 14:34:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=YuDOIxnG; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A20C189B98; Mon, 12 Mar 2018 21:33:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6EF9289B98 for ; Mon, 12 Mar 2018 21:33:58 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2CLXufm022369; Mon, 12 Mar 2018 16:33:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520890436; bh=cXze4Mknfa9ocIZLvPnvIE1HJlViTv8Ysw5KHJohOZs=; h=From:To:CC:Subject:Date; b=YuDOIxnGTdSdw2XV1vm3dfe7NuWq58zHcGoYoGDBK87P4BZf0c/BjBAa4Q3h8W7Cg deRA74P/j6eS7PwMTH9RVVkkuz7lmJ8dGyzrRNs0YbJZlgOKrLClpovYEccHaRiATF P3h78g9VvknwOEtGxMyyGcHgVQvGm5keb11ss9C8= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2CLXuGB029461; Mon, 12 Mar 2018 16:33:56 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 12 Mar 2018 16:33:55 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 12 Mar 2018 16:33:55 -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 w2CLXsCo017590; Mon, 12 Mar 2018 16:33:54 -0500 From: Jyri Sarha To: Subject: [PATCH v4] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Date: Mon, 12 Mar 2018 23:33:45 +0200 Message-ID: <1520890425-9929-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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tomi.valkeinen@ti.com, thierry.reding@gmail.com, Jyri Sarha Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- .../display/panel/tfc,s9700rtwv43tr-01b.txt | 10 +++++++++ drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt 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/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5591984..d4298da 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1845,6 +1845,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 }, @@ -2199,6 +2222,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, }, {