hi.
i am about to integrate zynq 7000 on in-house developed board with marvell LAN switch.
i want to have the ability to access marvell switch registers via SMI - MDC/MDIO interface.
i've added the folowing to the system-top.dts file.
&gem0 {
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
phy-handle = <&phy0>;
ps7_ethernet_0_mdio: mdio {
phy0: phy@7 {
compatible = "marvell,88e1116r";
device_type = "ethernet-phy";
reg = <7>;
};
};
};
&gem1 {
xlnx,eth-mode = <0x1>;
xlnx,has-mdio = <0x1>;
phy-handle = <&phy1>;
ps7_ethernet_1_mdio: mdio {
phy1: phy@7 {
compatible = "marvell,88e1116r";
device_type = "ethernet-phy";
reg = <7>;
};
};
};
still haven't checked, so first qeustion :
1. would that be enough in order to use built-in linux SMI - MDC/MDIO driver?
2. how do i use linux SMI - MDC/MDIO built-in driver? any reference would be much appreciate.
now to the main challenge:
can i create the serial protocol over another MIO? say 10..11 instead of 52..53 which are the default for SMI