* [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation [not found] <1395402220-23503-1-git-send-email-alexandre.belloni@free-electrons.com> @ 2014-03-21 11:43 ` Alexandre Belloni 2014-03-21 11:53 ` Mark Rutland 2014-03-21 12:16 ` Sebastian Hesselbarth 0 siblings, 2 replies; 5+ messages in thread From: Alexandre Belloni @ 2014-03-21 11:43 UTC (permalink / raw) To: Sebastian Hesselbarth, Mike Turquette Cc: devicetree, linux-doc, Antoine Ténart, linux-kernel, Alexandre Belloni, linux-arm-kernel Cc: devicetree@vger.kernel.org Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- .../devicetree/bindings/clock/berlin-clock.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/berlin-clock.txt diff --git a/Documentation/devicetree/bindings/clock/berlin-clock.txt b/Documentation/devicetree/bindings/clock/berlin-clock.txt new file mode 100644 index 000000000000..ebc78f9b93a9 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/berlin-clock.txt @@ -0,0 +1,29 @@ +Device Tree Clock bindings for Marvell Berlin clocks + +This binding uses the common clock binding[1]. + +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible : shall be one of the following: + "marvell,berlin2-pll" or + "marvell,berlin2q-pll": + CPU PLL and System PLL +- reg : Address and length of the clock register set. +- #clock-cells : from common clock binding; shall be set to 0. +- clocks : shall be the input parent clock phandle for the clock. + +smclk: sysmgr-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; +}; + +cpupll: cpupll { + compatible = "marvell,berlin2-pll"; + clocks = <&smclk>; + #clock-cells = <0>; + reg = <0xf7ea003c 8>; +}; + + -- 1.8.3.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation 2014-03-21 11:43 ` [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation Alexandre Belloni @ 2014-03-21 11:53 ` Mark Rutland 2014-03-21 12:16 ` Sebastian Hesselbarth 1 sibling, 0 replies; 5+ messages in thread From: Mark Rutland @ 2014-03-21 11:53 UTC (permalink / raw) To: Alexandre Belloni Cc: Sebastian Hesselbarth, Mike Turquette, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Antoine Ténart, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Fri, Mar 21, 2014 at 11:43:37AM +0000, Alexandre Belloni wrote: > Cc: devicetree@vger.kernel.org > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> > --- > .../devicetree/bindings/clock/berlin-clock.txt | 29 ++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/berlin-clock.txt > > diff --git a/Documentation/devicetree/bindings/clock/berlin-clock.txt b/Documentation/devicetree/bindings/clock/berlin-clock.txt > new file mode 100644 > index 000000000000..ebc78f9b93a9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/berlin-clock.txt > @@ -0,0 +1,29 @@ > +Device Tree Clock bindings for Marvell Berlin clocks > + > +This binding uses the common clock binding[1]. > + > +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt > + > +Required properties: > +- compatible : shall be one of the following: > + "marvell,berlin2-pll" or > + "marvell,berlin2q-pll": > + CPU PLL and System PLL > +- reg : Address and length of the clock register set. > +- #clock-cells : from common clock binding; shall be set to 0. > +- clocks : shall be the input parent clock phandle for the clock. Nit: clocks aren't just phandles. Either define the full type (phandle + clock-specifier pair), or don't define the type at all given it's a standard property. Otherwise this looks fine to me. Cheers, Mark. > + > +smclk: sysmgr-clock { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <25000000>; > +}; > + > +cpupll: cpupll { > + compatible = "marvell,berlin2-pll"; > + clocks = <&smclk>; > + #clock-cells = <0>; > + reg = <0xf7ea003c 8>; > +}; > + > + > -- > 1.8.3.2 > > > _______________________________________________ > 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
* Re: [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation 2014-03-21 11:43 ` [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation Alexandre Belloni 2014-03-21 11:53 ` Mark Rutland @ 2014-03-21 12:16 ` Sebastian Hesselbarth 1 sibling, 0 replies; 5+ messages in thread From: Sebastian Hesselbarth @ 2014-03-21 12:16 UTC (permalink / raw) To: Alexandre Belloni, Mike Turquette Cc: linux-doc, linux-kernel, linux-arm-kernel, Antoine Ténart, devicetree On 03/21/2014 12:43 PM, Alexandre Belloni wrote: > Cc: devicetree@vger.kernel.org > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> > --- > .../devicetree/bindings/clock/berlin-clock.txt | 29 ++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/berlin-clock.txt > > diff --git a/Documentation/devicetree/bindings/clock/berlin-clock.txt b/Documentation/devicetree/bindings/clock/berlin-clock.txt > new file mode 100644 > index 000000000000..ebc78f9b93a9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/berlin-clock.txt > @@ -0,0 +1,29 @@ > +Device Tree Clock bindings for Marvell Berlin clocks > + > +This binding uses the common clock binding[1]. > + > +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt > + > +Required properties: > +- compatible : shall be one of the following: > + "marvell,berlin2-pll" or nit: just use a comma instead of "or" otherwise that "or" will be pushed to the new last compatible every time we add a compatible. > + "marvell,berlin2q-pll": > + CPU PLL and System PLL > +- reg : Address and length of the clock register set. > +- #clock-cells : from common clock binding; shall be set to 0. > +- clocks : shall be the input parent clock phandle for the clock. > + > +smclk: sysmgr-clock { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <25000000>; > +}; > + > +cpupll: cpupll { Reminder: Should receive an update when you change the corresponding nodes to cpupll: pll@foo > + compatible = "marvell,berlin2-pll"; > + clocks = <&smclk>; > + #clock-cells = <0>; > + reg = <0xf7ea003c 8>; > +}; > + > + > ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <1398261667-12621-1-git-send-email-alexandre.belloni@free-electrons.com>]
* [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation [not found] <1398261667-12621-1-git-send-email-alexandre.belloni@free-electrons.com> @ 2014-04-23 14:01 ` Alexandre Belloni 2014-04-23 17:21 ` Sebastian Hesselbarth 0 siblings, 1 reply; 5+ messages in thread From: Alexandre Belloni @ 2014-04-23 14:01 UTC (permalink / raw) To: Mike Turquette Cc: Sebastian Hesselbarth, linux-arm-kernel, linux-kernel, Alexandre Belloni, devicetree Document the newly added berlin clock driver Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> --- Cc: devicetree@vger.kernel.org Documentation/devicetree/bindings/clock/berlin-clock.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/berlin-clock.txt b/Documentation/devicetree/bindings/clock/berlin-clock.txt index 49b7860bffb8..00f0053ef587 100644 --- a/Documentation/devicetree/bindings/clock/berlin-clock.txt +++ b/Documentation/devicetree/bindings/clock/berlin-clock.txt @@ -9,6 +9,8 @@ Required properties: "marvell,berlin2-pll", "marvell,berlin2q-pll": CPU PLL and System PLL + "marvell,berlin2-clk": + simple clocks - reg: Address and length of the clock register set. - #clock-cells: from common clock binding; shall be set to 0. - clocks: from common clock binding @@ -26,4 +28,9 @@ cpupll: cpupll@ea003c { reg = <0xea003c 0x8>; }; - +sdio0xinclk: sdio0xinclk@ea023c { + compatible = "marvell,berlin-clk"; + clocks = <&syspll>; + #clock-cells = <0>; + reg = <0xea023c 4>; +}; -- 1.9.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation 2014-04-23 14:01 ` Alexandre Belloni @ 2014-04-23 17:21 ` Sebastian Hesselbarth 0 siblings, 0 replies; 5+ messages in thread From: Sebastian Hesselbarth @ 2014-04-23 17:21 UTC (permalink / raw) To: Alexandre Belloni, Mike Turquette Cc: linux-arm-kernel, linux-kernel, devicetree On 04/23/2014 04:01 PM, Alexandre Belloni wrote: > Document the newly added berlin clock driver > > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> > --- > Cc: devicetree@vger.kernel.org > Documentation/devicetree/bindings/clock/berlin-clock.txt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/clock/berlin-clock.txt b/Documentation/devicetree/bindings/clock/berlin-clock.txt > index 49b7860bffb8..00f0053ef587 100644 > --- a/Documentation/devicetree/bindings/clock/berlin-clock.txt > +++ b/Documentation/devicetree/bindings/clock/berlin-clock.txt > @@ -9,6 +9,8 @@ Required properties: > "marvell,berlin2-pll", > "marvell,berlin2q-pll": > CPU PLL and System PLL > + "marvell,berlin2-clk": > + simple clocks > - reg: Address and length of the clock register set. > - #clock-cells: from common clock binding; shall be set to 0. > - clocks: from common clock binding > @@ -26,4 +28,9 @@ cpupll: cpupll@ea003c { > reg = <0xea003c 0x8>; > }; > > - > +sdio0xinclk: sdio0xinclk@ea023c { Yuck! ;) Can't we just simply use "clock@<addr>" for the node name and have the driver compute the name like simple-bus does? Sebastian > + compatible = "marvell,berlin-clk"; > + clocks = <&syspll>; > + #clock-cells = <0>; > + reg = <0xea023c 4>; > +}; > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-04-23 17:21 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1395402220-23503-1-git-send-email-alexandre.belloni@free-electrons.com> 2014-03-21 11:43 ` [PATCH 2/5] clk: berlin: add berlin clocks DT bindings documentation Alexandre Belloni 2014-03-21 11:53 ` Mark Rutland 2014-03-21 12:16 ` Sebastian Hesselbarth [not found] <1398261667-12621-1-git-send-email-alexandre.belloni@free-electrons.com> 2014-04-23 14:01 ` Alexandre Belloni 2014-04-23 17:21 ` Sebastian Hesselbarth
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).