From patchwork Mon Aug 3 01:13:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51821 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 959D6229FD for ; Mon, 3 Aug 2015 01:15:37 +0000 (UTC) Received: by labby2 with SMTP id by2sf21693892lab.3 for ; Sun, 02 Aug 2015 18:15:36 -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=Kkx7/S8drExtyaBKQq5ebTf1jco7vHmtOOe/jY+YFqY=; b=decaz8FSdkqUERyW5YpMv+YKwEG9xpNUwPY2nSeOTF4Zjqzq2+QiTm+GFRtAGLZgUA wlP8rWLvP8iDc2gG6pPa4B9XanBNLhJ8Xq5JV9E5n7SdwHPk+t8Ihe49tzsEQYu/P5Az 9AjkwnC9RG5v+IVLY8F+ei0dRp/zhWvvxII4cAjaiPaP0erJLuMuTVw2fa3nYECK/uBy gBNben7NOEilHonO71e8SBwRGTzus4rfc/jAzNl+45W4f/W8hiR4FOHjBXuyziD5urav SVxfvh8c7p8Gx97OqRKfJa6sl+FzA/nyyT6oEPgmbdQCSPHI1SFsxbnbN3hFzzpLGmL8 1aAA== X-Gm-Message-State: ALoCoQlQNQCR62eQiJ1JXpm6Mv01Q4sg7QdKlH/QSQvjXpJxMVIzj5Yns4YADAZlIsFeKKQ3yMxL X-Received: by 10.180.205.198 with SMTP id li6mr4886118wic.5.1438564536573; Sun, 02 Aug 2015 18:15:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.228 with SMTP id h4ls534513lam.23.gmail; Sun, 02 Aug 2015 18:15:36 -0700 (PDT) X-Received: by 10.112.40.51 with SMTP id u19mr14364326lbk.44.1438564536152; Sun, 02 Aug 2015 18:15:36 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id kg7si10609306lbc.176.2015.08.02.18.15.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 18:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbqc9 with SMTP id c9so44637558lbq.1 for ; Sun, 02 Aug 2015 18:15:36 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr14593184lal.35.1438564535938; Sun, 02 Aug 2015 18:15:35 -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.7.198 with SMTP id l6csp1597201lba; Sun, 2 Aug 2015 18:15:35 -0700 (PDT) X-Received: by 10.67.8.40 with SMTP id dh8mr29884097pad.129.1438564534338; Sun, 02 Aug 2015 18:15:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox5si10016307pbc.7.2015.08.02.18.15.32; Sun, 02 Aug 2015 18:15:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752626AbbHCBP1 (ORCPT + 28 others); Sun, 2 Aug 2015 21:15:27 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:33601 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbbHCBPW (ORCPT ); Sun, 2 Aug 2015 21:15:22 -0400 Received: by pdbnt7 with SMTP id nt7so66730037pdb.0 for ; Sun, 02 Aug 2015 18:15:21 -0700 (PDT) X-Received: by 10.70.21.161 with SMTP id w1mr30683959pde.169.1438564521427; Sun, 02 Aug 2015 18:15:21 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id pd10sm15416289pdb.66.2015.08.02.18.15.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Aug 2015 18:15:20 -0700 (PDT) From: Leo Yan To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Wei Xu , Haojian Zhuang , Bintian Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , sunzhaosheng@hisilicon.com, victor.lixin@hisilicon.com Cc: Leo Yan Subject: [PATCH v3 3/5] dt-bindings: clk: Hi6220: Document stub clock driver Date: Mon, 3 Aug 2015 09:13:36 +0800 Message-Id: <1438564418-15948-4-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438564418-15948-1-git-send-email-leo.yan@linaro.org> References: <1438564418-15948-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.175 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/hi6220-clock.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/hi6220-clock.txt b/Documentation/devicetree/bindings/clock/hi6220-clock.txt index 259e30a..e4d5fea 100644 --- a/Documentation/devicetree/bindings/clock/hi6220-clock.txt +++ b/Documentation/devicetree/bindings/clock/hi6220-clock.txt @@ -15,19 +15,36 @@ Required Properties: - "hisilicon,hi6220-sysctrl" - "hisilicon,hi6220-mediactrl" - "hisilicon,hi6220-pmctrl" + - "hisilicon,hi6220-stub-clk" - reg: physical base address of the controller and length of memory mapped region. - #clock-cells: should be 1. -For example: +Optional Properties: + +- hisilicon,hi6220-clk-sram: phandle to the syscon managing the SoC internal sram; + the driver need use the sram to pass parameters for frequency change. + +- mboxes: use the label reference for the mailbox as the first parameter, the + second parameter is the channel number. + +Example 1: sys_ctrl: sys_ctrl@f7030000 { compatible = "hisilicon,hi6220-sysctrl", "syscon"; reg = <0x0 0xf7030000 0x0 0x2000>; #clock-cells = <1>; }; +Example 2: + stub_clock: stub_clock { + compatible = "hisilicon,hi6220-stub-clk"; + hisilicon,hi6220-clk-sram = <&sram>; + #clock-cells = <1>; + mboxes = <&mailbox 1>; + }; + Each clock is assigned an identifier and client nodes use this identifier to specify the clock which they consume.