From patchwork Mon Mar 30 05:24:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 6118521 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 83661BF4A7 for ; Mon, 30 Mar 2015 05:28:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70979203B0 for ; Mon, 30 Mar 2015 05:28:42 +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 83F13203A0 for ; Mon, 30 Mar 2015 05:28:41 +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 1YcSDG-0000HO-Mj; Mon, 30 Mar 2015 05:26:14 +0000 Received: from mail-yh0-f50.google.com ([209.85.213.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YcSCS-0007Tc-5X for linux-arm-kernel@lists.infradead.org; Mon, 30 Mar 2015 05:25:25 +0000 Received: by yhjf44 with SMTP id f44so54602745yhj.3 for ; Sun, 29 Mar 2015 22:25:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iQbGsMebP6rGoKPvVUccZRGwxKGyx7bzUdjSjBAPeCc=; b=JDFg4R8ycOWKzdhFwd28W89fwlI3TWBHPN2BO2LTnkcM9JOpXLQ2E40d1obRnCYvds Jakjarm2Lt6Mkr+Xi3dRu4aZ5tL7rkzVbMi8YQz+A9dvHn+nfecAGLtOQUf+orwDoNm1 mSKXudXajDLbdJaXDEBJVl+W5TC9pwi3kVkKbr+91z4/Qi9fosfQK1W0FdBikgzQYCxV 01j8Flak4D+2I5oSULn+tFK3Ye9Qf1PaJIkAbwzIfdPdZ3nPBTHKqJK9Wss7UYaWeixn SLe1WluJAuLfwp0IyWBkIMLaE80EiD+70/QUM6+eRS6qZhhKD9w3863oVC+I84Pvwj7v 1HGg== X-Gm-Message-State: ALoCoQmg9aDjEZ3Cd5vh7djDWODuoXvH81rSFvTotj8S+BUm6W/M0WUhw4GirmDWJYcL8T5KSTrE X-Received: by 10.236.100.51 with SMTP id y39mr31045456yhf.69.1427693102458; Sun, 29 Mar 2015 22:25:02 -0700 (PDT) Received: from localhost.localdomain ([104.207.83.1]) by mx.google.com with ESMTPSA id g46sm9852584yhd.42.2015.03.29.22.24.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Mar 2015 22:25:02 -0700 (PDT) From: Leo Yan To: Wei Xu , Dan Zhao , zhenwei.wang@hisilicon.com, Haojian Zhuang , Bintian Wang , mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 3/5] dt-bindings: clk: hisilicon: Document stub clock driver Date: Mon, 30 Mar 2015 13:24:22 +0800 Message-Id: <1427693064-11062-4-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427693064-11062-1-git-send-email-leo.yan@linaro.org> References: <1427693064-11062-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150329_222524_293956_FF2AF2D0 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Leo Yan X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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, T_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 Document the new compatible for stub clock driver which is used for CPU and DDR's dynamic frequency scaling. Signed-off-by: Leo Yan --- .../devicetree/bindings/clock/hisi,stub-clock.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/hisi,stub-clock.txt diff --git a/Documentation/devicetree/bindings/clock/hisi,stub-clock.txt b/Documentation/devicetree/bindings/clock/hisi,stub-clock.txt new file mode 100644 index 0000000..07ef5a11 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/hisi,stub-clock.txt @@ -0,0 +1,38 @@ +* Clock bindings for Hisilicon Stub Clock Driver + +The Hisilicon stub clock will directly send dynamic frequency scaling request +to power controller, then the power controller will handle the request for +cpu and ddr's frequency change. + +Required properties: +- compatible: must be "hisilicon,hisi-clock-stub" +- hisilicon,clk-stub-sram: phandle to the syscon managing the SoC internal sram; + the driver need use the sram to pass parameters for frequency change. +- hisilicon,clk-stub-mc: phandle to the syscon managing the multi-cores' + communication; need set related register to trigger the dynamic frequency + scaling. +- #clock-cells: should be <1> + +Each clock is assigned an identifier and client nodes use this identifier +to specify the clock which they consume. + +All these identifier could be found in . + +Example: + + sram: sram { + compatible = "hisilicon,sram", "syscon"; + reg = <0x0 0xFFF80000 0x0 0x12000>; + }; + + ipc_s: ipc_s { + compatible = "hisilicon,ipc-s", "syscon"; + reg = <0x0 0xF7510000 0x0 0x1000>; + }; + + clock_stub: clock_stub { + compatible = "hisilicon,hisi-clock-stub"; + hisilicon,clk-stub-sram = <&sram>; + hisilicon,clk-stub-mc = <&ipc_s>; + #clock-cells = <1>; + };