From patchwork Wed May 14 06:26:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: YoungJun Cho X-Patchwork-Id: 4172671 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 4DBED9FB06 for ; Wed, 14 May 2014 06:27:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 653452037A for ; Wed, 14 May 2014 06:27:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F2B2A2037D for ; Wed, 14 May 2014 06:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751243AbaENG1P (ORCPT ); Wed, 14 May 2014 02:27:15 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:50034 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181AbaENG1M (ORCPT ); Wed, 14 May 2014 02:27:12 -0400 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5J003BDWL9DOB0@mailout4.samsung.com>; Wed, 14 May 2014 15:27:09 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.44]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 86.8D.18501.DBC03735; Wed, 14 May 2014 15:27:09 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-f0-53730cbd865f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 89.7B.25708.CBC03735; Wed, 14 May 2014 15:27:09 +0900 (KST) Content-transfer-encoding: 8BIT 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 <0N5J009Z6WL5U190@mmp2.samsung.com>; Wed, 14 May 2014 15:27:08 +0900 (KST) From: YoungJun Cho To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, thierry.reding@gmail.com, laurent.pinchart@ideasonboard.com, s.trumtrar@pengutronix.de, kyungmin.park@samsung.com, inki.dae@samsung.com, kgene.kim@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, a.hajda@samsung.com Subject: =?UTF-8?q?=5BPATCH=2003/18=5D=20ARM=3A=20dts=3A=20video=3A=20add=20command=20mode=20display=20timing=20DT=20bindings?= Date: Wed, 14 May 2014 15:26:50 +0900 Message-id: <1400048825-6052-4-git-send-email-yj44.cho@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1400048825-6052-1-git-send-email-yj44.cho@samsung.com> References: <1400048825-6052-1-git-send-email-yj44.cho@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsVy+t8zHd29PMXBBt/mcVncWneO1aL33Ekm i/lHgKwrX9+zWfS/Wchqce7VSkaLSfcnsFi8uHeRxaJ3wVU2i7NNb9gtOicuYbeYcX4fk8XS 6xeZLCZMX8ti0br3CLvFp48LWSxmTH7JZvFz1zwWByGPNfPWMHpc7utl8tg56y67x8rlX9g8 ZnfMZPXYtKqTzWP7twesHve7jzN59P818OjbsorR4/MmuQDuKC6blNSczLLUIn27BK6MV+2f 2AsWS1acXDyFuYHxnVAXIyeHhICJxKIPXawQtpjEhXvr2boYu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0qcemgIYvMKCEr8mHyPpYuRg4NZQF7iyKVskDCzgLrEpHmLmLsYuYDKW5kkVk+4 wA6SYBPQlHj+cQcriC0iYCrRMWkpC0gRs8ASZom97avYQBxhgUZGiTMv5zOCVLEIqEp8b+1n gdjmLHF09m5mkG0SAgoScybZgIQ5BVwkFsz+ywYSFgIq+dHMOIFRYBaS82YhnDcLyXkLGJlX MYqmFiQXFCel5xrpFSfmFpfmpesl5+duYgQnnmfSOxhXNVgcYhTgYFTi4b3hXBQsxJpYVlyZ e4hRgoNZSYS3fAtQiDclsbIqtSg/vqg0J7X4EGMy0NkTmaVEk/OBSTGvJN7Q2MTMyNLIzNjE 3NiYNGElcd6DrdaBQgLpiSWp2ampBalFMFuYODilGhjnTVoaturNs0s37p8MvKJ6YT/Ds1WL XwonVTB6eaiEPfu9YNpvo/uZr67/uCHuV//HPZG9bOM5O50GyWtCp55w3v9WdvKtzuNrNzrr WZ/fele+4yrjFc68E9eNW5k1QpSFyvf73Z79f2b4BzMWhqZot6t7UtK1N7pZbb2z2TEsUKBG R9d0fcp0JZbijERDLeai4kQAjwwsUoADAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 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 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>; + }; + };