ARM64: dts: meson-gxbb-vega-s95: add the ethernet PHY's reset GPIO
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 19 Feb 2017 21:41:43 +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 specify the phy-handle of the ethmac node to make the
PHY configuration similar to the one we have on GXL devices. This will
allow us to specify OF-properties for the PHY itself.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi

index 8670992..aa57197 100644 (file)
        status = "okay";
        pinctrl-0 = <&uart_ao_a_pins>;
        pinctrl-names = "default";
-
 };
 
 &ir {
        status = "okay";
        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";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               eth_phy0: ethernet-phy@0 {
+                       /* Realtek RTL8211F (0x001cc916) */
+                       reg = <0>;
+               };
+       };
 };
 
 &usb0_phy {