Ethernet PHY address in device tree

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

Ethernet PHY address in device tree

跳至解决方案
5,721 次查看
carotte
Contributor III

Hi,

We designed a custom i.MX6ULL board, which takes most of the schematic from the EVAL board.

Our application only requires one ethernet connection, so one PHY was omitted. Unfortunately, a small mistake was made in the design; the PHY address strapping from ENET 1 was used for ENET2.

Subsequently, the PHY is not recognised. 

However, I see no part of the devicetree that specifies the PHY address: 

 

 

			fec1: ethernet@2188000 {
				compatible = "fsl,imx6ul-fec", "fsl,imx6q-fec";
				reg = <0x02188000 0x4000>;
				interrupt-names = "int0", "pps";
				interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
					     <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
				clocks = <&clks IMX6UL_CLK_ENET>,
					 <&clks IMX6UL_CLK_ENET_AHB>,
					 <&clks IMX6UL_CLK_ENET_PTP>,
					 <&clks IMX6UL_CLK_ENET_REF>,
					 <&clks IMX6UL_CLK_ENET_REF>;
				clock-names = "ipg", "ahb", "ptp",
					      "enet_clk_ref", "enet_out";
				fsl,num-tx-queues=<1>;
				fsl,num-rx-queues=<1>;
				status = "disabled";
			};

 

any advise is appreciated !

标签 (4)
0 项奖励
回复
1 解答
5,706 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Noel

 

seems it is in dts : ethphy0: ethernet-phy@2 {
reg = <2>;

https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx6ul-14x14-evk.dtsi?h=imx_v...

 

Best regards
igor

在原帖中查看解决方案

3 回复数
5,708 次查看
carotte
Contributor III

Hi Igor, 

Thanks !

Unfortunately, I can't see this option in the 5.4.70_2.3.0 release. 

Could you point out where it has moved, or by what it has been replaced ?

 

0 项奖励
回复
5,707 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Noel

 

seems it is in dts : ethphy0: ethernet-phy@2 {
reg = <2>;

https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx6ul-14x14-evk.dtsi?h=imx_v...

 

Best regards
igor

5,718 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Noel

 

for enet phy address one can look at uboot  #define CONFIG_FEC_MXC_PHYADDR  :

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/mx6ullevk.h?h=imx_v2017.03...

 

Best regards
igor