IMX6UL Micrel KSZ8794 RMII :ifconfig: SIOCSIFFLAGS: No such device

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

IMX6UL Micrel KSZ8794 RMII :ifconfig: SIOCSIFFLAGS: No such device

2,141 Views
lvmh
Contributor I

Hi ! 

The im6ul enthernet is connected to ksz8794 port 4 interface and is selected for the RMII PHY interface mode, spi communication mode.Spi can communicate normally, but inputting ifconfig eth1 up can't find the device.The driver is officially provided.

Add in .dts:

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

&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
status = "okay";

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

ethphy0: ethernet-phy@1 {
//compatible = "ethernet-phy-ieee802.3-c22";
compatible = "micrel,ksz8795";
reg = <1>;
fixed-link {
speed = <100>;
full-duplex;
};
};

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

&ecspi3 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 12 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi3>;
status = "okay";
switch@0{
compatible = "micrel,ksz8795";
switch-rst-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
//spi-max-frequency = <12500000>;
spi-max-frequency =<48000000>;
reg = <0>;
status = "okay";
ethernet = <&fec1>;
};
};

But it doesn't work,

root@imx6ulevk:~# ifconfig eth1 up
ifconfig: SIOCSIFFLAGS: No such device

Can anyone give some advice?

Tags (1)
0 Kudos
2 Replies

995 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ivmh

please check helpful links

KSZ8795 SPI setup 

Configuring KSZ8795 

for debugging issues one can use AN4553 Using Open Source

Debugging Tools for Linux on i.MX Processors
http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf

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

0 Kudos

995 Views
lvmh
Contributor I

Hi,igorpadykov

I've tried it before, but it can't solve this problem.

  

0 Kudos