From patchwork Thu Nov 13 13:20:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 5296931 Return-Path: X-Original-To: patchwork-linux-rockchip@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 04B5B9F2F1 for ; Thu, 13 Nov 2014 13:22:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BC04201FA for ; Thu, 13 Nov 2014 13:21:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F1F2201C7 for ; Thu, 13 Nov 2014 13:21:58 +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 1XouLV-00060O-A3; Thu, 13 Nov 2014 13:21:57 +0000 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XouLT-0005Zj-Co for linux-rockchip@lists.infradead.org; Thu, 13 Nov 2014 13:21:55 +0000 Received: by mail-pa0-f48.google.com with SMTP id rd3so1655631pab.35 for ; Thu, 13 Nov 2014 05:21:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=0tM3cP+VoVadjHstgcTmwpBBTKtL2E3D4gOyh3aV4Dw=; b=S5jD/Fea+PHFkSVadOl9G8poCXwXb2RFGB4AdGxhdLboE+gqPguznUbqG91ju/Xo1V 0H5gJxB6p/wHJI2IzIXqBp6k65lf5cWK8qaolKXQhvXsZ5HTNIuWXCrCIDB6PrB3u9UK 9RMVAfv9BdnKUN0B6ekuRS3GZlNZc16ilh+ZsX37Fh7ugTF2Di6ImN3HeSjSpNFSYWk2 CgBX4zfpTZrWf6tW0aO9EFvS3V36tehQaNeb5WlBNbrcw5BVgV7/i8YWGtJwFGxzIMDg /tepFSPUWjK4ZSTAHpbawBIh/Da63j+aZ8JJmcBb4IEoN1mLcG4jTJ0XfdRH4SSoSFqB NtGw== X-Received: by 10.68.167.99 with SMTP id zn3mr2740049pbb.30.1415884893423; Thu, 13 Nov 2014 05:21:33 -0800 (PST) Received: from localhost.localdomain ([173.44.135.206]) by mx.google.com with ESMTPSA id r3sm24912122pds.57.2014.11.13.05.21.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Nov 2014 05:21:32 -0800 (PST) From: Kever Yang To: Mike Turquette , Heiko Stuebner Subject: [RFC PATCH 2/2] dt-bindings: clk: add document for assigned-clock-force-rates usage Date: Thu, 13 Nov 2014 21:20:26 +0800 Message-Id: <1415884826-7877-3-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415884826-7877-1-git-send-email-kever.yang@rock-chips.com> References: <1415884826-7877-1-git-send-email-kever.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141113_052155_472074_F59BA82D X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: huangtao@rock-chips.com, dkl@rock-chips.com, addy.ke@rock-chips.com, Geert Uytterhoeven , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Gerhard Sittig , dianders@chromium.org, Kever Yang , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring , Laurent Pinchart , Sylwester Nawrocki , Kumar Gala , cf@rock-chips.com, Simon Horman , Mark Rutland , sonnyrao@chromium.org, Ben Dooks X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 This patch adds document for how to use the opetion property assigned-clock-force-rates. We may use this property to force update a clock setting. Signed-off-by: Kever Yang --- Documentation/devicetree/bindings/clock/clock-bindings.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt b/Documentation/devicetree/bindings/clock/clock-bindings.txt index 06fc6d5..fb5d3a5 100644 --- a/Documentation/devicetree/bindings/clock/clock-bindings.txt +++ b/Documentation/devicetree/bindings/clock/clock-bindings.txt @@ -154,11 +154,14 @@ set to 0, or can be omitted if it is not followed by any non-zero entry. assigned-clocks = <&clkcon 0>, <&pll 2>; assigned-clock-parents = <&pll 2>; + assigned-clock-force-rates = <500000>, <0>; assigned-clock-rates = <0>, <460800>; }; -In this example the <&pll 2> clock is set as parent of clock <&clkcon 0> and -the <&pll 2> clock is assigned a frequency value of 460800 Hz. +In this example the <&pll 2> clock is set as parent of clock <&clkcon 0>, +the <&clkcon 0> clock is assigned a frequency value of 500000 Hz and make +sure the we get into assigned-clock-rates even if there is no rate change, +and the <&pll 2> clock is assigned a frequency value of 460800 Hz. Configuring a clock's parent and rate through the device node that consumes the clock can be done only for clocks that have a single user. Specifying