Ethernet PHY address in device tree

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Ethernet PHY address in device tree

ソリューションへジャンプ
5,346件の閲覧回数
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,331件の閲覧回数
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,333件の閲覧回数
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,332件の閲覧回数
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,343件の閲覧回数
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