]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: rockchip: Move PHY reset to ethernet-phy node on rk3036 boards
authorFabio Estevam <festevam@gmail.com>
Sat, 28 Feb 2026 01:32:56 +0000 (22:32 -0300)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 23 Mar 2026 21:17:25 +0000 (22:17 +0100)
According to rockchip,emac.yaml, 'phy-reset-duration' and 'phy-reset-gpios'
are not valid properties.

Use the valid 'reset-gpios' and 'reset-assert-us' properties under
the etherne-phy node.

This fixes the following dt-schema warning:

Unevaluated properties are not allowed ('phy-reset-duration',
'phy-reset-gpios' were unexpected)

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://patch.msgid.link/20260228013257.256973-1-festevam@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rk3036-evb.dts
arch/arm/boot/dts/rockchip/rk3036-kylin.dts

index becdc0b664bfa422f81e79d7bea076c20ab69732..c8100dc4c7ce30d8e8475d472314c7b8823021a4 100644 (file)
@@ -16,8 +16,6 @@
 
 &emac {
        phy = <&phy0>;
-       phy-reset-duration = <10>; /* millisecond */
-       phy-reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
        pinctrl-names = "default";
        pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
        status = "okay";
@@ -28,6 +26,8 @@
 
                phy0: ethernet-phy@0 {
                        reg = <0>;
+                       reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <10000>;
                };
        };
 };
index ae2f84a4e922a746973823dd0b8bb56b6be77b0c..bc6e6468fcc4fa5c97c760e04d8771c0e7ec96b0 100644 (file)
 
 &emac {
        phy = <&phy0>;
-       phy-reset-duration = <10>; /* millisecond */
-       phy-reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
        pinctrl-names = "default";
        pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
        status = "okay";
 
                phy0: ethernet-phy@0 {
                        reg = <0>;
+                       reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <10000>;
                };
        };
 };