arm64: dts: imx8mq-sr-som: Replace deprecated phy reset properties
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 23 Aug 2020 11:15:07 +0000 (13:15 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 30 Aug 2020 11:58:50 +0000 (19:58 +0800)
Use preferred properties of phy node instead of deprecated
phy-reset-gpios (and others).  This avoids copying deprecated code into
future DTSes.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-sr-som.dtsi

index 602c870..404c466 100644 (file)
@@ -20,8 +20,6 @@
        pinctrl-0 = <&pinctrl_fec1>;
        phy-mode = "rgmii-id";
        phy-handle = <&ethphy0>;
-       phy-reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
-       phy-reset-duration = <2>;
        fsl,magic-packet;
        status = "okay";
 
@@ -32,6 +30,8 @@
                ethphy0: ethernet-phy@4 {
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <4>;
+                       reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <2000>;
                };
        };
 };