From patchwork Tue May 20 23:36:48 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: 4217221 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 B9AD4BEEAC for ; Wed, 21 May 2014 14:17:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B94952037E for ; Wed, 21 May 2014 14:17:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7A93C2037D for ; Wed, 21 May 2014 14:17:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93B086EA5C; Wed, 21 May 2014 07:17:56 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C4946E20C for ; Tue, 20 May 2014 16:36:53 -0700 (PDT) Received: by mail-pa0-f41.google.com with SMTP id lj1so780318pab.14 for ; Tue, 20 May 2014 16:36:53 -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=mFjLF57A8A3UH/3WEYLavVtuUAOInL4iKxxt0ROTz0c=; b=fvteHWL+/y94WW46yZBK4WvhLPGE5t6nbNrO9wEylhLsmNZ5n/GIhs5TX5Mwkx0GQE XJ05B4BrpxhB3IOyywtenuyR+6xqleuUffUpoXDiuBgrA3ru3O3Nm+FndyhbvP0dMRTH BF4EVeD0f6EVKEOoLSbZ26OB3HqOb2EdFMd7I= 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=mFjLF57A8A3UH/3WEYLavVtuUAOInL4iKxxt0ROTz0c=; b=LxJvEXymatvigwhPGtN9WUkbsQuGms3abcriZ4fE3zYs81uDTpS1kz0UMenFB5/4iP 4TOqaHnSU2dQ9FEfvrVeD1ypeUHae1QcA/jrAzS5ZKqbtz9a7x0TUP6IYcTUPdSnvUNh 0hYjrOG8uOoU08tnn7YEUMWRLVFko2dNlorE7r0qQ8uvWpZm4NgKjgWqkiigBfQV+PMZ dgx62Y7cbpMjmcPK43Szh3iE3A9wJAP0MGn1VLxiXHTAzdE3tcSwnR39HqP1/PySzqv3 gze3HeZJvQVl3gdd7ZsFVTfv0/FAA0xT9ajAUmJQqCzML5AeM2ynqRF5vFbisYrQQHBj GjpA== X-Gm-Message-State: ALoCoQmTj7RXnw7IxtseEJMfUApJwNnTFyFmlYQCkDTSxTKOSl+uC5p8JPRot9RMVB3NgUVNIfZx X-Received: by 10.66.236.5 with SMTP id uq5mr30036713pac.122.1400629013121; Tue, 20 May 2014 16:36:53 -0700 (PDT) Received: from localhost ([2620:0:1000:1b01:82c1:6eff:fef8:b068]) by mx.google.com with ESMTPSA id yv5sm4962849pbb.49.2014.05.20.16.36.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 20 May 2014 16:36:51 -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: Tue, 20 May 2014 16:36:48 -0700 Message-Id: <1400629008-31646-1-git-send-email-marcheu@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 21 May 2014 07:17:41 -0700 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 my tegra board 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..46dcad0 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 = 164, + }, +}; + 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", + .data = &auo_b133xtn01, + }, { .compatible = "chunghwa,claa101wa01a", .data = &chunghwa_claa101wa01a }, {