From patchwork Sat Oct 31 00:38:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 7530131 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EA3189F399 for ; Sat, 31 Oct 2015 00:39:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C8CA20749 for ; Sat, 31 Oct 2015 00:39:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 52DB02073C for ; Sat, 31 Oct 2015 00:39:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 154496E288; Fri, 30 Oct 2015 17:39:11 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 375B56E2EE for ; Fri, 30 Oct 2015 17:39:07 -0700 (PDT) Received: by pasz6 with SMTP id z6so88218096pas.2 for ; Fri, 30 Oct 2015 17:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kryo_se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9cGHDEBTcrJhJnV9W4Y7TdtVjX24N+/9SqdK94kJK04=; b=xYF2catqAgWnL1uRIScd39aca/wlLu4sk/g/gQsL4bWcoAEkhZ1mM3gA6anjxU+qj/ 9wqgC5Xj9w+GFeKoMCwuXALAyx6SRakZ3EMe/MFWHslrEoD26jf7h0i4K/UYwgerSxXn HxpFqM4cJZprRn2ZGU2Drsfu63nP3i4fcqYTz9hYsAhRx+eNtFV6n+K7li9IQ1MZ8rqQ aUbP3wW0cDW7QYMzo8c4ec6Kn04U2FXzTjgfMVTK0noGN0oPDfEfWFTQw6dLW4YX0sYn YH5b3C/UMQGeRmuziYqtXdUv3CFsfq4nRxy65fYrI3cnlgd2663u9MPU1bIg0/r/BYAL turQ== 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; bh=9cGHDEBTcrJhJnV9W4Y7TdtVjX24N+/9SqdK94kJK04=; b=DkRNLbC7UmNpPDiSqxDqVWGB/6oVVI5yzjexj6TBZoczumb7P1/txgkOcqlfvv2Cm9 Lp1LIp8L0l/iNmDXpaUo3S4MPBGFIMxoOSCjTYy3hNe2LF8pGhzDkiGcuqXqUA/PcYOJ ERnEqeTwGK4VbWfiwuWPIkJjtxHOlwYBtsAbIGANv2o9mRjJweKBIG6W2oKNlUPHes5E BUD00CKDsdvGkxUDYMh7wOcJGo2vgf9ZWkpqIN27cKZYFYRgzG4bEOw0yf0nhEIfIGm0 0AqoOv7bxhQYUACqZG0FOimxSiZ4/AIZcl4XwAiLayE+VSfYgshdkzWZhgwq6mALnNGS twQg== X-Gm-Message-State: ALoCoQkXOzzLfNkknScc4WeaE8qKkK/uZKX+KfjwH421RAIvrK0yl5vER93P7kjHazctJ/xO65Ib X-Received: by 10.68.135.1 with SMTP id po1mr12103241pbb.23.1446251946837; Fri, 30 Oct 2015 17:39:06 -0700 (PDT) Received: from Bjorns-MacBook-Pro.local.com (cpe-76-167-68-231.natsow.res.rr.com. [76.167.68.231]) by smtp.gmail.com with ESMTPSA id z12sm10406547pbt.30.2015.10.30.17.39.05 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Oct 2015 17:39:05 -0700 (PDT) From: bjorn@kryo.se To: Thierry Reding , David Airlie Subject: [PATCH 3/3] drm/panel: Add Panasonic VVX10F034N00 MIPI DSI panel Date: Fri, 30 Oct 2015 17:38:28 -0700 Message-Id: <1446251908-2603-3-git-send-email-bjorn@kryo.se> X-Mailer: git-send-email 2.3.2 (Apple Git-55) In-Reply-To: <1446251908-2603-1-git-send-email-bjorn@kryo.se> References: <1446251908-2603-1-git-send-email-bjorn@kryo.se> Cc: 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=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: Werner Johansson This adds support for the Panasonic panel found in some Xperia Z2 tablets. Signed-off-by: Werner Johansson Signed-off-by: Bjorn Andersson --- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 334 +++++++++++++++++++++ 3 files changed, 345 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7d4704b..77a20d6 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -51,4 +51,14 @@ config DRM_PANEL_SHARP_LQ101R1SX01 To compile this driver as a module, choose M here: the module will be called panel-sharp-lq101r1sx01. +config DRM_PANEL_PANASONIC_VVX10F034N00 + tristate "Panasonic VVX10F034N00 1920x1200 video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Panasonic VVX10F034N00 + WUXGA (1920x1200) Novatek NT1397-based DSI panel as found in some + Xperia Z2 tablets + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index d0f016d..a2ca8ff 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -3,3 +3,4 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o +obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c new file mode 100644 index 0000000..7f915f7 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c @@ -0,0 +1,334 @@ +/* + * Copyright (C) 2015 Red Hat + * Copyright (C) 2015 Sony Mobile Communications Inc. + * Author: Werner Johansson + * + * Based on AUO panel driver by Rob Clark + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . + */ + +#include +#include +#include +#include + +#include +#include +#include +#include + +#include