We are using imx6qp controller in our project and also an ethernet switch (KSZ8795) which is having 1 mac(RGMII) and 4 phy ports.
The switch is connected to imx6qp in RGMII, i.e Mac to Mac and this swich is configurable with SPI and we are not using MDIO bus for configuration of switch.
My query is, in linux switch driver,
i. do i need to create PHY instance and connect to phy layer?
ii. do i need to create MDIO bus instance and register to bus? since i am using SPI to configure the switch.