18c2ecf20Sopenharmony_ciBinding for TI fixed factor rate clock sources.
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], and also uses the autoidle
68c2ecf20Sopenharmony_cisupport from TI autoidle clock [2].
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
98c2ecf20Sopenharmony_ci[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciRequired properties:
128c2ecf20Sopenharmony_ci- compatible : shall be "ti,fixed-factor-clock".
138c2ecf20Sopenharmony_ci- #clock-cells : from common clock binding; shall be set to 0.
148c2ecf20Sopenharmony_ci- ti,clock-div: fixed divider.
158c2ecf20Sopenharmony_ci- ti,clock-mult: fixed multiplier.
168c2ecf20Sopenharmony_ci- clocks: parent clock.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciOptional properties:
198c2ecf20Sopenharmony_ci- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock,
208c2ecf20Sopenharmony_ci  see [2]
218c2ecf20Sopenharmony_ci- reg: offset for the autoidle register of this clock, see [2]
228c2ecf20Sopenharmony_ci- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see [2]
238c2ecf20Sopenharmony_ci- ti,set-rate-parent: clk_set_rate is propagated to parent
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci	clock {
278c2ecf20Sopenharmony_ci		compatible = "ti,fixed-factor-clock";
288c2ecf20Sopenharmony_ci		clocks = <&parentclk>;
298c2ecf20Sopenharmony_ci		#clock-cells = <0>;
308c2ecf20Sopenharmony_ci		ti,clock-div = <2>;
318c2ecf20Sopenharmony_ci		ti,clock-mult = <1>;
328c2ecf20Sopenharmony_ci	};
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck {
358c2ecf20Sopenharmony_ci		#clock-cells = <0>;
368c2ecf20Sopenharmony_ci		compatible = "ti,fixed-factor-clock";
378c2ecf20Sopenharmony_ci		clocks = <&dpll_usb_ck>;
388c2ecf20Sopenharmony_ci		ti,clock-div = <1>;
398c2ecf20Sopenharmony_ci		ti,autoidle-shift = <8>;
408c2ecf20Sopenharmony_ci		reg = <0x01b4>;
418c2ecf20Sopenharmony_ci		ti,clock-mult = <1>;
428c2ecf20Sopenharmony_ci		ti,invert-autoidle-bit;
438c2ecf20Sopenharmony_ci	};
44