From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754529AbcKISbZ (ORCPT ); Wed, 9 Nov 2016 13:31:25 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:36244 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754283AbcKISYr (ORCPT ); Wed, 9 Nov 2016 13:24:47 -0500 Date: Wed, 9 Nov 2016 12:24:40 -0600 From: Rob Herring To: Georgi Djakov Cc: sboyd@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v7 3/3] clk: qcom: Add A53 clock driver Message-ID: <20161109182440.hjiv725vpsh5dctd@rob-hp-laptop> References: <20161031145526.5023-1-georgi.djakov@linaro.org> <20161031145526.5023-4-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161031145526.5023-4-georgi.djakov@linaro.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 Mon, Oct 31, 2016 at 04:55:26PM +0200, Georgi Djakov wrote: > Add a driver for the A53 Clock Controller. It is a hardware block that > implements a combined mux and half integer divider functionality. It can > choose between a fixed-rate clock or the dedicated A53 PLL. The source > and the divider can be set both at the same time. > > This is required for enabling CPU frequency scaling on platforms like > MSM8916. > > Signed-off-by: Georgi Djakov > --- > .../devicetree/bindings/clock/qcom,a53cc.txt | 23 ++++ > drivers/clk/qcom/Kconfig | 8 ++ > drivers/clk/qcom/Makefile | 1 + > drivers/clk/qcom/a53cc.c | 152 +++++++++++++++++++++ > 4 files changed, 184 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,a53cc.txt > create mode 100644 drivers/clk/qcom/a53cc.c > > diff --git a/Documentation/devicetree/bindings/clock/qcom,a53cc.txt b/Documentation/devicetree/bindings/clock/qcom,a53cc.txt > new file mode 100644 > index 000000000000..82d1634a2713 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/qcom,a53cc.txt > @@ -0,0 +1,23 @@ > +Qualcomm A53 CPU Clock Controller Binding > +------------------------------------------------ > +The A53 CPU Clock Controller is hardware, which provides a combined > +mux and divider functionality for the CPU clocks. It can choose between > +a fixed rate clock and the dedicated A53 PLL. This hardware block is used > +on platforms such as msm8916. > + > +Required properties : > +- compatible : shall contain: > + > + "qcom,a53cc-msm8916" Same comment on the ordering. With that, for the binding: Acked-by: Rob Herring > + > +- reg : shall contain base register location and length > + of the APCS region > +- #clock-cells : shall contain 1 > + > +Example: > + > + apcs: syscon@b011000 { > + compatible = "qcom,a53cc-msm8916"; > + reg = <0x0b011000 0x1000>; > + #clock-cells = <1>; > + };