Hello,
The ethernet interface is working fine with U-boot-2019.04 without CONFIG_DM_ETH on IMX6S. Following APIs are already implemented in the board file: board_phy_config, setup_iomux_enet and board_eth_init.
Below are the mii info: (Micrel phy is used)
PHY 0x01: OUI = 0x0885, Model = 0x16, Rev = 0x00, 10baseT, HDX
But If I use the CONFIG_DM_ETH, I got the following error:
Could not get PHY for FEC0: addr 1
Below is the device tree:
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet>;
phy-mode = "mii";
phy-reset-gpios = <&gpio4 8 0>;
phy-handle = <ðphy1>;
phy-reset-duration = <10>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@1 {
reg = <1>;
};
};
};
Is there any additional setup to add?
Thanks