If you cannot get PHY information with the above command.
Please delete device node &fpga and modify dts as the following.
&fman0 {
ethernet@e0000 {
phy-handle = <&qsgmii_phy1>;
phy-connection-type = "qsgmii";
};
ethernet@e4000 {
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-id";
};
ethernet@e6000 {
phy-handle = <&rgmii_phy2>;
phy-connection-type = "rgmii-id";
};
mdio@fc000 {
rgmii_phy1: ethernet-phy@1 {
reg = <0x1>;
};
rgmii_phy2: ethernet-phy@2 {
reg = <0x2>;
};
qsgmii_phy1: ethernet-phy@4 {
reg = <0x4>;
};
};
Then check whether you could get PHY information with the following commands.
root@TinyLinux:~# cd /sys/bus/mdio_bus/devices/
root@TinyLinux:/sys/bus/mdio_bus/devices# cd 0x0000000001afc000\:01/
consumers of_node/ phy_id power/ subsystem/ uevent
driver/ phy_has_fixups phy_interface statistics/ suppliers
root@TinyLinux:/sys/bus/mdio_bus/devices# cd 0x0000000001afc000\:01/
root@TinyLinux:/sys/bus/mdio_bus/devices/0x0000000001afc000:01# ls -l
total 0
-r--r--r-- 1 root root 4096 Mar 9 12:35 consumers
lrwxrwxrwx 1 root root 0 Mar 9 12:35 driver -> ../../../../../../../../bus/mdio_bus/drivers/RTL8211F Gigabit Ethernet
lrwxrwxrwx 1 root root 0 Mar 9 12:35 of_node -> ../../../../../../../../firmware/devicetree/base/soc/fman@1a00000/mdio@fc000/ethernet-phy@1
-r--r--r-- 1 root root 4096 Mar 9 12:35 phy_has_fixups
-r--r--r-- 1 root root 4096 Mar 9 12:35 phy_id
-r--r--r-- 1 root root 4096 Mar 9 12:35 phy_interface
drwxr-xr-x 2 root root 0 Mar 9 12:35 power
drwxr-xr-x 2 root root 0 Mar 9 12:35 statistics
lrwxrwxrwx 1 root root 0 Mar 9 12:35 subsystem -> ../../../../../../../../bus/mdio_bus
-r--r--r-- 1 root root 4096 Mar 9 12:35 suppliers
-rw-r--r-- 1 root root 4096 Jan 1 1970 uevent
root@TinyLinux:/sys/bus/mdio_bus/devices/0x0000000001afc000:01#