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: 2805271 Return-Path: X-Original-To: patchwork-linux-arm@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 2EF8DBF4A1 for ; Mon, 1 Jul 2013 05:26:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0708F20134 for ; Mon, 1 Jul 2013 05:26:56 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D8A220131 for ; Mon, 1 Jul 2013 05:26:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWcQ-0000IQ-BB; Mon, 01 Jul 2013 05:25:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWc0-0007qc-L9; Mon, 01 Jul 2013 05:25:16 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWbx-0007p5-SH for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2013 05:25:15 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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 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+JcVpEZYwEVid2czI0gNi4CqxIfjaSBhXgFLidn3TrBB2IIS PybfA1v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IVk1Cwko2YhGTULScsCRpZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130701_012514_394433_872D26C1 X-CRM114-Status: GOOD ( 18.04 ) X-Spam-Score: -6.9 (------) Cc: linux-fbdev@vger.kernel.org, 'Kukjin Kim' , 'Tomasz Figa' , Jingoo Han , 'Donghwa Lee' , 'Felipe Balbi' , 'Kishon Vijay Abraham I' , 'Inki Dae' , 'Kyungmin Park' , 'Hui Wang' , 'Sylwester Nawrocki' , 'Jean-Christophe PLAGNIOL-VILLARD' , devicetree-discuss@lists.ozlabs.org, linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 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 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