This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We are working on prototyping a hardware wherein we want to expand the ethernet ports on our platform based on AM3552.
The switch chosen is http://www.microchip.com/wwwproducts/en/KSZ8863
Connections are AM3552->RMII interface->KSZ8863
This device tree settings are as below
cpsw_default: cpsw_default { pinctrl-single,pins = < /* Slave 1 */ 0x64 ( PIN_INPUT | MUX_MODE3 ) /* (U16) gpmc_a9.rmii2_crs_dv */ 0x54 ( PIN_OUTPUT | MUX_MODE3 ) /* (V15) gpmc_a5.rmii2_txd0 */ 0x50 ( PIN_OUTPUT | MUX_MODE3 ) /* (R14) gpmc_a4.rmii2_txd1 */ 0x6c ( PIN_INPUT | MUX_MODE3 ) /* (V17) gpmc_a11.rmii2_rxd0 */ 0x68 ( PIN_INPUT | MUX_MODE3 ) /* (T16) gpmc_a10.rmii2_rxd1 */ 0x108 ( PIN_OUTPUT | MUX_MODE1 )/* (H16) gmii1_col.rmii2_refclk*/ 0xbc ( PIN_OUTPUT | MUX_MODE7 ) /* (T4) lcd_data7.gpio2[13] */ <---GPIO being used as TXEN >; }; cpsw_sleep: cpsw_sleep { pinctrl-single,pins = < /* Slave 1 reset value */ 0x64 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (U16) gpmc_a9.rmii2_crs_dv */ 0x54 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (V15) gpmc_a5.rmii2_txd0 */ 0x50 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /*gpmc_a4.rmii2_txd1 */ 0x6c ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* gpmc_a11.rmii2_rxd0 */ 0x68 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* gpmc_a10.rmii2_rxd1 */ 0x108 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* gmii1_col.rmii2_refclk*/ 0xbc ( PIN_OUTPUT_PULLDOWN | MUX_MODE7 ) /*lcd_data7.gpio2[13] */ >; };
&cpsw_emac0 { phy_id = <&davinci_mdio>, <0>; phy-mode = "rmii"; }; &cpsw_emac1 { phy_id = <&davinci_mdio>, <1>; phy-mode = "rmii"; }; &mac { pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay" };
The KSZ8863RLL can only operate in the MAC mode.
Can you advise us about the settings and the setup to make it work.
Biser is correct in that we do not support MAC-to-MAC connections. However, I hadn't seen this particular device mentioned before so I took a quick look at the RMII timing and found it to be extremely tight when used in conjunction with the AM335x MAC.
Did you perform a RMII timing analysis on your product to ensure that this switch could be supported from a timing perspective?
Hi Biser and DK
Thank you for your responses.
Our system is using the AM3352x custom board with
a. One of the MAC being used by the onboard SMSC LAN8710 PHY wired over RMII1.
b. The other MAC is wired to an external eval board of KSZ8863 (configured as a MAC) wired over RMII2 to be used as a switch.
Is it possible to achieve what we are doing (assuming that we use some other chip which has a PHY mode instead of the currently used KSZ8863) ?
I have below questions-
1. "I took a quick look at the RMII timing and found it to be extremely tight when used in conjunction with the AM335x MAC" -> It would be really helpful if you could tell your findings since we hadn't found anything as such since we are still in evaluation stage.
2. "Did you perform a RMII timing analysis on your product to ensure that this switch could be supported from a timing perspective?" -> We are evaluating the systems and haven't reached till this stage.
3. Can you please point to where people have done MAC to MAC and have been successful?
4. "we do not support MAC-to-MAC connections" -> is it problematic with the hardware or the firmware side ?