Hello Team,
We have designed a custom board with imx8m mini in which we have selected KSZ9021 as PHY .
PHY configuration
phy addr : 0
LED Mode : Tricolour Dual LED
125MHZ CLK DISABLE
RGMII mode - Advertise all capabilities
(10/100/1000 speed half-/full-duplex)
Kernel device tree support :
CONFIG_MICREL_PHY=y
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec1>;
phy-mode = "rgmii-id";
phy-handle = <ðphy0>;
phy-reset-gpios = <&gpio3 16 GPIO_ACTIVE_LOW>;
phy-reset-post-delay = <150>;
phy-reset-duration = <10>;
fsl,magic-packet;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
};
With this configuration PHY is detecting and i'm getting eth0 node in rootfilesystem.
Issue : When i try to assign an ip with dhclient, it unable to get an ip. Tried assigning ip manually but unable to ping dns or google.
ethtool output : Phy has been detected successfully
root@imx8mmpds:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
query's :
1) Is my device tree looks fine ?
2) Any driver modifications or fix ups required for KSZ9021 to work?
Best Regards
khaleel