From patchwork Thu May 5 15:53:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sperl X-Patchwork-Id: 9025561 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: X-Original-To: patchwork-linux-clk@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 C4DF29F372 for ; Thu, 5 May 2016 15:53:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFD87203AE for ; Thu, 5 May 2016 15:53:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D0126203B5 for ; Thu, 5 May 2016 15:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757614AbcEEPxh (ORCPT ); Thu, 5 May 2016 11:53:37 -0400 Received: from 212-186-180-163.dynamic.surfer.at ([212.186.180.163]:53476 "EHLO cgate.sperl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757365AbcEEPxg (ORCPT ); Thu, 5 May 2016 11:53:36 -0400 Received: from rasp3a.intern.sperl.org (account martin@sperl.org [10.10.10.43] verified) by sperl.org (CommuniGate Pro SMTP 6.1.2) with ESMTPSA id 6448384; Thu, 05 May 2016 15:53:31 +0000 From: kernel@martin.sperl.org To: Rob Herring , Mark Rutland , Stephen Warren , Lee Jones , Eric Anholt , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Cc: Martin Sperl Subject: [PATCH 1/5] dt: bindings: add means to control flags of specific clocks Date: Thu, 5 May 2016 15:53:24 +0000 Message-Id: <1462463608-22940-2-git-send-email-kernel@martin.sperl.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462463608-22940-1-git-send-email-kernel@martin.sperl.org> References: <1462463608-22940-1-git-send-email-kernel@martin.sperl.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Spam-Status: No, score=-9.0 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 From: Martin Sperl Add documentation for "brcm,clock-index" and "brcm,clock-flags" which allows to set flags to enable the use of parent clocks that may be different from the default. In the future this may also contain flags that would allow enabling higher order mash dividers. Signed-off-by: Martin Sperl --- .../devicetree/bindings/clock/brcm,bcm2835-cprman.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt b/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt index e56a1df..cbcca56 100644 --- a/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt +++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt @@ -18,6 +18,15 @@ Required properties: - reg: Specifies base physical address and size of the registers - clocks: The external oscillator clock phandle +Optional properties: +- brcm,clock-index: clock id to which the corresponding brcm,clock-flags + value applies +- brcm,clock-flags: flags for the specific clock id given in + brcm,clock-index - the bits are defined in + include/dt-bindings/clock/bcm2835.h + of which the bottom 16 bits are reserved for + parent clock selection. + Example: clk_osc: clock@3 { @@ -33,7 +42,11 @@ Example: #clock-cells = <1>; reg = <0x7e101000 0x2000>; clocks = <&clk_osc>; + /* the pcm clock should use the non-standard pllc-per parent */ + brcm,clock-index = ; + brcm,clock-flags = <((1 <; }; i2c0: i2c@7e205000 { --