devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node
@ 2022-07-26 13:05 Marco Felsch
  2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marco Felsch @ 2022-07-26 13:05 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, shawnguo
  Cc: kernel, festevam, linux-imx, devicetree

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>
---
 arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
index 095c9143d99a..7001c8c5e19b 100644
--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
@@ -270,7 +270,19 @@ &fec {
 	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 {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-21 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 13:05 [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Marco Felsch
2022-07-26 13:05 ` [PATCH 2/4] ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node Marco Felsch
2022-07-26 13:05 ` [PATCH 3/4] ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible Marco Felsch
2022-07-26 13:05 ` [PATCH 4/4] ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c bus Marco Felsch
2022-08-21 12:25 ` [PATCH 1/4] ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).