From patchwork Tue Oct 9 23:08:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1570121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CECEBDFFAD for ; Tue, 9 Oct 2012 14:05:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754311Ab2JIOFX (ORCPT ); Tue, 9 Oct 2012 10:05:23 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:21322 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262Ab2JIOFW (ORCPT ); Tue, 9 Oct 2012 10:05:22 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBM00M8VPSXSFR0@mailout1.samsung.com>; Tue, 09 Oct 2012 23:05:21 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E2.E1.03860.12F24705; Tue, 09 Oct 2012 23:05:21 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-73-50742f219b95 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 52.E1.03860.02F24705; Tue, 09 Oct 2012 23:05:20 +0900 (KST) Received: from localhost.localdomain ([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 <0MBM00L01PPREKA0@mmp2.samsung.com>; Tue, 09 Oct 2012 23:05:20 +0900 (KST) From: Ajay Kumar To: linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, jg1.han@samsung.com, devicetree-discuss@lists.ozlabs.org Cc: FlorianSchandinat@gmx.de, sylvester.nawrocki@gmail.com, tomasz.figa@gmail.com, thomas.ab@samsung.com Subject: [PATCH V4 2/2] video: exynos_dp: device tree documentation Date: Wed, 10 Oct 2012 04:38:21 +0530 Message-id: <1349824101-32574-3-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1349824101-32574-1-git-send-email-ajaykumar.rs@samsung.com> References: <1349824101-32574-1-git-send-email-ajaykumar.rs@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrILMWRmVeSWpSXmKPExsWyRsSkVldRvyTA4PthdosTfR9YLWac38fk wOTxeZNcAGMUl01Kak5mWWqRvl0CV8bl9uVsBc8kKubtP8rYwDhPpIuRk0NCwETiROd2Fghb TOLCvfVsXYxcHEICSxkl+p98YYEp+r9iGStEYjqjRPflJnYIp51JYsGCf+wgVWwC2hLbpt8E 6xARqJPYv/0EK4jNLJAlMe12GzOILSzgLPHudRMbiM0ioCrx7dR7JhCbV8BD4lXPVGaIbQoS rcsOgc3kFPCUOLfmE9gcIaCa9csvsUL0Ckh8m3wIaBcHUL2sxKYDzCD3SAjcZpO4du4oE8Qc SYmDK26wTGAUXsDIsIpRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMjMBxP/3smvYNxVYPFIUYB DkYlHt4PUcUBQqyJZcWVuYcYJTiYlUR4ExRKAoR4UxIrq1KL8uOLSnNSiw8x+gBdMpFZSjQ5 HxgreSXxhsYm5qbGppZGRmampjiElcR5mz1SAoQE0hNLUrNTUwtSi2DGMXFwSjUwagjcD59U 4LM9UU2Ae5Iwy/o3zdeTr5RWrnj7fYahwTx+nupvqt7hfHaz16/6d1k3Z6fLK99Jtk/Zfogt ND2oMDlipeOpx4ECrbNjWWtZLWZny7AafInwbzDOY5q9t9Dw2vNdSWV7XE8vVBa5e5In8rnE kXOGWf6OUkeXSJ1deXiiUWjaNqtvSizFGYmGWsxFxYkAaKKIc3QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsVy+t9jQV0F/ZIAg4dzzS1O9H1gtZhxfh+T A5PH501yAYxRDYw2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4B um6ZOUCjlRTKEnNKgUIBicXFSvp2mCaEhrjpWsA0Ruj6hgTB9RgZoIGENYwZl9uXsxU8k6iY t/8oYwPjPJEuRk4OCQETif8rlrFC2GISF+6tZ+ti5OIQEpjOKNF9uYkdwmlnkliw4B87SBWb gLbEtuk3WUBsEYE6if3bT4B1MwtkSUy73cYMYgsLOEu8e93EBmKzCKhKfDv1ngnE5hXwkHjV M5UZYpuCROuyQ2AzOQU8Jc6t+QQ2RwioZv3yS6wTGHkXMDKsYhRNLUguKE5KzzXSK07MLS7N S9dLzs/dxAgO9mfSOxhXNVgcYhTgYFTi4f0QVRwgxJpYVlyZe4hRgoNZSYQ3QaEkQIg3JbGy KrUoP76oNCe1+BCjD9BVE5mlRJPzgZGYVxJvaGxibmpsamliYWJmiUNYSZy32SMlQEggPbEk NTs1tSC1CGYcEwenVAPjjG/bIrzLN55+rZ0UlLKYd/Ydw9DN4pMYG6UWel7ewh3tvsRgs4cO t42SIhuX77fpG6zypt623PNyt+Rt3fm/7Pn37lgj83t3zQ+d3aWyTAt2r1U8bFOYofeMU7H7 zaN8ltkTJ09qyj/gvOKkYV2g4xE/uVnyvxrWbb3Id9y2S8hmJX/U8sOxSizFGYmGWsxFxYkA XywXqqMCAAA= X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Add documentation for the DT bindings in exynos display port driver. Signed-off-by: Ajay Kumar --- .../devicetree/bindings/video/exynos_dp.txt | 83 ++++++++++++++++++++ 1 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/video/exynos_dp.txt diff --git a/Documentation/devicetree/bindings/video/exynos_dp.txt b/Documentation/devicetree/bindings/video/exynos_dp.txt new file mode 100644 index 0000000..a021963 --- /dev/null +++ b/Documentation/devicetree/bindings/video/exynos_dp.txt @@ -0,0 +1,83 @@ +Exynos display port driver should configure the display port interface +based on the type of panel connected to it. + +We use two nodes: + -dptx_phy node + -display-port-controller node + +For the dp-phy initialization, we use a dptx_phy node. +Required properties for dptx_phy: + -compatible: + Should be "samsung,dp-phy". + -samsung,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 display-port-controller node. +Required properties for display-port-controller: + -compatible: + Should be "samsung,exynos5-dp". + -reg: + physical base address of the controller and length + of memory mapped region. + -interrupts: + Interrupt combiner values. + -interrupt-parent: + phandle to Interrupt combiner node. + -samsung,dp_phy: + phandle to dptx_phy node. + -samsung,color_space: + input video data format. + COLOR_RGB = 0, COLOR_YCBCR422 = 1, COLOR_YCBCR444 = 2 + -samsung,dynamic_range: + dynamic range for input video data. + VESA = 0, CEA = 1 + -samsung,ycbcr_coeff: + YCbCr co-efficients for input video. + COLOR_YCBCR601 = 0, COLOR_YCBCR709 = 1 + -samsung,color_depth: + Number of bits per colour component. + COLOR_6 = 0, COLOR_8 = 1, COLOR_10 = 2, COLOR_12 = 3 + -samsung,link_rate: + link rate supported by the panel. + LINK_RATE_1_62GBPS = 0x6, LINK_RATE_2_70GBPS = 0x0A + -samsung,lane_count: + number of lanes supported by the panel. + LANE_COUNT1 = 1, LANE_COUNT2 = 2, LANE_COUNT4 = 4 + -samsung,interlaced: + Interlace scan mode. + Progressive if defined, Interlaced if not defined + -samsung,v_sync_polarity: + VSYNC polarity configuration. + High if defined, Low if not defined + -samsung,h_sync_polarity: + HSYNC polarity configuration. + High if defined, Low if not defined + +Example: + +SOC specific portion: + dptx_phy: dptx_phy@0x10040720 { + compatible = "samsung,dp-phy"; + samsung,dptx_phy_reg = <0x10040720>; + samsung,enable_mask = <1>; + }; + + display-port-controller { + compatible = "samsung,exynos5-dp"; + reg = <0x145B0000 0x10000>; + interrupts = <10 3>; + interrupt-parent = <&combiner>; + samsung,dp_phy = <&dptx_phy>; + }; + +Board Specific portion: + display-port-controller { + samsung,color_space = <0>; + samsung,dynamic_range = <0>; + samsung,ycbcr_coeff = <0>; + samsung,color_depth = <1>; + samsung,link_rate = <0x0a>; + samsung,lane_count = <2>; + };