ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node
authorMarco Felsch <m.felsch@pengutronix.de>
Tue, 26 Jul 2022 13:05:20 +0000 (15:05 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 21 Aug 2022 12:26:37 +0000 (20:26 +0800)
Add ethernet-phy node so we can drop the deprecated fec phy-reset-gpios
property. The reset-assert-us value is taken from the existing logic
since the fec driver will add an 1ms assert delay per default if
phy-reset-gpios is used and phy-reset-duration is not specified.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi

index 095c9143d99a35496ac043171e457e15277ede3e..7001c8c5e19b93945eaa7f0fdb2385fac9dc6852 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
-       phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+       phy-handle = <&ethphy>;
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy@1 {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       reg = <1>;
+                       reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <1000>;
+               };
+       };
 };
 
 &i2c_intern {