Where to change the TSEC3_PHY_ADDR in Linux sources

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

Where to change the TSEC3_PHY_ADDR in Linux sources

ソリューションへジャンプ
637件の閲覧回数
nagireddychitta
Contributor III

Dear All,

 

I am working on Ls1020ATWR custom platform with a reference board from Freescale as LS1021ATWR.

In my board the TSEC3_PHY_ADDR is modified from 3 to 4. I have changed this in Uboot "ls1021atwr.h" file and see Ethnernet is up and working at UBoot level, but i need to make this change in Linux too to make my network up.

 

I tried going thru dts and dtsi files for this platform, but did not get clue on where to make this change.

If anyone has any idea on this, pls let me know which linux file has this info.

 

Thanks in advance!

 

Best Regards,

Nagi

ラベル(1)
0 件の賞賛
1 解決策
396件の閲覧回数
lunminliang
NXP Employee
NXP Employee

Hello nagi reddy chitta,

Sorry for late.

Can you please try below in device tree like in ls1021a-twr.dts:

&enet2 {

    phy-handle = <&rgmii_phy1>;

    phy-connection-type = "rgmii-id";

    status = "okay";

};

&mdio0 {      

        ...

    rgmii_phy1: ethernet-phy@1 {

        reg = <0x1>;

    };

      ...

};

Change the tsec3_phy_addr in reg to be "reg = <0x4>".

And the ethernet-phy@ changed to 4, looks like:

rgmii_phy3: ethernet-phy@4 {

                                                reg = <0x4>;

}


Have a great day,
Lunmin

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

元の投稿で解決策を見る

0 件の賞賛
1 返信
397件の閲覧回数
lunminliang
NXP Employee
NXP Employee

Hello nagi reddy chitta,

Sorry for late.

Can you please try below in device tree like in ls1021a-twr.dts:

&enet2 {

    phy-handle = <&rgmii_phy1>;

    phy-connection-type = "rgmii-id";

    status = "okay";

};

&mdio0 {      

        ...

    rgmii_phy1: ethernet-phy@1 {

        reg = <0x1>;

    };

      ...

};

Change the tsec3_phy_addr in reg to be "reg = <0x4>".

And the ethernet-phy@ changed to 4, looks like:

rgmii_phy3: ethernet-phy@4 {

                                                reg = <0x4>;

}


Have a great day,
Lunmin

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

0 件の賞賛