From: Arnd Bergmann <arnd@arndb.de>
To: Dinh Nguyen <dinh.linux@gmail.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@st.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Hans de Goede <hdegoede@redhat.com>,
arm@kernel.org, linux-arm-kernel@lists.infradead.org,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
"David S. Miller" <davem@davemloft.net>,
Dinh Nguyen <dinguyen@altera.com>
Subject: Re: stmmac-socfpga breakage in arm-soc
Date: Wed, 19 Mar 2014 15:58:47 +0100 [thread overview]
Message-ID: <29079107.ja9Hu9mMY0@wuerfel> (raw)
In-Reply-To: <5329AAE1.7030705@gmail.com>
On Wednesday 19 March 2014 09:34:09 Dinh Nguyen wrote:
>
> diff --git a/arch/arm/boot/dts/socfpga.dtsi
> b/arch/arm/boot/dts/socfpga.dtsi
> index 5f1e256..953801c 100644
> --- a/arch/arm/boot/dts/socfpga.dtsi
> +++ b/arch/arm/boot/dts/socfpga.dtsi
> @@ -456,8 +456,10 @@
> altr,sysmgr-syscon = <&sysmgr 0x60>;
> reg = <0xff700000 0x2000>;
> interrupts = <0 115 4>;
> + interrupt-names = "macirq";
> mac-address = [00 00 00 00 00 00];/* Filled in
> by U-Boot */
> clocks = <&emac0_clk>;
> + clock-names = "stmmaceth";
> };
Ah, I see. I missed the "macirq" name in the binding, but the clock name
must be documented in the binding first. I see that it is present in
Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.txt, but
not in any of the other bindings. The driver however prints out a warning
if it's not present.
I've added this part to my patch now.
Arnd
diff --git a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt
index ec216e0..f7aa231 100644
--- a/Documentation/devicetree/bindings/net/socfpga-dwmac.txt
+++ b/Documentation/devicetree/bindings/net/socfpga-dwmac.txt
@@ -20,6 +20,8 @@ gmac0: ethernet@ff700000 {
status = "disabled";
reg = <0xff700000 0x2000>;
interrupts = <0 115 4>;
+ interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
clocks = <&emac0_clk>;
+ clocks-names = ""stmmaceth";
};
diff --git a/Documentation/devicetree/bindings/net/stmmac.txt b/Documentation/devicetree/bindings/net/stmmac.txt
index 5748351..19d5648 100644
--- a/Documentation/devicetree/bindings/net/stmmac.txt
+++ b/Documentation/devicetree/bindings/net/stmmac.txt
@@ -31,6 +31,10 @@ Optional properties:
- reset-names: Should contain the reset signal name "stmmaceth", if a
reset phandle is given
- max-frame-size: See ethernet.txt file in the same directory
+- clocks: If present, the first clock should be the GMAC main clock,
+ further clocks may be specified in derived bindings
+- clock-names: One name for each entry in the clocks property, the
+ first one should be "stmmaceth".
Examples:
@@ -43,4 +47,6 @@ Examples:
mac-address = [000000000000]; /* Filled in by U-Boot */
max-frame-size = <3800>;
phy-mode = "gmii";
+ clocks = <&clock>;
+ clock-names = "stmmaceth">
};
diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 1595712..982649e 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -457,8 +457,10 @@
altr,sysmgr-syscon = <&sysmgr 0x60>;
reg = <0xff700000 0x2000>;
interrupts = <0 115 4>;
+ interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
clocks = <&emac0_clk>;
+ clock-names = "stmmaceth";
};
gmac1: ethernet@ff702000 {
@@ -467,8 +469,10 @@
altr,sysmgr-syscon = <&sysmgr 0x60>;
reg = <0xff702000 0x2000>;
interrupts = <0 120 4>;
+ interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];/* Filled in by U-Boot */
clocks = <&emac1_clk>;
+ clock-names = "stmmaceth";
};
L2: l2-cache@fffef000 {
next prev parent reply other threads:[~2014-03-19 14:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 12:33 stmmac-socfpga breakage in arm-soc Arnd Bergmann
2014-03-19 13:33 ` Dinh Nguyen
2014-03-19 14:05 ` Arnd Bergmann
2014-03-19 14:20 ` Dinh Nguyen
[not found] ` <5329A7A1.20606-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-03-19 15:07 ` Arnd Bergmann
2014-03-24 9:15 ` srinivas kandagatla
2014-03-19 14:34 ` Dinh Nguyen
2014-03-19 14:58 ` Arnd Bergmann [this message]
2014-03-19 16:47 ` Emilio López
2014-03-21 17:51 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29079107.ja9Hu9mMY0@wuerfel \
--to=arnd@arndb.de \
--cc=arm@kernel.org \
--cc=davem@davemloft.net \
--cc=dinguyen@altera.com \
--cc=dinh.linux@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=srinivas.kandagatla@st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox