From patchwork Tue Jan 12 16:05:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 8020031 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id ED47A9F1CC for ; Tue, 12 Jan 2016 18:06:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D646201F5 for ; Tue, 12 Jan 2016 18:06:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6A99C203F3 for ; Tue, 12 Jan 2016 18:06:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FBB36E6D1; Tue, 12 Jan 2016 10:06:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C7016E695 for ; Tue, 12 Jan 2016 08:05:51 -0800 (PST) Received: by mail-pf0-f195.google.com with SMTP id e65so5010696pfe.0 for ; Tue, 12 Jan 2016 08:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=PoZPFCYaNL3s2dSjMFupCKmJKZcK1lBkgiBuiPTGwKs=; b=fzWDv4P9nvrza3lEsbVH6v1fQfemJcz9rmy1O7p9bcnX5LILwW2c7wMScqyDGMI8pX dR5tFyyJJiV5e8t3Ev7yVRHN+L9sknzADEZ+SG2UAZGeay1RL5UEHzb77VKl8M3gnwc2 02KfmF2YXWIsQ5mazoPppNwxOzhfv+366fqkgd2j+9//yO+M85E28Viu1bjyR0wZf/hD t1E3GMMvKsg4W/iZMrTmi+7xEX/a4cRwQA6sH1fskCfNK+BPkecG7wBqRHsFPP8/L/IU 6606UqYIT7HXUNQYdWYLuJxsAiWt8EDuXT/ztRwxA1EB7M/LCXLa7yXI8d5ZJvEbcZou zMQA== 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; bh=PoZPFCYaNL3s2dSjMFupCKmJKZcK1lBkgiBuiPTGwKs=; b=EGpnIBTb+sl61+ujsvXQjoIy0Q80QGQXXi18Bp7WKs4qW601lGtt2wXPBKdI6+bMw4 qcb/61Youu85YCauvar3coEhBDjfrcP3sdTEO5CS4kBrxmc76bqxZOkn6O6RyEghyBkp tHyf5ureUv7/lKLhsoK9/nZwAR812F7abCB/+EKnOcOZQgt11brfSuMakwtWbKL2Hry5 5DGZUMCnXijAa+8dfCoCaBN8htExpZWsmbhAiiTBsjPWl4Qmjou79sRuP6Zakvb5mDGU 0YubCaV4O3vAxwVD2ih4SC5AGvYPDXBadmXfccxCBEAQPrh5JAGFugm//toZDwyfg78F tQ7Q== X-Gm-Message-State: ALoCoQnCeGTRbuSM/BSJrSzTVIP2xxKAtrTWt02yXQxSn9Mp92mBQJO8Om3t4Xp8oZtlL9kzLZtHmRrGipjXWiAOi0kEpws9ew== X-Received: by 10.98.68.132 with SMTP id m4mr35268732pfi.79.1452614751257; Tue, 12 Jan 2016 08:05:51 -0800 (PST) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id w66sm5607162pfi.42.2016.01.12.08.05.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 08:05:49 -0800 (PST) From: Joshua Clayton To: Thierry Reding , David Airlie Subject: [PATCH] drm/panel: simple: Add support for Sharp LQ101K1LY04 Date: Tue, 12 Jan 2016 08:05:46 -0800 Message-Id: <1452614746-7841-1-git-send-email-stillcompiling@gmail.com> X-Mailer: git-send-email 2.5.0 X-Mailman-Approved-At: Tue, 12 Jan 2016 10:06:28 -0800 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sharp LQ101K1LY04 is a 10 inch WXGA (1280x800) lvds panel Signed-off-by: Joshua Clayton --- drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f97b73e..9207b5d 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -708,6 +708,29 @@ static const struct panel_desc giantplus_gpg482739qs5 = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct display_timing sharp_lq101k1ly04_timing = { + .pixelclock = { 60000000, 65000000, 80000000 }, + .hactive = { 1280, 1280, 1280 }, + .hfront_porch = { 20, 20, 20 }, + .hback_porch = { 20, 20, 20 }, + .hsync_len = { 10, 10, 10 }, + .vactive = { 800, 800, 800 }, + .vfront_porch = { 4, 4, 4 }, + .vback_porch = { 4, 4, 4 }, + .vsync_len = { 4, 4, 4 }, + .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, +}; +static const struct panel_desc sharp_lq101k1ly04 = { + .timings = &sharp_lq101k1ly04_timing, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 217, + .height = 136, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, +}; + static const struct display_timing hannstar_hsd070pww1_timing = { .pixelclock = { 64300000, 71100000, 82000000 }, .hactive = { 1280, 1280, 1280 }, @@ -1146,6 +1169,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "hannstar,hsd070pww1", .data = &hannstar_hsd070pww1, }, { + .compatible = "sharp,lq101k1ly04", + .data = &sharp_lq101k1ly04, + }, { .compatible = "hannstar,hsd100pxn1", .data = &hannstar_hsd100pxn1, }, {