aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2014-07-15 13:15:44 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-07-18 16:36:29 -0400
commited29861ae87953e0d559baaf9d225e8f8a8ff19a (patch)
treea22a7a8498d3c8eb2db4b7281a22136907324fa9
parentee39a3e308a418a3ff8a911335ae56fc321e3dfc (diff)
ARM: dts: sun6i: Add GMAC clock node to the A31 dtsi
The GMAC uses 1 of 2 sources for its transmit clock, depending on the PHY interface mode. Add both sources as dummy clocks, and as parents to the GMAC clock node. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun6i-a31.dtsi28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 47e143aa82fe..b78a5aa4bccc 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -281,6 +281,34 @@
281 "usb_ohci0", "usb_ohci1", 281 "usb_ohci0", "usb_ohci1",
282 "usb_ohci2"; 282 "usb_ohci2";
283 }; 283 };
284
285 /*
286 * The following two are dummy clocks, placeholders used in the gmac_tx
287 * clock. The gmac driver will choose one parent depending on the PHY
288 * interface mode, using clk_set_rate auto-reparenting.
289 * The actual TX clock rate is not controlled by the gmac_tx clock.
290 */
291 mii_phy_tx_clk: clk@1 {
292 #clock-cells = <0>;
293 compatible = "fixed-clock";
294 clock-frequency = <25000000>;
295 clock-output-names = "mii_phy_tx";
296 };
297
298 gmac_int_tx_clk: clk@2 {
299 #clock-cells = <0>;
300 compatible = "fixed-clock";
301 clock-frequency = <125000000>;
302 clock-output-names = "gmac_int_tx";
303 };
304
305 gmac_tx_clk: clk@01c200d0 {
306 #clock-cells = <0>;
307 compatible = "allwinner,sun7i-a20-gmac-clk";
308 reg = <0x01c200d0 0x4>;
309 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
310 clock-output-names = "gmac_tx";
311 };
284 }; 312 };
285 313
286 soc@01c00000 { 314 soc@01c00000 {