From patchwork Thu Mar 26 11:13:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 46360 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0BAE321585 for ; Thu, 26 Mar 2015 11:14:25 +0000 (UTC) Received: by wizj7 with SMTP id j7sf4853098wiz.0 for ; Thu, 26 Mar 2015 04:14:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=45LyI1q60eQYqSnEdcEybpuPr2HoII5loLSFJdv0gQw=; b=TOPCWA2HEYi1pm7nQJkAydYiLa2W1A3rZf+5eSyEIqUFXiIgBlAHt5zWaGaJiBGjdu /Aj4XKEA6aImQCZEJ4iWM5IBpbttWb648/v3qpfDauD9W+GyyRmcP0xseB5Ak7xc5GNn TtGMBxIOZ4rkopC+/MV1Sec465bcn787vDza1L5WbKVflkHobT+Ac97uLp6nFq5vwCg4 e3WTGt9Qp3SrHZ4lJGdS23m2XWA6nJ7cVah0MxP/BU/JGxybWjsMcubD6asiADO9bKoE o1xFgR61ya47f3sbR8kbKGL5IM0i+ZWw+CqEHQljTxHtwhrNJXeWQcxSXg0bLDomhfEA QRAg== X-Gm-Message-State: ALoCoQmS1BDXZHR2xXq51NfZWOZhJeZFYVRcRO5ezgraAfYhgBch80H6k30d3xMEblqL5fJmD8g2 X-Received: by 10.112.219.35 with SMTP id pl3mr3266755lbc.13.1427368464287; Thu, 26 Mar 2015 04:14:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.206 with SMTP id l14ls205475laa.66.gmail; Thu, 26 Mar 2015 04:14:23 -0700 (PDT) X-Received: by 10.152.1.194 with SMTP id 2mr12875907lao.38.1427368463767; Thu, 26 Mar 2015 04:14:23 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id yj12si4323152lab.53.2015.03.26.04.14.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 04:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbcmq2 with SMTP id mq2so38261023lbc.0 for ; Thu, 26 Mar 2015 04:14:23 -0700 (PDT) X-Received: by 10.152.28.5 with SMTP id x5mr12565709lag.112.1427368463564; Thu, 26 Mar 2015 04:14:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp530374lbq; Thu, 26 Mar 2015 04:14:22 -0700 (PDT) X-Received: by 10.68.180.195 with SMTP id dq3mr25332845pbc.105.1427368461772; Thu, 26 Mar 2015 04:14:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gm2si1507102pbc.22.2015.03.26.04.14.20; Thu, 26 Mar 2015 04:14:21 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbbCZLOU (ORCPT + 5 others); Thu, 26 Mar 2015 07:14:20 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35581 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718AbbCZLOT (ORCPT ); Thu, 26 Mar 2015 07:14:19 -0400 Received: by pdbop1 with SMTP id op1so59677631pdb.2 for ; Thu, 26 Mar 2015 04:14:19 -0700 (PDT) X-Received: by 10.67.7.66 with SMTP id da2mr25234572pad.58.1427368459454; Thu, 26 Mar 2015 04:14:19 -0700 (PDT) Received: from localhost.localdomain ([211.79.119.21]) by mx.google.com with ESMTPSA id wg9sm1875069pab.17.2015.03.26.04.14.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 04:14:18 -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 Cc: Leo Yan Subject: [PATCH 2/4] dt-bindings: clk: hisilicon: Document stub clock driver Date: Thu, 26 Mar 2015 19:13:37 +0800 Message-Id: <1427368419-22222-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427368419-22222-1-git-send-email-leo.yan@linaro.org> References: <1427368419-22222-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: leo.yan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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>; + };