ARM64: dts: meson-gxbb-odroidc2: add the ethernet PHY's reset GPIO
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 19 Feb 2017 21:41:41 +0000 (22:41 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 6 Mar 2017 17:55:53 +0000 (09:55 -0800)
This resets the ethernet PHY during boot to get the PHY into a "clean"
state. While here also explicitly specify the phy-mode instead of
relying on the default-value from meson-gx.dtsi.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts

index c59403adb387dbcd33d375561ee3eaa07ebdfa3f..6b557952258732eddd8509e983b86b9044e5d85f 100644 (file)
        pinctrl-0 = <&eth_rgmii_pins>;
        pinctrl-names = "default";
        phy-handle = <&eth_phy0>;
+       phy-mode = "rgmii";
+
+       snps,reset-gpio = <&gpio GPIOZ_14 0>;
+       snps,reset-delays-us = <0 10000 1000000>;
+       snps,reset-active-low;
 
        mdio {
                compatible = "snps,dwmac-mdio";