From patchwork Wed Jun 1 15:35:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9148899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ACB4A60467 for ; Thu, 2 Jun 2016 00:28:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E2702714B for ; Thu, 2 Jun 2016 00:28:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 921ED27224; Thu, 2 Jun 2016 00:28:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 418CD2714B for ; Thu, 2 Jun 2016 00:28:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB7676EAE2; Thu, 2 Jun 2016 00:28:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8578F890BD for ; Wed, 1 Jun 2016 15:36:14 +0000 (UTC) Received: by mail-pf0-x243.google.com with SMTP id 62so4270761pfd.3 for ; Wed, 01 Jun 2016 08:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=AnGvOUyATmaX/DszJ3V2uWPwhPVEpQI2f+GZoHDL490=; b=D8rpvj7krsNTrJF/meCZOBITT6OXh2BO25+Ut64Bx3B5nAVmh3k9WDTckwN1Bfbtct dBrBN3h58Q7iMlDlDR9/0TeLtzV7fvyi9p6VTdvHVHccfDgijkd1TxgTukbsNFDlctOJ dqGAtUGpRxudGWR8ev9w4ou1A4hiE9G5UtckbNZX9mxZ3tQTV8ENZUZlYzoQzBA4LGnj JZk6sBKLkeq5MQTLef4o24Yxn5rXXVe/XBygjO0fBiqdos3OR6lDNrTOSbccZm0EQeL+ AlXR4V6L3OX0rZJSZVEz99ljmBCpT6dJUomXO4iBwl8o8SBU4bBoctASb2PoCUDJqYro eYjA== 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=AnGvOUyATmaX/DszJ3V2uWPwhPVEpQI2f+GZoHDL490=; b=YAntSZTeMnKoUB7R7Ib4KKW45QWoNVE3eRKEtUv9tVTRaQtQlnMnNhkLxMg+6zoLzC 197PzBNQ6aJiyBxvwvKpHjWrdR18bex5xf5BIlEbQaIK+/HKb40P12fm/hZK8hGUOy9O BNuAISogfyzkKiCvKoO6OMOod4xNlIY3DyxREbFYjPU/HiFz0m/VIeMpKsC1gn9UitxI jq8nue7c+V5D8QZveEK62yYEApyiZtvYEETFt6iJirVPNLBi3IGJFrw1EwrhKRCWUq0L UzznkXsXZLxsvZKWlOaIBvJxjKuRgg3pPmQNf4TxrM4EEZL3yGrlHNcxx2l4hhmhx25t v79A== X-Gm-Message-State: ALyK8tIWyKI7rNxEzeSRCGEj2KxFa59ESJQAdqr+Wv8+2vXgVbTyY+u99UaHUj7pLgatbQ== X-Received: by 10.98.55.129 with SMTP id e123mr9911748pfa.145.1464795373651; Wed, 01 Jun 2016 08:36:13 -0700 (PDT) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id 205sm49103711pfy.32.2016.06.01.08.36.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jun 2016 08:36:12 -0700 (PDT) From: Joshua Clayton To: Thierry Reding , David Airlie Subject: [PATCH v3 1/2] drm/panel: simple: Add support for Sharp LQ101K1LY04 Date: Wed, 1 Jun 2016 08:35:50 -0700 Message-Id: <1464795351-11668-1-git-send-email-stillcompiling@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Thu, 02 Jun 2016 00:28:27 +0000 Cc: Mark Rutland , devicetree@vger.kernel.org, Joshua Clayton , Pawel Moll , Ian Campbell , dri-devel@lists.freedesktop.org, Rob Herring 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-Virus-Scanned: ClamAV using ClamSMTP Trivial patch to add Sharp LQ101K1LY04i to simple-panel Support the Sharp LQ101K1LY04i, a 10 inch WXGA (1280x800) lvds panel. Signed-off-by: Joshua Clayton --- This trivial addition and its documenatation patch was reviewed for 4.5; the only problems then were alphabetization. They slipped through the cracks and I haven't had the time to rebase and repost them until now. hopefully we can get these into 4.8? 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 3a7bdf1..c2d377c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1270,6 +1270,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, @@ -1487,6 +1511,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, }, {