From patchwork Tue Sep 24 14:23:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 2933981 Return-Path: X-Original-To: patchwork-linux-media@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 C92CCBFF05 for ; Tue, 24 Sep 2013 14:23:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1BBE720374 for ; Tue, 24 Sep 2013 14:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 966192032D for ; Tue, 24 Sep 2013 14:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754008Ab3IXOXh (ORCPT ); Tue, 24 Sep 2013 10:23:37 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:11565 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753991Ab3IXOXg (ORCPT ); Tue, 24 Sep 2013 10:23:36 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTM00DT1VZACL40@mailout2.w1.samsung.com>; Tue, 24 Sep 2013 15:23:35 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-c5-5241a0667f55 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 40.7B.31515.660A1425; Tue, 24 Sep 2013 15:23:34 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MTM005Q2VYZIY30@eusync2.samsung.com>; Tue, 24 Sep 2013 15:23:34 +0100 (BST) From: Andrzej Hajda To: Laurent Pinchart Cc: Andrzej Hajda , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, Kyungmin Park Subject: [RFC PATCH 1/4] mipi-dsi-bus: add MIPI DSI bus support Date: Tue, 24 Sep 2013 16:23:13 +0200 Message-id: <1380032596-18612-2-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> References: <1380032596-18612-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDJMWRmVeSWpSXmKPExsVy+t/xK7ppCxyDDLq+mVncWneO1eLK1/ds Fmeb3rBbTGy6w2Jxou8Dq0XPhq2sDmwesztmsnrc7z7O5NG3ZRWjx+dNcgEsUVw2Kak5mWWp Rfp2CVwZa9ZcZSq4XVPx8MIElgbGzRldjJwcEgImEv/+X2GHsMUkLtxbz9bFyMUhJLCUUWLv joXMEE4fk8Tll6fZQKrYBDQl/m6+CWRzcIgIOEi8W+sAUsMssJFRYtWWVrBJwgL2ErOvnWQE sVkEVCV+Nr4Bs3kFnCXmfHnBDLFNQeLn5RNgMzkFXCQmX/3BBGILAdUcWLuBcQIj7wJGhlWM oqmlyQXFSem5hnrFibnFpXnpesn5uZsYISH0ZQfj4mNWhxgFOBiVeHgvJjgECbEmlhVX5h5i lOBgVhLh1ax1DBLiTUmsrEotyo8vKs1JLT7EyMTBKdXAGBjGHFK9WKczd6LFzMlGzTFFnu/X iuet2euwa4dK/bmtFqYRZ267i9mkn74yb4WPSPfHJy7HNiXo7Eq7mDZni++aa9fP5+87mLqu 0d9KZftjE9E9ZoeVuGoflSz5foN5mYHzm+vSmZGpX1bF8H/qurNoxsTjb77v6fY1sFtlai3s sl/ktHlHvhJLcUaioRZzUXEiANeOWTf/AQAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 MIPI DSI is a high-speed serial interface to transmit data from/to host to display module. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- drivers/video/display/Kconfig | 4 + drivers/video/display/Makefile | 1 + drivers/video/display/mipi-dsi-bus.c | 332 +++++++++++++++++++++++++++++++++++ include/video/display.h | 3 + include/video/mipi-dsi-bus.h | 144 +++++++++++++++ 5 files changed, 484 insertions(+) create mode 100644 drivers/video/display/mipi-dsi-bus.c create mode 100644 include/video/mipi-dsi-bus.h diff --git a/drivers/video/display/Kconfig b/drivers/video/display/Kconfig index 9b482a8..619b05d 100644 --- a/drivers/video/display/Kconfig +++ b/drivers/video/display/Kconfig @@ -20,6 +20,10 @@ config DISPLAY_MIPI_DBI tristate default n +config DISPLAY_MIPI_DSI + tristate + default n + config DISPLAY_PANEL_DPI tristate "DPI (Parallel) Display Panels" ---help--- diff --git a/drivers/video/display/Makefile b/drivers/video/display/Makefile index d03c64a..b323fd4 100644 --- a/drivers/video/display/Makefile +++ b/drivers/video/display/Makefile @@ -3,6 +3,7 @@ display-y := display-core.o \ obj-$(CONFIG_DISPLAY_CORE) += display.o obj-$(CONFIG_DISPLAY_CONNECTOR_VGA) += con-vga.o obj-$(CONFIG_DISPLAY_MIPI_DBI) += mipi-dbi-bus.o +obj-$(CONFIG_DISPLAY_MIPI_DSI) += mipi-dsi-bus.o obj-$(CONFIG_DISPLAY_PANEL_DPI) += panel-dpi.o obj-$(CONFIG_DISPLAY_PANEL_R61505) += panel-r61505.o obj-$(CONFIG_DISPLAY_PANEL_R61517) += panel-r61517.o diff --git a/drivers/video/display/mipi-dsi-bus.c b/drivers/video/display/mipi-dsi-bus.c new file mode 100644 index 0000000..a194d92 --- /dev/null +++ b/drivers/video/display/mipi-dsi-bus.c @@ -0,0 +1,332 @@ +/* + * MIPI DSI Bus + * + * Copyright (C) 2012, Samsung Electronics, Co., Ltd. + * Andrzej Hajda + * + * 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. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include