Thread (5 messages) flat view 5 messages, 4 authors, 2012-07-18
STALE5161d

[PATCH v4] arm: socfpga: Add initial support for Altera's SOCFPGA HW

From: Dinh.Nguyen <hidden>
Date: 2012-07-18 18:53:31

On Wed, 2012-07-18 at 12:42 +0000, Arnd Bergmann wrote:
On Wednesday 18 July 2012, Pavel Machek wrote:
quoted
From: Dinh Nguyen <redacted>

Adding core definitions for Altera's SOCFPGA ARM platform.
  
There are two small details I noticed. You can either send
a replacement patch or fixups on top of this one.
quoted
+		gmac0: stmmac at ff700000 {
+			compatible = "st,spear600-gmac";
+			reg = <0xff700000 0x2000>;
+			interrupts = <0 115 4>;
+			interrupt-names = "macirq";
+			mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
+			phy-mode = "gmii";
+		};
We've just discussed the stmmac driver in the spear1340 update
series. My understanding is that there are multiple variants of this
that we may need to distintinguish. I think it's better if you
make the compatible string something that does not reference the
spear600 specific variant, unless you are certain that it is in fact
completely identical to that one.

Ideally you would have the version of the stmmac macro encoded
in there, in addition to a name identifying altera as the company
who added this one, ordered from most specific to least specific.

For instance, this could be

	compatible = "altr,socfpga-stmmac", "st,stmmac-v12.3.45", "st,stmmac";

Looking at the driver, it seems that this should actually not be called
stmmac in the devicetree but rather dwmac, so better make it

	compatible = "altr,socfpga-stmmac", "snps,dwmac-4.567", "snps,dwmac";
Is there already work to update the bindings to reflect this change in
stmmac driver? Or could I help with setting up some patches for it?

Dinh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help