Netdev List
 help / color / mirror / Atom feed
* Marvell 88E6320 connected to i.MX8MN
@ 2022-10-27  2:16 Fabio Estevam
  2022-10-27 12:32 ` Andrew Lunn
  2022-10-27 20:41 ` Vladimir Oltean
  0 siblings, 2 replies; 6+ messages in thread
From: Fabio Estevam @ 2022-10-27  2:16 UTC (permalink / raw)
  To: Andrew Lunn, Vladimir Oltean
  Cc: Tim Harvey, netdev, Marek Vasut, Fabio Estevam

Hi,

I am trying to make a Marvell 88E6320 switch to work on an imx8mn-based board
running kernel 6.0.5.

Ethernet is functional in U-Boot with Tim's series:
https://lore.kernel.org/all/20221004164918.2251714-1-tharvey@gateworks.com/

However, in the kernel I am not able to retrieve an IP via DHCP:

mv88e6085 30be0000.ethernet-1:00: switch 0x1150 detected: Marvell
88E6320, revision 2
fec 30be0000.ethernet eth0: registered PHC device 0
mv88e6085 30be0000.ethernet-1:00: switch 0x1150 detected: Marvell
88E6320, revision 2
mv88e6085 30be0000.ethernet-1:00: configuring for fixed/rgmii-id link mode
mv88e6085 30be0000.ethernet-1:00: Link is Up - 1Gbps/Full - flow control off
mv88e6085 30be0000.ethernet-1:00 lan3 (uninitialized): PHY
[!soc@0!bus@30800000!ethernet@30be0000!mdio!switch@0!mdio:03] driver
[Generic PHY] (irq=POLL)
mv88e6085 30be0000.ethernet-1:00 lan4 (uninitialized): PHY
[!soc@0!bus@30800000!ethernet@30be0000!mdio!switch@0!mdio:04] driver
[Generic PHY] (irq=POLL)
device eth0 entered promiscuous mode
DSA: tree 0 setup
...

~# udhcpc -i lan4
udhcpc: started, v1.31.1
[   25.174846] mv88e6085 30be0000.ethernet-1:00 lan4: configuring for
phy/gmii link mode
udhcpc: sending discover
[   27.242123] mv88e6085 30be0000.ethernet-1:00 lan4: Link is Up -
100Mbps/Full - flow control rx/tx
[   27.251064] IPv6: ADDRCONF(NETDEV_CHANGE): lan4: link becomes ready
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
...

This is my devicetree:
https://pastebin.com/raw/TagQJK2a

The only way that I can get IP via DHCP to work in the kernel is if
I access the network inside U-Boot first and launch the kernel afterward.

It looks like U-Boot is doing some configuration that the kernel is missing.

Does anyone have any suggestions, please?

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-28 11:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27  2:16 Marvell 88E6320 connected to i.MX8MN Fabio Estevam
2022-10-27 12:32 ` Andrew Lunn
2022-10-28 11:27   ` Fabio Estevam
2022-10-27 20:41 ` Vladimir Oltean
2022-10-28  2:24   ` Fabio Estevam
2022-10-28 11:58     ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox