1*c66ec88fSEmmanuel VadotQualcomm Technologies, Inc. SPMI PMIC clock divider (clkdiv) 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel Vadotclkdiv configures the clock frequency of a set of outputs on the PMIC. 4*c66ec88fSEmmanuel VadotThese clocks are typically wired through alternate functions on 5*c66ec88fSEmmanuel Vadotgpio pins. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadot======================= 8*c66ec88fSEmmanuel VadotProperties 9*c66ec88fSEmmanuel Vadot======================= 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel Vadot- compatible 12*c66ec88fSEmmanuel Vadot Usage: required 13*c66ec88fSEmmanuel Vadot Value type: <string> 14*c66ec88fSEmmanuel Vadot Definition: must be "qcom,spmi-clkdiv". 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel Vadot- reg 17*c66ec88fSEmmanuel Vadot Usage: required 18*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 19*c66ec88fSEmmanuel Vadot Definition: base address of CLKDIV peripherals. 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadot- qcom,num-clkdivs 22*c66ec88fSEmmanuel Vadot Usage: required 23*c66ec88fSEmmanuel Vadot Value type: <u32> 24*c66ec88fSEmmanuel Vadot Definition: number of CLKDIV peripherals. 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot- clocks: 27*c66ec88fSEmmanuel Vadot Usage: required 28*c66ec88fSEmmanuel Vadot Value type: <prop-encoded-array> 29*c66ec88fSEmmanuel Vadot Definition: reference to the xo clock. 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot- clock-names: 32*c66ec88fSEmmanuel Vadot Usage: required 33*c66ec88fSEmmanuel Vadot Value type: <stringlist> 34*c66ec88fSEmmanuel Vadot Definition: must be "xo". 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel Vadot- #clock-cells: 37*c66ec88fSEmmanuel Vadot Usage: required 38*c66ec88fSEmmanuel Vadot Value type: <u32> 39*c66ec88fSEmmanuel Vadot Definition: shall contain 1. 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadot======= 42*c66ec88fSEmmanuel VadotExample 43*c66ec88fSEmmanuel Vadot======= 44*c66ec88fSEmmanuel Vadot 45*c66ec88fSEmmanuel Vadotpm8998_clk_divs: clock-controller@5b00 { 46*c66ec88fSEmmanuel Vadot compatible = "qcom,spmi-clkdiv"; 47*c66ec88fSEmmanuel Vadot reg = <0x5b00>; 48*c66ec88fSEmmanuel Vadot #clock-cells = <1>; 49*c66ec88fSEmmanuel Vadot qcom,num-clkdivs = <3>; 50*c66ec88fSEmmanuel Vadot clocks = <&xo_board>; 51*c66ec88fSEmmanuel Vadot clock-names = "xo"; 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot assigned-clocks = <&pm8998_clk_divs 1>, 54*c66ec88fSEmmanuel Vadot <&pm8998_clk_divs 2>, 55*c66ec88fSEmmanuel Vadot <&pm8998_clk_divs 3>; 56*c66ec88fSEmmanuel Vadot assigned-clock-rates = <9600000>, 57*c66ec88fSEmmanuel Vadot <9600000>, 58*c66ec88fSEmmanuel Vadot <9600000>; 59*c66ec88fSEmmanuel Vadot}; 60