cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,031 Views
Registered: ‎04-28-2012

PS ethernet does not take PHY out of reset when reset is driven from PS IO during linux boot

Appears the problem is that the ethernet driver is loaded before the GPIO driver. The cadence macb driver should return -EPROBE_DEFER from probe if the GPIO is not yet available so driver gets queued to load later. Will send patch.

0 Kudos
2 Replies
Highlighted
Visitor
Visitor
988 Views
Registered: ‎04-28-2012

Re: PS ethernet does not take PHY out of reset when reset is driven from PS IO during linux boot

Patch adds -EPROBE_DEFER return from modprobe() when GPIO is needed and GPIO driver is not present.

Now works with DTS file:

 

&gem0 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy0>;
phy-reset-gpio = <&gpio 19 0>;
phy-reset-active-low;
ethernet_phy0: ethernet-phy@0 {
reg = <0>;
compatible = "marvell,88e1510";
device_type = "ethernet-phy";
};
};
&gem1 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy1>;
phy-reset-gpio = <&gpio 20 0>;
phy-reset-active-low;
ethernet_phy1: ethernet-phy@0 {
reg = <0>;
compatible = "marvell,88e1510";
device_type = "ethernet-phy";
};
};

Highlighted
Adventurer
Adventurer
791 Views
Registered: ‎05-26-2017

Re: PS ethernet does not take PHY out of reset when reset is driven from PS IO during linux boot

Hi There !

Thanks a lot for posting this. Saved me some headaches ! Sadly this driver feels poorly maintained in general. The gmii-rgmii converter support is still not included, even though a (innocuous) patch was available 2 years ago. No VLAN support etc. 

 

/Otto

0 Kudos