From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751867AbdA0VtS (ORCPT ); Fri, 27 Jan 2017 16:49:18 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35382 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbdA0VtJ (ORCPT ); Fri, 27 Jan 2017 16:49:09 -0500 Date: Fri, 27 Jan 2017 15:15:59 -0600 From: Rob Herring To: Chen-Yu Tsai Cc: Maxime Ripard , Mark Rutland , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH 06/11] clk: sunxi-ng: Add A80 USB CCU Message-ID: <20170127211559.ztsauntipyiheopu@rob-hp-laptop> References: <20170124023230.3990-1-wens@csie.org> <20170124023230.3990-7-wens@csie.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170124023230.3990-7-wens@csie.org> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 24, 2017 at 10:32:25AM +0800, Chen-Yu Tsai wrote: > Add support for the USB clock controls found on the A80. > > Signed-off-by: Chen-Yu Tsai > --- > .../devicetree/bindings/clock/sun9i-usb.txt | 24 ++++ > drivers/clk/sunxi-ng/Makefile | 1 + > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c | 144 +++++++++++++++++++++ > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h | 25 ++++ > include/dt-bindings/clock/sun9i-a80-usb.h | 59 +++++++++ > include/dt-bindings/reset/sun9i-a80-usb.h | 56 ++++++++ > 6 files changed, 309 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sun9i-usb.txt > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h > create mode 100644 include/dt-bindings/clock/sun9i-a80-usb.h > create mode 100644 include/dt-bindings/reset/sun9i-a80-usb.h > > diff --git a/Documentation/devicetree/bindings/clock/sun9i-usb.txt b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > new file mode 100644 > index 000000000000..c2d38626eaaa > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > @@ -0,0 +1,24 @@ > +Allwinner A80 USB Clock Control Binding > +------------------------------------ > + > +Required properties : > +- compatible: must contain one of the following compatibles: > + - "allwinner,sun9i-a80-usb-clocks" > + > +- reg: Must contain the registers base address and length > +- clocks: phandle to the clocks feeding the USB subsystem. Two are needed: > + - "bus": the bus clock for the whole USB subsystem > + - "hosc": the high frequency oscillator (usually at 24MHz) > +- clock-names: Must contain the clock names described just above > +- #clock-cells : must contain 1 > +- #reset-cells : must contain 1 > + > +Example: > +usb_clocks: clock@00a08000 { Drop leading 0s. With that, for the binding: Acked-by: Rob Herring > + compatible = "allwinner,sun9i-a80-usb-clks"; > + reg = <0x00a08000 0x8>; > + clocks = <&ccu CLK_BUS_USB>, <&osc24M>; > + clock-names = "bus", "hosc"; > + #clock-cells = <1>; > + #reset-cells = <1>; > +}; From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH 06/11] clk: sunxi-ng: Add A80 USB CCU Date: Fri, 27 Jan 2017 15:15:59 -0600 Message-ID: <20170127211559.ztsauntipyiheopu@rob-hp-laptop> References: <20170124023230.3990-1-wens@csie.org> <20170124023230.3990-7-wens@csie.org> Reply-To: robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20170124023230.3990-7-wens-jdAy2FN1RRM@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Chen-Yu Tsai Cc: Maxime Ripard , Mark Rutland , Michael Turquette , Stephen Boyd , linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Jan 24, 2017 at 10:32:25AM +0800, Chen-Yu Tsai wrote: > Add support for the USB clock controls found on the A80. > > Signed-off-by: Chen-Yu Tsai > --- > .../devicetree/bindings/clock/sun9i-usb.txt | 24 ++++ > drivers/clk/sunxi-ng/Makefile | 1 + > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c | 144 +++++++++++++++++++++ > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h | 25 ++++ > include/dt-bindings/clock/sun9i-a80-usb.h | 59 +++++++++ > include/dt-bindings/reset/sun9i-a80-usb.h | 56 ++++++++ > 6 files changed, 309 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sun9i-usb.txt > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h > create mode 100644 include/dt-bindings/clock/sun9i-a80-usb.h > create mode 100644 include/dt-bindings/reset/sun9i-a80-usb.h > > diff --git a/Documentation/devicetree/bindings/clock/sun9i-usb.txt b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > new file mode 100644 > index 000000000000..c2d38626eaaa > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > @@ -0,0 +1,24 @@ > +Allwinner A80 USB Clock Control Binding > +------------------------------------ > + > +Required properties : > +- compatible: must contain one of the following compatibles: > + - "allwinner,sun9i-a80-usb-clocks" > + > +- reg: Must contain the registers base address and length > +- clocks: phandle to the clocks feeding the USB subsystem. Two are needed: > + - "bus": the bus clock for the whole USB subsystem > + - "hosc": the high frequency oscillator (usually at 24MHz) > +- clock-names: Must contain the clock names described just above > +- #clock-cells : must contain 1 > +- #reset-cells : must contain 1 > + > +Example: > +usb_clocks: clock@00a08000 { Drop leading 0s. With that, for the binding: Acked-by: Rob Herring > + compatible = "allwinner,sun9i-a80-usb-clks"; > + reg = <0x00a08000 0x8>; > + clocks = <&ccu CLK_BUS_USB>, <&osc24M>; > + clock-names = "bus", "hosc"; > + #clock-cells = <1>; > + #reset-cells = <1>; > +}; From mboxrd@z Thu Jan 1 00:00:00 1970 From: robh@kernel.org (Rob Herring) Date: Fri, 27 Jan 2017 15:15:59 -0600 Subject: [PATCH 06/11] clk: sunxi-ng: Add A80 USB CCU In-Reply-To: <20170124023230.3990-7-wens@csie.org> References: <20170124023230.3990-1-wens@csie.org> <20170124023230.3990-7-wens@csie.org> Message-ID: <20170127211559.ztsauntipyiheopu@rob-hp-laptop> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Jan 24, 2017 at 10:32:25AM +0800, Chen-Yu Tsai wrote: > Add support for the USB clock controls found on the A80. > > Signed-off-by: Chen-Yu Tsai > --- > .../devicetree/bindings/clock/sun9i-usb.txt | 24 ++++ > drivers/clk/sunxi-ng/Makefile | 1 + > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c | 144 +++++++++++++++++++++ > drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h | 25 ++++ > include/dt-bindings/clock/sun9i-a80-usb.h | 59 +++++++++ > include/dt-bindings/reset/sun9i-a80-usb.h | 56 ++++++++ > 6 files changed, 309 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sun9i-usb.txt > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.c > create mode 100644 drivers/clk/sunxi-ng/ccu-sun9i-a80-usb.h > create mode 100644 include/dt-bindings/clock/sun9i-a80-usb.h > create mode 100644 include/dt-bindings/reset/sun9i-a80-usb.h > > diff --git a/Documentation/devicetree/bindings/clock/sun9i-usb.txt b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > new file mode 100644 > index 000000000000..c2d38626eaaa > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sun9i-usb.txt > @@ -0,0 +1,24 @@ > +Allwinner A80 USB Clock Control Binding > +------------------------------------ > + > +Required properties : > +- compatible: must contain one of the following compatibles: > + - "allwinner,sun9i-a80-usb-clocks" > + > +- reg: Must contain the registers base address and length > +- clocks: phandle to the clocks feeding the USB subsystem. Two are needed: > + - "bus": the bus clock for the whole USB subsystem > + - "hosc": the high frequency oscillator (usually at 24MHz) > +- clock-names: Must contain the clock names described just above > +- #clock-cells : must contain 1 > +- #reset-cells : must contain 1 > + > +Example: > +usb_clocks: clock at 00a08000 { Drop leading 0s. With that, for the binding: Acked-by: Rob Herring > + compatible = "allwinner,sun9i-a80-usb-clks"; > + reg = <0x00a08000 0x8>; > + clocks = <&ccu CLK_BUS_USB>, <&osc24M>; > + clock-names = "bus", "hosc"; > + #clock-cells = <1>; > + #reset-cells = <1>; > +};