Hi,
We are working on I.MX8mmini Ethernet IC DP83848 and ethernet is not getting detected
We have enabled the TI DP83848 Driver as below
Symbol: DP83848_PHY [=y]
Type : tristate
Prompt: Driver for Texas Instruments DP83848 PHY
Location: -> Device Drivers
-> Network device support (NETDEVICES [=y])
-> PHY Device support and infrastructure (PHYLIB [=y])
Defined at drivers/net/phy/Kconfig:144
Depends on: NETDEVICES [=y] && PHYLIB [=y]
Log, driver source code and Schematic of Ethernet Section is attached for your reference
We had used the i.mx8mmini EVK configuration and now enabled the above drive,
but we are not see the driver getting loaded in the trace. We are trying to configure
the Ethernet Phy for MII mode dDo let me know how to setup the MII mode and how to
enable and test the Ethernet driver
Regards
Santhosh
Hi Igore,
I have now modified from phy-mode ="rgmii-id"; to phy-mode = "mii";the below section in the file fsl-imx8mm-evk.dts.orig and the same is attached for your reference
------------------------------------------------------------------------------------------------
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec1>;
phy-mode = "mii";/*"rgmii-id";*/ //Commented by santhosh
phy-handle = <ðphy0>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
at803x,led-act-blind-workaround;
at803x,eee-okay;
at803x,vddio-1p8v;
};
};
};
-------------------------------------------------------------------------------------
Igore,
it says in u-boot log ethernet is not found (highlighted in bold letters). please find the log below
So do i need to change in uboot as above ? and also let me know how to do uboot configuration to select the ethernet driver DP83848
----------------------------------------------------------------------------------------------------------------------------
U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g7ade5b4 (Mar 11 2020 - 06:57:48 +0000)
CPU: Freescale i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 55C
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
Failed (-5)
No panel detected: default to MIPI2HDMI
adv7535_init: Can't find device id=0x3d, on bus 1
Display: MIPI2HDMI (1920x1080)
Video: 1920x1080x24
In: serial
Out: serial
Err: serial
BuildInfo:
- ATF d6451cc
- U-Boot 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g7ade5b4
switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net: No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:
----------------------------------------------------------------------------------------------------------------
Hi Santhosh
for uboot seems you already created separate thread, please wait its resolution
I.MX8MMini : How to Enable TI Ethernet Chip DP83848 in uboot
Best regards
igor
Igor,
My team mate had asked for the clarification on MII in I.Mx8mmini and It clearly says that MII is not supported in I.Mx8mmini hardware. Please ref to your blog response
https://community.nxp.com/message/1284259
Hi Santhosh
first please verify that it is working fine in uboot. In linux one can change dts:
&fec1 {
phy-mode = "mii";
fsl-imx8mm-evk.dts\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel
for testing please look at "fec" tests:
doc\misc\test - imx-test - i.MX Driver Test Application Software
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------