From patchwork Tue May 13 13:05:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 4167491 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 554509F271 for ; Tue, 13 May 2014 13:07:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B25D20204 for ; Tue, 13 May 2014 13:07:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E43920154 for ; Tue, 13 May 2014 13:07:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933437AbaEMNHJ (ORCPT ); Tue, 13 May 2014 09:07:09 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:20452 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933328AbaEMNGj (ORCPT ); Tue, 13 May 2014 09:06:39 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5I00A6RKF0HRC0@mailout1.samsung.com>; Tue, 13 May 2014 22:06:36 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 80.EB.18501.CD812735; Tue, 13 May 2014 22:06:36 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-fd-537218dce71e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D4.E3.27725.CD812735; Tue, 13 May 2014 22:06:36 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5I00LIPKEXC330@mmp1.samsung.com>; Tue, 13 May 2014 22:06:35 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com Cc: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, ben-linux@fluff.org, arnd@arndb.de, olof@lixom.net, marc.zyngier@arm.com, thomas.abraham@linaro.org, kyungmin.park@samsung.com, cw00.choi@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, chanho61.park@samsung.com, sajjan.linux@gmail.com, tushar.behera@linaro.org, sachin.kamat@linaro.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mike Turquette , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Randy Dunlap Subject: [PATCHv5 4/5] dt-bindings: add documentation for Exynos3250 clock controller Date: Tue, 13 May 2014 22:05:07 +0900 Message-id: <1399986308-23744-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1399986308-23744-1-git-send-email-cw00.choi@samsung.com> References: <1399986308-23744-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42JZI2JSpHtHoijYYOYeJYu/k46xW0xad4DJ 4vJ+bYvrX56zWsw/co7Vov/NQlaLzx9a2C3OvVrJaDHp/gQWi94FV9kszja9YbfY9Pgaq8Xl XXPYLGac38dkcfsyr8XfO//YLJZev8hk8XTCRTaLU9c/s1lMmL6WxeLtneksFq17j7BbnPzT y2jx5PBHVosZk1+yWayf8ZrF4tiMJYwW7X/3slns3TmZ0UHWY828NYweLc09bB6/f01i9Ljc 18vk8XfVC2aPnbPusnusXP6FzW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Cal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQMMHiWF ssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxpS+hywF80QqznX1sjYwdgh2 MXJySAiYSOz9OZUZwhaTuHBvPVsXIxeHkMAiRoktHReYIJwmJonjG68ygVSxCWhJ7H9xgw3E FhHQlZgy8w4rSBGzwBQ2iY9b97GCJIQFwiVWXGwCG8sioCpx7+dZMJtXwFVi9+bJLBDr5CQ+ 7HnEDmJzCrhJ/LrdAmYLAdUsO3uXaQIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsY wWnnmdQOxpUNFocYBTgYlXh4fxoXBguxJpYVV+YeYpTgYFYS4XX/BBTiTUmsrEotyo8vKs1J LT7EmAx01URmKdHkfGBKzCuJNzQ2MTOyNDI3tDAyNidNWEmc90CrdaCQQHpiSWp2ampBahHM FiYOTqkGxuxoqyNKCU9ynN92v/F9Hq1ZoRwVkq18JLdTaeIHTssUl/BjMx9zJs96FMpVt0fB svdKX8Nk36P8j30VDFvFtyZUeoWtPFfzpEyzN2Kj/40vs+8u5XqmvP6BknojP5embnTJNI+O xptTH/en50701ov70bnur1t7/4/4+G3iRyus90j8kchVYinOSDTUYi4qTgQA3LAM/X8DAAA= 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 The Exynos3250 clocks are statically listed and registered using the Samsung specific common clock helper functions. Both device tree based clock lookup and clkdev based clock lookups are supported. Signed-off-by: Chanwoo Choi Signed-off-by: Tomasz Figa Acked-by: Kyungmin Park Cc: Mike Turquette Cc: Kukjin Kim Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Randy Dunlap Cc: Tomasz Figa Acked-by: Tomasz Figa --- .../devicetree/bindings/clock/exynos3250-clock.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/exynos3250-clock.txt diff --git a/Documentation/devicetree/bindings/clock/exynos3250-clock.txt b/Documentation/devicetree/bindings/clock/exynos3250-clock.txt new file mode 100644 index 0000000..aadc9c5 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/exynos3250-clock.txt @@ -0,0 +1,41 @@ +* Samsung Exynos3250 Clock Controller + +The Exynos3250 clock controller generates and supplies clock to various +controllers within the Exynos3250 SoC. + +Required Properties: + +- compatible: should be one of the following. + - "samsung,exynos3250-cmu" - controller compatible with Exynos3250 SoC. + +- reg: physical base address of the controller and length of memory mapped + region. + +- #clock-cells: should be 1. + +Each clock is assigned an identifier and client nodes can use this identifier +to specify the clock which they consume. + +All available clocks are defined as preprocessor macros in +dt-bindings/clock/exynos3250.h header and can be used in device +tree sources. + +Example 1: An example of a clock controller node is listed below. + + cmu: clock-controller@10030000 { + compatible = "samsung,exynos3250-cmu"; + reg = <0x10030000 0x20000>; + #clock-cells = <1>; + }; + +Example 2: UART controller node that consumes the clock generated by the clock + controller. Refer to the standard clock bindings for information + about 'clocks' and 'clock-names' property. + + serial@13800000 { + compatible = "samsung,exynos4210-uart"; + reg = <0x13800000 0x100>; + interrupts = <0 109 0>; + clocks = <&cmu CLK_UART0>, <&cmu CLK_SCLK_UART0>; + clock-names = "uart", "clk_uart_baud0"; + };