Hello Igor,
Thanks for your inputs.
--------------------------------------------------------------------------------
DTS Configuration:
&fec2 {
pinctrl-0 = <&pinctrl_fec2_rmii>;
clocks = <&enet1_lpcg 4>,
<&enet1_lpcg 2>,
<&clk IMX_SC_R_ENET_1 IMX_SC_C_DISABLE_50>,
<&enet1_lpcg 0>,
<&enet1_lpcg 1>;
phy-mode = "rmii";
phy-handle = <ðphy2>;
/delete-property/ phy-supply;
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy2: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
tja110x,refclk_in;
};
};
};
Log output:
[ 2.511308] fec 5b050000.ethernet: Invalid MAC address: 00:00:00:00:00:00
[ 2.518161] fec 5b050000.ethernet: Using random MAC address: 56:05:b7:06:72:1a
[ 2.526319] libphy: fec_enet_mii_bus: probed
[ 2.532189] fec 5b050000.ethernet eth0: registered PHC device 0
[ 7.465834] NXP TJA1100 5b050000.ethernet-1:00: attached PHY driver [NXP TJA1100] (mii_bus:phy_addr=5b050000.ethernet-1:00, irq=POLL)
root@imx8qxpc0mek:~# ifconfig
eth0 Link encap:Ethernet HWaddr 56:05:B7:06:72:1A
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6220 (6.0 KiB) TX bytes:6220 (6.0 KiB)
---------------------------------------------------------------------------
1. "eth0" interface is up from ifconfig command, kindly confirm.
2. How to test eth0 interface, (at present we have 1 imx8qxp CPU + 1 BB + 1 imx-rmii-brphy only). Do we need to buy any switch/connectors to test imx-rmii-brphy interface ethernet connectivity. If yes please provide the details.
Thanks in advance.
Thanks,
Poons.