Hi NXP,
We have a custom imx8mp borad and connect two ethernet to ethernet transceiver RTL8211F. One of them (&fec) connects to ethernet switch icplus IP175G to expand to 4 ports. We config dts like below. Function is OK but it shows only one port ethernet interface (eth0).
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <ðphy1>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@3 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <3>;
eee-broken-1000t;
reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <80000>;
realtek,aldps-enable;
realtek,clkout-disable;
};
};
};
Now we want to expand IP175G to 4 port ethernet interfaces and try to modify dts like below, but it still shows only one (eth0).
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@2 {
reg = <2>;
phy-handle = <ðphy1>;
phy_id = <0x02430318>;
label = "lan1";
};
port@3 {
reg = <3>;
phy-handle = <ðphy2>;
phy_id = <0x02430318>;
label = "lan2";
};
port@4 {
reg = <4>;
phy-handle = <ðphy3>;
phy_id = <0x02430318>;
label = "lan3";
};
port@6 {
reg = <6>;
phy-handle = <ðphy4>;
phy_id = <0x02430318>;
label = "lan4";
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@2 {
reg = <2>;
phy-mode = "rgmii-id";
};
ethphy2: ethernet-phy@3 {
reg = <3>;
phy-mode = "rgmii-id";
};
ethphy3: ethernet-phy@4 {
reg = <4>;
phy-mode = "rgmii-id";
};
ethphy4: ethernet-phy@6 {
reg = <6>;
phy-mode = "rgmii-id";
};
};
};
Would you suggest me how to config dts to create 4 port ethernet interfaces?
Best Regards,
Sophie