Skip to contentSkip to conversation

Add MDIO and PHY notes

PATCH In review Carlo Caione 4 participants 7 messages Jan 28, 2019 – Feb 1, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Add MDIO and PHY notes

And missing fsl,magic-packet property.

Carlo Caione (2):
arm64: dts: imx8mq-evk: add missing MDIO / PHY nodes
arm64: dts: imx8mq-evk: Add fsl,magic-packet property

 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Signature · 1 line
2.19.1
#1 lore raw

PATCH v2 1/2 arm64: dts: imx8mq-evk: add missing MDIO / PHY nodes

Populate the fec1 node with the missing MDIO and PHY entries.

---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +11 -0
index 64acccc4bfcb..2641f777d0bb 100644
@@ -37,7 +37,18 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec1>;
 	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy0>;
 	status = "okay";
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";
+			reg = <0>;
+		};
+	};
 };
 
 &i2c1 {
Signature · 1 line
2.19.1
Reviewed-by on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] arm64: dts: imx8mq-evk: add missing MDIO / PHY nodes

In reply to Carlo Caione
Quoted 14 lines · Carlo Caione

Populate the fec1 node with the missing MDIO and PHY entries.

---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +0 -0
index 64acccc4bfcb..2641f777d0bb 100644
@@ -37,7 +37,18 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_fec1>;

arch/arm64/boot/dts/freescale/imx8mq-evk.dts line 48

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +8 -0
 	phy-mode = "rgmii-id";
+	phy-handle = <&ethphy0>;
 	status = "okay";
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ethphy0: ethernet-phy@0 {
+			compatible = "ethernet-phy-ieee802.3-c22";

Hi Carlo

This compatible string is optional. But having it does not harm anything.

Andrew

#4 lore raw

PATCH v2 2/2 arm64: dts: imx8mq-evk: Add fsl,magic-packet property

In reply to Carlo Caione

Add the fsl,magic-packet property in the fec nome.

---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mq-evk.dts +1 -0
index 2641f777d0bb..02f6da92957f 100644
@@ -38,6 +38,7 @@
 	pinctrl-0 = <&pinctrl_fec1>;
 	phy-mode = "rgmii-id";
 	phy-handle = <&ethphy0>;
+	fsl,magic-packet;
 	status = "okay";
 
 	mdio {
Signature · 1 line
2.19.1
reviewer Reviewed-by on v2 2/2
#5 lore raw

Re: [PATCH v2 2/2] arm64: dts: imx8mq-evk: Add fsl, magic-packet property

Quoted 2 lines · Carlo Caione

Add the fsl,magic-packet property in the fec nome.

s/nome/node/

#6 lore raw

Re: [PATCH v2 2/2] arm64: dts: imx8mq-evk: Add fsl,magic-packet property

Quoted 5 lines · Fabio Estevam
Quoted 2 lines · Carlo Caione

Add the fsl,magic-packet property in the fec nome.

s/nome/node/

Fixed it up and applied both patches.

Shawn