From patchwork Wed Jun 11 18:27:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 4338881 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B1EFABEEAA for ; Thu, 12 Jun 2014 00:23:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0EB620328 for ; Thu, 12 Jun 2014 00:23:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BCE2020320 for ; Thu, 12 Jun 2014 00:23:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 47AA66E8C8; Wed, 11 Jun 2014 17:23:26 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CD2C6E898 for ; Wed, 11 Jun 2014 11:29:28 -0700 (PDT) Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7000HFHOP3H020@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 12 Jun 2014 03:29:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 3F.01.24374.700A8935; Thu, 12 Jun 2014 03:29:27 +0900 (KST) X-AuditID: cbfee68d-b7fd46d000005f36-75-5398a007868a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F3.83.08203.700A8935; Thu, 12 Jun 2014 03:29:27 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N70000F9OO6ED50@mmp2.samsung.com>; Thu, 12 Jun 2014 03:29:27 +0900 (KST) From: Ajay Kumar To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH V4 08/10] drm/exynos: dp: create bridge chain using ptn3460 and panel_binder Date: Wed, 11 Jun 2014 23:57:06 +0530 Message-id: <1402511228-18945-9-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1402511228-18945-1-git-send-email-ajaykumar.rs@samsung.com> References: <1402511228-18945-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsWyRsSkSpd9wYxgg+tTZC0OvD/IYrHhzUJm i4UP7zJbzD9yjtXiytf3bBaT7k9gsfi+6wu7xYzz+5gs5h36zWix6vAGdovnC38wW8w9mGvx c9c8Fgdej9kNF1k89n5bwOKxc9Zddo8Fm0o97ncfZ/Lo27KK0ePzJrkA9igum5TUnMyy1CJ9 uwSujF2777IWPOKpWD5nKUsD4zWuLkZODgkBE4nzy1awQNhiEhfurWfrYuTiEBJYyigxf/Vr 5i5GDrCiCQtNIeLTGSWW73rMBOFMYJKYcL+ZGaSbTUBbYtv0mywgDSICKRLP//KB1DALfGeU 2H74IViNsECcxLGVq1lBbBYBVYm7c6ezgdi8Ah4S+zpa2SGWKUjMmWQDYnIKeErs3h0IUiEE VPF3XgMLyEgJgWvsEns/roAaIyDxbfIhFohWWYlNB5ghfpGUOLjiBssERuEFjAyrGEVTC5IL ipPSiwz1ihNzi0vz0vWS83M3MQLj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9R7Ps3zh5KEzZygZt2qTl7no7ee5W7xj95WMyVm4bcts/58 it3D1fiFu3TVlGTZQ8fygpo3dM884BV4Nkby9PLmhJb6y3//al2VPbO35OxVyZ5PtnKh1smG Px6eur+6qPS5gti8efpajBNexH3T/vo4WomlOCPRUIu5qDgRAHf0gxoKAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Wed, 11 Jun 2014 17:23:23 -0700 Cc: seanpaul@google.com, daniel.vetter@ffwll.ch, joshi@samsung.com, ajaynumb@gmail.com, marcheu@chromium.org, prashanth.g@samsung.com, Ajay Kumar X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 exynos_dp supports a simple bridge chain with ptn3460 bridge and an LVDS panel attached to it. This patch creates the bridge chain with ptn3460 as the head of the list and panel_binder being the tail. Signed-off-by: Ajay Kumar --- drivers/gpu/drm/exynos/exynos_dp_core.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index d8546ea..69535f7 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "exynos_drm_drv.h" #include "exynos_dp_core.h" @@ -992,7 +993,7 @@ static int exynos_drm_attach_lcd_bridge(struct exynos_dp_device *dp, struct drm_encoder *encoder) { struct bridge_init bridge; - struct drm_bridge *bridge_chain = NULL; + struct drm_bridge *bridge_chain = NULL, *next = NULL; bool connector_created = false; if (find_bridge("nxp,ptn3460", &bridge)) { @@ -1000,6 +1001,15 @@ static int exynos_drm_attach_lcd_bridge(struct exynos_dp_device *dp, bridge.node); } + if (bridge_chain && dp->edp_panel) { + next = panel_binder_init(dp->drm_dev, encoder, bridge.client, + bridge.node, dp->edp_panel, DRM_MODE_CONNECTOR_LVDS, + DRM_CONNECTOR_POLL_HPD); + if (next) + connector_created = true; + drm_bridge_add_to_chain(bridge_chain, next); + } + return connector_created; }