From patchwork Sat May 24 02:27:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Marchesin?= X-Patchwork-Id: 4236461 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 4F900BF90B for ; Sat, 24 May 2014 02:28:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8739A203AD for ; Sat, 24 May 2014 02:28:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 69CA4203AB for ; Sat, 24 May 2014 02:28:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DA4F26E00E; Fri, 23 May 2014 19:28:03 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 42FD66E00E for ; Fri, 23 May 2014 19:28:02 -0700 (PDT) Received: by mail-pb0-f52.google.com with SMTP id rr13so4969362pbb.11 for ; Fri, 23 May 2014 19:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=biQgjjNfJsDMQDB41aJDc5XLm8t3Gxyn1fm1sxhV1Ts=; b=ClJjC58trDZyUmEaEBgI1e5+PM1g/9BjLXjw6qEHcV8OoUxvMIa/t5Rtye4TDB7kWF xcDiyvXU1aosMkXpZrbxw2qh1Dk/9a5i2z3I/Z+32kJRRIvYVmxFgXfO5SJDAcgHGgL5 PDvoUYbk4wBUUDNZKeNrsXWZngRnViPuydhSE= 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:mime-version :content-type:content-transfer-encoding; bh=biQgjjNfJsDMQDB41aJDc5XLm8t3Gxyn1fm1sxhV1Ts=; b=CTCcg+amj9z6SjGhW13JrtS6o7UZGUlZoLCi0Is6/rGBrqX3iAY/0YqTzb6hlJwSnQ B73XwPBdGoCr/2TTB8+p4CZvE71nHsJzQ6i3V74cQ38NV9CSIY9S4FZhh0g+3aHTYLGq zYCwY2crfTlJdkp0pBQVd+BJl/1mRXdguTZmVpQHGO/g4btX5JAlenetfnEe8b4ulUTb j/knFTjbJztub61okgI4ztjfIScTEYh7a1g+p09/srWO2AuUCrONocURuN+aERTN6JcK gUCXA9yDBH6UsK5+9vUNywz1KTZDOnCsPRST+rysvuDtNeM/XgNU5chnFbYxhKiJT99L 3Q7A== X-Gm-Message-State: ALoCoQmWo/qrYlP1OeRrkESHbYbqG3UFstTMcNtfnJge44WPeWxUMtn6EQyHToZBfDsPJTOqYPNk X-Received: by 10.66.142.233 with SMTP id rz9mr10704581pab.71.1400898481924; Fri, 23 May 2014 19:28:01 -0700 (PDT) Received: from localhost ([2620:0:1000:1b01:82c1:6eff:fef8:b068]) by mx.google.com with ESMTPSA id pd7sm21871485pac.35.2014.05.23.19.28.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 23 May 2014 19:28:01 -0700 (PDT) From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: add support for AUO B133XTN01 panel Date: Fri, 23 May 2014 19:27:59 -0700 Message-Id: <1400898479-8814-1-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a MIME-Version: 1.0 Cc: =?UTF-8?q?St=C3=A9phane=20Marchesin?= , treding@nvidia.com 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 This panel is used by nyan-big and supported by the simple-panel driver. Signed-off-by: Stéphane Marchesin --- drivers/gpu/drm/panel/panel-simple.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 309f29e..3072638b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -284,6 +284,28 @@ static const struct panel_desc auo_b101aw03 = { }, }; +static const struct drm_display_mode auo_b133xtn01_mode = { + .clock = 69500, + .hdisplay = 1366, + .hsync_start = 1366 + 48, + .hsync_end = 1366 + 48 + 32, + .htotal = 1366 + 48 + 32 + 20, + .vdisplay = 768, + .vsync_start = 768 + 3, + .vsync_end = 768 + 3 + 6, + .vtotal = 768 + 3 + 6 + 13, + .vrefresh = 60, +}; + +static const struct panel_desc auo_b133xtn01 = { + .modes = &auo_b133xtn01_mode, + .num_modes = 1, + .size = { + .width = 293, + .height = 165, + }, +}; + static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .clock = 72070, .hdisplay = 1366, @@ -377,6 +399,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,b101aw03", .data = &auo_b101aw03, }, { + .compatible = "auo,b133xtn01.2", "auo,b133xtn01.0", + .data = &auo_b133xtn01, + }, { .compatible = "chunghwa,claa101wa01a", .data = &chunghwa_claa101wa01a }, {