From patchwork Wed Jul 6 22:59:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9217523 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 8E77760752 for ; Thu, 7 Jul 2016 01:09:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F610285AE for ; Thu, 7 Jul 2016 01:09:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74180285B0; Thu, 7 Jul 2016 01:09:06 +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 370C5285AE for ; Thu, 7 Jul 2016 01:09:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C2516E6EF; Thu, 7 Jul 2016 01:08:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD9DE6E1F0 for ; Wed, 6 Jul 2016 22:59:26 +0000 (UTC) Received: by mail-pf0-x242.google.com with SMTP id 66so87341pfy.1 for ; Wed, 06 Jul 2016 15:59:26 -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=osIoyFYkBA3CRq4kGyNbFtgBwdzY70sPTFHMcyjB6sM=; b=h5sSEf2A8LLzzePTSt4QxvAt+cOSeqRx6gy/vATba3qyxOxPlIiGeYMiArSQT/9CSU frzjzJ1RMVhiCRDdaP1PPTglw7mqj8IIOL2FHC6YNPJWCKjxn9u/g0WE9tYhnjeJznXU SiDmBKB2WJRl62yhXykhW9mrR+2fJr1pf0Bhy+pUyoYrvxrjJ6nwlt7Pc4dwjhaWWrxW BO1FM9Zisqpt1YxTtVQNE9EA0r40mCK6Bj2amnobW/q/DxMlxq3pCkF5xKEqFPbAzAVD 0QlAKkkYMGsLF02kl4uEspvRHhqK4dzXhdDcztbwM/hDDeY0QBSYQex1bDzbbjNiuKn2 G2kA== 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=osIoyFYkBA3CRq4kGyNbFtgBwdzY70sPTFHMcyjB6sM=; b=bNsgvHlD73HVvgxQHMIPH3zwL1h7V71TkX7ZCljDa/fpdqDrIWDgA6YSDHBJBjTz3U x9pfFY2KRf3APs//Eq87g2+2Z/lqqFKTdjDbf9t72QhaHO4lcl++z0ntMAbRNvAmXXEv +xnhBsy7kT8Ymt6ER/Oy/8NlOMB/tFryFbLqmSgAFqTi0GbVXxyiOlMATJfydhkn6E9t vInAH2Cy95+QNs17m3E687rhw6hHfbxrCC1GTJWKxvKAq2/lmSvKlOqeUGcxzDZoFkD7 mItoeDMeQiYtiFGnYOLXdVK7wQ/7Wzs2GQ2SSTTwXWFtso0G1YEZiErt4MKOkiZ1+9se jBsw== X-Gm-Message-State: ALyK8tIsSMEN6/jg+Y52n/NycTg7k+reKCzT51qFaf9y79PA3jd6v6vDa+ykZ7zWkyFHAg== X-Received: by 10.98.208.3 with SMTP id p3mr12406351pfg.152.1467845965610; Wed, 06 Jul 2016 15:59:25 -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 4sm6847900pfi.24.2016.07.06.15.59.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jul 2016 15:59:24 -0700 (PDT) From: Joshua Clayton To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Thierry Reding , linux-arm-kernel@lists.infradead.org Subject: [REPOST v3 1/2] drm/panel: simple: Add support for Sharp LQ101K1LY04 Date: Wed, 6 Jul 2016 15:59:16 -0700 Message-Id: <1467845957-29036-1-git-send-email-stillcompiling@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Thu, 07 Jul 2016 01:08:42 +0000 Cc: Joshua Clayton 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 Add simple-panel support for the Sharp LQ101K1LY04i, which is a 10 inch WXGA (1280x800) lvds panel. Signed-off-by: Joshua Clayton --- Reposting again in hopes of getting this 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, }, {