From patchwork Wed Aug 6 20:31:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 4688421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AC639C0338 for ; Wed, 6 Aug 2014 20:31:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E03EF20145 for ; Wed, 6 Aug 2014 20:31:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0602C20125 for ; Wed, 6 Aug 2014 20:31:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C0AC36E328; Wed, 6 Aug 2014 13:31:40 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 09EC86E328 for ; Wed, 6 Aug 2014 13:31:39 -0700 (PDT) Received: by mail-qg0-f51.google.com with SMTP id a108so3267563qge.24 for ; Wed, 06 Aug 2014 13:31:39 -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=+eHXV/QhgdJK2A9grPLsPxA/eb81IrD+2GvOARHCMfM=; b=ew6oA+Mk3H7jUaBZnUV7iaX7G5/wPnB4JYchxMwI9MWhieJ1m8xWROJgZUdFpA2PsE TeXJBWdGZnnEmB4MpIqtP8byTz+PpVwWJcfZWolmPw2876UsWw51arg83U3/4IpXNhNZ ic9DsUpzcc3bteDvQQYYvUHITmvlw3Iazx7nUD9digmONhME9WhmDJBsKhFoCJHD2QJB qK4WLdQH9H+4JrmDTX0KrG2puctuF0gxxO2k0oBwcE8Rm5IqsDqcBPxnfMKgZJ0e0XJY 9wBumQIyTxHuG3P51r6znqtBC3iinS5t8FcB/kl3ZN7yQWu+ogPpa2mloCDKjBVTc4x1 20gA== X-Received: by 10.224.55.131 with SMTP id u3mr20287210qag.98.1407357099617; Wed, 06 Aug 2014 13:31:39 -0700 (PDT) Received: from localhost (pool-108-20-244-71.bstnma.east.verizon.net. [108.20.244.71]) by mx.google.com with ESMTPSA id i18sm3331282qar.29.2014.08.06.13.31.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 13:31:39 -0700 (PDT) From: Rob Clark To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel/simple: add optronics B101XTN01.0 Date: Wed, 6 Aug 2014 16:31:30 -0400 Message-Id: <1407357090-3801-1-git-send-email-robdclark@gmail.com> X-Mailer: git-send-email 1.9.3 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.8 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 LVDS panel, make/model described as: AU Optronics Corporation - B101XTN01.0 (H/W:0A) See: http://www.encore-electronic.com/media/B101XTN01.0.pdf Signed-off-by: Rob Clark --- 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 a251361..16119ba 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = { }, }; +static const struct drm_display_mode optronics_lvds_mode = { + .clock = 72000, + .hdisplay = 1366, + .hsync_start = 1366 + 20, + .hsync_end = 1366 + 20 + 70, + .htotal = 1366 + 20 + 70, + .vdisplay = 768, + .vsync_start = 768 + 14, + .vsync_end = 768 + 14 + 42, + .vtotal = 768 + 14 + 42, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc optronics_lvds = { + .modes = &optronics_lvds_mode, + .num_modes = 1, + .size = { + .width = 1366, + .height = 768, + }, +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "auo,b101aw03", @@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = { .compatible = "samsung,ltn101nt05", .data = &samsung_ltn101nt05, }, { + .compatible = "optronics,b101xtn01", + .data = &optronics_lvds, + }, { + }, { .compatible = "simple-panel", }, { /* sentinel */