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: 46468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9309D214AF for ; Mon, 30 Mar 2015 05:25:07 +0000 (UTC) Received: by padcz2 with SMTP id cz2sf195069638pad.1 for ; Sun, 29 Mar 2015 22:25:07 -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=Q9CoHBvb9w08idniF7N78DMzwduZg+lXqbidGKUamomLaufxrv8E2ZW1bMC+FZop8w mFxVbmo+uoWOqEXyWfjrgu1Fi3Q9q858BOUoTyDfB8i7/Uw9STYC/8UAkLCFZP7ikWsy 5ytMDRw3laPxFq1hk+SaAmjynE3dp7RLOoYxvisFTyKcobE13rO4Gdu/EmlHwKnxfKez MVxmPUdbLh+GlB2plLzRp7LPMWMjBH9YuUFLYfobg3nu3IDjQP8gt8RcE0CJomhdbSkS th+8qygxbn4NfFvk2io8ytBDeqaJpmsQDuvPxonEHoLmchTmtr4FijwJfymJt6alzbXn p+xA== X-Gm-Message-State: ALoCoQmbCZaX7v8VZaghx0yT/tUDMWm/iiEh6skJC5oSwqdjsfuPUmGgaPb9Sn7YKgE1n/IMSvOn X-Received: by 10.70.130.67 with SMTP id oc3mr30546430pdb.5.1427693106945; Sun, 29 Mar 2015 22:25:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.8 with SMTP id i8ls194105qgd.80.gmail; Sun, 29 Mar 2015 22:25:06 -0700 (PDT) X-Received: by 10.140.150.149 with SMTP id 143mr41086896qhw.4.1427693106721; Sun, 29 Mar 2015 22:25:06 -0700 (PDT) Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com. [209.85.192.41]) by mx.google.com with ESMTPS id l63si9433235qhl.27.2015.03.29.22.25.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 22:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.192.41 as permitted sender) client-ip=209.85.192.41; Received: by qgf60 with SMTP id 60so160446265qgf.3 for ; Sun, 29 Mar 2015 22:25:06 -0700 (PDT) X-Received: by 10.140.89.149 with SMTP id v21mr7322608qgd.50.1427693106630; Sun, 29 Mar 2015 22:25:06 -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.96.155.231 with SMTP id vz7csp1207597qdb; Sun, 29 Mar 2015 22:25:05 -0700 (PDT) X-Received: by 10.66.228.132 with SMTP id si4mr54292129pac.134.1427693105432; Sun, 29 Mar 2015 22:25:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz5si12682125pbc.124.2015.03.29.22.25.04; Sun, 29 Mar 2015 22:25:05 -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 S1752436AbbC3FZE (ORCPT + 5 others); Mon, 30 Mar 2015 01:25:04 -0400 Received: from mail-yh0-f52.google.com ([209.85.213.52]:33073 "EHLO mail-yh0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752263AbbC3FZD (ORCPT ); Mon, 30 Mar 2015 01:25:03 -0400 Received: by yhpt93 with SMTP id t93so54717435yhp.0 for ; Sun, 29 Mar 2015 22:25:02 -0700 (PDT) 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 Cc: Leo Yan 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> 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.192.41 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>; + };