From patchwork Sun Jun 18 01:58:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 777380 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wqy7b71VBz9s3w for ; Sun, 18 Jun 2017 12:03:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752485AbdFRCDU (ORCPT ); Sat, 17 Jun 2017 22:03:20 -0400 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:52992 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753126AbdFRCDA (ORCPT ); Sat, 17 Jun 2017 22:03:00 -0400 Received: from ig2.spreadtrum.com (shcas02.spreadtrum.com [10.0.1.202]) by SHSQR01.spreadtrum.com with ESMTP id v5I21jrM050292 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 18 Jun 2017 10:01:45 +0800 (CST) (envelope-from Chunyan.Zhang@spreadtrum.com) Received: from SHCAS01.spreadtrum.com (10.0.1.201) by SHMBX04.spreadtrum.com (10.0.1.214) with Microsoft SMTP Server (TLS) id 15.0.847.32; Sun, 18 Jun 2017 10:01:44 +0800 Received: from localhost (10.0.73.143) by SHCAS01.spreadtrum.com (10.0.1.250) with Microsoft SMTP Server (TLS) id 15.0.847.32 via Frontend Transport; Sun, 18 Jun 2017 10:01:44 +0800 From: Chunyan Zhang To: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland CC: , , , , Arnd Bergmann , Mark Brown , Xiaolong Zhang , Orson Zhai , Geng Ren , Chunyan Zhang , Chunyan Zhang Subject: [PATCH V1 1/9] dt-bindings: Add Spreadtrum CCU binding documentation Date: Sun, 18 Jun 2017 09:58:47 +0800 Message-ID: <20170618015855.27738-2-chunyan.zhang@spreadtrum.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170618015855.27738-1-chunyan.zhang@spreadtrum.com> References: <20170618015855.27738-1-chunyan.zhang@spreadtrum.com> MIME-Version: 1.0 X-MAIL: SHSQR01.spreadtrum.com v5I21jrM050292 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Introduce a new binding with its documentation for Spreadtrum clock sub-framework. Signed-off-by: Chunyan Zhang Acked-by: Rob Herring --- .../devicetree/bindings/clock/sprd-ccu.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/sprd-ccu.txt diff --git a/Documentation/devicetree/bindings/clock/sprd-ccu.txt b/Documentation/devicetree/bindings/clock/sprd-ccu.txt new file mode 100644 index 0000000..7a1aa4c --- /dev/null +++ b/Documentation/devicetree/bindings/clock/sprd-ccu.txt @@ -0,0 +1,46 @@ +Spreadtrum Clock Control Unit Binding +------------------------------------ + +This binding uses the common clock binding[1]. + +Required properties: +- compatible: must contain the following compatible: + - "sprd,sc9860-ccu" (only support SC9860 for the time being) + +- reg: Must contain the registers base address and length. + Clocks on most of Spreadtrum's SoCs were designed to locate in a few + different address areas, so there would be more than one items under + this property. + +- clock-names: Must contain the following clock names: + - "ext-26m", "ext-rco-100m", "ext-32k" +- #clock-cells: must be 1 + +Example: + +ccu: clk { + compatible = "sprd,sc9860-ccu"; + #clock-cells = <1>; + reg = <0 0x20000000 0 0x400>, + <0 0x20210000 0 0x3000>, + <0 0x402b0000 0 0x4000>, + <0 0x402d0000 0 0x400>, + <0 0x402e0000 0 0x4000>, + <0 0x40400000 0 0x400>, + <0 0x40880000 0 0x400>, + <0 0x415e0000 0 0x400>, + <0 0x60200000 0 0x400>, + <0 0x61000000 0 0x400>, + <0 0x61100000 0 0x3000>, + <0 0x62000000 0 0x4000>, + <0 0x62100000 0 0x4000>, + <0 0x63000000 0 0x400>, + <0 0x63100000 0 0x3000>, + <0 0x70b00000 0 0x3000>; + clocks = <&ext_26m>, <&ext_rco_100m>, <&ext_32k>; + clock-names = "ext-26m", "ext-rco-100m", "ext-32k"; +}; + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt + +