From patchwork Wed Feb 12 11:31:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3637381 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 85C88BF13A for ; Wed, 12 Feb 2014 11:32:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3ACC2020F for ; Wed, 12 Feb 2014 11:32:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FCD8201ED for ; Wed, 12 Feb 2014 11:32:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752351AbaBLLcO (ORCPT ); Wed, 12 Feb 2014 06:32:14 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:19333 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154AbaBLLcM (ORCPT ); Wed, 12 Feb 2014 06:32:12 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0V00CT2S1NTTA0@mailout3.w1.samsung.com>; Wed, 12 Feb 2014 11:32:11 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-ab-52fb5bbbd55f Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FB.97.23059.BBB5BF25; Wed, 12 Feb 2014 11:32:11 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N0V00CLBS14OO70@eusync2.samsung.com>; Wed, 12 Feb 2014 11:32:11 +0000 (GMT) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org Cc: Andrzej Hajda , Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Pawel Moll , Ian Campbell , Kyungmin Park , Rob Herring , Kumar Gala , Grant Likely , Sean Paul , Marek Szyprowski Subject: [RFC PATCH v2 03/21] exynos/dsim: add DT bindings Date: Wed, 12 Feb 2014 12:31:10 +0100 Message-id: <1392204688-4591-4-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1392204688-4591-1-git-send-email-a.hajda@samsung.com> References: <1392204688-4591-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBLMWRmVeSWpSXmKPExsVy+t/xK7q7o38HGezrE7e4te4cq8X8I0Di ytf3bBb9bxayWhz4s4PR4tyrlYwWZ5vesFvMOL+PyWLtkbvsFkuvX2SymDB9LYtF694j7BZ3 N5xldOD1WDNvDaPH7IaLLB6X+3qZPFYu/8LmsWlVJ5vHnWt72Dzudx9n8ujbsorR4/MmuQDO KC6blNSczLLUIn27BK6MiZ+6mAsWiVX0PPzG1sC4SqiLkZNDQsBEYsPWY8wQtpjEhXvr2boY uTiEBJYySlyfv44Jwuljklj9v5UVpIpNQFPi7+abbCC2iICyxN+JqxhBipgFzjBLXHs7ASwh LGAlcfDJdbAGFgFViUcXprCD2LwCThI3Ti+AWqcgsezLWiCbg4NTwFnicLcOSFgIqGTr9HuM Exh5FzAyrGIUTS1NLihOSs811CtOzC0uzUvXS87P3cQICd0vOxgXH7M6xCjAwajEw8vg+StI iDWxrLgy9xCjBAezkghvUNTvICHelMTKqtSi/Pii0pzU4kOMTBycUg2MLa8XzvK7/Tkr6vmK 4jOTg9kt2hfsc1CMmbC2fbvWycxtJ2qnSc1rYnUttdc4qJ1T9O1qTQWjYEjKxAbpW++K9Wec rjguN+XSjm2nN85bena6N7dd9F/3fUYSH9756Gv4/MhkDfupKBoeksWxJj172sdVRSuuLTm6 t1R/sbjpjckLrLg2bYttVWIpzkg01GIuKk4EAAfNCO47AgAA 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=-4.5 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 The patch adds DT bindings for Exynos DSI Master. DSIM follows rules for DSI bus host bindings [1]. Properties describes its resources: memory, interrupt, clocks, phy, regulators and frequencies of clocks. [1]: Documentation/devicetree/bindings/mipi/dsi/mipi-dsi-bus.txt Signed-off-by: Andrzej Hajda --- v2 - added burst and esc clock frequency properties - add samsung prefix to all frequency props --- .../devicetree/bindings/video/exynos_dsim.txt | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/exynos_dsim.txt diff --git a/Documentation/devicetree/bindings/video/exynos_dsim.txt b/Documentation/devicetree/bindings/video/exynos_dsim.txt new file mode 100644 index 0000000..2a49704 --- /dev/null +++ b/Documentation/devicetree/bindings/video/exynos_dsim.txt @@ -0,0 +1,53 @@ +Exynos MIPI DSI Master + +Required properties: + - compatible: "samsung,exynos4210-mipi-dsi" + - reg: physical base address and length of the registers set for the device + - interrupts: should contain DSI interrupt + - clocks: list of clock specifiers, must contain an entry for each required + entry in clock-names + - clock-names: should include "bus_clk"and "pll_clk" entries + - phys: list of phy specifiers, must contain an entry for each required + entry in phy-names + - phy-names: should include "dsim" entry + - vddcore-supply: MIPI DSIM Core voltage supply (e.g. 1.1V) + - vddio-supply: MIPI DSIM I/O and PLL voltage supply (e.g. 1.8V) + - samsung,pll-clock-frequency: specifies frequency of the "pll_clk" clock + - samsung,burst-clock-frequency: specifies DSI frequency in high-speed burst + mode + - samsung,esc-clock-frequency: specifies DSI frequency in escape mode + - #address-cells, #size-cells: should be set respectively to <1> and <0> + according to DSI host bindings (see MIPI DSI bindings [1]) + +Optional properties: + - samsung,power-domain: a phandle to DSIM power domain node + +Child nodes: + Should contain DSI peripheral nodes (see DSI bindings [1]) + +[1]: Documentation/devicetree/bindings/mipi/dsi/mipi-dsi-bus.txt + +Example: + + dsi@11C80000 { + compatible = "samsung,exynos4210-mipi-dsi"; + reg = <0x11C80000 0x10000>; + interrupts = <0 79 0>; + clocks = <&clock 286>, <&clock 143>; + clock-names = "bus_clk", "pll_clk"; + phys = <&mipi_phy 1>; + phy-names = "dsim"; + vddcore-supply = <&vusb_reg>; + vddio-supply = <&vmipi_reg>; + samsung,power-domain = <&pd_lcd0>; + #address-cells = <1>; + #size-cells = <0>; + samsung,pll-clock-frequency = <24000000>; + samsung,burst-clock-frequency = <500000000>; + samsung,esc-clock-frequency = <20000000>; + + panel@0 { + reg = <0>; + ... + }; + };