How to change PHY pins under uboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change PHY pins under uboot

877 Views
burnyfu
Contributor II

Hi all,

   We connect an external PHY through RGMII2 interface to imx6 SoloX , but the PHY interface under uboot is RGMII1, I change fec1_pads to fec2_pads,but it dosen't work .We find clk in RGMII1_TX_TXC pin.

My IOMUX setting:

pastedImage_3.png   

int board_eth_init(bd_t *bis)
{
      imx_iomux_v3_setup_multiple_pads(fec2_pads, ARRAY_SIZE(fec2_pads));
      setup_fec();

      return cpu_eth_init(bis);
}

Thank you for any feedback!

Labels (1)
0 Kudos
Reply
2 Replies

681 Views
burnyfu
Contributor II

Hi igor

   Thank you for your answer, I modified the  iomux_v3_cfg_t const fec2_pads[] in mx6sxsabresd.c according to this document. It still dosen't work.

pastedImage_1.png

I checked the value of register 2

>mii read 0x19 2 
>0000
the value is wrong,and part of the sch is as follows
pastedImage_2.png
pastedImage_5.png
********************************************************
I can use the MX6_PAD_ENET1_MDC__ENET1_MDC and MX6_PAD_ENET1_MDIO__ENET1_MDIO to read the value of the register 2
>mii read 0x19 2 
>0362

     
0 Kudos
Reply

681 Views
igorpadykov
NXP Employee
NXP Employee

Hi burny

please check iomux_v3_cfg_t const fec2_pads[] in mx6sxsabresd.c
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx6sxsabresd/mx6sxsabre...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply