Other Parts Discussed in Thread: AM3359
could you tell me what i'm overlooking!
- Using AM335x rev 2 silicon, booting from sd card.
- Having problems with Ethernet (cpsw) not sending or receiving data. Txen and tx always low, not seeing rx interrupts.
- Phy is smsc 8720a RMII mode, rx data and RMII2_CRS_DV is active when receiving data. MDIO interface is working. Sourcing 50MHz to mii1_col mode(1) RMII2_REFCLK.
- MUX configure RMII2 for u-boot
- static const struct module_pin_mux rmii2_pin_mux[] = {
- {OFFSET(gpmc_a0), MODE(3)}, /* RMII2_TXEN -- */
- {OFFSET(gpmc_a4), MODE(3)}, /* RMII2_TXD1 -- */
- {OFFSET(gpmc_a5), MODE(3)}, /* RMII2_TXD0 -- */
- {OFFSET(gpmc_a10), MODE(3) | RXACTIVE}, /* RMII2_RXD1 -- */
- {OFFSET(gpmc_a11), MODE(3) | RXACTIVE}, /* RMII2_RXD0 -- */
- {OFFSET(gpmc_csn3), MODE(2) | RXACTIVE}, /* RMII2_CRS_DV */
- {OFFSET(mdio_data), MODE(0) | RXACTIVE | PULLUP_EN}, /* MDIO_DATA */
- {OFFSET(mdio_clk), MODE(0) | PULLUP_EN}, /* MDIO_CLK */
- {OFFSET(mii1_col), MODE(1) | RXACTIVE}, /* RMII2_REFCLK 50MHz source from phy*/
- {-1},
- };
- GMII_SEL set to 0x85 RMII Reference Clock Input mode. rmii2_io_clk_en, 01: Port1 and Port2 RMII Mode.
- SMA2 set to 0x0, select MMC2_DAT7_MUX0 on GPMC_A9.
MACCONTROL – BIT(16), BIT(15), BIT(0). 100mbs full duplex