Ethernet PHY address in device tree

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

Ethernet PHY address in device tree

Jump to solution
5,633 Views
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 !

Labels (4)
0 Kudos
Reply
1 Solution
5,618 Views
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

View solution in original post

3 Replies
5,620 Views
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 Kudos
Reply
5,619 Views
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,630 Views
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