From patchwork Wed May 7 07:46:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4126151 Return-Path: X-Original-To: patchwork-dri-devel@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 B447AC0ACD for ; Wed, 7 May 2014 07:47:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFA592034B for ; Wed, 7 May 2014 07:47:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D539B202DD for ; Wed, 7 May 2014 07:47:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2DC576EC62; Wed, 7 May 2014 00:46:51 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 86A726EC48 for ; Wed, 7 May 2014 00:46:45 -0700 (PDT) MIME-version: 1.0 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N57009MS1LVDP90@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 07 May 2014 16:46:43 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.45]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id A9.BC.11120.3E4E9635; Wed, 07 May 2014 16:46:43 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-2c-5369e4e38201 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D6.26.27725.2E4E9635; Wed, 07 May 2014 16:46:43 +0900 (KST) Received: from localhost.localdomain ([10.252.75.90]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5700FKJ1LRTV30@mmp2.samsung.com>; Wed, 07 May 2014 16:46:42 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: =?UTF-8?q?=5BRFC=20v4=20PATCH=2003/18=5D=20ARM=3A=20dts=3A=20video=3A=20add=20command=20mode=20display=20timing=20DT=20bindings?= Date: Wed, 07 May 2014 16:46:24 +0900 Message-id: <1399448799-8057-4-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1399448799-8057-1-git-send-email-yj44.cho@samsung.com> References: <1399448799-8057-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsVy+t8zXd3HTzKDDf5d4rK4te4cq0XvuZNM FvOPAFlXvr5ns+h/s5DV4tyrlYwWk+5PYLF4ce8ii0XvgqtsFmeb3rBbdE5cwm4x4/w+Joul 1y8yWUyYvpbFonXvEXaLTx8XsljMmPySzeLnrnksDkIea+atYfS43NfL5LFz1l12j5XLv7B5 zO6YyeqxaVUnm8f2bw9YPe53H2fy6P9r4NG3ZRWjx+dNcgHcUVw2Kak5mWWpRfp2CVwZr9o/ sRcslqw4uXgKcwPjO6EuRk4OCQETiSkTprJA2GISF+6tZ+ti5OIQEljGKLHt60smmKJls7ax QySmM0qcXX4SrINXQFDix+R7QDYHB7OAvMSRS9kgYWYBdYlJ8xYxQ9S3Mkm0HvjCDJJgE9CU eP5xByuILSJgKtExaSkLSBGzwBJmif2zH4BtEBboYZToO/mHHaSKRUBVYu/lycwQ25wlVly6 wwyyTUJAQWLOJBuQMKeAi8SLDx8ZQ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nLfAkbm VYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjByeeZ1A7GlQ0WhxgFOBiVeHgt3mYEC7EmlhVX 5h5ilOBgVhLh3XUxM1iINyWxsiq1KD++qDQntfgQYzLQ3ROZpUST84GJMa8k3tDYxMzI0sjM 2MTc2Jg0YSVx3gOt1oFCAumJJanZqakFqUUwW5g4OKUaGCdv85Cawr/jV0ZWe2KUX/8nhyXv C1e9WDMp6Vdfnpnv1OVHCgrCq8RiwhqOO/fnTFTeddXUJEv83YHtbalKwSW7F82qmz8nTV9z z1zTKTIW2x/2pAXsuFzx7sjE/G+L3PLObvB8PO1KQ8JjFga9GUfu8EaecwhxNPvaxDSX33YH v25CpJZxoxJLcUaioRZzUXEiAFTwPV+CAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, sw0312.kim@samsung.com, a.hajda@samsung.com, kyungmin.park@samsung.com, robh+dt@kernel.org, laurent.pinchart@ideasonboard.com, galak@codeaurora.org, kgene.kim@samsung.com, s.trumtrar@pengutronix.de X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.8 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 This patch adds DT bindings for command mode display timing. Signed-off-by: YoungJun Cho Acked-by: Inki Dae Acked-by: Kyungmin Park --- .../bindings/video/cmdmode-display-timing.txt | 64 ++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/cmdmode-display-timing.txt diff --git a/Documentation/devicetree/bindings/video/cmdmode-display-timing.txt b/Documentation/devicetree/bindings/video/cmdmode-display-timing.txt new file mode 100644 index 0000000..7cedfe4 --- /dev/null +++ b/Documentation/devicetree/bindings/video/cmdmode-display-timing.txt @@ -0,0 +1,64 @@ +cmdmode-display-timing bindings +=================================== + +cmdmode-display-timings node +-------------------------------- + +required properties: + - none + +optional properties: + - native-mode: The native mode for the display, in case multiple modes are + provided. When omitted, assume the first node is the native. + +timing subnode +-------------- + +required properties: + - clock-frequency: display clock in Hz + - hactive, vactive: display resolution + - cs-setup: clock cycles for the active period of address signal is enabled + until chip select is enabled. + - wr-setup: clock cycles for the active period of CS signal is enabled until + write signal is enabled. + - wr-active: clock cycles for the active period of CS is enabled. + - wr-hold: clock cycles for the active period of CS is disabled until write + signal is disabled. + +optional properties: + +There are different ways of describing the capabilities of a display. The +devicetree representation corresponds to the one commonly found in datasheets +for displays. If a display supports multiple signal timings, the native-mode +can be specified. + +The parameters are defined as: + + VCLK(internal) __|¯¯¯¯¯¯|_____|¯¯¯¯¯¯|_____|¯¯¯¯¯¯|_____|¯¯¯¯¯¯|_____|¯¯ + : : : : : + Address Output --:| : : : + Chip Select ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|____________:____________:____________|¯¯ + | WR-SETUP+1 | | WR-HOLD+1 | + |<---------->| |<---------->| + Write Enable ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|____________|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ + | WR-ACTIVE+1| + |<---------->| + Video Data ------------------------------ + +Example: + + cmdmode-display-timings { + native-mode = <&timing0>; + timing0: 1080p24 { + /* 1920x1080p24 */ + clock-frequency = <52000000>; + hactive = <1920>; + vactive = <1080>; + cs-setup = <0>; + wr-setup = <0>; + wr-active = <1>; + wr-hold = <0>; + }; + };