How to disable fec2 but still have working Ethernet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable fec2 but still have working Ethernet

878 Views
g_vriesman
Contributor I

We are currently trying to change the eth2 pins to i2c pins but we cannot get ethernet working when we disable eth2 (fec2). I have tried moving the mdio node to the fec1 node, but I still can't get it to work. Any suggestions? Also, what does the @1 in ethernet-phy@1 mean?

I have the following in my device.dts

/* Disable the second ethernet port and remove the mdio for use in fec1 */
&fec2 {
   status = "disabled";
   /delete-node/ mdio;
};

/* Add mdio to the fec1 node */
&fec1 {
   mdio {
        #address-cells = <1>;
        #size-cells = <0>;

        ethphy0: ethernet-phy@1 {
            compatible = "ethernet-phy-ieee802.3-c22";
            micrel,rmii-reference-clock-select-25-mhz;
            clocks = <&rmii_ref_clk>;
            clock-names = "rmii-ref";
            reg = <1>;
        };

        ethphy1: ethernet-phy@3 {
            compatible = "ethernet-phy-ieee802.3-c22";
            micrel,rmii-reference-clock-select-25-mhz;
            clocks = <&rmii_ref_clk>;
            clock-names = "rmii-ref";
            reg = <3>;
        };
    };
};
Labels (2)
0 Kudos
1 Reply

596 Views
igorpadykov
NXP Employee
NXP Employee

Hi Glenn

one can look at example on

imx6ul-liteboard.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

fsl-fec.txt\net\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

http://wiki.litesom.grinn-global.com/images/1/1d/LiteSOM_training.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos