From patchwork Mon Jul 1 05:24:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2805251 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 F0A69BF4A1 for ; Mon, 1 Jul 2013 05:25:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA5AC20134 for ; Mon, 1 Jul 2013 05:24:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4B9720137 for ; Mon, 1 Jul 2013 05:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752502Ab3GAFY4 (ORCPT ); Mon, 1 Jul 2013 01:24:56 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:18266 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750833Ab3GAFYy (ORCPT ); Mon, 1 Jul 2013 01:24:54 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MP80062ISDG6G80@mailout1.samsung.com>; Mon, 01 Jul 2013 14:24:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 6F.8A.11618.4A211D15; Mon, 01 Jul 2013 14:24:52 +0900 (KST) X-AuditID: cbfee691-b7fef6d000002d62-44-51d112a436fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C8.49.28381.4A211D15; Mon, 01 Jul 2013 14:24:52 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MP8006I9SDG8RW0@mmp1.samsung.com>; Mon, 01 Jul 2013 14:24:52 +0900 (KST) From: Jingoo Han To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Cc: 'Kishon Vijay Abraham I' , linux-media@vger.kernel.org, 'Kukjin Kim' , 'Sylwester Nawrocki' , 'Felipe Balbi' , 'Tomasz Figa' , devicetree-discuss@lists.ozlabs.org, 'Inki Dae' , 'Donghwa Lee' , 'Kyungmin Park' , 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Hui Wang' , Jingoo Han Subject: [PATCH V3 3/3] video: exynos_dp: Use the generic PHY driver Date: Mon, 01 Jul 2013 14:24:52 +0900 Message-id: <005401ce761b$504d7090$f0e851b0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac52G0icOGXUY3rsSbaNSPrqn1vidA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPIsWRmVeSWpSXmKPExsVy+t8zQ90lQhcDDSZdMbU4eL/e4uUhTYsD sx+yWlw/b2cx6f4EFosZSx+xWlxeeInVonfBVTaLC0972CzONr1ht9j0+BqrxYm+D6wWPRu2 slrMOL+PyWLdwxdMFofftLNarJ/xmsVB0GPnrLvsHq8u3GHx2Lyk3uP8jIWMHn1bVjF6HL+x ncnj8ya5APYoLpuU1JzMstQifbsErowD55ayFLTbVty9Gt3AeMiwi5GTQ0LAROLXskMsELaY xIV769m6GLk4hASWMUqceNrGAlPU82cCM4gtJLAIKNEYCmH/YpSYNc0bxGYTUJP48uUwexcj B4eIgLfE8muKIHOYBdawSDy4+JcVpEZYwEVid2czI0gNi4Cqx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jUjiC0ioCexZedvRogaEYl9L94x TmAUmIVk1Cwko2YhGTULScsCRpZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMFp5ZnUDsaV DRaHGAU4GJV4eBdMvxAoxJpYVlyZe4hRgoNZSYR3++fzgUK8KYmVValF+fFFpTmpxYcYk4Ee ncgsJZqcD0x5eSXxhsYmZkaWRmYWRibm5qQJK4nzHmi1DhQSSE8sSc1OTS1ILYLZwsTBKdXA uE76BMvNqXl/5SITODbbz/v8Y5nOK6vFikbSjRv3zFrUU73y8D6by5uSI+d+djhxYK/tPqO1 z+6mCm5rzbyot+THccmzkZfk2FxmmLp/qt+X+2PzJrMJUXsX8D5mt3DcOVnBaYH3MpXt923M vqqIbu1u5BPQfB/KWLxtQc0Hd/Z2wQkPXh3+OlWJpTgj0VCLuag4EQBl3w1RbwMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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 Use the generic PHY API instead of the platform callback to control the DP PHY. The 'phy_label' field is added to the platform data structure to allow PHY lookup on non-dt platforms. Signed-off-by: Jingoo Han Acked-by: Felipe Balbi --- .../devicetree/bindings/video/exynos_dp.txt | 23 +--- drivers/video/exynos/exynos_dp_core.c | 118 ++------------------ drivers/video/exynos/exynos_dp_core.h | 2 + include/video/exynos_dp.h | 6 +- 4 files changed, 21 insertions(+), 128 deletions(-) diff --git a/Documentation/devicetree/bindings/video/exynos_dp.txt b/Documentation/devicetree/bindings/video/exynos_dp.txt index 84f10c1..71645dc 100644 --- a/Documentation/devicetree/bindings/video/exynos_dp.txt +++ b/Documentation/devicetree/bindings/video/exynos_dp.txt @@ -1,17 +1,6 @@ The Exynos display port interface should be configured based on the type of panel connected to it. -We use two nodes: - -dp-controller node - -dptx-phy node(defined inside dp-controller node) - -For the DP-PHY initialization, we use the dptx-phy node. -Required properties for dptx-phy: - -reg: - Base address of DP PHY register. - -samsung,enable-mask: - The bit-mask used to enable/disable DP PHY. - For the Panel initialization, we read data from dp-controller node. Required properties for dp-controller: -compatible: @@ -25,6 +14,10 @@ Required properties for dp-controller: from common clock binding: handle to dp clock. -clock-names: from common clock binding: Shall be "dp". + -phys: + from general phy binding: the phandle for the PHY device. + -phy-names: + from general phy binding: Should be "dp". -interrupt-parent: phandle to Interrupt combiner node. -samsung,color-space: @@ -67,12 +60,8 @@ SOC specific portion: interrupt-parent = <&combiner>; clocks = <&clock 342>; clock-names = "dp"; - - dptx-phy { - reg = <0x10040720>; - samsung,enable-mask = <1>; - }; - + phys = <&dp_phy>; + phy-names = "dp"; }; Board Specific portion: diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index 12bbede..bac515b 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -19,6 +19,7 @@ #include #include #include +#include #include