Hello ,
I have a custom board based on imx7. Ethernet is working fine in UBoot. I am able to transfer file from PC to board with tftp command in UBoot.
But looks like ethernet is not working in linux.
following is the log when linux boots up,
30be0000.ethernet supply phy not found, using dummy regulator pps pps0: new PPS source ptp0 fec 30be0000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00 fec 30be0000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 6a:2d:46:e7:f3:c2 libphy: fec_enet_mii_bus: probed fec 30be0000.ethernet eth0: registered PHC device 0 30bf0000.ethernet supply phy not found, using dummy regulator pps pps1: new PPS source ptp1 fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00 fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 4e:02:04:1b:58:d1 fec 30bf0000.ethernet eth1: registered PHC device 1
Below is the dts configuration for fec1
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
/*pinctrl-assert-gpios = <&gpio_spi 5 GPIO_ACTIVE_HIGH>;*/
assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>,
<&clks IMX7D_ENET1_TIME_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
assigned-clock-rates = <0>, <100000000>;
phy-mode = "rgmii";
phy-handle = <ðphy0>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@12 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <12>;
};
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
Can someone help me to understand the problem?
Regards
Flaby
Please check your PHY address is setting correct or not.
For your reference, Porting KSZ9031 to i.MX BSP