Part Number: AM5718
Tool/software: TI C/C++ Compiler
Hi Sir,
We have developed a custom board for am5718 using ti-processor-sdk-linux-am57xx-evm-05.02.00.10. We are able to completely boot upto root but we are facing the ethernet problem and the phy is not getting detected and the link is not up as mentioned below and we have also mentioned the configurations we have done inorder to enable the ethernet but it didn't work out. So kindly have a glance at the dts configuration mentioned below and also through the boot log related to the ethernet and suggest how to move further.
davinci_mdio_pins: pinmux_davinci_mdio_pins {
pinctrl-single,pins = <
/* MDIO */
DRA7XX_CORE_IOPAD(0x363c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */
DRA7XX_CORE_IOPAD(0x3640, PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */
>;
};
davinci_mdio_pins_sleep: pinmux_davinci_mdio_pins_sleep {
pinctrl-single,pins = <
/* MDIO reset value */
DRA7XX_CORE_IOPAD(0x363c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mdio_mclk */
DRA7XX_CORE_IOPAD(0x3640, PIN_INPUT_PULLDOWN | MUX_MODE7) /* mdio_d */
>;
};
cpsw_pins_default: cpsw_pins_default {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x3644, PIN_INPUT | MUX_MODE0) /* RMII_MHZ_50_CLK */
DRA7XX_CORE_IOPAD(0x367c, PIN_OUTPUT | MUX_MODE1) /*rmii txd0 */
DRA7XX_CORE_IOPAD(0x3678, PIN_OUTPUT | MUX_MODE1) /* rmii txd1 */
DRA7XX_CORE_IOPAD(0x3674, PIN_OUTPUT | MUX_MODE1) /* rmii txen */
DRA7XX_CORE_IOPAD(0x3664, PIN_INPUT| MUX_MODE1) /* rmii rxd0 */
DRA7XX_CORE_IOPAD(0x3660, PIN_INPUT | MUX_MODE1) /* rmii rxd1 */
DRA7XX_CORE_IOPAD(0x365c, PIN_INPUT | MUX_MODE1) /* rrmii rxer */
DRA7XX_CORE_IOPAD(0x3658, PIN_INPUT | MUX_MODE1) /* rmii rxcrsdv*/
>;
};
cpsw_pins_sleep: cpsw_pins_sleep {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x3644, PIN_INPUT | MUX_MODE7) /* RMII_MHZ_50_CLK */
DRA7XX_CORE_IOPAD(0x367c, PIN_INPUT | MUX_MODE7) /*rmii txd0 */
DRA7XX_CORE_IOPAD(0x3678, PIN_INPUT | MUX_MODE7) /* rmii txd1 */
DRA7XX_CORE_IOPAD(0x3674, PIN_INPUT | MUX_MODE7) /* rmii txen */
DRA7XX_CORE_IOPAD(0x3664, PIN_INPUT| MUX_MODE7) /* rmii rxd0 */
DRA7XX_CORE_IOPAD(0x3660, PIN_INPUT | MUX_MODE7) /* rmii rxd1 */
DRA7XX_CORE_IOPAD(0x365c, PIN_INPUT | MUX_MODE7) /* rrmii rxer */
DRA7XX_CORE_IOPAD(0x3658, PIN_INPUT | MUX_MODE7) /* rmii rxcrsdv*/
>;
};
&mac {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&cpsw_pins_default>;
pinctrl-1 = <&cpsw_pins_sleep>;
//dual_emac;
slaves = <1>;
};
&cpsw_emac0 {
phy_id = <&davinci_mdio>,<9>;
phy-mode = "rmii";
};
&davinci_mdio {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_pins>;
pinctrl-1 = <&davinci_mdio_pins_sleep>;
};
Bootlog:-
root@am57xx-evm:~#
root@am57xx-evm:~# dmesg | grep davinci
[ 1.800877] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.808571] davinci_mdio 48485000.mdio: no live phy, scanning all
[ 1.815792] davinci_mdio: probe of 48485000.mdio failed with error -5
root@am57xx-evm:~# dmesg | grep phy
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
[ 1.740415] libphy: Fixed MDIO Bus: probed
[ 1.808571] davinci_mdio 48485000.mdio: no live phy, scanning all
[ 12.575839] libphy: PHY 48485000.mdio:09 not found
[ 12.655508] net eth0: phy "48485000.mdio:09" not found on slave 0, err -19
root@am57xx-evm:~# dmesg | grep eth
[ 1.847161] cpsw 48484000.ethernet: Detected MACID = 98:5d:ad:9a:0f:fc
[ 1.853788] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
[ 1.860170] cpsw 48484000.ethernet: ALE Table size 1024
[ 1.865443] cpsw 48484000.ethernet: device node lookup for pps timer failed
[ 1.872486] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
[ 12.489619] net eth0: initializing cpsw version 1.15 (0)
[ 12.655508] net eth0: phy "48485000.mdio:09" not found on slave 0, err -19
[ 12.807776] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@am57xx-evm:~# ethtool eth0
Settings for eth0:
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: no
root@am57xx-evm:~# ethtool -S eth0
NIC statistics:
Good Rx Frames: 0
Broadcast Rx Frames: 0
Multicast Rx Frames: 0
Pause Rx Frames: 0
Rx CRC Errors: 0
Rx Align/Code Errors: 0
Oversize Rx Frames: 0
Rx Jabbers: 0
Undersize (Short) Rx Frames: 0
Rx Fragments: 0
Rx Octets: 0
Good Tx Frames: 0
Broadcast Tx Frames: 0
Multicast Tx Frames: 0
Pause Tx Frames: 0
Deferred Tx Frames: 0
Collisions: 0
Single Collision Tx Frames: 0
Multiple Collision Tx Frames: 0
Excessive Collisions: 0
Late Collisions: 0
Tx Underrun: 0
Carrier Sense Errors: 0
Tx Octets: 0
Rx + Tx 64 Octet Frames: 0
Rx + Tx 65-127 Octet Frames: 0
Rx + Tx 128-255 Octet Frames: 0
Rx + Tx 256-511 Octet Frames: 0
Rx + Tx 512-1023 Octet Frames: 0
Rx + Tx 1024-Up Octet Frames: 0
Net Octets: 0
Rx Start of Frame Overruns: 0
Rx Middle of Frame Overruns: 0
Rx DMA Overruns: 0
Rx DMA chan 0: head_enqueue: 1
Rx DMA chan 0: tail_enqueue: 127
Rx DMA chan 0: pad_enqueue: 0
Rx DMA chan 0: misqueued: 0
Rx DMA chan 0: desc_alloc_fail: 0
Rx DMA chan 0: pad_alloc_fail: 0
Rx DMA chan 0: runt_receive_buf: 0
Rx DMA chan 0: runt_transmit_bu: 0
Rx DMA chan 0: empty_dequeue: 0
Rx DMA chan 0: busy_dequeue: 0
Rx DMA chan 0: good_dequeue: 0
Rx DMA chan 0: requeue: 0
Rx DMA chan 0: teardown_dequeue: 0
Tx DMA chan 0: head_enqueue: 0
Tx DMA chan 0: tail_enqueue: 0
Tx DMA chan 0: pad_enqueue: 0
Tx DMA chan 0: misqueued: 0
Tx DMA chan 0: desc_alloc_fail: 0
Tx DMA chan 0: pad_alloc_fail: 0
Tx DMA chan 0: runt_receive_buf: 0
Tx DMA chan 0: runt_transmit_bu: 0
Tx DMA chan 0: empty_dequeue: 0
Tx DMA chan 0: busy_dequeue: 0
Tx DMA chan 0: good_dequeue: 0
Tx DMA chan 0: requeue: 0
Tx DMA chan 0: teardown_dequeue: 0
root@am57xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr 98:5D:AD:9A:0F:FC
inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST 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)
Interrupt:93
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%775872/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:162 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12300 (12.0 KiB) TX bytes:12300 (12.0 KiB)
Thanks and Regards,
A.Mounika