From patchwork Wed Jan 22 14:35:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3523621 Return-Path: X-Original-To: patchwork-dri-devel@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 805FB9F2D6 for ; Wed, 22 Jan 2014 14:37:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 589E320107 for ; Wed, 22 Jan 2014 14:37:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A6D72200E0 for ; Wed, 22 Jan 2014 14:37:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ADDBDFBA6E; Wed, 22 Jan 2014 06:37:13 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.w1.samsung.com (mailout4.w1.samsung.com [210.118.77.14]) by gabe.freedesktop.org (Postfix) with ESMTP id A2A53FBA63 for ; Wed, 22 Jan 2014 06:36:18 -0800 (PST) Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZT00F8Y4KIDR70@mailout4.w1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 22 Jan 2014 14:36:18 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-31-52dfd761bbf2 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 15.A2.18565.167DFD25; Wed, 22 Jan 2014 14:36:17 +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 <0MZT00JHK4K8L3B0@eusync2.samsung.com>; Wed, 22 Jan 2014 14:36:17 +0000 (GMT) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH 3/9] exynos/dsim: add DT bindings Date: Wed, 22 Jan 2014 15:35:29 +0100 Message-id: <1390401336-22915-4-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1390401336-22915-1-git-send-email-a.hajda@samsung.com> References: <1390401336-22915-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t/xK7qJ1+8HGbx+x2pxa905Vov5R4DE la/v2Sz63yxktTjwZwejxblXKxktJt2fwGJxtukNu8WM8/uYLJZev8hkMWH6WhaL1r1H2C3W z3jNYvFz1zwWBz6PNfPWMHpc7utl8tg56y67x8rlX9g8Nq3qZPO4c20Pm8f97uNMHn1bVjF6 fN4kF8AZxWWTkpqTWZZapG+XwJWx8t0VloKzwhWnT31ib2DsF+hi5OSQEDCR2HzwNjuELSZx 4d56ti5GLg4hgaWMEnfbz7CBJIQE+pgkduwrArHZBDQl/m6+CRYXEVCW+DtxFSNIA7PAO2aJ ravOgiWEBUwlbu+7BjaVRUBVYv6Zp8wgNq+As8SGFR0sENsUJJZ9WQsW5xRwkWhbv4sRYpmz xPK1y9knMPIuYGRYxSiaWppcUJyUnmukV5yYW1yal66XnJ+7iRESxF93MC49ZnWIUYCDUYmH N2DXvSAh1sSy4srcQ4wSHMxKIrypl+8HCfGmJFZWpRblxxeV5qQWH2Jk4uCUamCcJ8na9nla aHzKqbhbNy639Cn6W/+ru8I59dWnVzlbLnEmawocDF3+wiP11Y4n4Z87Dn1vOJISbFS6UjzG m9OjePV0rVUTTpQLi5k3RVeazFmY7rmjRuKcfb+Y6sM1X6fa3Hyq9XemCu9lgQMCLRFPNLMe CzxjuR82UeBMxTX1qYu2PZ3E3TNPiaU4I9FQi7moOBEAmAog9UACAAA= Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Pawel Moll , Ian Campbell , Andrzej Hajda , Kyungmin Park , Rob Herring , Kumar Gala , Grant Likely X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org 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 The patch adds DT bindings for Exynos DSI Master. DSIM follows rules for DSI bus host bindings [1]. Other properties describes its resources: memory, interrupt, clocks, phy, regulators. There is only one configuration property: pll-clock-frequency. [1]: Documentation/devicetree/bindings/mipi/dsi/mipi-dsi-bus.txt Signed-off-by: Andrzej Hajda --- .../devicetree/bindings/video/exynos_dsim.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 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..0246e26 --- /dev/null +++ b/Documentation/devicetree/bindings/video/exynos_dsim.txt @@ -0,0 +1,48 @@ +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) + - pll-clock-frequency: specifies frequency of "pll_clk" clock + - #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>; + pll-clock-frequency = <24000000>; + + panel@0 { + reg = <0>; + ... + }; + };