From patchwork Tue Jan 12 21:55:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 8021401 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 1BA2D9F2F4 for ; Wed, 13 Jan 2016 00:42:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4DB4A203F3 for ; Wed, 13 Jan 2016 00:42:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BB4182042B for ; Wed, 13 Jan 2016 00:42:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D46A7202C; Tue, 12 Jan 2016 16:42:14 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id 032CE6E8D9 for ; Tue, 12 Jan 2016 13:55:43 -0800 (PST) Received: by mail-pf0-f196.google.com with SMTP id e65so5309484pfe.0 for ; Tue, 12 Jan 2016 13:55:43 -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:in-reply-to:references; bh=FYh0MIHF1EZU9kN+d1mbzPv4sm9apbyZ+/dT2lzlP5o=; b=Bbmcoy9xTqLbjxrLVgH6j3ns+S+XT2Q6KyeaJzOtmNSUgWmpX5Jm4Vg6Bka/6gkAxY lyBhSZ4GF/jEL/7UXNx4yX4Jl0SQKehuo+kH1Mm0cPoGDIGvQqlA6XpV8j3pc3pdOuPB JvklBWFafiKHW8c0CeE6J2Efv4bHeylXPXOg+48GufFjnOLYpksKLEo+f5lBoev+aUUJ dh7qVnP0ba12F65iECcSzD/paF9XhMO1flvaMkdJMqyfErH+lskTcnd4YHtIEh8d+N7l gJhtwYWuqZ3h6ggzzZe3WGqlU+0HamMIIur75Zu5N5EIbVZMNJHEeU1zg9yY/06Ulz2F yrdw== 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=FYh0MIHF1EZU9kN+d1mbzPv4sm9apbyZ+/dT2lzlP5o=; b=L+2nScCCWlu5VSKiA+sfC7XumChmSeFCsI0roVkM+whso5JeBtOnDRu/8ZlRTFOISm ZWTWumgiREnS4K1NbpdHEIIu6mF49WrzhBma/3JB5jJv4wtKdBZ3CM2PfLMOM9lEoc1B 8veGst3SlpLALntrvqRfba4HaUwWDg/hjcLgDiNxifSmDtwywum69AQBg6wIX8uq2tr7 PtlotWbN1XdPoV1INotEps/RySq4NQtZVaze73LzonSLpZO6YvQfOPdmHP/T7hpin08K gQxuwUuR6kV0PaJl3B8xwv+I2uiihgwGElrfEeBr4P4u0cYKu/hxrnGD/QcefMcwUsK0 75iQ== X-Gm-Message-State: ALoCoQnymuSuSUxvVBt2ZLqMhuEJ1XeUnekDmm7I9pAwzeck6+aDLY2AinjdwTH/omJ2bpBJZOg2JBw/ubwBpNvfcjQpGSjFsQ== X-Received: by 10.98.72.130 with SMTP id q2mr37427002pfi.154.1452635743486; Tue, 12 Jan 2016 13:55:43 -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 c86sm32512671pfd.75.2016.01.12.13.55.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 13:55:42 -0800 (PST) From: Joshua Clayton To: Lucas Stach , Thierry Reding , David Airlie Subject: [PATCH 1/2] drm/panel: simple: Add support for Sharp LQ101K1LY04 Date: Tue, 12 Jan 2016 13:55:35 -0800 Message-Id: <1452635736-7343-1-git-send-email-stillcompiling@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: References: X-Mailman-Approved-At: Tue, 12 Jan 2016 16:42:13 -0800 Cc: Joshua Clayton , 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 Add simple-panel support for the Sharp LQ101K1LY04i, which is a 10 inch WXGA (1280x800) lvds panel. Signed-off-by: Joshua Clayton --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f97b73e..e01eacb 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1073,6 +1073,30 @@ static const struct panel_desc samsung_ltn140at29_301 = { }, }; +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 drm_display_mode shelly_sca07010_bfn_lnn_mode = { .clock = 33300, .hdisplay = 800, @@ -1188,6 +1212,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "samsung,ltn140at29-301", .data = &samsung_ltn140at29_301, }, { + .compatible = "sharp,lq101k1ly04", + .data = &sharp_lq101k1ly04, + }, { .compatible = "shelly,sca07010-bfn-lnn", .data = &shelly_sca07010_bfn_lnn, }, {