xref: /linux/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt (revision 7255fcc80d4b525cc10cfaaf7f485830d4ed2000)
1Binding for TI fixed factor rate clock sources.
2
3This binding uses the common clock binding[1], and also uses the autoidle
4support from TI autoidle clock [2].
5
6[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
7[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
8
9Required properties:
10- compatible : shall be "ti,fixed-factor-clock".
11- #clock-cells : from common clock binding; shall be set to 0.
12- ti,clock-div: fixed divider.
13- ti,clock-mult: fixed multiplier.
14- clocks: parent clock.
15
16Optional properties:
17- clock-output-names : from common clock binding.
18- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
19  see [2]
20- reg: offset for the autoidle register of this clock, see [2]
21- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
22- ti,set-rate-parent: clk_set_rate is propagated to parent
23
24Example:
25	clock {
26		compatible = "ti,fixed-factor-clock";
27		clocks = <&parentclk>;
28		#clock-cells = <0>;
29		ti,clock-div = <2>;
30		ti,clock-mult = <1>;
31	};
32
33	dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
34		#clock-cells = <0>;
35		compatible = "ti,fixed-factor-clock";
36		clocks = <&dpll_usb_ck>;
37		ti,clock-div = <1>;
38		ti,autoidle-shift = <8>;
39		reg = <0x01b4>;
40		ti,clock-mult = <1>;
41		ti,invert-autoidle-bit;
42	};
43