[Macchiato] macchiatobin problem
Baruch Siach
baruch at tkos.co.il
Thu Nov 1 11:23:30 GMT 2018
Hi Alpha,
Please keep the Macchiato list on Cc
alpha_one_x86 writes:
>> If this is the case, what DT are you using? Note that mainline kernel
>> armada-8040-mcbin.dts is meant for the DoubleShot, which has 88x3310 PHYs on
>> eth0 and eth1 (marked U2 and U3 on the PCB). These PHYs are not assembled on
>> the SingleShot. Instead, both interfaces are directly connected to SFP cages.
>> So the error message (-19 == -ENODEV) is correct. You need to remove the PHYs
>> description from the DT for the SingleShot.
> I have Single Shot. And for vanilla I use armada-8040-mcbin.dts/dtb
> Can you indicate me how change the dts? (maybe send me a patch), I see
> multiple eth0, eth1, ... ref.
The ethX reference is quite confusing indeed. When you see cpX_ethY it
refers to different Ethernet MAC instances on each CP. There are two
CP110 (cp0 and cp1), each with three Ethernet MACs.
For the Single Shot you can try the following completely untested patch
against v4.19.
diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
index 56fa44860909..3da9b4cd78a4 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
@@ -227,22 +227,6 @@
};
};
-&cp0_xmdio {
- status = "okay";
-
- phy0: ethernet-phy at 0 {
- compatible = "ethernet-phy-ieee802.3-c45";
- reg = <0>;
- sfp = <&sfp_eth0>;
- };
-
- phy8: ethernet-phy at 8 {
- compatible = "ethernet-phy-ieee802.3-c45";
- reg = <8>;
- sfp = <&sfp_eth1>;
- };
-};
-
&cp0_ethernet {
status = "okay";
};
@@ -250,10 +234,11 @@
&cp0_eth0 {
status = "okay";
/* Network PHY */
- phy = <&phy0>;
phy-mode = "10gbase-kr";
/* Generic PHY, providing serdes lanes */
phys = <&cp0_comphy4 0>;
+ managed = "in-band-status";
+ sfp = <&sfp_eth0>;
};
&cp0_sata0 {
@@ -288,10 +273,11 @@
&cp1_eth0 {
status = "okay";
/* Network PHY */
- phy = <&phy8>;
phy-mode = "10gbase-kr";
/* Generic PHY, providing serdes lanes */
phys = <&cp1_comphy4 0>;
+ managed = "in-band-status";
+ sfp = <&sfp_eth1>;
};
&cp1_eth1 {
Hope this helps,
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the Macchiato
mailing list