Help Needed: Enabling MDIO Clause 45 Driver for LS1012A to Communicate with Clause 45 PHY Devices

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

Help Needed: Enabling MDIO Clause 45 Driver for LS1012A to Communicate with Clause 45 PHY Devices

1,208 次查看
Dhanyalakshmi
Contributor III

Dear NXP Team,

I am working with the LS1012A platform and need to enable MDIO Clause 45 communication to interface with PHY devices that require Clause 45 access. How do i enable it in the boot or rootfs image??

Can you please guide me though if their is any modification to be done in DTS file.

 

 

0 项奖励
回复
3 回复数

1,201 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please modify the following mdio configuration section in dts file arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts to replace the <reg> value with the real PHY address on your custom board.

&pfe {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

pfe_mac0: ethernet@0 {
compatible = "fsl,pfe-gemac-port";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0>; /* GEM_ID */
fsl,gemac-bus-id = <0x0>; /* BUS_ID */
fsl,mdio-mux-val = <0x0>;
phy-mode = "sgmii";
phy-handle = <&sgmii_phy1>;
};

pfe_mac1: ethernet@1 {
compatible = "fsl,pfe-gemac-port";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1>; /* GEM_ID */
fsl,mdio-mux-val = <0x0>;
phy-mode = "sgmii";
phy-handle = <&sgmii_phy2>;

};

mdio@0 {
#address-cells = <1>;
#size-cells = <0>;

sgmii_phy1: ethernet-phy@2 {
reg = <0x2>; //Modify the value with your real PHY address
};

sgmii_phy2: ethernet-phy@1 {
reg = <0x1>;//Modify the value with your real PHY address
};
};
};

0 项奖励
回复

1,185 次查看
Dhanyalakshmi
Contributor III

Thank you for your response, Yiping.

I’m able to successfully detect devices connected to the LS1012A using MDIO Clause 22. However, I’m currently unable to detect devices that use MDIO Clause 45.

The modifications you suggested work well for Clause 22, but I’d like to clarify — do I need to explicitly specify the Clause 45-capable device connected to the LS1012A in the Device Tree Source (DTS) file in order for it to be detected correctly?

0 项奖励
回复

1,170 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please also add "compatible = "ethernet-phy-ieee802.3-c45";" in dts file, please refer to the following mdio definition in arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts

mdio@0 {
#address-cells = <1>;
#size-cells = <0>;

sgmii_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x1>;
};

sgmii_phy2: ethernet-phy@2 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x2>;
};
};

0 项奖励
回复