From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH 1/2] dt-bindings: Document the hi3660 clock bindings Date: Mon, 19 Dec 2016 16:15:08 -0600 Message-ID: <20161219221508.jxgmv36hib3ekanf@rob-hp-laptop> References: <1481781493-6188-1-git-send-email-zhangfei.gao@linaro.org> <1481781493-6188-2-git-send-email-zhangfei.gao@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1481781493-6188-2-git-send-email-zhangfei.gao-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Zhangfei Gao Cc: Stephen Boyd , Arnd Bergmann , haojian.zhuang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, guodong Xu , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Dec 15, 2016 at 01:58:12PM +0800, Zhangfei Gao wrote: > Add DT bindings documentation for hi3660 SoC clock. > > Signed-off-by: Zhangfei Gao > --- > .../devicetree/bindings/clock/hi3660-clock.txt | 42 ++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/hi3660-clock.txt > > diff --git a/Documentation/devicetree/bindings/clock/hi3660-clock.txt b/Documentation/devicetree/bindings/clock/hi3660-clock.txt > new file mode 100644 > index 0000000..7296fd7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/hi3660-clock.txt > @@ -0,0 +1,42 @@ > +* Hisilicon Hi3660 Clock Controller > + > +The Hi3660 clock controller generates and supplies clock to various > +controllers within the Hi3660 SoC. > + > +Required Properties: > + > +- compatible: the compatible should be one of the following strings to > + indicate the clock controller functionality. > + > + - "hisilicon,hi3660-crgctrl" > + - "hisilicon,hi3660-pctrl" > + - "hisilicon,hi3660-pmuctrl" > + - "hisilicon,hi3660-sctrl" > + - "hisilicon,hi3660-iomcu" > + > +- 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 use this identifier > +to specify the clock which they consume. > + > +All these identifier could be found in . > + > +Examples: > + crg_ctrl: crg_ctrl@fff35000 { clock-controller@... > + compatible = "hisilicon,hi3660-crgctrl", "syscon"; > + reg = <0x0 0xfff35000 0x0 0x1000>; > + #clock-cells = <1>; > + }; > + > + uart0: uart@fdf02000 { serial@... > + compatible = "arm,pl011", "arm,primecell"; > + reg = <0x0 0xfdf02000 0x0 0x1000>; > + interrupts = ; > + clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>, > + <&crg_ctrl HI3660_PCLK>; > + clock-names = "uartclk", "apb_pclk"; > + status = "disabled"; > + }; > -- > 2.7.4 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: robh@kernel.org (Rob Herring) Date: Mon, 19 Dec 2016 16:15:08 -0600 Subject: [PATCH 1/2] dt-bindings: Document the hi3660 clock bindings In-Reply-To: <1481781493-6188-2-git-send-email-zhangfei.gao@linaro.org> References: <1481781493-6188-1-git-send-email-zhangfei.gao@linaro.org> <1481781493-6188-2-git-send-email-zhangfei.gao@linaro.org> Message-ID: <20161219221508.jxgmv36hib3ekanf@rob-hp-laptop> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Dec 15, 2016 at 01:58:12PM +0800, Zhangfei Gao wrote: > Add DT bindings documentation for hi3660 SoC clock. > > Signed-off-by: Zhangfei Gao > --- > .../devicetree/bindings/clock/hi3660-clock.txt | 42 ++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/hi3660-clock.txt > > diff --git a/Documentation/devicetree/bindings/clock/hi3660-clock.txt b/Documentation/devicetree/bindings/clock/hi3660-clock.txt > new file mode 100644 > index 0000000..7296fd7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/hi3660-clock.txt > @@ -0,0 +1,42 @@ > +* Hisilicon Hi3660 Clock Controller > + > +The Hi3660 clock controller generates and supplies clock to various > +controllers within the Hi3660 SoC. > + > +Required Properties: > + > +- compatible: the compatible should be one of the following strings to > + indicate the clock controller functionality. > + > + - "hisilicon,hi3660-crgctrl" > + - "hisilicon,hi3660-pctrl" > + - "hisilicon,hi3660-pmuctrl" > + - "hisilicon,hi3660-sctrl" > + - "hisilicon,hi3660-iomcu" > + > +- 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 use this identifier > +to specify the clock which they consume. > + > +All these identifier could be found in . > + > +Examples: > + crg_ctrl: crg_ctrl at fff35000 { clock-controller at ... > + compatible = "hisilicon,hi3660-crgctrl", "syscon"; > + reg = <0x0 0xfff35000 0x0 0x1000>; > + #clock-cells = <1>; > + }; > + > + uart0: uart at fdf02000 { serial at ... > + compatible = "arm,pl011", "arm,primecell"; > + reg = <0x0 0xfdf02000 0x0 0x1000>; > + interrupts = ; > + clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>, > + <&crg_ctrl HI3660_PCLK>; > + clock-names = "uartclk", "apb_pclk"; > + status = "disabled"; > + }; > -- > 2.7.4 >