Tool/software:
Hi,Ti experts,
We are using TDA4VM-Q1, the sdk version is "ti-processor-sdk-linux-j7-evm-08_06_01_02", 4 marvell phys(88q2112) are connected to cpsw9g, we want to enable 'CPSW9g Native Ethernet' for linux on A72 side.
Now we have configured the dts file,and move marvell-88q2xxx.c file from "ti-processor-sdk-linux-adas-j721e-evm-10_00_00_08",when we debug it ,we find soc cannot get the phyid(funtion get_phy_c45_ids() return a negative value).
Doe ti linux kernel driver could operate the phy in C45 mode?
The partial of dts code as follows:
&cpsw0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&cpsw0_mdio_pins_default &cpsw0_rgmii_pins_default &cpsw0_phy_reset_pins_default>;
};
&cpsw9g_mdio {
#address-cells = <1>;
#size-cells = <0>;
cpsw9g_phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x1>;
};
cpsw9g_phy5: ethernet-phy@5 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x5>;
};
cpsw9g_phy6: ethernet-phy@6 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x6>;
};
cpsw9g_phy7: ethernet-phy@7 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x7>;
};
};
&cpsw0_port1 {
status = "okay";
phy-handle = <&cpsw9g_phy1>;
phy-mode = "sgmii";
phys = <&cpsw0_phy_gmii_sel 1>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
&cpsw0_port5 {
status = "okay";
phy-handle = <&cpsw9g_phy5>;
phy-mode = "sgmii";
phys = <&cpsw0_phy_gmii_sel 5>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
&cpsw0_port6 {
status = "okay";
phy-handle = <&cpsw9g_phy6>;
phy-mode = "sgmii";
phys = <&cpsw0_phy_gmii_sel 6>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
&cpsw0_port7 {
status = "okay";
phy-handle = <&cpsw9g_phy7>;
phy-mode = "rgmii-id";
phys = <&cpsw0_phy_gmii_sel 7>;
fixed-link {
speed = <1000>;
full-duplex;
};
};