Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4065464ybg; Fri, 25 Oct 2019 12:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvOc69HJx+gd4cPKry/ipbiAcXvehVcCIw1PqXbqMMs8vAmaTovCgt4xFmjSOXy8gj8er7 X-Received: by 2002:a17:906:3197:: with SMTP id 23mr5162936ejy.156.1572032964027; Fri, 25 Oct 2019 12:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572032964; cv=none; d=google.com; s=arc-20160816; b=b3ln6DvbGbFDUBEQQvS8gJP1ZdcTdWfBXegRu2xWF3BoDiEb8QDH/n3vpMzP4nrlbF YJx3jt9AmZgJa12BAnuGBKXzJKNGHvcMXPM0n1lFienMkqaqwQ23k6K+Hj74X0ZW1Gzo Kk0skxz3uMsEJdDc1dh/Akt8UZopRESMLFMqWKFcuNezcxt2n36gdwhd47nqWtu6oCB2 PRP3q3gvafXx04iaOHrqYIXC+I5YbGVWy0v3wsDRqgXVNL9pmrDdIgRQ+5twEJJUlo+s LKvc8455ko3YCwwXa9fe3JrzkeQn9wfBjsVBQxhABgpZblGst82iGou5n4rif6FFc2Az YE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KUnUoKbzQV/eQWdCSpy2v+EQeaprIlofmkoF564EmYU=; b=CRO7aj1xdQRzFCXxOGEADZLROOLya8Hva/0rZ29kmXImuVKvif3AoFonZ9MjJFYjQn eMVKlCbLlh6wr49PMR9fYp1kK9p/euCBIrYFpxI8SqC5iyjaeFwWSppEgByRoOzPI6pt 3pAVNRP2HIEHg2S0lK17AaezK2YaQ4YN9OX0nb8/Vm2QjryZr2VMIDgcgMYx+nLpxPvL h78UmJt3o5yMOCm5MWONAhEHwSB4TVUwdy9Y5N1ZDhpKUco9iNbP/BSHRHUSz3REKDX6 n/ZdqXbmhkc39785AlkSnOw8xIvB4pKh8ZSaPvJUgTYzzJyRJRXMArKs2tPz7wEaibZP /AcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf19si1733977ejb.14.2019.10.25.12.49.00; Fri, 25 Oct 2019 12:49:24 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439141AbfJYLOl (ORCPT + 99 others); Fri, 25 Oct 2019 07:14:41 -0400 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:46521 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2503751AbfJYLOk (ORCPT ); Fri, 25 Oct 2019 07:14:40 -0400 Received: from ig2.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id x9PBEGiE067272 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Fri, 25 Oct 2019 19:14:16 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from localhost (10.0.74.79) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 25 Oct 2019 19:14:17 +0800 From: Chunyan Zhang To: Stephen Boyd , Michael Turquette , Rob Herring , Mark Rutland CC: , , , Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang Subject: [PATCH 3/5] dt-bindings: clk: sprd: add bindings for sc9863a clock controller Date: Fri, 25 Oct 2019 19:13:36 +0800 Message-ID: <20191025111338.27324-4-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025111338.27324-1-chunyan.zhang@unisoc.com> References: <20191025111338.27324-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.74.79] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com x9PBEGiE067272 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org add a new bindings to describe sc9863a clock compatible string. Signed-off-by: Chunyan Zhang --- .../bindings/clock/sprd,sc9863a-clk.txt | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt diff --git a/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt new file mode 100644 index 000000000000..a73ae5574c82 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt @@ -0,0 +1,59 @@ +Unisoc SC9863A Clock Binding +------------------------ + +Required properties: +- compatible: should contain the following compatible strings: + - "sprd,sc9863a-ap-clk" + - "sprd,sc9863a-pmu-gate" + - "sprd,sc9863a-pll" + - "sprd,sc9863a-mpll" + - "sprd,sc9863a-rpll" + - "sprd,sc9863a-dpll" + - "sprd,sc9863a-aon-clk" + - "sprd,sc9863a-apahb-gate" + - "sprd,sc9863a-aonapb-gate" + - "sprd,sc9863a-mm-gate" + - "sprd,sc9863a-mm-clk" + - "sprd,sc9863a-vspahb-gate" + - "sprd,sc9863a-apapb-gate" + +- #clock-cells: must be 1 + +- clocks : Should be the input parent clock(s) phandle for the clock, this + property here just simply shows which clock group the clocks' + parents are in, since each clk node would represent many clocks + which are defined in the driver. The detailed dependency + relationship (i.e. how many parents and which are the parents) + are implemented in driver code. + +Optional properties: + +- reg: Contain the registers base address and length. It must be configured + only if no 'sprd,syscon' under the node. + +- sprd,syscon: phandle to the syscon which is in the same address area with + the clock, and so we can get regmap for the clocks from the + syscon device. + +Example: + ap_clk: clock-controller@21500000 { + compatible = "sprd,sc9863a-ap-clk"; + reg = <0 0x21500000 0 0x1000>; + clocks = <&ext_32k>, <&ext_26m>, + <&pll 0>, <&rpll 0>; + #clock-cells = <1>; + }; + + pmu_gate: pmu-gate { + compatible = "sprd,sc9863a-pmu-gate"; + sprd,syscon = <&pmu_regs>; /* 0x402b0000 */ + clocks = <&ext_26m>; + #clock-cells = <1>; + }; + + pll: pll { + compatible = "sprd,sc9863a-pll"; + sprd,syscon = <&anlg_phy_g2_regs>; /* 0x40353000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; -- 2.20.1