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: 2797401 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 ACDEFBF4A1 for ; Fri, 28 Jun 2013 07:18:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8C415200F1 for ; Fri, 28 Jun 2013 07:18:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A2892010F for ; Fri, 28 Jun 2013 07:18:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754761Ab3F1HS0 (ORCPT ); Fri, 28 Jun 2013 03:18:26 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:14181 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752072Ab3F1HSZ (ORCPT ); Fri, 28 Jun 2013 03:18:25 -0400 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>; 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 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, 'Jingoo Han' 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 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit 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+BTWUWaGeRWHOsEMQWFnCRWHBpDjuIzSKg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RI2IxL4X7xgnMArMQjJqFpJR s5CMmoWkZQEjyypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4DTyTGoH48oGi0OMAhyMSjy8 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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.2 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 | 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