1. driver
-
drivers/net/phy/marvell.c
-
drivers/net/phy/phy_device.c
-
include/uapi/linux/mii.h (register)
2. kernel config
Device Drivers --->
[*] Network device support --->
-*- PHY Device support and infrastructure --->
<*> Marvell PHYs
3. dts config
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: phy@0 {
device_tpye = "ethernet-phy";
compatible = "ethernet-phy-id0141.0cc0", "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
phy-mode = "gmii";