AnsweredAssumed Answered

imx6ul smsc87xx phy not working

Question asked by luo yaojun on Jan 26, 2018
Latest reply on Jan 26, 2018 by igorpadykov

dts config:

&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <&ethphy0>;
status = "okay";

mdio {
#address-cells = <1>;
#size-cells = <0>;

ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
pinctrl-names = "default";
reg = <0>;
status = "okay";
};

ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};

};

i have been add smsc phy drivers:

 

when i powerup the imx6ul , and use command "ifconfig eth0 up",  i found an error:

ifconfig: SIOCSIFFLAGS: No such device

when i use command "ifconfig -a" , i can find eth0, i seems that MAC layer(fec_main.c) is work well?

 

i found an error in fec_main.c:

 

of_phy_connect return NULL!!! why??? 

Outcomes