From patchwork Wed May 30 12:15:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Purski X-Patchwork-Id: 10438825 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 63F55601D3 for ; Wed, 30 May 2018 12:18:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AA1228BB5 for ; Wed, 30 May 2018 12:18:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26BD328BAC; Wed, 30 May 2018 12:18:04 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F202290B4 for ; Wed, 30 May 2018 12:16:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753235AbeE3MQq (ORCPT ); Wed, 30 May 2018 08:16:46 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47732 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbeE3MQe (ORCPT ); Wed, 30 May 2018 08:16:34 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180530121632euoutp0165b1c514e2724ebc5396d32aabf673e9~zazk2W_wE0899308993euoutp01z; Wed, 30 May 2018 12:16:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180530121632euoutp0165b1c514e2724ebc5396d32aabf673e9~zazk2W_wE0899308993euoutp01z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1527682592; bh=LXi5On2xSpuFwlwVz9HX7NjMEtAWmBr8M0Wr0+GDy2U=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=pWab40mfQhqXANoxN8V+9REaWIErty8V60Lc3h/mre/a7eYRow/hTAIURUp9SxLxI gws6ujeCcpX4/nh2+oPXPGFIVkcVyjXqmZEcMPThp9RjQ+eob+/xvnOeIsSt0yoR13 dmk2T+nFGSdc/51n8rWKzdJTJRZjFqXhaolfHD0o= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180530121630eucas1p2505b71f3126add7949b382c368256f2a~zazjnEB6k1358113581eucas1p2f; Wed, 30 May 2018 12:16:30 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CE.2D.17380.D169E0B5; Wed, 30 May 2018 13:16:29 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180530121628eucas1p291c2774152145231a0a5c4ed56354d7f~zazhsL7g11280012800eucas1p2v; Wed, 30 May 2018 12:16:28 +0000 (GMT) X-AuditID: cbfec7f4-b4fc79c0000043e4-89-5b0e961dcc90 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D3.3A.04183.C169E0B5; Wed, 30 May 2018 13:16:28 +0100 (BST) Received: from AMDC2075.DIGITAL.local ([106.120.51.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9J00FMPJF35I90@eusync1.samsung.com>; Wed, 30 May 2018 13:16:28 +0100 (BST) From: Maciej Purski To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: David Airlie , Rob Herring , Mark Rutland , Thierry Reding , Kukjin Kim , Krzysztof Kozlowski , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Maciej Purski Subject: [PATCH v2 08/10] drm/bridge: tc358764: Add DSI to LVDS bridge driver Date: Wed, 30 May 2018 14:15:59 +0200 Message-id: <1527682561-1386-9-git-send-email-m.purski@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1527682561-1386-1-git-send-email-m.purski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSfyyUcRzH+z73PHePm0fPHppvQus21YRkpe+qyfDHU3+Uf1rGiitPWOfH 7nGiLcym3HF+F5Wh/Kpz5FeKkB1zK0XGhCbMulxYP5TF/Khz57/X5/19f96fz777kAImnXAg o2LiOXmMVCYRivHWvpVBd6d7NiGeFTVuaKJ+gEDqgTcYSstYJFBj8TMClfX+10b+fBei/Klc HM19HsJRzuy8AA0ONojQ+7QFEVLmVYpQ0+wogYbbS4SoeLALQ+XGCRzV9U6KUNXHIQyld/aK UHGBUYhW2ktx312stlQL2OFsNca2PZgUsQ8z7hNsk0YpZF8sTxPsVKYeY5srU9jsFg1gl5qc A8XB4lPhnCwqgZMf9gkTR04bDsWVZIHEzjouFfzlVcCKhPRROJU5jauAmGToJwDqlPmWYglA bWUOvu1qXDBuMUNXA7g0QZtNmwA+fzQrVAGSFNKuUHsn1KTb0RoAm8cWgakQ0HcJ+KFsnjB1 29Ln4aeWKqGJcdoFGqoLt3SK9oevavMI8zRnOD6gFJhCregAWNvhY8qBdIEIGivngNkTAIc3 32JmtoXf9C0iMzvC4YJMy9axMN0wa9ETYZe635J/Evboh7ZYQNvA/NairVmQpmDGbcZsYWFD 5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+P1vbTgy 7/idhUx9//WWpLZoKUSmqT9SLKzduW1h+n0F/ni/r5dWeBSru1p+nXZeZM7rN6yP54qdXLB6 7+2OgorMruMmlqrLm24/KP9Y+HJ7yb6bc2Sn8DYosRRnJBpqMRcVJwIAl3qXh3cCAAA= X-CMS-MailID: 20180530121628eucas1p291c2774152145231a0a5c4ed56354d7f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180530121628eucas1p291c2774152145231a0a5c4ed56354d7f References: <1527682561-1386-1-git-send-email-m.purski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andrzej Hajda Add a drm_bridge driver for the Toshiba TC358764 DSI to LVDS bridge. Signed-off-by: Andrzej Hajda Signed-off-by: Maciej Purski Reviewed-by: Archit Taneja --- drivers/gpu/drm/bridge/Kconfig | 9 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/tc358764.c | 547 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 557 insertions(+) create mode 100644 drivers/gpu/drm/bridge/tc358764.c diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index fa2c799..9bd3eb8 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -110,6 +110,15 @@ config DRM_THINE_THC63LVD1024 ---help--- Thine THC63LVD1024 LVDS/parallel converter driver. +config DRM_TOSHIBA_TC358764 + tristate "TC358764 DSI/LVDS bridge" + depends on DRM && DRM_PANEL + depends on OF + select DRM_MIPI_DSI + select VIDEOMODE_HELPERS + help + Toshiba TC358764 DSI/LVDS bridge driver + config DRM_TOSHIBA_TC358767 tristate "Toshiba TC358767 eDP bridge" depends on OF diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile index 35f88d4..bf7c0ce 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_DRM_SIL_SII8620) += sil-sii8620.o obj-$(CONFIG_DRM_SII902X) += sii902x.o obj-$(CONFIG_DRM_SII9234) += sii9234.o obj-$(CONFIG_DRM_THINE_THC63LVD1024) += thc63lvd1024.o +obj-$(CONFIG_DRM_TOSHIBA_TC358764) += tc358764.o obj-$(CONFIG_DRM_TOSHIBA_TC358767) += tc358767.o obj-$(CONFIG_DRM_ANALOGIX_DP) += analogix/ obj-$(CONFIG_DRM_I2C_ADV7511) += adv7511/ diff --git a/drivers/gpu/drm/bridge/tc358764.c b/drivers/gpu/drm/bridge/tc358764.c new file mode 100644 index 0000000..3109eba --- /dev/null +++ b/drivers/gpu/drm/bridge/tc358764.c @@ -0,0 +1,547 @@ +/* + * Copyright (C) 2018 Samsung Electronics Co., Ltd + * + * Authors: + * Andrzej Hajda + * Maciej Purski + * + * 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. + * + */ + +#include + +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include