On Tue, Aug 7, 2018 at 8:29 PM <[email protected]> wrote:
>
> So I cut the trace for reset pin on Lan8710 and jumpered a wire to a gpio 
> pin. And I added the reset gpio/reset-delay-us as shown in this link: 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/mdio.txt
>
> I added following commands in am335x.dtsi on line 1057
>
> reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
> reset-delay-us = <100>;
>

I had a similar problem. I believe that you need to specify the phy as
a child node to trigger the reset GPIO logic in the mdio driver.
Here's the relevant section of my device tree:

&davinci_mdio {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
        status = "okay";

        reset-gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
        reset-delay-us = <100>;
        ethphy0: @cpsw_emac0 {};
};

I've only done some quick tests, but it appears to be working.

-Frank

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2B-urNTVz_qECV6%2BHLOykxUTjK6VARX-2jLKQZGqBC4RxojiJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to