From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932229AbdKFOGf (ORCPT ); Mon, 6 Nov 2017 09:06:35 -0500 Received: from [103.59.133.81] ([103.59.133.81]:36342 "EHLO mani-Aspire-E5-573" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752998AbdKFOGb (ORCPT ); Mon, 6 Nov 2017 09:06:31 -0500 X-Greylist: delayed 15055 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Nov 2017 09:06:28 EST Date: Fri, 3 Nov 2017 00:17:40 +0530 From: Manivannan Sadhasivam To: Rob Herring Cc: mturquette@baylibre.com, sboyd@codeaurora.org, afaerber@suse.de, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, davem@davemloft.net, mchehab@kernel.org, rdunlap@infradead.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, liuwei@actions-semi.com Subject: Re: [PATCH 3/3] Documentation: add Actions S900 clock bindings Message-ID: <20171102184738.GA16359@linaro.org> References: <1509479663-8985-1-git-send-email-manivannan.sadhasivam@linaro.org> <1509479663-8985-4-git-send-email-manivannan.sadhasivam@linaro.org> <20171102000448.hd3syjfviyy5wwqy@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171102000448.hd3syjfviyy5wwqy@rob-hp-laptop> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 01, 2017 at 07:04:48PM -0500, Rob Herring wrote: > On Wed, Nov 01, 2017 at 01:24:23AM +0530, Manivannan Sadhasivam wrote: > > This patch adds clock bindings for Actions Semi S900 SoC. > > "dt-bindings: clock: " for the subject. > > This patch should come before the dts and driver changes. > Ack. Will incorporate in next revision. Thanks, Mani > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > .../bindings/clock/actions,s900-clock.txt | 47 ++++++++++++++++++++++ > > 1 file changed, 47 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/actions,s900-clock.txt > > > > diff --git a/Documentation/devicetree/bindings/clock/actions,s900-clock.txt b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt > > new file mode 100644 > > index 0000000..951d6ad > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/actions,s900-clock.txt > > @@ -0,0 +1,47 @@ > > +* Actions s900 Clock Controller > > + > > +The Actions s900 clock controller generates and supplies clock to various > > +controllers within the SoC. The clock binding described here is applicable to > > +s900 SoC. > > + > > +Required Properties: > > + > > +- compatible: should be "actions,s900-clock" > > +- reg: physical base address of the controller and length of memory mapped > > + region. > > +- #clock-cells: should be 1. > > + > > +Each clock is assigned an identifier and client nodes can use this identifier > > +to specify the clock which they consume. > > + > > +All available clocks are defined as preprocessor macros in > > +dt-bindings/clock/actions,s900-clock.h header and can be used in device > > +tree sources. > > + > > +External clocks: > > + > > +The hosc clock used as input for the plls is generated outside the SoC. It is > > +expected that it is defined using standard clock bindings as "hosc". > > + > > +Actions s900 Clock Controller also require two more clocks: > > + - "losc" - internal low frequency oscillator > > + - "diff_24M" - internal differential 24MHz clock > > + > > +Example: Clock controller node: > > + > > + clock: clock-controller@e0160000 { > > + compatible = "actions,s900-clock"; > > + reg = <0 0xe0160000 0 0x1000>; > > + #clock-cells = <1>; > > + }; > > + > > +Example: UART controller node that consumes clock generated by the clock > > +controller: > > + > > + serial5: uart@e012a000 { > > serial@... > > > + compatible = "actions,s900-uart", "actions,owl-uart"; > > + reg = <0x0 0xe012a000 0x0 0x2000>; > > + interrupts = ; > > + clocks = <&clock CLK_UART5>; > > + clock-names = "uart"; > > + }; > > -- > > 2.7.4 > >