TI中文支持网
TI专业的中文技术问题搜集分享网站

am437x rmii和mii接口如何配置?

大家好,

我在AM4378上同时用到了RMII和MII接口,但在官网的SDK包里没有看到设备树是如何配置的,只有RGMII的配置,请问我在哪里可以找到这两种配置方法?

谢谢!

henry gore:

回复 Shine:

Shine,你好

我只配置了一个rmii口,只外接了一颗phy芯片RTL8201F,地址为3。重启后居然扫描到两个phy地址:0和3。设置IP地址后,扫描到的两颗phy都可以ping通,但丢包很严重。这怎么会扫描到两个地址的phy芯片,难道设备树配置还有错误吗?

davinci_mdio_default: davinci_mdio_default {

pinctrl-single,pins = <

/* MDIO */

AM4372_IOPAD(0x94c, PIN_OUTPUT | MUX_MODE0) /* (B17) mdio_clk.mdio_clk */

AM4372_IOPAD(0x948, PIN_INPUT | MUX_MODE0) /* (A17) mdio_data.mdio_data */

>;

};

cpsw_default: cpsw_default {

pinctrl-single,pins = <

/* Slave 1, rmii1 */

AM4372_IOPAD(0x90c, PIN_INPUT | MUX_MODE1) /* (B14) mii1_crs.rmii1_crs_dv */

AM4372_IOPAD(0x910, PIN_INPUT | MUX_MODE1) /* (B13) mii1_rx_er.rmii1_rxer */

AM4372_IOPAD(0x914, PIN_OUTPUT | MUX_MODE1) /* (A13) mii1_tx_en.rmii1_txen */

AM4372_IOPAD(0x928, PIN_OUTPUT | MUX_MODE1) /* (B15) mii1_txd0.rmii1_txd0 */

AM4372_IOPAD(0x924, PIN_OUTPUT | MUX_MODE1) /* (A14) mii1_txd1.rmii1_txd1 */

AM4372_IOPAD(0x940, PIN_INPUT | MUX_MODE1) /* (F17) mii1_rxd0.rmii1_rxd0 */

AM4372_IOPAD(0x93c, PIN_INPUT | MUX_MODE1) /* (B16) mii1_rxd1.rmii1_rxd1 */

AM4372_IOPAD(0x944, PIN_INPUT | MUX_MODE0) /* (A16) rmii1_ref_clk.rmii1_refclk */

>;

};

&mac {

slaves = <1>;  

pinctrl-names = "default";

pinctrl-0 = <&cpsw_default>;

//dual_emac;  

status = "okay";

};

&davinci_mdio {

pinctrl-names = "default";

pinctrl-0 = <&davinci_mdio_default>;

status = "okay";

};

// PHY:RTL8201FI-VC-CG, 192.168.1.100

&cpsw_emac0 {

phy_id = <&davinci_mdio>, <3>;

phy-mode = "rmii";

};

赞(0)
未经允许不得转载:TI中文支持网 » am437x rmii和mii接口如何配置?
分享到: 更多 (0)