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: 9217297 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 9C855607D9 for ; Wed, 6 Jul 2016 23:01:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 897442851E for ; Wed, 6 Jul 2016 23:01:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B2C128521; Wed, 6 Jul 2016 23:01:24 +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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 07B312851E for ; Wed, 6 Jul 2016 23:01:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKvnK-0005TJ-E9; Wed, 06 Jul 2016 22:59:50 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bKvnH-0005RP-AJ for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2016 22:59:47 +0000 Received: by mail-pf0-x242.google.com with SMTP id i123so81521pfg.3 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=ROc48+OPiyJnPHbUu6Ut3LQ2GnHfCcjOCbHVLzc69Ff874xWOCxhBwVJ4CZxC1DVT0 V3hLXKGBktZffS6QA0oL3OI2ORwb9+eDdkUuzs0j6iy9atVgxnK8phjmvLTamrKueB6y AjsId2SMWJX+mCtToYsmTV42Qnolto/oiCGgVcCD4aWm+eIf5xORoAnMWpiOcRGQdom/ WjCLmEpNY5Swsrb3tDBYFFwqkv+zm0TaPsDgWej6Hk8IGX/5kk1MAJm7qwgUb79ab4Bi phec/nagVPHm+dW7e4B8Fj2Xe2AsvVVUigjkGrWiA9BeBzk/b/HtVpSTxemAERmUmMOk hYkQ== X-Gm-Message-State: ALyK8tKwPvRpksMiz6CdMtIbKwnBV4TOnv5YUJB8QzlQVqRnW+jldo/MeEoca18kJumimg== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160706_155947_399759_7A9303B3 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joshua Clayton MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 --- 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, }, {