18c2ecf20Sopenharmony_ciBinding for Texas Instruments autoidle clock.
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciBinding status: Unstable - ABI compatibility may be broken in the future
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciThis binding uses the common clock binding[1]. It assumes a register mapped
68c2ecf20Sopenharmony_ciclock which can be put to idle automatically by hardware based on the usage
78c2ecf20Sopenharmony_ciand a configuration bit setting. Autoidle clock is never an individual
88c2ecf20Sopenharmony_ciclock, it is always a derivative of some basic clock like a gate, divider,
98c2ecf20Sopenharmony_cior fixed-factor.
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciRequired properties:
148c2ecf20Sopenharmony_ci- reg : offset for the register controlling the autoidle
158c2ecf20Sopenharmony_ci- ti,autoidle-shift : bit shift of the autoidle enable bit
168c2ecf20Sopenharmony_ci- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciExamples:
198c2ecf20Sopenharmony_ci	dpll_core_m4_ck: dpll_core_m4_ck {
208c2ecf20Sopenharmony_ci		#clock-cells = <0>;
218c2ecf20Sopenharmony_ci		compatible = "ti,divider-clock";
228c2ecf20Sopenharmony_ci		clocks = <&dpll_core_x2_ck>;
238c2ecf20Sopenharmony_ci		ti,max-div = <31>;
248c2ecf20Sopenharmony_ci		ti,autoidle-shift = <8>;
258c2ecf20Sopenharmony_ci		reg = <0x2d38>;
268c2ecf20Sopenharmony_ci		ti,index-starts-at-one;
278c2ecf20Sopenharmony_ci		ti,invert-autoidle-bit;
288c2ecf20Sopenharmony_ci	};
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci	dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
318c2ecf20Sopenharmony_ci		#clock-cells = <0>;
328c2ecf20Sopenharmony_ci		compatible = "ti,fixed-factor-clock";
338c2ecf20Sopenharmony_ci		clocks = <&dpll_usb_ck>;
348c2ecf20Sopenharmony_ci		ti,clock-div = <1>;
358c2ecf20Sopenharmony_ci		ti,autoidle-shift = <8>;
368c2ecf20Sopenharmony_ci		reg = <0x01b4>;
378c2ecf20Sopenharmony_ci		ti,clock-mult = <1>;
388c2ecf20Sopenharmony_ci		ti,invert-autoidle-bit;
398c2ecf20Sopenharmony_ci	};
40