From patchwork Mon Oct 15 09:13:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1592941 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 121463FD86 for ; Mon, 15 Oct 2012 09:13:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751271Ab2JOJNa (ORCPT ); Mon, 15 Oct 2012 05:13:30 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39156 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722Ab2JOJN3 (ORCPT ); Mon, 15 Oct 2012 05:13:29 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBX005ESG8UFZ10@mailout4.samsung.com>; Mon, 15 Oct 2012 18:13:28 +0900 (KST) X-AuditID: cbfee61b-b7fd46d0000046e0-43-507bd3b8c950 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 90.F8.18144.8B3DB705; Mon, 15 Oct 2012 18:13:28 +0900 (KST) Received: from DOJG1HAN02 ([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 <0MBX007YWGAGP600@mmp1.samsung.com>; Mon, 15 Oct 2012 18:13:28 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, 'Ajay Kumar' , 'Sylwester Nawrocki' , 'Tomasz Figa' , 'Thomas Abraham' , 'Jingoo Han' References: <009e01cdaab5$25cff2c0$716fd840$%han@samsung.com> In-reply-to: <009e01cdaab5$25cff2c0$716fd840$%han@samsung.com> Subject: [PATCH V6 2/2] video: exynos_dp: device tree documentation Date: Mon, 15 Oct 2012 18:13:28 +0900 Message-id: <009f01cdaab5$56a09760$03e1c620$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac2qtSW5uQILdkrJQxuxLuwR/TeLgwAAA9YQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsVy+t9jAd0dl6sDDP7tU7A40feB1WLG+X1M DkwenzfJBTBGcdmkpOZklqUW6dslcGV8e9TOXPBUouLBh6tsDYxTRboYOTkkBEwkXq/YzQ5h i0lcuLeerYuRi0NIYBGjxJ6bC9khnF+MEutvtDKDVLEJqEl8+XIYKMHBISJgJbFpqyZIDbPA USaJOT8OgNUICdhKLNj5gAXE5hSwk1h1YS4TSL2wgLPEinPxIGEWAVWJV88nsoCEeYHK+3b5 goR5BQQlfky+B9bJLKAlsX7ncSYIW15i85q3zCDlEgLqEo/+6oKERQSMJLbc7YAqEZHY9+Id 4wRGoVlIJs1CMmkWkkmzkLQsYGRZxSiaWpBcUJyUnmukV5yYW1yal66XnJ+7iREczs+kdzCu arA4xCjAwajEw/vTqzpAiDWxrLgy9xCjBAezkgjv7hNAId6UxMqq1KL8+KLSnNTiQ4zSHCxK 4rzNHikBQgLpiSWp2ampBalFMFkmDk6pBsYJ2gy/rX49SUrOclrusMnl4UlGq/dbpbNdMnSM sneumZi8R2ZvHGvTjBXH/LpNH7+Xc+YSOPp1TsXE5ttBkntjmlVfCE/lDTWW/Hjv4LvL/34E nOUuVzjSs3zrk/q8N+2KM4reRCqbuEzu29zptb4vZNWZasfjTuElK3Ou5fWIHdgcKX7y7g4l luKMREMt5qLiRADDLiHGYwIAAA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Ajay Kumar Add documentation for the DT bindings in exynos display port driver. Signed-off-by: Ajay Kumar Signed-off-by: Jingoo Han --- Changes since v6: - Remove duplicated 'based on' .../devicetree/bindings/video/exynos_dp.txt | 80 ++++++++++++++++++++ 1 files changed, 80 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..7cc7d9f --- /dev/null +++ b/Documentation/devicetree/bindings/video/exynos_dp.txt @@ -0,0 +1,80 @@ +The Exynos display port interface should be configured based on +the type of panel connected to it. + +We use two nodes: + -display-port-controller node + -dptx-phy node(defined inside display-port-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 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,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 + +Optional properties for display-port-controller: + -interlaced: + interlace scan mode. + Progressive if defined, Interlaced if not defined + -vsync-active-high: + VSYNC polarity configuration. + High if defined, Low if not defined + -hsync-active-high: + HSYNC polarity configuration. + High if defined, Low if not defined + +Example: + +SOC specific portion: + display-port-controller { + compatible = "samsung,exynos5-dp"; + reg = <0x145b0000 0x10000>; + interrupts = <10 3>; + interrupt-parent = <&combiner>; + + dptx-phy { + reg = <0x10040720>; + samsung,enable-mask = <1>; + }; + + }; + +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 = <4>; + };