From patchwork Sat Oct 31 12:56:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 7531441 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3940EBF90C for ; Sat, 31 Oct 2015 17:52:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6DDC5206D6 for ; Sat, 31 Oct 2015 17:52:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6B6DA206E5 for ; Sat, 31 Oct 2015 17:52:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48D726E522; Sat, 31 Oct 2015 10:52:12 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 498206E3F3 for ; Sat, 31 Oct 2015 05:57:50 -0700 (PDT) Received: by qgad10 with SMTP id d10so82802923qga.3 for ; Sat, 31 Oct 2015 05:57:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RU8IVn9tSRQO2D8ntXv6NdOKJeNbPmfqxYfHpB310Ek=; b=BiEbjoX+Ult7B0zbU6OF3tzpsezKsu5crrq19Hq5quDO1bsCI6HANw+VNn1yPmVntq keD3MlE71r9oVCOBCzktuAasrBI8nzmmhUUE9SUxAm0rw6kST2Q0DveQ68ute6xHKNVK H1xU9tNbSrTetXZzFMzttnOBZ7EkvoQxKAsDIkK6pOay5WlreU21HpIAieAJLfCuq9uY dUlCvg8vS3E82CzgAQNHHYhb5cSY7rWwiFs4cI0fm1vLPaSGADC+AMwCuFwdlzUVMZJJ 3jypo+GUKOU6oQ0sfWifnszZqdeYbuuBw7Uz6B+zkrh0wVlLqmTuSlgfoNUGe0/h6EvJ E71w== X-Received: by 10.140.39.199 with SMTP id v65mr17019603qgv.62.1446296269548; Sat, 31 Oct 2015 05:57:49 -0700 (PDT) Received: from localhost.localdomain ([45.74.60.60]) by smtp.gmail.com with ESMTPSA id 64sm4362161qgn.12.2015.10.31.05.57.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 Oct 2015 05:57:48 -0700 (PDT) From: Chris Zhong To: heiko@sntech.de, linux-rockchip@lists.infradead.org Subject: [PATCH v2 11/13] drm/panel: simple: Add support for BOE TV080WUM-NL0 Date: Sat, 31 Oct 2015 20:56:07 +0800 Message-Id: <1446296170-3702-12-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446296170-3702-1-git-send-email-zyw@rock-chips.com> References: <1446296170-3702-1-git-send-email-zyw@rock-chips.com> X-Mailman-Approved-At: Sat, 31 Oct 2015 10:51:01 -0700 Cc: Chris Zhong , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 adds support for the BOE TV080WUM-NL0 1200x1920 mipi panel to the DRM simple panel driver. Signed-off-by: Chris Zhong --- Changes in v2: None drivers/gpu/drm/panel/panel-simple.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index f97b73e..3610e1c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1348,6 +1348,36 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { .lanes = 4, }; +static const struct drm_display_mode boe_tv080wum_nl0_mode = { + .clock = 160000, + .hdisplay = 1200, + .hsync_start = 1200 + 120, + .hsync_end = 1200 + 120 + 20, + .htotal = 1200 + 120 + 20 + 21, + .vdisplay = 1920, + .vsync_start = 1920 + 21, + .vsync_end = 1920 + 21 + 3, + .vtotal = 1920 + 21 + 3 + 18, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc_dsi boe_tv080wum_nl0 = { + .desc = { + .modes = &boe_tv080wum_nl0_mode, + .num_modes = 1, + .size = { + .width = 107, + .height = 172, + }, + }, + .flags = MIPI_DSI_MODE_VIDEO | + MIPI_DSI_MODE_VIDEO_BURST | + MIPI_DSI_MODE_VIDEO_SYNC_PULSE, + .format = MIPI_DSI_FMT_RGB888, + .lanes = 4, +}; + static const struct of_device_id dsi_of_match[] = { { .compatible = "auo,b080uan01", @@ -1362,6 +1392,9 @@ static const struct of_device_id dsi_of_match[] = { .compatible = "panasonic,vvx10f004b00", .data = &panasonic_vvx10f004b00 }, { + .compatible = "boe,tv080wum-nl0", + .data = &boe_tv080wum_nl0 + }, { /* sentinel */ } };