]> git.sur5r.net Git - u-boot/commitdiff
rockchip: rk3288-firefly: Add gmac definition
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sun, 28 Feb 2016 21:25:02 +0000 (22:25 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 27 May 2016 15:00:48 +0000 (09:00 -0600)
Add a definition for the gmac interface to the firefly device-tree.
Copied verbatim from the linux kernel.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3288-firefly.dtsi

index 5aec1b82bd0a954a0eef69423e09764e8769c4e7..072eaa61168adc243363c8afd736d6b1238e791b 100644 (file)
        status = "okay";
 };
 
+&gmac {
+       assigned-clocks = <&cru SCLK_MAC>;
+       assigned-clock-parents = <&ext_gmac>;
+       clock_in_out = "input";
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
+       phy-supply = <&vcc_lan>;
+       phy-mode = "rgmii";
+       snps,reset-active-low;
+       snps,reset-delays-us = <0 10000 1000000>;
+       snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
+       tx_delay = <0x30>;
+       rx_delay = <0x10>;
+       status = "okay";
+};
+
 &hdmi {
        ddc-i2c-bus = <&i2c5>;
        status = "okay";