summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
diff options
context:
space:
mode:
authorJyri Sarha2014-09-05 14:21:34 +0200
committerMike Turquette2014-09-27 01:51:42 +0200
commitc873d14d30b838a516a94967242322d4b73e79e7 (patch)
tree2f9768c73c55c7667b93bca59eefb6dfd5af1f81 /Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
parentMerge tag 'qcom-clocks-for-3.18' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadkernel-qcow2-linux-c873d14d30b838a516a94967242322d4b73e79e7.tar.gz
kernel-qcow2-linux-c873d14d30b838a516a94967242322d4b73e79e7.tar.xz
kernel-qcow2-linux-c873d14d30b838a516a94967242322d4b73e79e7.zip
clk: add gpio gated clock
The added gpio-gate-clock is a basic clock that can be enabled and disabled trough a gpio output. The DT binding document for the clock is also added. For EPROBE_DEFER handling the registering of the clock has to be delayed until of_clk_get() call time. Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/clock/gpio-gate-clock.txt')
-rw-r--r--Documentation/devicetree/bindings/clock/gpio-gate-clock.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/gpio-gate-clock.txt b/Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
new file mode 100644
index 000000000000..d3379ff9b84b
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/gpio-gate-clock.txt
@@ -0,0 +1,21 @@
+Binding for simple gpio gated clock.
+
+This binding uses the common clock binding[1].
+
+[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+Required properties:
+- compatible : shall be "gpio-gate-clock".
+- #clock-cells : from common clock binding; shall be set to 0.
+- enable-gpios : GPIO reference for enabling and disabling the clock.
+
+Optional properties:
+- clocks: Maximum of one parent clock is supported.
+
+Example:
+ clock {
+ compatible = "gpio-gate-clock";
+ clocks = <&parentclk>;
+ #clock-cells = <0>;
+ enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+ };