From patchwork Mon Oct 10 18:29:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haixia Shi X-Patchwork-Id: 9369845 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 861AB607FD for ; Mon, 10 Oct 2016 18:29:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D38428CC7 for ; Mon, 10 Oct 2016 18:29:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71957299AA; Mon, 10 Oct 2016 18:29:19 +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_SIGNED, 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]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED6F328CC7 for ; Mon, 10 Oct 2016 18:29:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B5C106E5AF; Mon, 10 Oct 2016 18:29:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9FA896E5AF for ; Mon, 10 Oct 2016 18:29:15 +0000 (UTC) Received: by mail-pa0-x232.google.com with SMTP id vu5so21435043pab.0 for ; Mon, 10 Oct 2016 11:29:15 -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-transfer-encoding; bh=xBiyeFMoM1SGh5YHz3lAxi4o0zbx0dkd4B6YC+Yeg8w=; b=ArexLq33UxkE04FpTSpT50+vPVpabhNdqM2ClnKLVIFkykYK2A2+km7Oj+BKtgfm6K D4ChOVq5gK3kCYZHN2G7pJphGaEz8W3f8A8BQcNXC36vIcSjaGEdGhgQggHGgY+xMHqj WOY0gxhXdhPsGyfrEv8DIWM7Z1cR7EzD9zOHk= 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-transfer-encoding; bh=xBiyeFMoM1SGh5YHz3lAxi4o0zbx0dkd4B6YC+Yeg8w=; b=NNIDoWCD01Tz45GHdQpm/xS5Km+BQzeDFk47DK/CK7XqN5Rs6M5p/HyfzSMNBXn8y6 kmYkMrHk04+TtlGSPpsnDpAJozmWGLjos0sD522BRo3g/5dmd+iYRsnAcEiLmXZkFPlT EiAN8G42uSl/O5FWv3sO9wHYuVn5DcI9x4xHtpXdQK1YF9A0qhzhHGY1T5M/hcYWfroQ bQeYvTPonH432h7eY8wza8+V7R9yjIePGzjCspXc4YJcnx5tcvCTj61ylzME4abjEUF+ WKW6DrIqFG1eMJGMtT1yvlnzQihsLqPGVRPvyBeRY296Ma2l3wQOfGOfMP8HLZAPLsd/ b7Sg== X-Gm-Message-State: AA6/9RlHHtdImSXHqs7wnkyCBJgMGqKjvT+aWCNFg8KRb4Xsp0B8rv4TJViPt18GzUJwmlzP X-Received: by 10.67.11.107 with SMTP id eh11mr56881313pad.89.1476124154769; Mon, 10 Oct 2016 11:29:14 -0700 (PDT) Received: from haixia-z620.mtv.corp.google.com ([172.22.117.235]) by smtp.gmail.com with ESMTPSA id ao5sm61623966pad.1.2016.10.10.11.29.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 11:29:13 -0700 (PDT) From: Haixia Shi To: dri-devel@lists.freedesktop.org Subject: [PATCH] CHROMIUM: drm/panel: simple: Add support for AUO t215hvn01 Date: Mon, 10 Oct 2016 11:29:10 -0700 Message-Id: <1476124150-22033-1-git-send-email-hshi@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 MIME-Version: 1.0 Cc: Haixia Shi 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The AUO t215hvn01 is a 21.5" 1920x1080 panel. Signed-off-by: Haixia Shi Reviewed-on: https://chromium-review.googlesource.com/394328 Tested-by: Haixia Shi Reviewed-by: Stéphane Marchesin --- drivers/gpu/drm/panel/panel-simple.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 113db3c..bab1951 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -583,6 +583,33 @@ static const struct panel_desc avic_tm070ddh03 = { }, }; +static const struct drm_display_mode auo_t215hvn01_mode = { + .clock = 148800, + .hdisplay = 1920, + .hsync_start = 1920 + 88, + .hsync_end = 1920 + 88 + 44, + .htotal = 1920 + 88 + 44 + 148, + .vdisplay = 1080, + .vsync_start = 1080 + 4, + .vsync_end = 1080 + 4 + 5, + .vtotal = 1080 + 4 + 5 + 36, + .vrefresh = 60, +}; + +static const struct panel_desc auo_t215hvn01 = { + .modes = &auo_t215hvn01_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 430, + .height = 270, + }, + .delay = { + .disable = 5, + .unprepare = 1000, + } +}; + static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .clock = 72070, .hdisplay = 1366, @@ -1575,6 +1602,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01, }, { + .compatible = "auo,t215hvn01.0", + .data = &auo_t215hvn01, + }, { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, }, {