* [PATCH 2/2] clk: clps711x: Add DT bindings documentation
@ 2014-06-01 9:55 Alexander Shiyan
[not found] ` <1401616522-13505-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Shiyan @ 2014-06-01 9:55 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Cc: Mike Turquette, Olof Johansson, Arnd Bergmann,
devicetree-u79uwXL29TY76Z2rM5mHXA, Alexander Shiyan
This patch adds DT binding documentation for the Cirrus Logic
CLPS711X-based CPUs clock subsystem.
Signed-off-by: Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org>
---
.../devicetree/bindings/clock/clps711x-clock.txt | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/clps711x-clock.txt
diff --git a/Documentation/devicetree/bindings/clock/clps711x-clock.txt b/Documentation/devicetree/bindings/clock/clps711x-clock.txt
new file mode 100644
index 0000000..0fdf3c9
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/clps711x-clock.txt
@@ -0,0 +1,19 @@
+* Clock bindings for the Cirrus Logic CLPS711X CPUs
+
+Required properties:
+- compatible : Shall contain "cirrus,clps711x-clk".
+- reg : Address of the internal register set.
+- cpufreq : Factory set default frequency in HZ.
+- #clock-cells: Should be <1>.
+
+The clock consumer should specify the desired clock by having the clock
+ID in its "clocks" phandle cell. See include/dt-bindings/clock/clps711x-clock.h
+for the full list of CLPS711X clock IDs.
+
+Example:
+ clks: clks@80000000 {
+ #clock-cells = <1>;
+ compatible = "cirrus,ep7312-clk", "cirrus,clps711x-clk";
+ reg = <0x80000000 0xc000>;
+ cpufreq = <73728000>;
+ };
--
1.8.5.5
--
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
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <1401616522-13505-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>]
* Re: [PATCH 2/2] clk: clps711x: Add DT bindings documentation [not found] ` <1401616522-13505-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org> @ 2014-06-02 8:56 ` Mark Rutland 2014-06-02 9:32 ` Alexander Shiyan 0 siblings, 1 reply; 5+ messages in thread From: Mark Rutland @ 2014-06-02 8:56 UTC (permalink / raw) To: Alexander Shiyan Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Mike Turquette, Olof Johansson, Arnd Bergmann, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Sun, Jun 01, 2014 at 10:55:22AM +0100, Alexander Shiyan wrote: > This patch adds DT binding documentation for the Cirrus Logic > CLPS711X-based CPUs clock subsystem. > > Signed-off-by: Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org> > --- > .../devicetree/bindings/clock/clps711x-clock.txt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/clps711x-clock.txt > > diff --git a/Documentation/devicetree/bindings/clock/clps711x-clock.txt b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > new file mode 100644 > index 0000000..0fdf3c9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > @@ -0,0 +1,19 @@ > +* Clock bindings for the Cirrus Logic CLPS711X CPUs > + > +Required properties: > +- compatible : Shall contain "cirrus,clps711x-clk". > +- reg : Address of the internal register set. > +- cpufreq : Factory set default frequency in HZ. Huh? Why is this called "cpufreq" what is this the frequency of, exactly? Is this an input or an output? Cheers, Mark. > +- #clock-cells: Should be <1>. > + > +The clock consumer should specify the desired clock by having the clock > +ID in its "clocks" phandle cell. See include/dt-bindings/clock/clps711x-clock.h > +for the full list of CLPS711X clock IDs. > + > +Example: > + clks: clks@80000000 { > + #clock-cells = <1>; > + compatible = "cirrus,ep7312-clk", "cirrus,clps711x-clk"; > + reg = <0x80000000 0xc000>; > + cpufreq = <73728000>; > + }; > -- > 1.8.5.5 > > -- > 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 > -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] clk: clps711x: Add DT bindings documentation 2014-06-02 8:56 ` Mark Rutland @ 2014-06-02 9:32 ` Alexander Shiyan [not found] ` <1401701568.132789498-34VbNj3NXoBsdVUOrk1QfQ@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Alexander Shiyan @ 2014-06-02 9:32 UTC (permalink / raw) To: Mark Rutland Cc: Olof Johansson, devicetree@vger.kernel.org, Mike Turquette, Arnd Bergmann, linux-arm-kernel@lists.infradead.org Mon, 2 Jun 2014 09:56:51 +0100 от Mark Rutland <mark.rutland@arm.com>: > On Sun, Jun 01, 2014 at 10:55:22AM +0100, Alexander Shiyan wrote: > > This patch adds DT binding documentation for the Cirrus Logic > > CLPS711X-based CPUs clock subsystem. > > > > Signed-off-by: Alexander Shiyan <shc_work@mail.ru> > > --- > > .../devicetree/bindings/clock/clps711x-clock.txt | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > > diff --git a/Documentation/devicetree/bindings/clock/clps711x-clock.txt b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > new file mode 100644 > > index 0000000..0fdf3c9 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > @@ -0,0 +1,19 @@ > > +* Clock bindings for the Cirrus Logic CLPS711X CPUs > > + > > +Required properties: > > +- compatible : Shall contain "cirrus,clps711x-clk". > > +- reg : Address of the internal register set. > > +- cpufreq : Factory set default frequency in HZ. > > Huh? Why is this called "cpufreq" what is this the frequency of, > exactly? > > Is this an input or an output? Modern CLPS711X CPUs support PLL reprogramming, while for older processors, this procedure is not possible and the CPU clock is set to a fixed value. Thus if the value of the PLL multiplier is not correct (missing), we use a fixed CPU frequency of the processor, described in DT, which allows us to use the driver for the new and old versions of this CPU. --- ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1401701568.132789498-34VbNj3NXoBsdVUOrk1QfQ@public.gmane.org>]
* Re: [PATCH 2/2] clk: clps711x: Add DT bindings documentation [not found] ` <1401701568.132789498-34VbNj3NXoBsdVUOrk1QfQ@public.gmane.org> @ 2014-06-02 10:42 ` Mark Rutland 2014-06-02 11:53 ` Alexander Shiyan 0 siblings, 1 reply; 5+ messages in thread From: Mark Rutland @ 2014-06-02 10:42 UTC (permalink / raw) To: Alexander Shiyan Cc: Olof Johansson, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Mike Turquette, Arnd Bergmann, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org On Mon, Jun 02, 2014 at 10:32:48AM +0100, Alexander Shiyan wrote: > Mon, 2 Jun 2014 09:56:51 +0100 от Mark Rutland <mark.rutland@arm.com>: > > On Sun, Jun 01, 2014 at 10:55:22AM +0100, Alexander Shiyan wrote: > > > This patch adds DT binding documentation for the Cirrus Logic > > > CLPS711X-based CPUs clock subsystem. > > > > > > Signed-off-by: Alexander Shiyan <shc_work-JGs/UdohzUI@public.gmane.org> > > > --- > > > .../devicetree/bindings/clock/clps711x-clock.txt | 19 +++++++++++++++++++ > > > 1 file changed, 19 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > > > > diff --git a/Documentation/devicetree/bindings/clock/clps711x-clock.txt b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > new file mode 100644 > > > index 0000000..0fdf3c9 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > @@ -0,0 +1,19 @@ > > > +* Clock bindings for the Cirrus Logic CLPS711X CPUs > > > + > > > +Required properties: > > > +- compatible : Shall contain "cirrus,clps711x-clk". > > > +- reg : Address of the internal register set. > > > +- cpufreq : Factory set default frequency in HZ. > > > > Huh? Why is this called "cpufreq" what is this the frequency of, > > exactly? > > > > Is this an input or an output? > > Modern CLPS711X CPUs support PLL reprogramming, while for older processors, > this procedure is not possible and the CPU clock is set to a fixed value. Thus if the > value of the PLL multiplier is not correct (missing), we use a fixed CPU frequency > of the processor, described in DT, which allows us to use the driver for the new and > old versions of this CPU. Ok. So this is the frequency of a (non-programmable) PLL which feeds the clock IP block? Or is this internal to the IP block? Typically we'd use "clock-frequency" as the name for such an input, or just model it as a normal clock input and feed it a fixed-rate-clock for the non-programmable case. Cheers, Mark. -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] clk: clps711x: Add DT bindings documentation 2014-06-02 10:42 ` Mark Rutland @ 2014-06-02 11:53 ` Alexander Shiyan 0 siblings, 0 replies; 5+ messages in thread From: Alexander Shiyan @ 2014-06-02 11:53 UTC (permalink / raw) To: Mark Rutland Cc: Olof Johansson, devicetree@vger.kernel.org, Mike Turquette, Arnd Bergmann, linux-arm-kernel@lists.infradead.org Mon, 2 Jun 2014 11:42:22 +0100 от Mark Rutland <mark.rutland@arm.com>: > On Mon, Jun 02, 2014 at 10:32:48AM +0100, Alexander Shiyan wrote: > > Mon, 2 Jun 2014 09:56:51 +0100 от Mark Rutland <mark.rutland@arm.com>: > > > On Sun, Jun 01, 2014 at 10:55:22AM +0100, Alexander Shiyan wrote: > > > > This patch adds DT binding documentation for the Cirrus Logic > > > > CLPS711X-based CPUs clock subsystem. > > > > > > > > Signed-off-by: Alexander Shiyan <shc_work@mail.ru> > > > > --- > > > > .../devicetree/bindings/clock/clps711x-clock.txt | 19 +++++++++++++++++++ > > > > 1 file changed, 19 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > > > > > > diff --git a/Documentation/devicetree/bindings/clock/clps711x-clock.txt b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > > new file mode 100644 > > > > index 0000000..0fdf3c9 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/clock/clps711x-clock.txt > > > > @@ -0,0 +1,19 @@ > > > > +* Clock bindings for the Cirrus Logic CLPS711X CPUs > > > > + > > > > +Required properties: > > > > +- compatible : Shall contain "cirrus,clps711x-clk". > > > > +- reg : Address of the internal register set. > > > > +- cpufreq : Factory set default frequency in HZ. > > > > > > Huh? Why is this called "cpufreq" what is this the frequency of, > > > exactly? > > > > > > Is this an input or an output? > > > > Modern CLPS711X CPUs support PLL reprogramming, while for older processors, > > this procedure is not possible and the CPU clock is set to a fixed value. Thus if the > > value of the PLL multiplier is not correct (missing), we use a fixed CPU frequency > > of the processor, described in DT, which allows us to use the driver for the new and > > old versions of this CPU. > > Ok. So this is the frequency of a (non-programmable) PLL which feeds the > clock IP block? > > Or is this internal to the IP block? To be precise, it is the frequency at the CPU startup. After starting the bootloader can change the value of PLL (of course, if this is supported) and processor speed will changed. For CPUs that do not support changing the PLL, this value is the only one possible. > Typically we'd use "clock-frequency" as the name for such an input, or > just model it as a normal clock input and feed it a fixed-rate-clock for > the non-programmable case. I would prefer to use the name "startup-frequency" or so. "clock-frequency" means that we use this frequency exactly, but it's not as if the PLL has to be reprogrammed by the bootloader. The use of "fixed-rate-clock" here for me is not correct, because the real generator used by the processor (old and new), uses the frequency 3.6864M and simply multiply it by the PLL value. --- _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-02 11:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-01 9:55 [PATCH 2/2] clk: clps711x: Add DT bindings documentation Alexander Shiyan
[not found] ` <1401616522-13505-1-git-send-email-shc_work-JGs/UdohzUI@public.gmane.org>
2014-06-02 8:56 ` Mark Rutland
2014-06-02 9:32 ` Alexander Shiyan
[not found] ` <1401701568.132789498-34VbNj3NXoBsdVUOrk1QfQ@public.gmane.org>
2014-06-02 10:42 ` Mark Rutland
2014-06-02 11:53 ` Alexander Shiyan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).