On 15/10/2015 17:52, Marc Gonzalez wrote:

> Provide support for Sigma Designs Tango4 (ARM-based) clock generator.
> NOTE: This driver is INCOMPATIBLE with Tango3 clkgen.
> 
> Signed-off-by: Marc Gonzalez <[email protected]>
> ---
> Changes in v2:
> Provide missing includes
> Use masks instead of bit-fields :-(
> Error handling
> Style nits
> Model the clkgen block as a single node

And the corresponding DT will be along these lines:

        clocks {
                ranges;
                #address-cells = <1>;
                #size-cells = <1>;

                xtal: xtal {
                        compatible = "fixed-clock";
                        clock-frequency = <27000000>;
                        #clock-cells = <0>;
                };

                clkgen: clkgen@10000 {
                        compatible = "sigma,tango4-clkgen";
                        reg = <0x10000 0x30>;
                        clocks = <&xtal>;
                        clock-output-names = "cpuclk", "sysclk";
                        #clock-cells = <1>;
                };

                periphclk: periphclk {
                        compatible = "fixed-factor-clock";
                        clocks = <&clkgen 0>;
                        clock-mult = <1>;
                        clock-div  = <2>;
                        #clock-cells = <0>;
                };
        };


Regards.

--
To unsubscribe from this list: send the line "unsubscribe linux-clk" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to