From patchwork Fri Jun 28 07:18:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2797411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 288079F245 for ; Fri, 28 Jun 2013 07:18:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E6CA200F9 for ; Fri, 28 Jun 2013 07:18:55 +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 D642D200F1 for ; Fri, 28 Jun 2013 07:18:53 +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 1UsSxG-0004Zc-U3; Fri, 28 Jun 2013 07:18:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UsSxE-0005dv-AG; Fri, 28 Jun 2013 07:18:48 +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 1UsSxA-0005dN-T6 for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2013 07:18:45 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MP3007SJDMACY80@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Jun 2013 16:18:23 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 75.BA.29708.FB83DC15; Fri, 28 Jun 2013 16:18:23 +0900 (KST) X-AuditID: cbfee690-b7f6f6d00000740c-10-51cd38bf2a6c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D8.FD.28381.FB83DC15; Fri, 28 Jun 2013 16:18:23 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MP3002OODMNC800@mmp2.samsung.com>; Fri, 28 Jun 2013 16:18:23 +0900 (KST) From: Jingoo Han To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH V2 3/3] video: exynos_dp: Use the generic PHY driver Date: Fri, 28 Jun 2013 16:18:23 +0900 Message-id: <002101ce73cf$ac989b70$05c9d250$@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5zz5FAuFY7LAn8Q4O5Bg1FNzLdWg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGIsWRmVeSWpSXmKPExsVy+t8zQ939FmcDDRZ9VLE4eL/e4uUhTYsD sx+yWlw/b2cx6f4EFovLCy+xWvQuuMpmceFpD5vF2aY37BabHl9jtTjR94HVomfDVlaLGef3 MVmse/iCyeLwm3ZWi/UzXrM4CHi8unCHxWPzknqP8zMWMnr0bVnF6HH8xnYmj8+b5ALYorhs UlJzMstSi/TtErgyNs+4xlywyrJi4bGH7A2MJ/S6GDk4JARMJNZ+Uuxi5AQyxSQu3FvP1sXI xSEksIxR4u7EK2wQCROJL41d7BCJ6YwSDYs/MkM4vxgldj+ZxAxSxSagJvHly2F2kKkiAt4S y6+BTWUWaGeRWHOsEMQWFnCRWHBpDjuIzSKgKvH06z1mkHJeAUuJGR0pIGFeAUGJ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moWkZQEjyypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4DTyTGoH48oGi0OMAhyMSjy8 jYlnAoVYE8uKK3MPMUpwMCuJ8N5ZABTiTUmsrEotyo8vKs1JLT7EmAz06ERmKdHkfGCKyyuJ NzQ2MTOyNDKzMDIxNydNWEmc90CrdaCQQHpiSWp2ampBahHMFiYOTqkGxjjx9y6ekSf/TJ93 /UPNsi/x96Ucb3NueBwSEVr2Naqvi3lqtYr5HJ9jP/6+fOvyoC/4dU5LdLlN3LkMpk2T+8yM 7780urD7/VtZl47WrYoepy3n/im99nHyxQOlrK/zbssYKLEaK35wnnS++Ez05ZZlwe7LDwXt t/h4uc7U69+VAOeu8MxVdUosxRmJhlrMRcWJAMJEwz5nAwAA 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-20130628_031845_428903_C76D306F X-CRM114-Status: GOOD ( 17.57 ) X-Spam-Score: -8.2 (--------) Cc: linux-fbdev@vger.kernel.org, 'Kukjin Kim' , 'Tomasz Figa' , 'Jingoo Han' , 'Donghwa Lee' , 'Felipe Balbi' , 'Kishon Vijay Abraham I' , 'Inki Dae' , 'Kyungmin Park' , '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=-5.5 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 | 17 --- 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, 15 insertions(+), 128 deletions(-) diff --git a/Documentation/devicetree/bindings/video/exynos_dp.txt b/Documentation/devicetree/bindings/video/exynos_dp.txt index 84f10c1..a8320e3 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: @@ -67,12 +56,6 @@ SOC specific portion: interrupt-parent = <&combiner>; clocks = <&clock 342>; clock-names = "dp"; - - dptx-phy { - reg = <0x10040720>; - samsung,enable-mask = <1>; - }; - }; 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