From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Graute Date: Mon, 3 Feb 2020 16:31:30 +0100 Subject: [PATCH v1] imx: set CONFIG_FEC_MXC_PHYADDR to -1 In-Reply-To: References: <20200131135145.27042-1-oliver.graute@kococonnector.com> Message-ID: <20200203153130.GA687@optiplex> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/02/20, Fabio Estevam wrote: > On Fri, Jan 31, 2020 at 10:56 AM Oliver Graute > wrote: > > > > This fix the following issue on the imx8qm_rom7720 board: > > > > Booting from net ... > > Could not get PHY for FEC0: addr 0 > > Could not get PHY for FEC0: addr 0 > > Could not get PHY for FEC0: addr 0 > > Could not get PHY for FEC0: addr 0 > > Can't find FEC0 clk rate: -19 > > > > This fix is necessary because of the changes introduced by commit: > > > > 1f60789602e0d5f5f9a8b507f25737c65b5d8daa. > > > > Signed-off-by: Oliver Graute > > Cc: Stefano Babic > > Cc: Fabio Estevam > > Cc: Peng Fan > > Cc: Simon Glass > > Cc: Ye Li > > Cc: uboot-imx > > --- > > include/configs/imx8qm_rom7720.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/configs/imx8qm_rom7720.h b/include/configs/imx8qm_rom7720.h > > index 865863eb7c..d503ddbffe 100644 > > --- a/include/configs/imx8qm_rom7720.h > > +++ b/include/configs/imx8qm_rom7720.h > > @@ -171,6 +171,7 @@ > > > > /* Networking */ > > #define CONFIG_FEC_XCV_TYPE RGMII > > +#define CONFIG_FEC_MXC_PHYADDR -1 > > Shouldn't the Ethernet PHY address be retrieved from the device tree instead? Yes, but phy addr 0 is currently not working that way for me. So I tried to solve it by autodetecting the phy. Please see this thread: https://lists.denx.de/pipermail/u-boot/2019-December/393969.html Best Regards, Oliver