All of lore.kernel.org
 help / color / mirror / Atom feed
From: s.trumtrar@pengutronix.de (Steffen Trumtrar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: zynq: add gem support
Date: Sat, 23 Mar 2013 13:38:15 +0100	[thread overview]
Message-ID: <1364042295-16710-1-git-send-email-s.trumtrar@pengutronix.de> (raw)

The zynq includes a Cadence GEM IP core. This is compatible with the macb driver.
Add it to the zynq-7000 DT.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Josh Cartwright <josh.cartwright@ni.com>
---
 arch/arm/boot/dts/zynq-7000.dtsi | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi
index 0dd2dc7..88564fa 100644
--- a/arch/arm/boot/dts/zynq-7000.dtsi
+++ b/arch/arm/boot/dts/zynq-7000.dtsi
@@ -54,6 +54,26 @@
 			clocks = <&uart_clk 1>;
 		};
 
+		gem0: ethernet at e000b000 {
+			compatible = "cdns,gem";
+			reg = <0xe000b000 0x4000>;
+			status = "disabled";
+			interrupts = <0 22 4>;
+			clocks = <&gem0_clk 0>, <&gem0_clk 0>;
+			clock-names = "pclk", "hclk";
+			phy-mode = "rgmii";
+		};
+
+		gem1: ethernet at e000c000 {
+			compatible = "cdns,gem";
+			reg = <0xe000c000 0x4000>;
+			status = "disabled";
+			interrupts = <0 45 4>;
+			clocks = <&gem1_clk 0>, <&gem1_clk 0>;
+			clock-names = "pclk", "hclk";
+			phy-mode = "rgmii";
+		};
+
 		slcr: slcr at f8000000 {
 			compatible = "xlnx,zynq-slcr";
 			reg = <0xF8000000 0x1000>;
@@ -89,6 +109,22 @@
 					reg = <0x108 0x118>;
 					clock-output-names = "iopll";
 				};
+				gem0_clk: gem0_clk {
+					#clock-cells = <1>;
+					compatible = "xlnx,zynq-periph-clock";
+					clocks = <&iopll &armpll &ddrpll>;
+					reg = <0x140>;
+					clock-output-names = "gem0_ref_clk1",
+							     "gem0_ref_clk2";
+				};
+				gem1_clk: gem1_clk {
+					#clock-cells = <1>;
+					compatible = "xlnx,zynq-periph-clock";
+					clocks = <&iopll &armpll &ddrpll>;
+					reg = <0x144>;
+					clock-output-names = "gem1_ref_clk1",
+							     "gem1_ref_clk2";
+				};
 				uart_clk: uart_clk {
 					#clock-cells = <1>;
 					compatible = "xlnx,zynq-periph-clock";
-- 
1.8.2.rc2

             reply	other threads:[~2013-03-23 12:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-23 12:38 Steffen Trumtrar [this message]
2013-03-25 13:58 ` [PATCH] ARM: zynq: add gem support Michal Simek
2013-03-25 15:21   ` Steffen Trumtrar
2013-12-11 17:29 Soren Brinkmann
2013-12-11 17:29 ` Soren Brinkmann
2013-12-11 17:29 ` Soren Brinkmann
2013-12-12  8:48 ` Michal Simek
2013-12-12  8:48   ` Michal Simek

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=1364042295-16710-1-git-send-email-s.trumtrar@pengutronix.de \
    --to=s.trumtrar@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 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.