xref: /linux/Documentation/devicetree/bindings/clock/ti/autoidle.txt (revision 9b61b2069681b60d0d0bedbd0fe3c70123dddb19)
1*b1a07b47STero KristoBinding for Texas Instruments autoidle clock.
2*b1a07b47STero Kristo
3*b1a07b47STero KristoThis binding uses the common clock binding[1]. It assumes a register mapped
4*b1a07b47STero Kristoclock which can be put to idle automatically by hardware based on the usage
5*b1a07b47STero Kristoand a configuration bit setting. Autoidle clock is never an individual
6*b1a07b47STero Kristoclock, it is always a derivative of some basic clock like a gate, divider,
7*b1a07b47STero Kristoor fixed-factor.
8*b1a07b47STero Kristo
9*b1a07b47STero Kristo[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
10*b1a07b47STero Kristo
11*b1a07b47STero KristoRequired properties:
12*b1a07b47STero Kristo- reg : offset for the register controlling the autoidle
13*b1a07b47STero Kristo- ti,autoidle-shift : bit shift of the autoidle enable bit
14*b1a07b47STero Kristo- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0
15*b1a07b47STero Kristo
16*b1a07b47STero KristoExamples:
17*b1a07b47STero Kristo	dpll_core_m4_ck: dpll_core_m4_ck {
18*b1a07b47STero Kristo		#clock-cells = <0>;
19*b1a07b47STero Kristo		compatible = "ti,divider-clock";
20*b1a07b47STero Kristo		clocks = <&dpll_core_x2_ck>;
21*b1a07b47STero Kristo		ti,max-div = <31>;
22*b1a07b47STero Kristo		ti,autoidle-shift = <8>;
23*b1a07b47STero Kristo		reg = <0x2d38>;
24*b1a07b47STero Kristo		ti,index-starts-at-one;
25*b1a07b47STero Kristo		ti,invert-autoidle-bit;
26*b1a07b47STero Kristo	};
27*b1a07b47STero Kristo
28*b1a07b47STero Kristo	dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
29*b1a07b47STero Kristo		#clock-cells = <0>;
30*b1a07b47STero Kristo		compatible = "ti,fixed-factor-clock";
31*b1a07b47STero Kristo		clocks = <&dpll_usb_ck>;
32*b1a07b47STero Kristo		ti,clock-div = <1>;
33*b1a07b47STero Kristo		ti,autoidle-shift = <8>;
34*b1a07b47STero Kristo		reg = <0x01b4>;
35*b1a07b47STero Kristo		ti,clock-mult = <1>;
36*b1a07b47STero Kristo		ti,invert-autoidle-bit;
37*b1a07b47STero Kristo	};
38