Skip to content

Commit 6485417

Browse files
fabioestevammmind
authored andcommitted
ARM: dts: rockchip: Move PHY reset to ethernet-phy node on rk3036 boards
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>
1 parent ba9e4ce commit 6485417

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm/boot/dts/rockchip/rk3036-evb.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
&emac {
1818
phy = <&phy0>;
19-
phy-reset-duration = <10>; /* millisecond */
20-
phy-reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
2119
pinctrl-names = "default";
2220
pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
2321
status = "okay";
@@ -28,6 +26,8 @@
2826

2927
phy0: ethernet-phy@0 {
3028
reg = <0>;
29+
reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
30+
reset-assert-us = <10000>;
3131
};
3232
};
3333
};

arch/arm/boot/dts/rockchip/rk3036-kylin.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102

103103
&emac {
104104
phy = <&phy0>;
105-
phy-reset-duration = <10>; /* millisecond */
106-
phy-reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; /* PHY_RST */
107105
pinctrl-names = "default";
108106
pinctrl-0 = <&emac_xfer>, <&emac_mdio>;
109107
status = "okay";
@@ -114,6 +112,8 @@
114112

115113
phy0: ethernet-phy@0 {
116114
reg = <0>;
115+
reset-gpios = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
116+
reset-assert-us = <10000>;
117117
};
118118
};
119119
};

0 commit comments

Comments
 (0)