Tool/software: Linux
Hi,
we have developed a custom board with AM5718 using ti-processor-sdk-linux-am57xx-evm-05.02.00.10. we have an issue with Ethernet, almost every thing is over in bringing up the som except this Ethernet issue, Please try to help us to what things we need to change in the dts file below to resolve this issue.
In our board
1. One port realized with RMI and another port is relaized with PCIe using i210 and this is also RMI
2. ENET-REF-50MHz is connected between processor and PHY
3. We are using internal clock from the processor
4. The phy address is 9, which is depend on hardware.
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) /* rmii1_tclk---RMII_MHZ_50_CLK */
DRA7XX_CORE_IOPAD(0x3654, PIN_INPUT | MUX_MODE2) /* rmii1_rxd0 */
DRA7XX_CORE_IOPAD(0x3650, PIN_INPUT | MUX_MODE2) /* rmii1_rxd1 */
DRA7XX_CORE_IOPAD(0x364c, PIN_INPUT | MUX_MODE2) /* rmii1_rer */
DRA7XX_CORE_IOPAD(0x3648, PIN_INPUT | MUX_MODE2) /* rmii1_crs */
DRA7XX_CORE_IOPAD(0x3670, PIN_OUTPUT | MUX_MODE2) /* rmii1_txd0 */
DRA7XX_CORE_IOPAD(0x366c, PIN_OUTPUT | MUX_MODE2) /* rmii1_txd1 */
DRA7XX_CORE_IOPAD(0x3668, PIN_OUTPUT | MUX_MODE2) /* rmii1_txen*/
>;
};
cpsw_pins_sleep: cpsw_pins_sleep {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x3644, PIN_INPUT | MUX_MODE7) /* rmii1_tclk---RMII_MHZ_50_CLK */
DRA7XX_CORE_IOPAD(0x3654, PIN_INPUT | MUX_MODE7) /* rmii1_rxd0 */
DRA7XX_CORE_IOPAD(0x3650, PIN_INPUT | MUX_MODE7) /* rmii1_rxd1 */
DRA7XX_CORE_IOPAD(0x364c, PIN_INPUT | MUX_MODE7) /* rmii1_rer */
DRA7XX_CORE_IOPAD(0x3648, PIN_INPUT | MUX_MODE7) /* rmii1_crs */
DRA7XX_CORE_IOPAD(0x3670, PIN_INPUT | MUX_MODE7) /* rmii1_txd0 */
DRA7XX_CORE_IOPAD(0x366c, PIN_INPUT | MUX_MODE7) /* rmii1_txd1 */
DRA7XX_CORE_IOPAD(0x3668, PIN_INPUT | MUX_MODE7) /* rmii1_txen*/
>;
};
&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 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_pins>;
pinctrl-1 = <&davinci_mdio_pins_sleep>;
status = "okay";
};
Thanks and Regards,
A.Mounika.