From patchwork Mon Oct 10 18:35:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haixia Shi X-Patchwork-Id: 9369847 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 8EEA060487 for ; Mon, 10 Oct 2016 18:35:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84BB129557 for ; Mon, 10 Oct 2016 18:35:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7781A2957E; Mon, 10 Oct 2016 18:35:59 +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 D4C5929557 for ; Mon, 10 Oct 2016 18:35:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AEA006E5B3; Mon, 10 Oct 2016 18:35:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 837756E5B4 for ; Mon, 10 Oct 2016 18:35:56 +0000 (UTC) Received: by mail-pa0-x22f.google.com with SMTP id ry6so59194387pac.3 for ; Mon, 10 Oct 2016 11:35:56 -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=CpWlfp+AJgTGv0KS86pVk4+4+qm/1VgyLBprFHSJs4M=; b=EGD+iCL6Zwl8TQEvfMEp2JXP1UOQBK6MdaJEngVaQrkSo7uPW4JnYpYqmbOTVNDViB yQlnB5ywboYMGr46cQ4BvlSwdq3MDOJFZoBv5Ot2At9tSZo2frgWnW5KKzHJHdB0Jdy3 XOkywCzldFPSuduyVVhZEzX5Ld6iASLOlyqNE= 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=CpWlfp+AJgTGv0KS86pVk4+4+qm/1VgyLBprFHSJs4M=; b=cv9zy30EhwzxqzVbPDf4hS01IuntvA69SIj1VEI8YB/FBsHeQo7sXj90VAudGauRWY rpddGn0+vOPFt0nlx87qKqQ+QbG5cLYkBn93QJ0Xs4gRhEvl0mLkBnnOeZDYbS6xCmkU CYLApWuLfYZIC76hM3dJ7tIPcQ9KbsqL6k5h86xpgsHaiEERMLmzVDmgz63fnxzFjVs2 7qXDOGBSl6hUMfH/YyqFGNetr+78IbhUZRaShFeIDqFDgjUi6lXh4U146HiqcuRZmxIT rlxYjh03CcGKdzcib2tN2kZ3qONqYQUPEU2/7aI/QOeZRSkw6KI6ZeK8z2AeGuRcLEgh O8Qw== X-Gm-Message-State: AA6/9Rkn4wGri+TJqmdReboFKpjBxEXRFRH2moG+dtZETrr8CpHr2xSFJ4mqvcj22UPsD3VG X-Received: by 10.66.12.36 with SMTP id v4mr56204776pab.95.1476124555815; Mon, 10 Oct 2016 11:35:55 -0700 (PDT) Received: from haixia-z620.mtv.corp.google.com ([172.22.117.235]) by smtp.gmail.com with ESMTPSA id m188sm115014pfc.40.2016.10.10.11.35.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Oct 2016 11:35:55 -0700 (PDT) From: Haixia Shi To: dri-devel@lists.freedesktop.org Subject: [PATCH v2] drm/panel: simple: Add support for AUO t215hvn01 Date: Mon, 10 Oct 2016 11:35:52 -0700 Message-Id: <1476124552-23449-1-git-send-email-hshi@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1476124150-22033-1-git-send-email-hshi@chromium.org> References: <1476124150-22033-1-git-send-email-hshi@chromium.org> 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. v2: fix alphabetical order Signed-off-by: Haixia Shi Tested-by: Haixia Shi Reviewed-by: Stéphane Marchesin Reviewed-by: Sean Paul --- 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..54dbb98 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.0", + .data = &auo_t215hvn01, + }, { .compatible = "avic,tm070ddh03", .data = &avic_tm070ddh03, }, {