All of lore.kernel.org
 help / color / mirror / Atom feed
* net: stmmac: DT clock parameter and behavior?
@ 2013-11-19 14:17 Chen-Yu Tsai
  2013-11-29 12:43 ` Giuseppe CAVALLARO
  0 siblings, 1 reply; 3+ messages in thread
From: Chen-Yu Tsai @ 2013-11-19 14:17 UTC (permalink / raw)
  To: Giuseppe Cavallaro; +Cc: netdev

I am currently porting the Linux stmmac driver to an AllWinner SoC
board. The AllWinner A20 SoC has a GMAC, and the drivers they provided
seems to be an early version of stmmac, with the names replaced.
I assume the IP in the SoC is an early version of dwmac. So far I have
managed to get a running system. I would like to clarify a few details
to clean up the code.

The stmmac core code references a clock named "stmmaceth".
This clock does not seem to be documented in "networking/stmmac.txt"
nor in "devicetree/bindings/net/stmmac.txt".
STMicroelectronics SPEAr board DTs do not mention this clock.
But I do see Altera SoCFPGA and Samsung Exynos DTs defining it.

The latest patch series for dwmac-sti on netdev suggests that this
clock is a 25MHz clock for the phy device. Is this true?

Then the driver does not consider that the dwmac might have a gated
clock that needs to be enabled as well. I ran into problems when
the dwmac was not initialized by the bootloader. I assume this can
be dealt with using AUXDATA and .init/.exit callbacks?

Also, earlier versions of stmmac seemed to only give a warning if
"stmmaceth" clock was not found. But in

    6a81c26f  net/stmmac: remove conditional compilation of clk code

the behavior changed to failing completely. Was this intended?

Last, given the supported device is actually Synopsys DesignWare
Ethernet MAC, is there any chance the driver could be renamed to dwmac?


Thank You

Chen-Yu Tsai

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

end of thread, other threads:[~2013-11-29 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 14:17 net: stmmac: DT clock parameter and behavior? Chen-Yu Tsai
2013-11-29 12:43 ` Giuseppe CAVALLARO
2013-11-29 15:00   ` Chen-Yu Tsai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.