[Macchiato] Getting eth0/1 functional
Jonathan McDowell
noodles at earth.li
Thu Feb 1 16:34:53 GMT 2018
Hi.
I've been playing around with trying to get eth0/1 functional on my
'bin. I'm mainly interested in getting a 10G SFP+ working, but Steve
said he was having issues with copper too. So I had a play and I've
managed to get copper at least working with a mainline 4.15 kernel by
configuring the PHY correctly as follows:
-----
diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
index b3350827ee55..c9cee42738e1 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
@@ -208,12 +208,12 @@
status = "okay";
phy0: ethernet-phy at 0 {
- compatible = "ethernet-phy-ieee802.3-c45";
+ compatible = "ethernet-phy-id002b.09aa", "ethernet-phy-ieee802.3-c45";
reg = <0>;
};
phy8: ethernet-phy at 8 {
- compatible = "ethernet-phy-ieee802.3-c45";
+ compatible = "ethernet-phy-id002b.09aa", "ethernet-phy-ieee802.3-c45";
reg = <8>;
};
};
-----
You need CONFIG_MARVELL_10G_PHY set as well to bring in the PHY driver.
I'm not sure this is the /best/ way to get things working, but it does
so for me. I've also found
http://www.jlbec.org/pub/linux/arm/kernel/git-cur/arm:mcbin.diff which
seems to have a number of changes, including enabling the SFP+ support,
but I'm not sure what the status of getting of all that upstreamed is?
J.
--
Rock and roll stops the traffic.
More information about the Macchiato
mailing list