How to change PHY pins under uboot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to change PHY pins under uboot

876 次查看
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!

标签 (1)
0 项奖励
回复
2 回复数

680 次查看
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 项奖励
回复

680 次查看
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 项奖励
回复