UPSTREAM: ARM: dts: rockchip: add to support emac for rk3036 SoCs
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3036-evb.dts
index 28a03366601750bc9c2c5a25255e3ba433758bb3..b3d6ec87f6152b1e23c0845913990da1c19076a8 100644 (file)
        compatible = "rockchip,rk3036-evb", "rockchip,rk3036";
 };
 
+&emac {
+       pinctrl-names = "default";
+       pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
+       phy = <&phy0>;
+       phy-reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; /* PHY_RST */
+       phy-reset-duration = <10>; /* millisecond */
+
+       status = "okay";
+
+       phy0: ethernet-phy@0 {
+               reg = <0>;
+       };
+};
+
 &i2c1 {
        status = "okay";