From patchwork Mon Oct 10 23:19:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haixia Shi X-Patchwork-Id: 9370005 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 AC7F760487 for ; Mon, 10 Oct 2016 23:19:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83A7328BFB for ; Mon, 10 Oct 2016 23:19:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7892A29A6E; Mon, 10 Oct 2016 23:19:25 +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 52A2A28BFB for ; Mon, 10 Oct 2016 23:19:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6D1776E256; Mon, 10 Oct 2016 23:19:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id A476B6E256 for ; Mon, 10 Oct 2016 23:19:21 +0000 (UTC) Received: by mail-pa0-x229.google.com with SMTP id vu5so3092749pab.0 for ; Mon, 10 Oct 2016 16:19:21 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cva1v/mF6zGDN0eq2aymjaLRjx1tWXgUf2LHvVyGI1A=; b=RQOLBtHJP6SgTscyyq1dmcNYRSWYOWUJWGRKIzl6RJJ+K3KQuQca65/5R88Qdq34Ct a40m02M412DpegXJkN2enOhvKFyyBrcgnoC8cXpQL1LwXDtNCxmc3j/H0MjK04oA2k8D 1yAix5bvya+JmoDc9EX/kMZ1AnC3PUS7uxSec= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cva1v/mF6zGDN0eq2aymjaLRjx1tWXgUf2LHvVyGI1A=; b=ex0XSNI+Cs/yly4m0pnRWKdOjUPBDHjT4aWI3LQ31eyvkOC5e5O8b68j6KA45gTEps SzRiz7MoW04s037/AoLqSGLcC9aykypUpRMpSNS0m8XMLIYKIDl455MtxbqXqHLTrcIo yGdowqUiGAJyJq1O98rcRmUhQgPMfyFt5T06eV4KaknCSBczgISychRYtazRHZzlIB1U Nn6AnClNjyWA9+H72qdcVv330ngeoEWKgowN0afhUW1whybOcVo3m5tSrtlGJhAjGcRL EPJ74JmuUwG3Olrvo8PcZDjt8sYsiWZdTvdHnEM2bii+ekt53cHvDsPRPhd4kDTElQYt 4YHw== X-Gm-Message-State: AA6/9Rnn80b4cdXYilXHLHmw0FiX3+dYl6deGNVkyc7kFnu/2hEVT1Mr7SUsbvfFiqXWquzl X-Received: by 10.66.88.231 with SMTP id bj7mr1245693pab.91.1476141561270; Mon, 10 Oct 2016 16:19:21 -0700 (PDT) Received: from haixia-z620.mtv.corp.google.com ([172.22.117.235]) by smtp.gmail.com with ESMTPSA id b88sm338521pfe.72.2016.10.10.16.19.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 16:19:20 -0700 (PDT) From: Haixia Shi To: dri-devel Subject: [PATCH v3] drm/panel: simple: Add support for AUO t215hvn01 Date: Mon, 10 Oct 2016 16:19:17 -0700 Message-Id: <1476141557-4613-1-git-send-email-hshi@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1476124552-23449-1-git-send-email-hshi@chromium.org> References: <1476124552-23449-1-git-send-email-hshi@chromium.org> MIME-Version: 1.0 Cc: Emil Velikov , 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. Link to spec: http://www.udmgroup.com/ftp/T215HVN01.0.pdf v2: fix alphabetical order v3: remove minor revision suffix ".0" and add link to spec Signed-off-by: Haixia Shi Tested-by: Haixia Shi Reviewed-by: Stéphane Marchesin Cc: Emil Velikov Cc: Thierry Reding --- 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..256c201 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -555,6 +555,33 @@ static const struct panel_desc auo_b133htn01 = { }, }; +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 avic_tm070ddh03_mode = { .clock = 51200, .hdisplay = 1024, @@ -1575,6 +1602,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01, }, { + .compatible = "auo,t215hvn01", + .data = &auo_t215hvn01, + }, { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, }, {