From patchwork Thu Aug 6 15:05:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 6960551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BBE4BC05AC for ; Thu, 6 Aug 2015 15:08:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0399520712 for ; Thu, 6 Aug 2015 15:08:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 41B18206E3 for ; Thu, 6 Aug 2015 15:08:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNMjm-00076G-4v; Thu, 06 Aug 2015 15:05:42 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNMji-0006zy-Tv for linux-arm-kernel@lists.infradead.org; Thu, 06 Aug 2015 15:05:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C8FF575; Thu, 6 Aug 2015 08:05:17 -0700 (PDT) Received: from hornet (hornet.cambridge.arm.com [10.2.206.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B13EA3F21A; Thu, 6 Aug 2015 08:05:14 -0700 (PDT) Message-ID: <1438873513.2142.95.camel@arm.com> Subject: Re: [PATCH 1/3] clk: versatile: Switch to assigned clock parents From: Pawel Moll To: Stephen Boyd Date: Thu, 06 Aug 2015 16:05:13 +0100 In-Reply-To: <55C24E56.3020004@codeaurora.org> References: <55BBB2FC.9030102@codeaurora.org> <1438386285-5070-1-git-send-email-sboyd@codeaurora.org> <1438386285-5070-2-git-send-email-sboyd@codeaurora.org> <1438610480.2142.14.camel@arm.com> <55BFAB11.7080600@codeaurora.org> <1438770574.2142.80.camel@arm.com> <55C24E56.3020004@codeaurora.org> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150806_080539_103585_901754FD X-CRM114-Status: GOOD ( 16.20 ) X-Spam-Score: -7.0 (-------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" , Sudeep Holla , Mike Turquette , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 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 On Wed, 2015-08-05 at 18:56 +0100, Stephen Boyd wrote: > On 08/05/2015 03:29 AM, Pawel Moll wrote: > > > > Right, that's probably my fault. The sp810 nodes appeared in the VE > > trees very early (in terms of the "DT era"), when we weren't so strict > > about documentation. So far, it would be fairly simple, something like > > the text below - feel free to take it, mend it, extend it with your > > changes and include in the series: > > > > Thanks! > > Great! Can you please provide your signed-off-by? Sure. 8<-------------------------------------------------------- From cddb00e4c8b6b57e82008fa23a7359560e5c997c Mon Sep 17 00:00:00 2001 From: Pawel Moll Date: Thu, 6 Aug 2015 16:04:10 +0100 Subject: [PATCH] clk: versatile: Add SP810 device tree bindings document Signed-off-by: Pawel Moll --- Documentation/devicetree/bindings/arm/sp810.txt | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sp810.txt diff --git a/Documentation/devicetree/bindings/arm/sp810.txt b/Documentation/devicetree/bindings/arm/sp810.txt new file mode 100644 index 0000000..440ee08 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/sp810.txt @@ -0,0 +1,35 @@ +SP810 System Controller +----------------------- + +Required properties: + +- compatible: standard compatible string for a Primecell peripheral, + see Documentation/devicetree/bindings/arm/primecell.txt + for more details + should be: "arm,sp810", "arm,primecell" + +- reg: standard registers property, physical address and size + of the control registers + +- clock-names: from the common clock bindings, for more details see + Documentation/devicetree/bindings/clock/clock-bindings.txt; + should be: "refclk", "timclk", "apb_pclk" + +- clocks: from the common clock bindings, phandle and clock + specifier pairs for the entries of clock-names property + +- #clock-cells: from the common clock bindings; + should be: <1> + +- clock-output-names: from the common clock bindings; + should be: "timerclken0", "timerclken1", "timerclken2", "timerclken3" + +Example: + sysctl@020000 { + compatible = "arm,sp810", "arm,primecell"; + reg = <0x020000 0x1000>; + clocks = <&v2m_refclk32khz>, <&v2m_refclk1mhz>, <&smbclk>; + clock-names = "refclk", "timclk", "apb_pclk"; + #clock-cells = <1>; + clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3"; + };