Hi I am working on imx6q based board.
Here is my Ethernet configuration
pinctrl_enet_4: enetgrp-4 {
fsl,pins = <
MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN 0x1b0b0
MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER 0x1b0b0
MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x1b0b0
MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x1b0b0
MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x1b0b0
MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x1b0b0
MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x1b0b0
>;
};
In device tree file
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet_4>;
phy-mode = "rmii";
local-mac-address = [00 04 9F 01 1B 52];
status = "okay";
};
I am using smsc LAN8700 chip ( http://ww1.microchip.com/downloads/en/DeviceDoc/8700.pdf )
With this configuration I am unable to make the network up.
Interface configuration
eth0 Link encap:Ethernet HWaddr 00:04:9f:01:1b:52
inet addr:192.168.38.39 Bcast:192.168.38.255 Mask:255.255.255.0
inet6 addr: fe80::204:9fff:fe01:1b52/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
When I try to restart the nework
root@arm:/home/ubuntu# service networking restart
[ 1425.315601] fec 2188000.ethernet eth0: Graceful transmit stop did not complete!
Can any body help me whats wrong in this configuration !
Clock is generated by PHY and is connected to MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK
已解决! 转到解答。
Solved!!!
MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN 0x0001b0B0
MX6QDL_PAD_ENET_MDC__ENET_MDC 0x0001b030
MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x0001b030
MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x0001b0B0
MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x0001b030
MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER 0x0001b030
MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x0001b030
MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x0001b030
MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x0001b030
MX6QDL_PAD_RGMII_TX_CTL__ENET_REF_CLK 0x40013030
Configuration Issue
Solved!!!
MX6QDL_PAD_ENET_CRS_DV__ENET_RX_EN 0x0001b0B0
MX6QDL_PAD_ENET_MDC__ENET_MDC 0x0001b030
MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x0001b030
MX6QDL_PAD_ENET_RXD0__ENET_RX_DATA0 0x0001b0B0
MX6QDL_PAD_ENET_RXD1__ENET_RX_DATA1 0x0001b030
MX6QDL_PAD_ENET_RX_ER__ENET_RX_ER 0x0001b030
MX6QDL_PAD_ENET_TXD0__ENET_TX_DATA0 0x0001b030
MX6QDL_PAD_ENET_TXD1__ENET_TX_DATA1 0x0001b030
MX6QDL_PAD_ENET_TX_EN__ENET_TX_EN 0x0001b030
MX6QDL_PAD_RGMII_TX_CTL__ENET_REF_CLK 0x40013030
Configuration Issue