Other Parts Discussed in Thread: AM6422, DP83869
Is there a PRU ethernet configuration guide, especially PRU0 and MII mode.
The ti-prueth.txt only take PRU1 as example.
The Ethernet connection as bellow:
cpsw_mdio: CPSW_RMII1, icssg1_mii1:Doesn't work.
icssg0_mdio: icssg0_mii0 and icssg0_mii1: worked.
The problem is how to configure cpsw_mdio for cpsw_rmii1 and cissg1_mii1
Please help to review and correct.
https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/k3_2D00_am642_2D00_evm_5F00_20230703.dts
#1. The AM64x GPEVM looks like cpsw_mdio control cpsw_rgmii1 and icssg1_rgmii1, but there is a mux device to select mdio, don't understand the control flow.
#2. If configure pad Y6 and AA6 to 0 as icssg1 mdio,, plug/unplug cable, Linux can detect the link up/down. if configure to 4 as cpsw mdio, can't detect PHY.
mdio_pins_default: mdio-pins-default {
pinctrl-single,pins = <
AM64X_IOPAD(0x015c, PIN_OUTPUT_PULLUP, 4) /* (Y6) PRG1_MDIO0_MDC.MDIO0_MDC */
AM64X_IOPAD(0x0158, PIN_INPUT_PULLUP, 4) /* (AA6) PRG1_MDIO0_MDIO.MDIO0_MDIO */
>;