arm: dts: zynq: Move crystal freq. to board level
authorPeter Crosthwaite <crosthwaitepeter@gmail.com>
Mon, 1 Dec 2014 00:25:49 +0000 (10:25 +1000)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 1 Dec 2014 08:22:50 +0000 (09:22 +0100)
The fact that all supported boards use the same 33MHz crystal is a
co-incidence. The Zynq PS support a range of crystal freqs so the
hardcoded setting should be removed from the dtsi. Re-implement it
on the board level.

This prepares support for Zynq boards with different crystal
frequencies (e.g. the Digilent ZYBO).

Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/boot/dts/zynq-7000.dtsi
arch/arm/boot/dts/zynq-parallella.dts
arch/arm/boot/dts/zynq-zc702.dts
arch/arm/boot/dts/zynq-zc706.dts
arch/arm/boot/dts/zynq-zed.dts

index 24036c4..f8e4a28 100644 (file)
                        clkc: clkc@100 {
                                #clock-cells = <1>;
                                compatible = "xlnx,ps7-clkc";
-                               ps-clk-frequency = <33333333>;
                                fclk-enable = <0>;
                                clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x",
                                                "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x",
index e1f51ca..538a40a 100644 (file)
        };
 };
 
+&clkc {
+       ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
        status = "okay";
        phy-mode = "rgmii-id";
index 94e2cda..280f02d 100644 (file)
        status = "okay";
 };
 
+&clkc {
+       ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
        status = "okay";
        phy-mode = "rgmii-id";
index a8bbdfb..34f7812 100644 (file)
 
 };
 
+&clkc {
+       ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
        status = "okay";
        phy-mode = "rgmii-id";
index 697779a..1c7cc99 100644 (file)
 
 };
 
+&clkc {
+       ps-clk-frequency = <33333333>;
+};
+
 &gem0 {
        status = "okay";
        phy-mode = "rgmii-id";