Hi TI
AR8035 can't not obtain IP when I ifup eth1.
root@am335x-evm:~# ifconfig eth1 up
[ 143.828890] net eth1: initializing cpsw version 1.12 (0)
[ 143.917997] net eth1: phy found : id is : 0x4dd072
root@am335x-evm:~# ifup eth1
udhcpc (v1.22.1) started
Sending discover...
Sending discover...
Sending discover...
But there are some wired because RX and TX all have data like this:
eth1 Link encap:Ethernet HWaddr D0:39:72:4D:53:4D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2924 (2.8 KiB) TX bytes:1026 (1.0 KiB)
=================================================================================
I have checked pinmux RGMII2 in am335x-evmsk.dts in slave2, that is no problem
» /* Slave 2 */
342 » » » 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a0.rgmii2_tctl *
343 » » » 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a1.rgmii2_rctl *
344 » » » 0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a2.rgmii2_td3 */
345 » » » 0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a3.rgmii2_td2 */
346 » » » 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a4.rgmii2_td1 */
347 » » » 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a5.rgmii2_td0 */
348 » » » 0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a6.rgmii2_tclk *
349 » » » 0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a7.rgmii2_rclk *
350 » » » 0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a8.rgmii2_rd3 */
351 » » » 0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a9.rgmii2_rd2 */
352 » » » 0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a10.rgmii2_rd1 *
353 » » » 0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2)» /* gpmc_a11.rgmii2_rd0 *
354 » » >;
and phy_id in dts
&cpsw_emac1 {
phy_id = <&davinci_mdio>, <7>;
phy-mode = "rgmii-txid";
dual_emac_res_vlan = <2>;
Do I have lost something?
=====================================================================================
By the way. We use sdk6, AR8035 works very good. This is our revise:
static struct cpsw_slave_data am33xx_cpsw_slaves[] = {
{
.slave_reg_ofs = 0x200,
.sliver_reg_ofs = 0xd80,
.phy_id = "0:05",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_0,
},
{
.slave_reg_ofs = 0x300,
.sliver_reg_ofs = 0xdc0,
.phy_id = "0:07",
.dual_emac_reserved_vlan = CPSW_PORT_VLAN_SLAVE_1,
},
};
Thank you.