From patchwork Tue Oct 11 21:59:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haixia Shi X-Patchwork-Id: 9371735 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 C5DB960772 for ; Tue, 11 Oct 2016 21:59:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADE48290F0 for ; Tue, 11 Oct 2016 21:59:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2299290F5; Tue, 11 Oct 2016 21:59:27 +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 E114C290F0 for ; Tue, 11 Oct 2016 21:59:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5DF36896AF; Tue, 11 Oct 2016 21:59:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id CCB52896AF for ; Tue, 11 Oct 2016 21:59:21 +0000 (UTC) Received: by mail-pf0-x229.google.com with SMTP id 128so8562013pfz.0 for ; Tue, 11 Oct 2016 14:59: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=l6JMoWLifsQHtrNK5YBmwqViugFjqDst5S0ydGBVlfE=; b=E0Co7F6U+rSerrszhgaxwA4HX71v4FIyS4xbr5J5l9zbycJRPLi9vpvI9oYtGX7TwI 9kQGJozoi+RAAqX/5LYjDLedV1ZuFUjh2GFCnbGLiurRY0BrVXEFFuq3okEgopZKozdb YW4FTff+GeirO/j3lx3myRuzAjZJDtrB1HGYI= 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=l6JMoWLifsQHtrNK5YBmwqViugFjqDst5S0ydGBVlfE=; b=GWXqZmHSisfXvuGKcJwkF2miKbNn9DLATrYSbn2TbTlejz+Errxf4uKY/xXrqFWwBn 1rePxWhmXbTMbVl5OfONX4MR1K7NlRrsuNeJiFJ0jaOY/mDP1S+N9xSFOMARuh/IZ2I5 ElSpUMGpBsn15UOBhHWjXzmDFtRxED9rmZNNeWgNgUt871KfEyDQo5pjCzKKhoEDjRb1 sWDNE8kk9M1lH2FePy5xMUUFGAAd4Mfv9F8asQ45HiCZYND3yxrs+YHFoKluf1TjvGvt dzyjXomXSPXD7xa0GYA2HSaCoZkVxe/n3inwV4ntMN1IMpkySUvIqN6B1utq9gtyfLKU HmHQ== X-Gm-Message-State: AA6/9RnFxAVgMTBPG3qwJUwFTh2cwZn/emU50NyRinZQVFmov52zKs/oGv1T9RaMBfrAHYKb X-Received: by 10.98.75.92 with SMTP id y89mr200564pfa.39.1476223161406; Tue, 11 Oct 2016 14:59:21 -0700 (PDT) Received: from haixia-z620.mtv.corp.google.com ([172.22.117.235]) by smtp.gmail.com with ESMTPSA id a78sm6597816pfj.44.2016.10.11.14.59.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Oct 2016 14:59:20 -0700 (PDT) From: Haixia Shi To: dri-devel@lists.freedesktop.org Subject: [PATCH v4] drm/panel: simple: Add support for AUO t215hvn01 Date: Tue, 11 Oct 2016 14:59:16 -0700 Message-Id: <1476223156-6163-1-git-send-email-hshi@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1476141557-4613-1-git-send-email-hshi@chromium.org> References: <1476141557-4613-1-git-send-email-hshi@chromium.org> MIME-Version: 1.0 Cc: Mark Rutland , devicetree@vger.kernel.org, Emil Velikov , linux-kernel@vger.kernel.org, Rob Herring , 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" FHD (1920x1080) color TFT LCD panel. This panel is used on the Acer Chromebase 21.5-inch All-in-One (DC221HQ). 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 v4: add dt-binding documentation Signed-off-by: Haixia Shi Tested-by: Haixia Shi Reviewed-by: Stéphane Marchesin Cc: Emil Velikov Cc: Thierry Reding Cc: David Airlie Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Acked-by: Rob Herring --- .../bindings/display/panel/auo,t215hvn01.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 30 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,t215hvn01.txt diff --git a/Documentation/devicetree/bindings/display/panel/auo,t215hvn01.txt b/Documentation/devicetree/bindings/display/panel/auo,t215hvn01.txt new file mode 100644 index 0000000..cbd9da3 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/auo,t215hvn01.txt @@ -0,0 +1,7 @@ +AU Optronics Corporation 21.5" FHD (1920x1080) color TFT LCD panel + +Required properties: +- compatible: should be "auo,t215hvn01" + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. 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, }, {