From patchwork Sat Dec 21 20:38:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Dietrich X-Patchwork-Id: 3393901 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5F969C0D4A for ; Sat, 21 Dec 2013 20:40:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70BC920678 for ; Sat, 21 Dec 2013 20:40:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DDDC20675 for ; Sat, 21 Dec 2013 20:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755948Ab3LUUj5 (ORCPT ); Sat, 21 Dec 2013 15:39:57 -0500 Received: from mout.gmx.net ([212.227.15.15]:55337 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755831Ab3LUUj4 (ORCPT ); Sat, 21 Dec 2013 15:39:56 -0500 Received: from ax5200p.fritz.box ([217.229.207.100]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LfkJC-1VAd4F3vrO-00pImu for ; Sat, 21 Dec 2013 21:39:54 +0100 From: Marc Dietrich Cc: Thierry Reding , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marc Dietrich , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie Subject: [PATCH 1/2] drm/panel: Add support for Samsung LTN101NT05 panel Date: Sat, 21 Dec 2013 21:38:12 +0100 Message-Id: X-Mailer: git-send-email 1.7.9.5 X-Provags-ID: V03:K0:AoIwWBDWoOMLHFDWTKCNpaQOtZqVPWtBUzIl2pImo+KQj/LmYBx x9uyqnkLNNCyB1cwAY95lyYZMOZfsVSK3KGXFK/VuEoM90n/DQ0edTKrOo65ejy9YklvVz4 4HjT3SzdGrUFUG5VQGvT6S1eGJu53Drbt/saaQJZLjjn53F0kxGYuXCeL3wUx9VBN9+xpNb xIkppP2ZTJwGZ1Hkn3P/g== To: unlisted-recipients:; (no To-header on input) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 The Samsung LNT101NT05 10.1" WXVGA panel can be supported by the simple panel driver. Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: David Airlie Signed-off-by: Marc Dietrich --- This isn't strickly required to get the panel up, but Thierry suggested on IRC to include it anyway, in case someone else has some use for it. .../bindings/panel/samsung,ltn101nt05.txt | 7 +++++ drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/panel/samsung,ltn101nt05.txt diff --git a/Documentation/devicetree/bindings/panel/samsung,ltn101nt05.txt b/Documentation/devicetree/bindings/panel/samsung,ltn101nt05.txt new file mode 100644 index 0000000..ef522c6 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/samsung,ltn101nt05.txt @@ -0,0 +1,7 @@ +Samsung Electronics 10.1" WSVGA TFT LCD panel + +Required properties: +- compatible: should be "samsung,ltn101nt05" + +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 3e611af..7f9ddb5 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -338,6 +338,28 @@ static const struct panel_desc chunghwa_claa101wb01 = { }, }; +static const struct drm_display_mode samsung_ltn101nt05_mode = { + .clock = 54030, + .hdisplay = 1024, + .hsync_start = 1024 + 24, + .hsync_end = 1024 + 24 + 136, + .htotal = 1024 + 24 + 136 + 160, + .vdisplay = 600, + .vsync_start = 600 + 3, + .vsync_end = 600 + 3 + 6, + .vtotal = 600 + 3 + 6 + 61, + .vrefresh = 60, +}; + +static const struct panel_desc samsung_ltn101nt05 = { + .modes = &samsung_ltn101nt05_mode, + .num_modes = 1, + .size = { + .width = 1024, + .height = 600, + }, +}; + static const struct of_device_id platform_of_match[] = { { .compatible = "auo,b101aw03", @@ -346,6 +368,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "chunghwa,claa101wb01", .data = &chunghwa_claa101wb01 }, { + .compatible = "samsung,ltn101nt05", + .data = &samsung_ltn101nt05, + }, { .compatible = "simple-panel", }, { /* sentinel */