clk: Two-output clk provider with standard clk consumer
Mason
slash.tmp at free.fr
Mon Oct 19 07:20:51 EDT 2015
On 13/10/2015 14:30, Mason wrote:
> So the device tree would look like this:
>
> clocks {
> ranges;
> #address-cells = <1>;
> #size-cells = <1>;
>
> xtal: xtal {
> compatible = "fixed-clock";
> clock-frequency = <27000000>;
> #clock-cells = <0>;
> };
>
> clkgen: clkgen at 10000 {
> compatible = "foo,clkgen";
> reg = <0x10000 0x30>;
> clocks = <&xtal>;
> #clock-cells = <1>;
Missing clock-output-names property here.
> };
>
> periphclk: periphclk {
> compatible = "fixed-factor-clock";
> clocks = <&clkgen 0>;
> clock-mult = <1>;
> clock-div = <2>;
> #clock-cells = <0>;
> };
> };
Sorry for the noise.
More information about the Kernelnewbies
mailing list