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.