From patchwork Fri Aug 7 22:28:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 6973251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F243D9F373 for ; Fri, 7 Aug 2015 22:30:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27AC9205DE for ; Fri, 7 Aug 2015 22:30:51 +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 1DF9E205DD for ; Fri, 7 Aug 2015 22:30:50 +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 1ZNq89-0007Qz-42; Fri, 07 Aug 2015 22:28:49 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNq86-0007Gs-3O for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 22:28:46 +0000 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 0CA19140B8E; Fri, 7 Aug 2015 22:28:25 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id ECDA7140B92; Fri, 7 Aug 2015 22:28:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: 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 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboyd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 314A8140B8E; Fri, 7 Aug 2015 22:28:24 +0000 (UTC) Date: Fri, 7 Aug 2015 15:28:23 -0700 From: Stephen Boyd To: Pawel Moll Subject: Re: [PATCH 1/3] clk: versatile: Switch to assigned clock parents Message-ID: <20150807222823.GB16477@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> <1438873513.2142.95.camel@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1438873513.2142.95.camel@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150807_152846_180257_B4D80801 X-CRM114-Status: GOOD ( 17.56 ) X-Spam-Score: -2.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-Virus-Scanned: ClamAV using ClamSMTP On 08/06, Pawel Moll wrote: > 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. Thanks! I've put that patch before my series and squashed this into patch 1/3. ----8<---- diff --git a/Documentation/devicetree/bindings/arm/sp810.txt b/Documentation/devicetree/bindings/arm/sp810.txt index 440ee0892a4d..6808fb5dee40 100644 --- a/Documentation/devicetree/bindings/arm/sp810.txt +++ b/Documentation/devicetree/bindings/arm/sp810.txt @@ -24,12 +24,23 @@ Required properties: - clock-output-names: from the common clock bindings; should be: "timerclken0", "timerclken1", "timerclken2", "timerclken3" +- assigned-clocks: from the common clock binding; + should be: clock specifier for each output clock of this + provider node + +- assigned-clock-parents: from the common clock binding; + should be: clock specifier of input clock listed in clocks + property with the highest frequency + Example: - sysctl@020000 { + v2m_sysctl: 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"; + assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>; + assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>; + };