diff mbox series

eth devices not visible after applictaion of phy patch

Message ID 3f9d9623-ca06-c198-439b-a8762f856779@mistywest.com
State New
Headers show
Series eth devices not visible after applictaion of phy patch | expand

Commit Message

Ron Eggler March 11, 2023, 9:18 p.m. UTC
Hi list,

I want to apply a patch to the ethernet devices for the phy, where the 
patch looks like:
cat 
../meta-mistysom/recipes-kernel/linux/smarc-rzg2l/0001-add-vsc8531-userspace-dts.patch
+

One question I have is, if the ampersand (&) should apply to the top eth 
node (as seen above) or the inner phy nodes, instead?, I only want to 
modify the phy settings.

When I boot the system with the kernel & device tree, on bootup I see 
the following messages:

[    6.721177] ravb 11c30000.ethernet eth1: failed to connect PHY
[    6.869282] ravb 11c20000.ethernet eth0: failed to connect PHY

and when I log in and check contents in /proc/device-tree/ I don't see 
any network interfaces.
diff mbox series

Patch

diff --git a/r9a07g044l2-smarc.dts.orig b/r9a07g044l2-smarc.dts
index bc2af6c..82ba67e 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts
+++ b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts
@@ -11,8 +11,32 @@ 
  #include "rzg2l-smarc-pinfunction.dtsi"
  #include "rz-smarc-common.dtsi"
  #include "rzg2l-smarc.dtsi"
+#include <dt-bindings/net/mscc-phy-vsc8531.h>

  / {
         model = "Renesas SMARC EVK based on r9a07g044l2";
         compatible = "renesas,smarc-evk", "renesas,r9a07g044l2", 
"renesas,r9a07g044";
  };
+
+&eth0 {
+        phy0: ethernet-phy@7 {
+                compatible = "ethernet-phy-ieee802.3-c45";
+                reg = <0>;
+                vsc8531,vddmac          = <1800>;
+                vsc8531,edge-slowdown   = <0>;
+                vsc8531,led-0-mode      = <VSC8531_LINK_1000_ACTIVITY>;
+                vsc8531,led-1-mode      = <VSC8531_LINK_100_ACTIVITY>;
+       };
+};
+
+&eth1 {
+        phy1: ethernet-phy@7 {
+                compatible = "ethernet-phy-ieee802.3-c45";
+                reg = <0>;
+                vsc8531,vddmac          = <1800>;
+                vsc8531,edge-slowdown   = <0>;
+                vsc8531,led-0-mode      = <VSC8531_LINK_1000_ACTIVITY>;
+                vsc8531,led-1-mode      = <VSC8531_LINK_100_ACTIVITY>;
+        };
+};