From eab360db54841bb39453abb9af1c7181b344498b Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Fri, 17 Apr 2015 11:18:22 +1000 Subject: qemuzynq: Add fixed-clock to device tree for ethernet * Add a fixed 125 MHz clock to trick the ethernet driver into thinking the reference clock is at the correct frequency * This masks the 'macb e000b000.ps7-ethernet eth0: unable to generate target frequency: 125000000 Hz' message from the macb driver Signed-off-by: Nathan Rossi --- conf/machine/boards/qemu/qemuzynq-base.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf/machine/boards/qemu/qemuzynq-base.dtsi b/conf/machine/boards/qemu/qemuzynq-base.dtsi index 3914510d..a2f06657 100644 --- a/conf/machine/boards/qemu/qemuzynq-base.dtsi +++ b/conf/machine/boards/qemu/qemuzynq-base.dtsi @@ -9,7 +9,14 @@ reg = <0x0 0x40000000>; } ; ps7_axi_interconnect_0: amba@0 { + /* Setup a fixed 125 MHz clock to trick the ethernet driver */ + clk125mhz: clock { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <125000000>; + } ; ps7_ethernet_0: ps7-ethernet@e000b000 { + clocks = <&clkc 30>, <&clkc 30>, <&clk125mhz>, <&clk125mhz>, <&clkc 30>; phy-handle = <&phy0>; phy-mode = "gmii"; mdio { @@ -49,7 +56,7 @@ }; } ; } ; - + /* Disabled Devices */ ps7_gpio_0: ps7-gpio@e000a000 { compatible = "invalid"; }; ps7_uart_0: serial@e0000000 { compatible = "invalid"; }; -- cgit v1.2.3-54-g00ecf