From patchwork Tue Jan 19 14:51:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sperl X-Patchwork-Id: 8063251 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 863BDBEEE5 for ; Tue, 19 Jan 2016 14:57:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B809F20411 for ; Tue, 19 Jan 2016 14:57:19 +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 EA2922038A for ; Tue, 19 Jan 2016 14:57:18 +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 1aLXh7-0002aH-VB; Tue, 19 Jan 2016 14:55:41 +0000 Received: from 212-186-180-163.dynamic.surfer.at ([212.186.180.163] helo=cgate.sperl.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLXeQ-0007IH-CM; Tue, 19 Jan 2016 14:52:56 +0000 Received: from raspcm.intern.sperl.org (account martin@sperl.org [10.10.10.41] verified) by sperl.org (CommuniGate Pro SMTP 6.1.2) with ESMTPSA id 6392120; Tue, 19 Jan 2016 14:51:50 +0000 From: kernel@martin.sperl.org To: Rob Herring , Stephen Warren , Lee Jones , Eric Anholt , Michael Turquette , Stephen Boyd , Remi Pommarel , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [RFC 8/9] dt-bindings: bcm2835: document optional per clock dt-nodes Date: Tue, 19 Jan 2016 14:51:39 +0000 Message-Id: <1453215100-2382-9-git-send-email-kernel@martin.sperl.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1453215100-2382-1-git-send-email-kernel@martin.sperl.org> References: <1453215100-2382-1-git-send-email-kernel@martin.sperl.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160119_065254_860186_828D9A24 X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) 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: Martin Sperl MIME-Version: 1.0 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.2 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 From: Martin Sperl Document how to modify per clock default behaviour via the device-tree. Signed-off-by: Martin Sperl --- .../bindings/clock/brcm,bcm2835-cprman.txt | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt b/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt index e56a1df..794c4ac 100644 --- a/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt +++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-cprman.txt @@ -17,6 +17,26 @@ Required properties: found in include/dt-bindings/clock/bcm2835.h - reg: Specifies base physical address and size of the registers - clocks: The external oscillator clock phandle +- #address-cells number of cells required to define a clock +- #size-cells Should be 0 + +Subnodes: + +It is possible to apply optional settings per clock to modify clock +selection behaviour. +For each clock there may be a subnode that may contain the following: + +Required properties: +- reg - clock id + +Optional properties: +- parent-clock-names - list of parrent-clock names + this list is validated againt the default list + of parent clocks and is used in this order. +- brcm,clock-selector - the clock selector to use +- brcm,mash-max-order - the maximum order of the fractional divider +- brcm,min-fract-div - the minimum divider required when using + the fractional divider Example: @@ -33,6 +53,19 @@ Example: #clock-cells = <1>; reg = <0x7e101000 0x2000>; clocks = <&clk_osc>; + + #address-cells = <1>; + #size-cells = <0>; + + /* custom settings for the PCM clock */ + clock@BCM2835_CLOCK_PCM { + reg = ; + parent-clock-names = "xosc", "plld_per"; + brcm,clock-selector = + ; + brcm,mash-max-order = ; + brcm,min-fract-div = <20>; + }; }; i2c0: i2c@7e205000 {