[PATCH 3/4] clk: add DT clock binding support

From
Shawn Guo <hidden>
Date
2012-04-10 02:18:39
Also in
linux-devicetree, lkml
Reply to
Rob Herring, 2012-04-09
On Mon, Apr 09, 2012 at 03:25:00PM -0500, Rob Herring wrote:
...
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/fixed-clock.txt
@@ -0,0 +1,22 @@
+Binding for simple fixed-rate clock sources.
+
+This binding uses the common clock binding[1].
+
+[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+Required properties:
+- compatible : shall be "fixed-clock".
+- #clock-cells : from common clock binding; shall be set to 0.
+- clock-frequency : frequency of clock in Hz. Should be a single cell.
						 ^^^^^^^^^^^^^^^^^^^^^^^
quoted hunk ↗ jump to hunk
+
+Optional properties:
+- gpios : From common gpio binding; gpio connection to clock enable pin.
I haven't seen this support in the code yet.
+- clock-output-names : From common clock binding. Required for nodes with
+  multiple outputs.
This seems inconsistent with above "Should be a single cell."

Regards,
Shawn
quoted hunk ↗ jump to hunk
+
+Example:
+	clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <1000000000>;
+	};
Thread (16 messages) 16 messages, 5 authors, last reply 2012-05-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help