imx6ul smsc87xx phy not working

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ul smsc87xx phy not working

510 Views
luoyaojun
Contributor II

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:

pastedImage_2.png

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:

pastedImage_4.png
of_phy_connect return NULL!!! why??? 
Labels (1)
0 Kudos
3 Replies

129 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi luo

is it working in uboot, it may be configured using example in

uboot/include/configs/mx6slevk.h :

#define CONFIG_PHY_SMSC

Also one can check rmii clocks provided by settings in IOMUXC_GPR_GPR1

ENET_TX_CLK_DIR

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

0 Kudos

129 Views
luoyaojun
Contributor II

IOMUXC_GPR_GPR1 ENET_TX_CLK_DIR setting in device tree (pinctrl_enet)?

0 Kudos

129 Views
igorpadykov
NXP TechSupport
NXP TechSupport

it can be set in

uboot/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c

Best regards
igor

0 Kudos