1 Binding for TI divider clock
3 Binding status: Unstable - ABI compatibility may be broken in the future
5 This binding uses the common clock binding[1]. It assumes a
6 register-mapped adjustable clock rate divider that does not gate and has
7 only one input clock or parent. By default the value programmed into
8 the register is one less than the actual divisor value. E.g:
10 register value actual divisor value
15 This assumption may be modified by the following optional properties:
17 ti,index-starts-at-one - valid divisor values start at 1, not the default
19 register value actual divisor value
24 ti,index-power-of-two - valid divisor values are powers of two. E.g:
25 register value actual divisor value
30 Additionally an array of valid dividers may be supplied like so:
32 ti,dividers = <4>, <8>, <0>, <16>;
34 Which will map the resulting values to a divisor table by their index:
35 register value actual divisor value
38 2 <invalid divisor, skipped>
41 Any zero value in this array means the corresponding bit-value is invalid
44 The binding must also provide the register to control the divider and
45 unless the divider array is provided, min and max dividers. Optionally
46 the number of bits to shift that mask, if necessary. If the shift value
47 is missing it is the same as supplying a zero shift.
49 This binding can also optionally provide support to the hardware autoidle
52 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
53 [2] Documentation/devicetree/bindings/clock/ti/autoidle.txt
56 - compatible : shall be "ti,divider-clock" or "ti,composite-divider-clock".
57 - #clock-cells : from common clock binding; shall be set to 0.
58 - clocks : link to phandle of parent clock
59 - reg : offset for register controlling adjustable divider
62 - clock-output-names : from common clock binding.
63 - ti,dividers : array of integers defining divisors
64 - ti,bit-shift : number of bits to shift the divider value, defaults to 0
65 - ti,min-div : min divisor for dividing the input clock rate, only
66 needed if the first divisor is offset from the default value (1)
67 - ti,max-div : max divisor for dividing the input clock rate, only needed
68 if ti,dividers is not defined.
69 - ti,index-starts-at-one : valid divisor programming starts at 1, not zero,
70 only valid if ti,dividers is not defined.
71 - ti,index-power-of-two : valid divisor programming must be a power of two,
72 only valid if ti,dividers is not defined.
73 - ti,autoidle-shift : bit shift of the autoidle enable bit for the clock,
75 - ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0,
77 - ti,set-rate-parent : clk_set_rate is propagated to parent
80 dpll_usb_m2_ck: dpll_usb_m2_ck@4a008190 {
82 compatible = "ti,divider-clock";
83 clocks = <&dpll_usb_ck>;
86 ti,index-starts-at-one;
89 aess_fclk: aess_fclk@4a004528 {
91 compatible = "ti,divider-clock";
98 dpll_core_m3x2_div_ck: dpll_core_m3x2_div_ck {
100 compatible = "ti,composite-divider-clock";
101 clocks = <&dpll_core_x2_ck>;
104 ti,index-starts-at-one;
107 ssi_ssr_div_fck_3430es2: ssi_ssr_div_fck_3430es2 {
109 compatible = "ti,composite-divider-clock";
110 clocks = <&corex2_fck>;
113 ti,dividers = <0>, <1>, <2>, <3>, <4>, <0>, <6>, <0>, <8>;