xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/gpio-gate-clock.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for simple gpio gated clock.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis binding uses the common clock binding[1].
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired properties:
8*4882a593Smuzhiyun- compatible : shall be "gpio-gate-clock".
9*4882a593Smuzhiyun- #clock-cells : from common clock binding; shall be set to 0.
10*4882a593Smuzhiyun- enable-gpios : GPIO reference for enabling and disabling the clock.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional properties:
13*4882a593Smuzhiyun- clocks: Maximum of one parent clock is supported.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunExample:
16*4882a593Smuzhiyun	clock {
17*4882a593Smuzhiyun		compatible = "gpio-gate-clock";
18*4882a593Smuzhiyun		clocks = <&parentclk>;
19*4882a593Smuzhiyun		#clock-cells = <0>;
20*4882a593Smuzhiyun		enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
21*4882a593Smuzhiyun	};
22