From patchwork Tue Aug 4 07:27:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 51896 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id F16F4229FD for ; Tue, 4 Aug 2015 07:28:19 +0000 (UTC) Received: by wixh2 with SMTP id h2sf3188965wix.0 for ; Tue, 04 Aug 2015 00:28:19 -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=Ypk5sqG60KzWNnnHWIXJ2fYAK0YSQYeyajB48RuoHnOdz2veNIYCofQBSU2jcXVvh8 /Oi18K2nvpeuDaI/2+13IEziB5Na+r0LXJNnRFPFhCwLVzQTLKYUwtrceGIQUzeuTelz QRHEo02xje/StHMn8N4k7abnPDiJS6EtR8D8PV78UvDs8uIGDLLQsEysUbQrEQV8XKjT pCZVfhGyMySWHgVLpLYgBZdFOvvPHhkz4y7yrK4PU1WHdQjI6YzseLcsbBUvjV890jOm hCHrxoSEjpaEG5PJv1cKmysiDh2XGOpAgDHRBJDRxrgk9W//Yv9Xop58d6TcslUxqxxu Qs9w== X-Gm-Message-State: ALoCoQmE4RDhZsGtskcn6AXlR1iVi0J2NFCL+ANZ2PCD1llznrAMD42iZfFpY3Pu3dngx9Y2VJKP X-Received: by 10.112.125.71 with SMTP id mo7mr699028lbb.2.1438673299270; Tue, 04 Aug 2015 00:28:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.37 with SMTP id v5ls6032laj.109.gmail; Tue, 04 Aug 2015 00:28:18 -0700 (PDT) X-Received: by 10.112.180.201 with SMTP id dq9mr1892128lbc.78.1438673298957; Tue, 04 Aug 2015 00:28:18 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id be2si99194lab.80.2015.08.04.00.28.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 00:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by labix3 with SMTP id ix3so1161461lab.0 for ; Tue, 04 Aug 2015 00:28:18 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr1856773lav.36.1438673298736; Tue, 04 Aug 2015 00:28:18 -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 l6csp2260232lba; Tue, 4 Aug 2015 00:28:17 -0700 (PDT) X-Received: by 10.69.17.202 with SMTP id gg10mr4814169pbd.15.1438673296810; Tue, 04 Aug 2015 00:28:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si278369pdm.185.2015.08.04.00.28.15; Tue, 04 Aug 2015 00:28:16 -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 S1754911AbbHDH2I (ORCPT + 28 others); Tue, 4 Aug 2015 03:28:08 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:36587 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754606AbbHDH2D (ORCPT ); Tue, 4 Aug 2015 03:28:03 -0400 Received: by pdco4 with SMTP id o4so826618pdc.3 for ; Tue, 04 Aug 2015 00:28:02 -0700 (PDT) X-Received: by 10.70.45.134 with SMTP id n6mr4958344pdm.124.1438673282517; Tue, 04 Aug 2015 00:28:02 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id pe3sm255184pdb.55.2015.08.04.00.27.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Aug 2015 00:28:02 -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 v4 2/4] dt-bindings: clk: Hi6220: Document stub clock driver Date: Tue, 4 Aug 2015 15:27:27 +0800 Message-Id: <1438673249-6051-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438673249-6051-1-git-send-email-leo.yan@linaro.org> References: <1438673249-6051-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.215.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/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.